Beispiel #1
0
 public void CreateAPI()
 {
     if (_handle == IntPtr.Zero)
     {
         _handle = CTPQuoteAPI.CreateAPI();
     }
 }
Beispiel #2
0
 public void DestroyAPI()
 {
     if (_handle != IntPtr.Zero)
     {
         CTPQuoteAPI.DestroyAPI(_handle);
     }
 }
Beispiel #3
0
 public int ReqUserLogin(string brokerId, string userId, string password)
 {
     if (_handle == IntPtr.Zero)
     {
         //CTPQuoteAPI.CreateAPI
     }
     return(CTPQuoteAPI.ReqUserLogin(_handle, brokerId, userId, password));
 }
Beispiel #4
0
 public void RegOnRspUserLogin(OnRspUserLogin callback)
 {
     CTPQuoteAPI.RegOnRspUserLogin(_handle, callback);
 }
Beispiel #5
0
 public void RegOnHeartBeatWarning(OnHeartBeatWarning callback)
 {
     CTPQuoteAPI.RegOnHeartBeatWarning(_handle, callback);
 }
Beispiel #6
0
 public void RegOnFrontDisconnected(OnFrontDisconnected callback)
 {
     CTPQuoteAPI.RegOnFrontDisconnected(_handle, callback);
 }
Beispiel #7
0
 public int UnSubscribeForQuoteRsp(string[] investmentIds, int count)
 {
     return(CTPQuoteAPI.UnSubscribeForQuoteRsp(_handle, investmentIds, count));
 }
Beispiel #8
0
 public int UnSubscribeMarketData(string[] investmentIds, int count)
 {
     return(CTPQuoteAPI.UnSubscribeMarketData(_handle, investmentIds, count));
 }
Beispiel #9
0
 public int ReqUserLogout(string brokerId, string userId)
 {
     return(CTPQuoteAPI.ReqUserLogout(_handle, brokerId, userId));
 }
Beispiel #10
0
 public void Wait()
 {
     CTPQuoteAPI.Wait(_handle);
 }
Beispiel #11
0
 public void Init(string nsAddress)
 {
     CTPQuoteAPI.Init(_handle, nsAddress);
 }
Beispiel #12
0
 public void RegOnRtnDepthMarketData(OnRtnDepthMarketData callback)
 {
     CTPQuoteAPI.RegOnRtnDepthMarketData(_handle, callback);
 }
Beispiel #13
0
 public void RegOnRspUnSubForQuoteRsp(OnRspUnSubForQuoteRsp callback)
 {
     CTPQuoteAPI.RegOnRspUnSubForQuoteRsp(_handle, callback);
 }
Beispiel #14
0
 public void RegOnRspUnSubMarketData(OnRspUnSubMarketData callback)
 {
     CTPQuoteAPI.RegOnRspUnSubMarketData(_handle, callback);
 }
Beispiel #15
0
 public void RegOnRspError(OnRspError callback)
 {
     CTPQuoteAPI.RegOnRspError(_handle, callback);
 }
Beispiel #16
0
 public void RegOnRspUserLogout(OnRspUserLogout callback)
 {
     CTPQuoteAPI.RegOnRspUserLogout(_handle, callback);
 }