public TestQuote() { _q = new CTPQuote(); _q.OnFrontConnected += _q_OnFrontConnected; _q.OnRspUserLogin += _q_OnRspUserLogin; _q.OnRspUserLogout += _q_OnRspUserLogout; _q.OnRtnTick += _q_OnRtnTick; _q.OnRtnError += _q_OnRtnError; }
public TestQuote(string investor, string pwd, string instrument = "rb1809") { _investor = investor; _pwd = pwd; _inst = instrument; _q = new CTPQuote(new FileInfo("../../../dll/ctp_quote.dll").FullName); _q.OnFrontConnected += _q_OnFrontConnected; _q.OnRspUserLogin += _q_OnRspUserLogin; _q.OnRspUserLogout += _q_OnRspUserLogout; _q.OnRtnTick += _q_OnRtnTick; _q.OnRtnError += _q_OnRtnError; }
public TestQuote(string investor, string pwd, string instrument = "rb1809") { _investor = investor; _pwd = pwd; _inst = instrument; _q = new CTPQuote(); _q.OnFrontConnected += _q_OnFrontConnected; _q.OnRspUserLogin += _q_OnRspUserLogin; _q.OnRspUserLogout += _q_OnRspUserLogout; _q.OnRtnTick += _q_OnRtnTick; _q.OnRtnError += _q_OnRtnError; }
public CtpQuote(String tcp_ip_quote, String tcp_ip_trade, String investor, String investorpass, String broker, String price_first, String sub1) { _broker = broker; _investor = investor; _investorpass = investorpass; _sub1 = sub1; _tcp_ip_quote = tcp_ip_quote; _tcp_ip_trade = tcp_ip_trade; _q = new CTPQuote(); _q.OnFrontConnected += _q_OnFrontConnected; _q.OnRspUserLogin += _q_OnRspUserLogin; _q.OnRspUserLogout += _q_OnRspUserLogout; _q.OnRtnTick += _q_OnRtnTick; _q.OnRtnError += _q_OnRtnError; //.........new // _q.OnRtnQuote += _q_OnRtnQuote; // _q.OnRspSubMarketData += _q_OnRspSubMarketData; _q.OnRtnForQuoteRsp += _q_OnRtnForQuoteRsp; }