Beispiel #1
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 QTapTradeApiPINVOKE.delete_TapAPINewOrder(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
     }
 }
Beispiel #2
0
        public virtual int SetReservedInfo(out uint sessionID, string info)
        {
            int ret = QTapTradeApiPINVOKE.ITapTradeAPI_SetReservedInfo(swigCPtr, out sessionID, info);

            return(ret);
        }
Beispiel #3
0
 public virtual void OnRtnFund(TapAPIFundData info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnFund(swigCPtr, TapAPIFundData.getCPtr(info));
 }
Beispiel #4
0
 public virtual void OnRspChangePassword(uint sessionID, int errorCode)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspChangePassword(swigCPtr, sessionID, errorCode);
 }
Beispiel #5
0
 public virtual void OnRspQryAccount(uint sessionID, uint errorCode, char isLast, TapAPIAccountInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspQryAccount(swigCPtr, sessionID, errorCode, isLast, TapAPIAccountInfo.getCPtr(info));
 }
Beispiel #6
0
 public virtual void OnConnect()
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnConnect(swigCPtr);
 }
Beispiel #7
0
 public virtual void OnAPIReady()
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnAPIReady(swigCPtr);
 }
Beispiel #8
0
 public virtual void OnRtnFill(TapAPIFillInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnFill(swigCPtr, TapAPIFillInfo.getCPtr(info));
 }
Beispiel #9
0
 public virtual void OnRtnPosition(TapAPIPositionInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnPosition(swigCPtr, TapAPIPositionInfo.getCPtr(info));
 }
Beispiel #10
0
 public virtual void OnRspOrderAction(uint sessionID, uint errorCode, TapAPIOrderActionRsp info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspOrderAction(swigCPtr, sessionID, errorCode, TapAPIOrderActionRsp.getCPtr(info));
 }
Beispiel #11
0
 public virtual void OnRspQryOrderProcess(uint sessionID, int errorCode, char isLast, TapAPIOrderInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspQryOrderProcess(swigCPtr, sessionID, errorCode, isLast, TapAPIOrderInfo.getCPtr(info));
 }
Beispiel #12
0
 public virtual void OnRtnOrder(TapAPIOrderInfoNotice info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnOrder(swigCPtr, TapAPIOrderInfoNotice.getCPtr(info));
 }
Beispiel #13
0
 public virtual void OnRtnContract(TapAPITradeContractInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnContract(swigCPtr, TapAPITradeContractInfo.getCPtr(info));
 }
Beispiel #14
0
        public virtual int QryAccount(out uint sessionID, TapAPIAccQryReq qryReq)
        {
            int ret = QTapTradeApiPINVOKE.ITapTradeAPI_QryAccount(swigCPtr, out sessionID, TapAPIAccQryReq.getCPtr(qryReq));

            return(ret);
        }
Beispiel #15
0
 public ITapTradeAPINotify() : this(QTapTradeApiPINVOKE.new_ITapTradeAPINotify(), true)
 {
     SwigDirectorConnect();
 }
Beispiel #16
0
 public virtual void OnRtnClose(TapAPICloseInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnClose(swigCPtr, TapAPICloseInfo.getCPtr(info));
 }
