var searchIndex = {}; searchIndex["michromer"] = {"doc":"","items":[[0,"client","michromer","",null,null],[3,"Client","michromer::client","Client for starting a new level of Stockfighter.",null,null],[3,"LevelClient","","Stockfighter client for a specific level. The\nstock api is defined [here](https://starfighter.readme.io/docs)\nIt's wrapper around an http client. As such it can return\nerrors for parsing or for network issues.",null,null],[12,"level","","",0,null],[12,"base_url","","",0,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"start_level","","Start a new level",1,null],[11,"new","","Given an api key construct a new Client that can interact with stockfighter's game api.",1,{"inputs":[{"name":"str"}],"output":{"name":"client"}}],[11,"new_with_url","","",1,{"inputs":[{"name":"str"},{"name":"str"}],"output":{"name":"client"}}],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"heart_beat","","See if this Level is up.",0,null],[11,"venue_heart_beat","","Check if a venue is ok.",0,null],[11,"stock_list","","Get a list of all the stocks this venue can accept trades for.",0,null],[11,"orderbook","","Get a copy of the venue's order book. Stockfighter suggests\nthat this will be a slow operation that should be done\nas little as possible.",0,null],[11,"quote","","Ask a venue about the current state of a stock.",0,null],[11,"order","","Send in an order, and get back a response.",0,null],[11,"order_status","","Find out how a specific order on a specific venue is doing.",0,null],[11,"delete_order","","Try and cancel an order.",0,null],[11,"new","","Constructs a new level client.",0,{"inputs":[{"name":"t"},{"name":"level"},{"name":"str"}],"output":{"name":"levelclient"}}],[0,"data","michromer","",null,null],[3,"Level","michromer::data","",null,null],[12,"ok","","",2,null],[12,"instance_id","","",2,null],[12,"account","","",2,null],[12,"instructions","","",2,null],[12,"tickers","","",2,null],[12,"venues","","",2,null],[3,"HeartBeatResponse","","",null,null],[12,"ok","","",3,null],[12,"error","","",3,null],[3,"VenueHeartBeatResponse","","",null,null],[12,"ok","","",4,null],[12,"venue","","",4,null],[3,"StockListResponse","","",null,null],[12,"ok","","",5,null],[12,"symbols","","",5,null],[3,"StockSymbol","","",null,null],[12,"name","","",6,null],[12,"symbol","","",6,null],[3,"OrderbookResponse","","",null,null],[12,"ok","","",7,null],[12,"venue","","",7,null],[12,"symbol","","",7,null],[12,"bids","","",7,null],[12,"asks","","",7,null],[12,"ts","","",7,null],[3,"BidAsk","","",null,null],[12,"price","","",8,null],[12,"qty","","",8,null],[12,"is_buy","","",8,null],[3,"QuoteResponse","","",null,null],[12,"ok","","",9,null],[12,"symbol","","",9,null],[12,"venue","","",9,null],[12,"bid","","",9,null],[12,"ask","","",9,null],[12,"bid_size","","",9,null],[12,"ask_size","","",9,null],[12,"bid_depth","","",9,null],[12,"ask_depth","","",9,null],[12,"last","","",9,null],[12,"last_size","","",9,null],[12,"last_trade","","",9,null],[12,"quote_time","","",9,null],[3,"Order","","",null,null],[12,"account","","",10,null],[12,"venue","","",10,null],[12,"stock","","",10,null],[12,"price","","",10,null],[12,"qty","","",10,null],[12,"direction","","",10,null],[12,"order_type","","",10,null],[3,"OrderResponse","","",null,null],[12,"ok","","",11,null],[12,"symbol","","",11,null],[12,"venue","","",11,null],[12,"direction","","",11,null],[12,"original_qty","","",11,null],[12,"qty","","",11,null],[12,"price","","",11,null],[12,"order_type","","",11,null],[12,"id","","",11,null],[12,"account","","",11,null],[12,"ts","","",11,null],[12,"fills","","",11,null],[12,"total_filled","","",11,null],[12,"open","","",11,null],[3,"Fill","","",null,null],[12,"price","","",12,null],[12,"qty","","",12,null],[12,"ts","","",12,null],[4,"OrderDirection","","",null,null],[13,"Buy","","",13,null],[13,"Sell","","",13,null],[4,"OrderType","","",null,null],[13,"Limit","","",14,null],[13,"Market","","",14,null],[13,"FillOrKill","","",14,null],[13,"ImmediateOrCancel","","",14,null],[5,"parse_response","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",6,null],[11,"fmt","","",6,null],[11,"clone","","",7,null],[11,"fmt","","",7,null],[11,"clone","","",8,null],[11,"fmt","","",8,null],[11,"clone","","",9,null],[11,"fmt","","",9,null],[11,"clone","","",13,null],[11,"fmt","","",13,null],[11,"fmt","","",13,null],[11,"serialize","","",13,null],[11,"deserialize","","",13,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"clone","","",14,null],[11,"fmt","","",14,null],[11,"fmt","","",14,null],[11,"serialize","","",14,null],[11,"deserialize","","",14,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"clone","","",10,null],[11,"fmt","","",10,null],[11,"clone","","",11,null],[11,"fmt","","",11,null],[11,"clone","","",12,null],[11,"fmt","","",12,null],[0,"error","michromer","",null,null],[4,"Error","michromer::error","",null,null],[13,"Hyper","","",15,null],[13,"IO","","",15,null],[13,"JSON","","",15,null],[6,"Result","","",null,null],[11,"fmt","","",15,null],[11,"from","","",15,{"inputs":[{"name":"ioerror"}],"output":{"name":"error"}}],[11,"from","","",15,{"inputs":[{"name":"hypererror"}],"output":{"name":"error"}}],[11,"from","","",15,{"inputs":[{"name":"serdejsonerror"}],"output":{"name":"error"}}],[11,"fmt","","",15,null],[11,"description","","",15,null],[11,"cause","","",15,null],[0,"http","michromer","",null,null],[3,"XStarfighterAuthorization","michromer::http","",null,null],[12,"0","","",16,null],[3,"AuthHttpClient","","",null,null],[8,"HttpClient","","",null,null],[10,"get","","",17,null],[10,"post","","",17,null],[10,"delete","","",17,null],[11,"eq","","",16,null],[11,"ne","","",16,null],[11,"fmt","","",16,null],[11,"clone","","",16,null],[11,"deref","","",16,null],[11,"deref_mut","","",16,null],[11,"header_name","","",16,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",16,null],[11,"fmt_header","","",16,null],[11,"fmt","","",16,null],[11,"clone","","",18,null],[11,"fmt","","",18,null],[11,"new","","",18,{"inputs":[{"name":"str"}],"output":{"name":"authhttpclient"}}],[11,"get","","",18,null],[11,"post","","",18,null],[11,"delete","","",18,null]],"paths":[[3,"LevelClient"],[3,"Client"],[3,"Level"],[3,"HeartBeatResponse"],[3,"VenueHeartBeatResponse"],[3,"StockListResponse"],[3,"StockSymbol"],[3,"OrderbookResponse"],[3,"BidAsk"],[3,"QuoteResponse"],[3,"Order"],[3,"OrderResponse"],[3,"Fill"],[4,"OrderDirection"],[4,"OrderType"],[4,"Error"],[3,"XStarfighterAuthorization"],[8,"HttpClient"],[3,"AuthHttpClient"]]}; initSearch(searchIndex);