void TradeNotify_OnQryFinishEvent(CTapTradeAPINotify.TradeQryType qryType) { switch (qryType) { case CTapTradeAPINotify.TradeQryType.AccountNo: { string[] keys = new string[] {}; //DataManager.Trade.Account.Keys.ToArray(); TapAPIFundReq req = new TapAPIFundReq(); for (int i = 0; i < keys.Length; ++i) { req.AccountNo = keys[i]; m_api.QryFund(out m_sessionID, null); } if (OnAccountNoReadyEvent != null) { OnAccountNoReadyEvent(); } } break; case CTapTradeAPINotify.TradeQryType.Order: { if (OnOrderUpdateEvent != null) { OnOrderUpdateEvent(); } } break; default: break; } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapAPIFundReq obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public virtual int QryFund(out uint sessionID, TapAPIFundReq qryReq) { int ret = QTapTradeApiPINVOKE.ITapTradeAPI_QryFund(swigCPtr, out sessionID, TapAPIFundReq.getCPtr(qryReq)); return(ret); }
public virtual int QryFund(ref uint sessionID, TapAPIFundReq qryReq) { int ret = TapTradeCppWrapperPINVOKE.ITapTradeAPI_QryFund(swigCPtr, ref sessionID, TapAPIFundReq.getCPtr(qryReq)); return(ret); }