Beispiel #17
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("OnConnect", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateITapTradeAPINotify_0(SwigDirectorOnConnect);
     }
     if (SwigDerivedClassHasMethod("OnRspLogin", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateITapTradeAPINotify_1(SwigDirectorOnRspLogin);
     }
     if (SwigDerivedClassHasMethod("OnAPIReady", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateITapTradeAPINotify_2(SwigDirectorOnAPIReady);
     }
     if (SwigDerivedClassHasMethod("OnDisconnect", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateITapTradeAPINotify_3(SwigDirectorOnDisconnect);
     }
     if (SwigDerivedClassHasMethod("OnRspChangePassword", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateITapTradeAPINotify_4(SwigDirectorOnRspChangePassword);
     }
     if (SwigDerivedClassHasMethod("OnRspSetReservedInfo", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateITapTradeAPINotify_5(SwigDirectorOnRspSetReservedInfo);
     }
     if (SwigDerivedClassHasMethod("OnRspQryAccount", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateITapTradeAPINotify_6(SwigDirectorOnRspQryAccount);
     }
     if (SwigDerivedClassHasMethod("OnRspQryFund", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegateITapTradeAPINotify_7(SwigDirectorOnRspQryFund);
     }
     if (SwigDerivedClassHasMethod("OnRtnFund", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegateITapTradeAPINotify_8(SwigDirectorOnRtnFund);
     }
     if (SwigDerivedClassHasMethod("OnRspQryExchange", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegateITapTradeAPINotify_9(SwigDirectorOnRspQryExchange);
     }
     if (SwigDerivedClassHasMethod("OnRspQryCommodity", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegateITapTradeAPINotify_10(SwigDirectorOnRspQryCommodity);
     }
     if (SwigDerivedClassHasMethod("OnRspQryContract", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegateITapTradeAPINotify_11(SwigDirectorOnRspQryContract);
     }
     if (SwigDerivedClassHasMethod("OnRtnContract", swigMethodTypes12))
     {
         swigDelegate12 = new SwigDelegateITapTradeAPINotify_12(SwigDirectorOnRtnContract);
     }
     if (SwigDerivedClassHasMethod("OnRtnOrder", swigMethodTypes13))
     {
         swigDelegate13 = new SwigDelegateITapTradeAPINotify_13(SwigDirectorOnRtnOrder);
     }
     if (SwigDerivedClassHasMethod("OnRspOrderAction", swigMethodTypes14))
     {
         swigDelegate14 = new SwigDelegateITapTradeAPINotify_14(SwigDirectorOnRspOrderAction);
     }
     if (SwigDerivedClassHasMethod("OnRspQryOrder", swigMethodTypes15))
     {
         swigDelegate15 = new SwigDelegateITapTradeAPINotify_15(SwigDirectorOnRspQryOrder);
     }
     if (SwigDerivedClassHasMethod("OnRspQryOrderProcess", swigMethodTypes16))
     {
         swigDelegate16 = new SwigDelegateITapTradeAPINotify_16(SwigDirectorOnRspQryOrderProcess);
     }
     if (SwigDerivedClassHasMethod("OnRspQryFill", swigMethodTypes17))
     {
         swigDelegate17 = new SwigDelegateITapTradeAPINotify_17(SwigDirectorOnRspQryFill);
     }
     if (SwigDerivedClassHasMethod("OnRtnFill", swigMethodTypes18))
     {
         swigDelegate18 = new SwigDelegateITapTradeAPINotify_18(SwigDirectorOnRtnFill);
     }
     if (SwigDerivedClassHasMethod("OnRspQryPosition", swigMethodTypes19))
     {
         swigDelegate19 = new SwigDelegateITapTradeAPINotify_19(SwigDirectorOnRspQryPosition);
     }
     if (SwigDerivedClassHasMethod("OnRtnPosition", swigMethodTypes20))
     {
         swigDelegate20 = new SwigDelegateITapTradeAPINotify_20(SwigDirectorOnRtnPosition);
     }
     if (SwigDerivedClassHasMethod("OnRspQryClose", swigMethodTypes21))
     {
         swigDelegate21 = new SwigDelegateITapTradeAPINotify_21(SwigDirectorOnRspQryClose);
     }
     if (SwigDerivedClassHasMethod("OnRtnClose", swigMethodTypes22))
     {
         swigDelegate22 = new SwigDelegateITapTradeAPINotify_22(SwigDirectorOnRtnClose);
     }
     if (SwigDerivedClassHasMethod("OnRtnPositionProfit", swigMethodTypes23))
     {
         swigDelegate23 = new SwigDelegateITapTradeAPINotify_23(SwigDirectorOnRtnPositionProfit);
     }
     if (SwigDerivedClassHasMethod("OnRspQryDeepQuote", swigMethodTypes24))
     {
         swigDelegate24 = new SwigDelegateITapTradeAPINotify_24(SwigDirectorOnRspQryDeepQuote);
     }
     if (SwigDerivedClassHasMethod("OnRspQryExchangeStateInfo", swigMethodTypes25))
     {
         swigDelegate25 = new SwigDelegateITapTradeAPINotify_25(SwigDirectorOnRspQryExchangeStateInfo);
     }
     if (SwigDerivedClassHasMethod("OnRtnExchangeStateInfo", swigMethodTypes26))
     {
         swigDelegate26 = new SwigDelegateITapTradeAPINotify_26(SwigDirectorOnRtnExchangeStateInfo);
     }
     if (SwigDerivedClassHasMethod("OnRtnReqQuoteNotice", swigMethodTypes27))
     {
         swigDelegate27 = new SwigDelegateITapTradeAPINotify_27(SwigDirectorOnRtnReqQuoteNotice);
     }
     if (SwigDerivedClassHasMethod("OnRspUpperChannelInfo", swigMethodTypes28))
     {
         swigDelegate28 = new SwigDelegateITapTradeAPINotify_28(SwigDirectorOnRspUpperChannelInfo);
     }
     if (SwigDerivedClassHasMethod("OnRspAccountRentInfo", swigMethodTypes29))
     {
         swigDelegate29 = new SwigDelegateITapTradeAPINotify_29(SwigDirectorOnRspAccountRentInfo);
     }
     QTapTradeApiPINVOKE.ITapTradeAPINotify_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22, swigDelegate23, swigDelegate24, swigDelegate25, swigDelegate26, swigDelegate27, swigDelegate28, swigDelegate29);
 }
Beispiel #18
0
 public virtual void OnRtnPositionProfit(TapAPIPositionProfitNotice info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnPositionProfit(swigCPtr, TapAPIPositionProfitNotice.getCPtr(info));
 }
Beispiel #19
0
 public virtual void OnRspLogin(int errorCode, TapAPITradeLoginRspInfo loginRspInfo)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspLogin(swigCPtr, errorCode, TapAPITradeLoginRspInfo.getCPtr(loginRspInfo));
 }
Beispiel #20
0
 public virtual void OnRspQryDeepQuote(uint sessionID, int errorCode, char isLast, TapAPIDeepQuoteQryRsp info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspQryDeepQuote(swigCPtr, sessionID, errorCode, isLast, TapAPIDeepQuoteQryRsp.getCPtr(info));
 }
Beispiel #21
0
 public virtual void OnDisconnect(int reasonCode)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnDisconnect(swigCPtr, reasonCode);
 }
Beispiel #22
0
 public virtual void OnRspQryExchangeStateInfo(uint sessionID, int errorCode, char isLast, TapAPIExchangeStateInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspQryExchangeStateInfo(swigCPtr, sessionID, errorCode, isLast, TapAPIExchangeStateInfo.getCPtr(info));
 }
Beispiel #23
0
 public virtual void OnRspSetReservedInfo(uint sessionID, int errorCode, string info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspSetReservedInfo(swigCPtr, sessionID, errorCode, info);
 }
Beispiel #24
0
 public virtual void OnRtnExchangeStateInfo(TapAPIExchangeStateInfoNotice info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnExchangeStateInfo(swigCPtr, TapAPIExchangeStateInfoNotice.getCPtr(info));
 }
Beispiel #25
0
 public virtual void OnRspQryFund(uint sessionID, int errorCode, char isLast, TapAPIFundData info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspQryFund(swigCPtr, sessionID, errorCode, isLast, TapAPIFundData.getCPtr(info));
 }
Beispiel #26
0
 public virtual void OnRtnReqQuoteNotice(TapAPIReqQuoteNotice info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRtnReqQuoteNotice(swigCPtr, TapAPIReqQuoteNotice.getCPtr(info));
 }
Beispiel #27
0
 public virtual void OnRspQryCommodity(uint sessionID, int errorCode, char isLast, TapAPICommodityInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspQryCommodity(swigCPtr, sessionID, errorCode, isLast, TapAPICommodityInfo.getCPtr(info));
 }
Beispiel #28
0
 public virtual void OnRspUpperChannelInfo(uint sessionID, int errorCode, char isLast, TapAPIUpperChannelInfo info)
 {
     QTapTradeApiPINVOKE.ITapTradeAPINotify_OnRspUpperChannelInfo(swigCPtr, sessionID, errorCode, isLast, TapAPIUpperChannelInfo.getCPtr(info));
 }
Beispiel #29
0
 public TapAPINewOrder() : this(QTapTradeApiPINVOKE.new_TapAPINewOrder(), true)
 {
 }
Beispiel #30
0
        public virtual int HaveCertainRight(int rightID)
        {
            int ret = QTapTradeApiPINVOKE.ITapTradeAPI_HaveCertainRight(swigCPtr, rightID);

            return(ret);
        }