private void Quoter_OnQueryAllTickersEvent(RspInfoStruct A_0, QuoteStaticInfoStruct quoteInfo, bool A_2) { SymbolMap.Add(quoteInfo.ticker, quoteInfo); string msg = string.Format("Quoter_OnQueryAllTickersEvent():{0}({1}),PreClose={2}", quoteInfo.ticker, quoteInfo.ticker_name.Trim('\0'), quoteInfo.pre_close_price); log(msg); }
private void Trader_OnOrderEvent(RspInfoStruct rsp, OrderInfoStruct orderInfo, UInt64 session_id) { log("Trader_OnOrderEvent():"); if (rsp.error_id == 0) { log("{0} {1} {2} Traded:{3} Remain:{4}", orderInfo.ticker, orderInfo.side.ToString(), orderInfo.quantity, orderInfo.qty_traded, orderInfo.trade_amount); } else { log("{0}:{1}", rsp.error_id, rsp.error_msg); } }
private void Quoter_OnQueryTickersPriceInfoEvent(TickerPriceInfo ticker_info, RspInfoStruct error_info, bool is_last) { log("Quoter_OnQueryTickersPriceInfoEvent():{0} Last {1}", ticker_info.ticker, ticker_info.last_price); }
private void Quoter_OnSubOrderBookEvent(SpecificTickerStruct ticker, RspInfoStruct error_info, bool is_last) { log("Quoter_OnSubOrderBookEvent():{0}", ticker.ticker); }
private void Quoter_OnSubscribeAllMarketDataEvent(RspInfoStruct error_info) { log("Quoter_OnSubscribeAllMarketDataEvent():{0}", error_info.error_id == 0 ? "success" : "fail"); }
private void Quoter_OnUnSubscribeAllOrderBookEvent(RspInfoStruct error_info) { log("Quoter_OnUnSubscribeAllOrderBookEvent():{0}", error_info.error_id == 0 ? "success" : "fail"); }
private void Quoter_OnSubMarketDataEvent(RspInfoStruct rspinfo, SpecificTickerStruct tick, bool A_2) { log("Quoter_OnSubMarketDataEvent():{0} subscribe {1} {2}", tick.ticker, rspinfo.error_id == 0 ? "success" : "fail", rspinfo.error_msg); }
private void Quoter_OnErrorEvent(RspInfoStruct A_0) { log("Quoter_OnErrorEvent():{0}", A_0.error_msg); }
private void Quoter_OnUnSubMarketDataEvent(RspInfoStruct A_0, SpecificTickerStruct A_1, bool A_2) { log("OnUnSubMarketDataEvent():{0}", A_1.ticker); }
private void Trader_OnOrderCancelEvent(RspInfoStruct A_0, OrderCancelInfoStruct A_1, UInt64 session_id) { log("Trader_OnOrderCancelEvent():"); }
private void Trader_OnQueryAssetEvent(QueryAssetRsp A_1, RspInfoStruct A_0, int A_2, bool A_3, UInt64 session_id) { log("Trader_OnQueryAssetEvent"); }
private void Trader_OnQueryOrderEvent(RspInfoStruct A_0, OrderInfoStruct A_1, int A_2, bool A_3, UInt64 session_id) { log("Trader_OnQueryOrderEvent"); }
private void Trader_OnQueryPositionEvent(QueryStkPositionRsp A_1, RspInfoStruct A_0, int A_2, bool A_3, UInt64 session_id) { log("Trader_OnQueryPositionEvent"); }
private void Trader_OnQueryTradeEvent(RspInfoStruct A_0, TradeReportStruct A_1, int A_2, bool A_3, UInt64 session_id) { log("Trader_OnQueryTradeEvent"); }