|
|
|
@ -7,7 +7,7 @@ if typing.TYPE_CHECKING:
|
|
|
|
|
from .vntora import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def set_async_callback_exception_handler(handler: Callable[[AsyncDispatchException], None]):
|
|
|
|
|
def set_async_callback_exception_handler(handler: Callable[[AsyncDispatchException], bool]):
|
|
|
|
|
"""
|
|
|
|
|
set a customize exception handler for async callback in this module(pyd)
|
|
|
|
|
\a handler should return True if it handles that exception,
|
|
|
|
@ -2312,37 +2312,37 @@ class CTORATstpMdSpi():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def OnFrontConnected(self, )->None:
|
|
|
|
|
def OnFrontConnected(self, )->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnFrontDisconnected(self, nReason: int)->None:
|
|
|
|
|
def OnFrontDisconnected(self, nReason: int)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspError(self, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspError(self, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUserLogin(self, pRspUserLogin: CTORATstpRspUserLoginField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUserLogin(self, pRspUserLogin: CTORATstpRspUserLoginField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUserLogout(self, pUserLogout: CTORATstpUserLogoutField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUserLogout(self, pUserLogout: CTORATstpUserLogoutField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspSubMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspSubMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUnSubMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUnSubMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspSubSpecialMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspSubSpecialMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUnSubSpecialMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUnSubSpecialMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspSubFundsFlowMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspSubFundsFlowMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUnSubFundsFlowMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUnSubFundsFlowMarketData(self, pSpecificSecurity: CTORATstpSpecificSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnDepthMarketData(self, pDepthMarketData: CTORATstpMarketDataField)->None:
|
|
|
|
|
def OnRtnDepthMarketData(self, pDepthMarketData: CTORATstpMarketDataField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnSpecialMarketData(self, pSpecialMarketData: CTORATstpSpecialMarketDataField)->None:
|
|
|
|
|
def OnRtnSpecialMarketData(self, pSpecialMarketData: CTORATstpSpecialMarketDataField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnEffectPriceMarketData(self, pEffectPriceMarketData: CTORATstpEffectPriceMarketDataField)->None:
|
|
|
|
|
def OnRtnEffectPriceMarketData(self, pEffectPriceMarketData: CTORATstpEffectPriceMarketDataField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnEffectVolumeMarketData(self, pEffectVolumeMarketData: CTORATstpEffectVolumeMarketDataField)->None:
|
|
|
|
|
def OnRtnEffectVolumeMarketData(self, pEffectVolumeMarketData: CTORATstpEffectVolumeMarketDataField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnFundsFlowMarketData(self, pFundsFlowMarketData: CTORATstpFundsFlowMarketDataField)->None:
|
|
|
|
|
def OnRtnFundsFlowMarketData(self, pFundsFlowMarketData: CTORATstpFundsFlowMarketDataField)->Any:
|
|
|
|
|
...
|
|
|
|
|
class CTORATstpMdApi():
|
|
|
|
|
|
|
|
|
@ -2355,19 +2355,19 @@ class CTORATstpMdApi():
|
|
|
|
|
@staticmethod
|
|
|
|
|
def GetApiVersion()->str:
|
|
|
|
|
...
|
|
|
|
|
def Release(self, )->None:
|
|
|
|
|
def Release(self, )->Any:
|
|
|
|
|
...
|
|
|
|
|
def Init(self, )->None:
|
|
|
|
|
def Init(self, )->Any:
|
|
|
|
|
...
|
|
|
|
|
def Join(self, )->int:
|
|
|
|
|
...
|
|
|
|
|
def RegisterFront(self, pszFrontAddress: str)->None:
|
|
|
|
|
def RegisterFront(self, pszFrontAddress: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def RegisterNameServer(self, pszNsAddress: str)->None:
|
|
|
|
|
def RegisterNameServer(self, pszNsAddress: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def RegisterDeriveServer(self, pszDeriveAddress: str)->None:
|
|
|
|
|
def RegisterDeriveServer(self, pszDeriveAddress: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def RegisterSpi(self, pSpi: CTORATstpMdSpi)->None:
|
|
|
|
|
def RegisterSpi(self, pSpi: CTORATstpMdSpi)->Any:
|
|
|
|
|
...
|
|
|
|
|
def SubscribeMarketData(self, ppSecurityID: List[str], ExchageID: int)->int:
|
|
|
|
|
...
|
|
|
|
@ -2390,145 +2390,145 @@ class CTORATstpTraderSpi():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def OnFrontConnected(self, )->None:
|
|
|
|
|
def OnFrontConnected(self, )->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnFrontDisconnected(self, nReason: int)->None:
|
|
|
|
|
def OnFrontDisconnected(self, nReason: int)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspError(self, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspError(self, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUserLogin(self, pRspUserLoginField: CTORATstpRspUserLoginField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUserLogin(self, pRspUserLoginField: CTORATstpRspUserLoginField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUserLogout(self, pUserLogoutField: CTORATstpUserLogoutField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUserLogout(self, pUserLogoutField: CTORATstpUserLogoutField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspUserPasswordUpdate(self, pUserPasswordUpdateField: CTORATstpUserPasswordUpdateField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspUserPasswordUpdate(self, pUserPasswordUpdateField: CTORATstpUserPasswordUpdateField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInputDeviceSerial(self, pRspInputDeviceSerialField: CTORATstpRspInputDeviceSerialField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInputDeviceSerial(self, pRspInputDeviceSerialField: CTORATstpRspInputDeviceSerialField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspOrderInsert(self, pInputOrderField: CTORATstpInputOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspOrderInsert(self, pInputOrderField: CTORATstpInputOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnOrder(self, pOrder: CTORATstpOrderField)->None:
|
|
|
|
|
def OnRtnOrder(self, pOrder: CTORATstpOrderField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnErrRtnOrderInsert(self, pInputOrder: CTORATstpInputOrderField, pRspInfo: CTORATstpRspInfoField)->None:
|
|
|
|
|
def OnErrRtnOrderInsert(self, pInputOrder: CTORATstpInputOrderField, pRspInfo: CTORATstpRspInfoField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspOrderAction(self, pInputOrderActionField: CTORATstpInputOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspOrderAction(self, pInputOrderActionField: CTORATstpInputOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnErrRtnOrderAction(self, pOrderAction: CTORATstpOrderActionField, pRspInfo: CTORATstpRspInfoField)->None:
|
|
|
|
|
def OnErrRtnOrderAction(self, pOrderAction: CTORATstpOrderActionField, pRspInfo: CTORATstpRspInfoField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnTrade(self, pTrade: CTORATstpTradeField)->None:
|
|
|
|
|
def OnRtnTrade(self, pTrade: CTORATstpTradeField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnMarketStatus(self, pMarketStatus: CTORATstpMarketStatusField)->None:
|
|
|
|
|
def OnRtnMarketStatus(self, pMarketStatus: CTORATstpMarketStatusField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspCondOrderInsert(self, pInputCondOrderField: CTORATstpInputCondOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspCondOrderInsert(self, pInputCondOrderField: CTORATstpInputCondOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnCondOrder(self, pConditionOrder: CTORATstpConditionOrderField)->None:
|
|
|
|
|
def OnRtnCondOrder(self, pConditionOrder: CTORATstpConditionOrderField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnErrRtnCondOrderInsert(self, pInputCondOrder: CTORATstpInputCondOrderField, pRspInfo: CTORATstpRspInfoField)->None:
|
|
|
|
|
def OnErrRtnCondOrderInsert(self, pInputCondOrder: CTORATstpInputCondOrderField, pRspInfo: CTORATstpRspInfoField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspCondOrderAction(self, pInputCondOrderActionField: CTORATstpInputCondOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspCondOrderAction(self, pInputCondOrderActionField: CTORATstpInputCondOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnErrRtnCondOrderAction(self, pInputCondOrderAction: CTORATstpInputCondOrderActionField, pRspInfo: CTORATstpRspInfoField)->None:
|
|
|
|
|
def OnErrRtnCondOrderAction(self, pInputCondOrderAction: CTORATstpInputCondOrderActionField, pRspInfo: CTORATstpRspInfoField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInquiryJZFund(self, pRspInquiryJZFundField: CTORATstpRspInquiryJZFundField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInquiryJZFund(self, pRspInquiryJZFundField: CTORATstpRspInquiryJZFundField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspTransferFund(self, pInputTransferFundField: CTORATstpInputTransferFundField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspTransferFund(self, pInputTransferFundField: CTORATstpInputTransferFundField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnTransferFund(self, pTransferFund: CTORATstpTransferFundField)->None:
|
|
|
|
|
def OnRtnTransferFund(self, pTransferFund: CTORATstpTransferFundField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnErrRtnTransferFund(self, pInputTransferFund: CTORATstpInputTransferFundField, pRspInfo: CTORATstpRspInfoField)->None:
|
|
|
|
|
def OnErrRtnTransferFund(self, pInputTransferFund: CTORATstpInputTransferFundField, pRspInfo: CTORATstpRspInfoField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnTransferPosition(self, pTransferPosition: CTORATstpTransferPositionField)->None:
|
|
|
|
|
def OnRtnTransferPosition(self, pTransferPosition: CTORATstpTransferPositionField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnErrRtnTransferPosition(self, pInputTransferPosition: CTORATstpInputTransferPositionField, pRspInfo: CTORATstpRspInfoField)->None:
|
|
|
|
|
def OnErrRtnTransferPosition(self, pInputTransferPosition: CTORATstpInputTransferPositionField, pRspInfo: CTORATstpRspInfoField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspTransferCollateral(self, pInputTransferCollateralField: CTORATstpInputTransferCollateralField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspTransferCollateral(self, pInputTransferCollateralField: CTORATstpInputTransferCollateralField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInquiryBankAccountFund(self, pRspInquiryBankAccountFundField: CTORATstpRspInquiryBankAccountFundField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInquiryBankAccountFund(self, pRspInquiryBankAccountFundField: CTORATstpRspInquiryBankAccountFundField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInquiryTradeConcentration(self, pInquiryTradeConcentrationField: CTORATstpInquiryTradeConcentrationField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInquiryTradeConcentration(self, pInquiryTradeConcentrationField: CTORATstpInquiryTradeConcentrationField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnTradingNotice(self, pTradingNotice: CTORATstpTradingNoticeField)->None:
|
|
|
|
|
def OnRtnTradingNotice(self, pTradingNotice: CTORATstpTradingNoticeField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInquiryMaxOrderVolume(self, pRspInquiryMaxOrderVolumeField: CTORATstpRspInquiryMaxOrderVolumeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInquiryMaxOrderVolume(self, pRspInquiryMaxOrderVolumeField: CTORATstpRspInquiryMaxOrderVolumeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRtnPeripheryTransferPosition(self, pPeripheryPositionTransferDetail: CTORATstpPeripheryPositionTransferDetailField)->None:
|
|
|
|
|
def OnRtnPeripheryTransferPosition(self, pPeripheryPositionTransferDetail: CTORATstpPeripheryPositionTransferDetailField)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInquiryHistoryOrder(self, pHistoryOrderField: CTORATstpHistoryOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInquiryHistoryOrder(self, pHistoryOrderField: CTORATstpHistoryOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspInquiryHistoryTrade(self, pHistoryTradeField: CTORATstpHistoryTradeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspInquiryHistoryTrade(self, pHistoryTradeField: CTORATstpHistoryTradeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryExchange(self, pExchange: CTORATstpExchangeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryExchange(self, pExchange: CTORATstpExchangeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryMarketData(self, pMarketData: CTORATstpMarketDataField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryMarketData(self, pMarketData: CTORATstpMarketDataField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQrySecurity(self, pSecurity: CTORATstpSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQrySecurity(self, pSecurity: CTORATstpSecurityField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryETFFile(self, pETFFile: CTORATstpETFFileField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryETFFile(self, pETFFile: CTORATstpETFFileField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryETFBasket(self, pETFBasket: CTORATstpETFBasketField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryETFBasket(self, pETFBasket: CTORATstpETFBasketField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryIPOInfo(self, pIPOInfo: CTORATstpIPOInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryIPOInfo(self, pIPOInfo: CTORATstpIPOInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryBUProxy(self, pBUProxy: CTORATstpBUProxyField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryBUProxy(self, pBUProxy: CTORATstpBUProxyField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryUser(self, pUser: CTORATstpUserField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryUser(self, pUser: CTORATstpUserField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryInvestor(self, pInvestor: CTORATstpInvestorField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryInvestor(self, pInvestor: CTORATstpInvestorField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryShareholderAccount(self, pShareholderAccount: CTORATstpShareholderAccountField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryShareholderAccount(self, pShareholderAccount: CTORATstpShareholderAccountField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryOrder(self, pOrder: CTORATstpOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryOrder(self, pOrder: CTORATstpOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryOrderAction(self, pOrderAction: CTORATstpOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryOrderAction(self, pOrderAction: CTORATstpOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryTrade(self, pTrade: CTORATstpTradeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryTrade(self, pTrade: CTORATstpTradeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryTradingAccount(self, pTradingAccount: CTORATstpTradingAccountField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryTradingAccount(self, pTradingAccount: CTORATstpTradingAccountField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryPosition(self, pPosition: CTORATstpPositionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryPosition(self, pPosition: CTORATstpPositionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryTradingFee(self, pTradingFee: CTORATstpTradingFeeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryTradingFee(self, pTradingFee: CTORATstpTradingFeeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryInvestorTradingFee(self, pInvestorTradingFee: CTORATstpInvestorTradingFeeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryInvestorTradingFee(self, pInvestorTradingFee: CTORATstpInvestorTradingFeeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryIPOQuota(self, pIPOQuota: CTORATstpIPOQuotaField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryIPOQuota(self, pIPOQuota: CTORATstpIPOQuotaField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryMarket(self, pMarket: CTORATstpMarketField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryMarket(self, pMarket: CTORATstpMarketField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryOrderFundDetail(self, pOrderFundDetail: CTORATstpOrderFundDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryOrderFundDetail(self, pOrderFundDetail: CTORATstpOrderFundDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryFundTransferDetail(self, pFundTransferDetail: CTORATstpFundTransferDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryFundTransferDetail(self, pFundTransferDetail: CTORATstpFundTransferDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryPositionTransferDetail(self, pPositionTransferDetail: CTORATstpPositionTransferDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryPositionTransferDetail(self, pPositionTransferDetail: CTORATstpPositionTransferDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryPledgePosition(self, pPledgePosition: CTORATstpPledgePositionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryPledgePosition(self, pPledgePosition: CTORATstpPledgePositionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryPledgeInfo(self, pPledgeInfo: CTORATstpPledgeInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryPledgeInfo(self, pPledgeInfo: CTORATstpPledgeInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryConversionBondInfo(self, pConversionBondInfo: CTORATstpConversionBondInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryConversionBondInfo(self, pConversionBondInfo: CTORATstpConversionBondInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryBondPutbackInfo(self, pBondPutbackInfo: CTORATstpBondPutbackInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryBondPutbackInfo(self, pBondPutbackInfo: CTORATstpBondPutbackInfoField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryStandardBondPosition(self, pStandardBondPosition: CTORATstpStandardBondPositionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryStandardBondPosition(self, pStandardBondPosition: CTORATstpStandardBondPositionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQrySpecialMarketData(self, pSpecialMarketData: CTORATstpSpecialMarketDataField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQrySpecialMarketData(self, pSpecialMarketData: CTORATstpSpecialMarketDataField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryPrematurityRepoOrder(self, pPrematurityRepoOrder: CTORATstpPrematurityRepoOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryPrematurityRepoOrder(self, pPrematurityRepoOrder: CTORATstpPrematurityRepoOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryShareholderParam(self, pShareholderParam: CTORATstpShareholderParamField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryShareholderParam(self, pShareholderParam: CTORATstpShareholderParamField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryPeripheryPositionTransferDetail(self, pPeripheryPositionTransferDetail: CTORATstpPeripheryPositionTransferDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryPeripheryPositionTransferDetail(self, pPeripheryPositionTransferDetail: CTORATstpPeripheryPositionTransferDetailField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryInvestorCondOrderLimitParam(self, pInvestorCondOrderLimitParam: CTORATstpInvestorCondOrderLimitParamField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryInvestorCondOrderLimitParam(self, pInvestorCondOrderLimitParam: CTORATstpInvestorCondOrderLimitParamField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryCondOrder(self, pCondOrder: CTORATstpCondOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryCondOrder(self, pCondOrder: CTORATstpCondOrderField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryCondOrderAction(self, pCondOrderAction: CTORATstpCondOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryCondOrderAction(self, pCondOrderAction: CTORATstpCondOrderActionField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryTradingNotice(self, pTradingNotice: CTORATstpTradingNoticeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryTradingNotice(self, pTradingNotice: CTORATstpTradingNoticeField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryIPONumberResult(self, pIPONumberResult: CTORATstpIPONumberResultField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryIPONumberResult(self, pIPONumberResult: CTORATstpIPONumberResultField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
def OnRspQryIPOMatchNumberResult(self, pIPOMatchNumberResult: CTORATstpIPOMatchNumberResultField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->None:
|
|
|
|
|
def OnRspQryIPOMatchNumberResult(self, pIPOMatchNumberResult: CTORATstpIPOMatchNumberResultField, pRspInfo: CTORATstpRspInfoField, nRequestID: int, bIsLast: bool)->Any:
|
|
|
|
|
...
|
|
|
|
|
class CTORATstpTraderApi():
|
|
|
|
|
|
|
|
|
@ -2541,23 +2541,23 @@ class CTORATstpTraderApi():
|
|
|
|
|
@staticmethod
|
|
|
|
|
def GetApiVersion()->str:
|
|
|
|
|
...
|
|
|
|
|
def Release(self, )->None:
|
|
|
|
|
def Release(self, )->Any:
|
|
|
|
|
...
|
|
|
|
|
def Init(self, )->None:
|
|
|
|
|
def Init(self, )->Any:
|
|
|
|
|
...
|
|
|
|
|
def Join(self, )->int:
|
|
|
|
|
...
|
|
|
|
|
def RegisterFront(self, pszFrontAddress: str)->None:
|
|
|
|
|
def RegisterFront(self, pszFrontAddress: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def RegisterNameServer(self, pszNsAddress: str)->None:
|
|
|
|
|
def RegisterNameServer(self, pszNsAddress: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def RegisterDeriveServer(self, pszDeriveAddress: str)->None:
|
|
|
|
|
def RegisterDeriveServer(self, pszDeriveAddress: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def RegisterSpi(self, pSpi: CTORATstpTraderSpi)->None:
|
|
|
|
|
def RegisterSpi(self, pSpi: CTORATstpTraderSpi)->Any:
|
|
|
|
|
...
|
|
|
|
|
def SubscribePrivateTopic(self, nResumeType: TORA_TE_RESUME_TYPE)->None:
|
|
|
|
|
def SubscribePrivateTopic(self, nResumeType: TORA_TE_RESUME_TYPE)->Any:
|
|
|
|
|
...
|
|
|
|
|
def SubscribePublicTopic(self, nResumeType: TORA_TE_RESUME_TYPE)->None:
|
|
|
|
|
def SubscribePublicTopic(self, nResumeType: TORA_TE_RESUME_TYPE)->Any:
|
|
|
|
|
...
|
|
|
|
|
def ReqUserLogin(self, pReqUserLoginField: CTORATstpReqUserLoginField, nRequestID: int)->int:
|
|
|
|
|
...
|
|
|
|
@ -3293,17 +3293,17 @@ TORA_TSTP_SPT_ClosePriceScopeRatio: int
|
|
|
|
|
TORA_TSTP_SPT_OpenDateLimit: int
|
|
|
|
|
TORA_TSTP_SPT_LimitBoardShamRatio: int
|
|
|
|
|
TORA_TSTP_SPT_CancelOrderRatio: int
|
|
|
|
|
def set_null(v: int)->None:
|
|
|
|
|
def set_null(v: int)->Any:
|
|
|
|
|
...
|
|
|
|
|
def set_null(v: float)->None:
|
|
|
|
|
def set_null(v: float)->Any:
|
|
|
|
|
...
|
|
|
|
|
def set_null(v: int)->None:
|
|
|
|
|
def set_null(v: int)->Any:
|
|
|
|
|
...
|
|
|
|
|
def set_null(v: int)->None:
|
|
|
|
|
def set_null(v: int)->Any:
|
|
|
|
|
...
|
|
|
|
|
def set_null(v: int)->None:
|
|
|
|
|
def set_null(v: int)->Any:
|
|
|
|
|
...
|
|
|
|
|
def set_null(v: str)->None:
|
|
|
|
|
def set_null(v: str)->Any:
|
|
|
|
|
...
|
|
|
|
|
def is_null(v: int)->bool:
|
|
|
|
|
...
|
|
|
|
|