public void CreateAPI() { if (_handle == IntPtr.Zero) { _handle = CTPQuoteAPI.CreateAPI(); } }
public void DestroyAPI() { if (_handle != IntPtr.Zero) { CTPQuoteAPI.DestroyAPI(_handle); } }
public int ReqUserLogin(string brokerId, string userId, string password) { if (_handle == IntPtr.Zero) { //CTPQuoteAPI.CreateAPI } return(CTPQuoteAPI.ReqUserLogin(_handle, brokerId, userId, password)); }
public void RegOnRspUserLogin(OnRspUserLogin callback) { CTPQuoteAPI.RegOnRspUserLogin(_handle, callback); }
public void RegOnHeartBeatWarning(OnHeartBeatWarning callback) { CTPQuoteAPI.RegOnHeartBeatWarning(_handle, callback); }
public void RegOnFrontDisconnected(OnFrontDisconnected callback) { CTPQuoteAPI.RegOnFrontDisconnected(_handle, callback); }
public int UnSubscribeForQuoteRsp(string[] investmentIds, int count) { return(CTPQuoteAPI.UnSubscribeForQuoteRsp(_handle, investmentIds, count)); }
public int UnSubscribeMarketData(string[] investmentIds, int count) { return(CTPQuoteAPI.UnSubscribeMarketData(_handle, investmentIds, count)); }
public int ReqUserLogout(string brokerId, string userId) { return(CTPQuoteAPI.ReqUserLogout(_handle, brokerId, userId)); }
public void Wait() { CTPQuoteAPI.Wait(_handle); }
public void Init(string nsAddress) { CTPQuoteAPI.Init(_handle, nsAddress); }
public void RegOnRtnDepthMarketData(OnRtnDepthMarketData callback) { CTPQuoteAPI.RegOnRtnDepthMarketData(_handle, callback); }
public void RegOnRspUnSubForQuoteRsp(OnRspUnSubForQuoteRsp callback) { CTPQuoteAPI.RegOnRspUnSubForQuoteRsp(_handle, callback); }
public void RegOnRspUnSubMarketData(OnRspUnSubMarketData callback) { CTPQuoteAPI.RegOnRspUnSubMarketData(_handle, callback); }
public void RegOnRspError(OnRspError callback) { CTPQuoteAPI.RegOnRspError(_handle, callback); }
public void RegOnRspUserLogout(OnRspUserLogout callback) { CTPQuoteAPI.RegOnRspUserLogout(_handle, callback); }