diff --git a/vnpy/api/tap/generate_tap.sh b/vnpy/api/tap/generate_tap.sh index 8ee1717a..a54774f0 100644 --- a/vnpy/api/tap/generate_tap.sh +++ b/vnpy/api/tap/generate_tap.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# autocxxpy version: 0.2.6 +# autocxxpy version: 0.3.1 python -m autocxxpy \ vntap \ iTapTradeAPI.h TapQuoteAPI.h TapAPIError.h iTapAPIError.h \ @@ -15,6 +15,8 @@ python -m autocxxpy \ "(.*API::.*(sessionID$|.*ClientBuyOrderNo$|.*ClientSellOrderNo$|.*ClientOrderNo$))|(.*Result)" \ \ --no-callback-pattern \ - ".*API::.*" + ".*API::.*" \ + --no-transform-pattern \ + ".*Notify::On.*" -python generate_error_map.py \ No newline at end of file +# python generate_error_map.py \ No newline at end of file diff --git a/vnpy/api/tap/vntap.pyd b/vnpy/api/tap/vntap.pyd index c9a6ca8a..fc5f15cd 100644 Binary files a/vnpy/api/tap/vntap.pyd and b/vnpy/api/tap/vntap.pyd differ diff --git a/vnpy/api/tap/vntap.pyi b/vnpy/api/tap/vntap.pyi index 15d05e82..97353363 100644 --- a/vnpy/api/tap/vntap.pyi +++ b/vnpy/api/tap/vntap.pyi @@ -35,7 +35,7 @@ class TapAPICommodity(): ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str @@ -45,10 +45,10 @@ class TapAPIContract(): Commodity: TapAPICommodity ContractNo1: str StrikePrice1: str - CallOrPutFlag1: int + CallOrPutFlag1: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int + CallOrPutFlag2: str class TapAPIExchangeInfo(): @@ -69,11 +69,11 @@ class TapAPIQuoteLoginAuth(): UserNo: str - ISModifyPassword: int + ISModifyPassword: str Password: str NewPassword: str QuoteTempPassword: str - ISDDA: int + ISDDA: str DDASerialNo: str @@ -104,9 +104,9 @@ class TapAPIQuoteCommodityInfo(): ContractSize: float CommodityTickSize: float CommodityDenominator: int - CmbDirect: int + CmbDirect: str CommodityContractLen: int - IsDST: int + IsDST: str RelateCommodity1: TapAPICommodity RelateCommodity2: TapAPICommodity @@ -115,7 +115,7 @@ class TapAPIQuoteContractInfo(): Contract: TapAPIContract - ContractType: int + ContractType: str QuoteUnderlyingContract: str ContractName: str ContractExpDate: str @@ -128,7 +128,7 @@ class TapAPIQuoteWhole(): Contract: TapAPIContract CurrencyNo: str - TradingState: int + TradingState: str DateTimeStamp: str QPreClosingPrice: float QPreSettlePrice: float @@ -186,13 +186,13 @@ class ITapQuoteAPINotify(): ... def OnDisconnect(self, reasonCode: int)->None: ... - def OnRspQryCommodity(self, sessionID: int, errorCode: int, isLast: int, info: TapAPIQuoteCommodityInfo)->None: + def OnRspQryCommodity(self, sessionID: int, errorCode: int, isLast: str, info: TapAPIQuoteCommodityInfo)->None: ... - def OnRspQryContract(self, sessionID: int, errorCode: int, isLast: int, info: TapAPIQuoteContractInfo)->None: + def OnRspQryContract(self, sessionID: int, errorCode: int, isLast: str, info: TapAPIQuoteContractInfo)->None: ... - def OnRspSubscribeQuote(self, sessionID: int, errorCode: int, isLast: int, info: TapAPIQuoteWhole)->None: + def OnRspSubscribeQuote(self, sessionID: int, errorCode: int, isLast: str, info: TapAPIQuoteWhole)->None: ... - def OnRspUnSubscribeQuote(self, sessionID: int, errorCode: int, isLast: int, info: TapAPIContract)->None: + def OnRspUnSubscribeQuote(self, sessionID: int, errorCode: int, isLast: str, info: TapAPIContract)->None: ... def OnRtnQuote(self, info: TapAPIQuoteWhole)->None: ... @@ -228,7 +228,7 @@ TAPISTR_300 = str TAPISTR_500 = str TAPISTR_2000 = str TAPIAUTHCODE = str -TAPICHAR = int +TAPICHAR = str TAPIINT32 = int TAPIUINT32 = int TAPIINT64 = int @@ -236,47 +236,47 @@ TAPIUINT64 = int TAPIUINT16 = int TAPIUINT8 = int TAPIREAL64 = float -TAPIYNFLAG = int +TAPIYNFLAG = str TAPIDTSTAMP = str TAPIDATETIME = str TAPIDATE = str TAPITIME = str -TAPILOGLEVEL = int -TAPICommodityType = int -TAPICallOrPutFlagType = int +TAPILOGLEVEL = str +TAPICommodityType = str +TAPICallOrPutFlagType = str TAPIQPRICE = float TAPIQVOLUME = int TAPIQDIFF = int -APIYNFLAG_YES: int -APIYNFLAG_NO: int -APILOGLEVEL_NONE: int -APILOGLEVEL_ERROR: int -APILOGLEVEL_WARNING: int -APILOGLEVEL_DEBUG: int -TAPI_COMMODITY_TYPE_NONE: int -TAPI_COMMODITY_TYPE_SPOT: int -TAPI_COMMODITY_TYPE_FUTURES: int -TAPI_COMMODITY_TYPE_OPTION: int -TAPI_COMMODITY_TYPE_SPREAD_MONTH: int -TAPI_COMMODITY_TYPE_SPREAD_COMMODITY: int -TAPI_COMMODITY_TYPE_BUL: int -TAPI_COMMODITY_TYPE_BER: int -TAPI_COMMODITY_TYPE_STD: int -TAPI_COMMODITY_TYPE_STG: int -TAPI_COMMODITY_TYPE_PRT: int -TAPI_COMMODITY_TYPE_BLT: int -TAPI_COMMODITY_TYPE_BRT: int -TAPI_COMMODITY_TYPE_DIRECTFOREX: int -TAPI_COMMODITY_TYPE_INDIRECTFOREX: int -TAPI_COMMODITY_TYPE_CROSSFOREX: int -TAPI_COMMODITY_TYPE_INDEX: int -TAPI_COMMODITY_TYPE_STOCK: int -TAPI_COMMODITY_TYPE_SPOT_TRADINGDEFER: int -TAPI_COMMODITY_TYPE_FUTURE_LOCK: int -TAPI_COMMODITY_TYPE_EFP: int -TAPI_CALLPUT_FLAG_CALL: int -TAPI_CALLPUT_FLAG_PUT: int -TAPI_CALLPUT_FLAG_NONE: int +APIYNFLAG_YES: str +APIYNFLAG_NO: str +APILOGLEVEL_NONE: str +APILOGLEVEL_ERROR: str +APILOGLEVEL_WARNING: str +APILOGLEVEL_DEBUG: str +TAPI_COMMODITY_TYPE_NONE: str +TAPI_COMMODITY_TYPE_SPOT: str +TAPI_COMMODITY_TYPE_FUTURES: str +TAPI_COMMODITY_TYPE_OPTION: str +TAPI_COMMODITY_TYPE_SPREAD_MONTH: str +TAPI_COMMODITY_TYPE_SPREAD_COMMODITY: str +TAPI_COMMODITY_TYPE_BUL: str +TAPI_COMMODITY_TYPE_BER: str +TAPI_COMMODITY_TYPE_STD: str +TAPI_COMMODITY_TYPE_STG: str +TAPI_COMMODITY_TYPE_PRT: str +TAPI_COMMODITY_TYPE_BLT: str +TAPI_COMMODITY_TYPE_BRT: str +TAPI_COMMODITY_TYPE_DIRECTFOREX: str +TAPI_COMMODITY_TYPE_INDIRECTFOREX: str +TAPI_COMMODITY_TYPE_CROSSFOREX: str +TAPI_COMMODITY_TYPE_INDEX: str +TAPI_COMMODITY_TYPE_STOCK: str +TAPI_COMMODITY_TYPE_SPOT_TRADINGDEFER: str +TAPI_COMMODITY_TYPE_FUTURE_LOCK: str +TAPI_COMMODITY_TYPE_EFP: str +TAPI_CALLPUT_FLAG_CALL: str +TAPI_CALLPUT_FLAG_PUT: str +TAPI_CALLPUT_FLAG_NONE: str TAPIERROR_SUCCEED: int TAPIERROR_ConnectFail: int TAPIERROR_LinkAuthFail: int @@ -445,7 +445,7 @@ def GetITapTradeAPIVersion()->str: ... def SetITapTradeAPIDataPath(path: str)->int: ... -def SetITapTradeAPILogLevel(level: int)->int: +def SetITapTradeAPILogLevel(level: str)->int: ... def GetITapErrorDescribe(errorCode: int)->str: ... @@ -457,6 +457,6 @@ def GetTapQuoteAPIVersion()->str: ... def SetTapQuoteAPIDataPath(path: str)->int: ... -def SetTapQuoteAPILogLevel(level: int)->int: +def SetTapQuoteAPILogLevel(level: str)->int: ... diff --git a/vnpy/api/tap/vntap/custom/custom_wrappers.hpp b/vnpy/api/tap/vntap/custom/custom_wrappers.hpp index 46faf958..e5623e0e 100644 --- a/vnpy/api/tap/vntap/custom/custom_wrappers.hpp +++ b/vnpy/api/tap/vntap/custom/custom_wrappers.hpp @@ -6,109 +6,168 @@ namespace autocxxpy { - // this method seems complicated and needs more code. Useful for code generator but not for human. - //using namespace ITapTrade; - //namespace arg_helper + // TapAPIOrderInfoNotice + struct FixedTapAPIOrderInfoNotice : ITapTrade::TapAPIOrderInfoNotice + { + ITapTrade::TapAPIOrderInfo order_info; + + // copy from original structure + FixedTapAPIOrderInfoNotice(const ITapTrade::TapAPIOrderInfoNotice* info) + : TapAPIOrderInfoNotice(*info), order_info(info->OrderInfo != nullptr ? *info->OrderInfo : ITapTrade::TapAPIOrderInfo{}) + { + // fix pointer if there is one + this->OrderInfo = info->OrderInfo != nullptr ? &this->order_info : nullptr; + } + + // copy constructor + FixedTapAPIOrderInfoNotice(const FixedTapAPIOrderInfoNotice& fixed) + : TapAPIOrderInfoNotice(fixed), order_info(fixed.order_info) + { + // fix pointer if there is one + this->OrderInfo = this->OrderInfo != nullptr ? &this->order_info : nullptr; + } + }; + // TapAPIPositionProfit + struct FixedTapAPIPositionProfitNotice : ITapTrade::TapAPIPositionProfitNotice + { + ITapTrade::TapAPIPositionProfit data; + + // copy from original structure + FixedTapAPIPositionProfitNotice(const ITapTrade::TapAPIPositionProfitNotice* info) + : TapAPIPositionProfitNotice(*info), data(info->Data != nullptr ? *info->Data : ITapTrade::TapAPIPositionProfit{}) + { + // fix pointer if there is one + this->Data = info->Data != nullptr ? &this->data : nullptr; + } + + // copy constructor + FixedTapAPIPositionProfitNotice(const FixedTapAPIPositionProfitNotice& fixed) + : TapAPIPositionProfitNotice(fixed), data(fixed.data) + { + // fix pointer if there is one + this->Data = this->Data != nullptr ? &this->data : nullptr; + } + }; + + namespace arg_helper + { + inline auto save(const ITapTrade::TapAPIOrderInfoNotice* info) + { // match char [] + return FixedTapAPIOrderInfoNotice(info); + } + + template <> + struct loader + { + inline FixedTapAPIOrderInfoNotice operator ()(FixedTapAPIOrderInfoNotice& val) + { + return val; + } + }; + + inline auto save(const ITapTrade::TapAPIPositionProfitNotice* info) + { // match char [] + return FixedTapAPIPositionProfitNotice(info); + } + + template <> + struct loader + { + inline FixedTapAPIPositionProfitNotice operator ()(FixedTapAPIPositionProfitNotice& val) + { + return val; + } + }; + } + + //template<> + //struct callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRspOrderAction> //{ - // struct FixedTapAPIOrderInfoNotice : TapAPIOrderInfoNotice + // inline static void call(ITapTrade::ITapTradeAPINotify* instance, const char* py_func_name, ITapTrade::TAPIUINT32 sessionID, ITapTrade::TAPIINT32 errorCode, const ITapTrade::TapAPIOrderActionRsp* info) // { - // TapAPIOrderInfo order_info; - - // // copy from original structure - // FixedTapAPIOrderInfoNotice(const TapAPIOrderInfoNotice* info) - // : TapAPIOrderInfoNotice(*info), order_info(*info->OrderInfo) + // ITapTrade::TapAPIOrderInfo orderInfo; + // if (info->OrderInfo != nullptr) // { - // this->OrderInfo = &this->order_info; + // orderInfo = *info->OrderInfo; // } - - // // copy constructor - // FixedTapAPIOrderInfoNotice(const FixedTapAPIOrderInfoNotice& fixed) - // : TapAPIOrderInfoNotice(fixed), order_info(fixed.order_info) + // ITapTrade::TapAPIOrderActionRsp copied_info = *info; + // auto task = [=]() mutable // { - // this->OrderInfo = &this->order_info; - // } - // }; - // inline auto save(const TapAPIOrderInfoNotice* info) - // { // match char [] - // return FixedTapAPIOrderInfoNotice(info); + // if (copied_info.OrderInfo != nullptr) + // { + // copied_info.OrderInfo = &orderInfo; // ensure pointer is pointer to the correct address(address changes after constructed lambda) + // } + // try + // { + // return default_callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRspOrderAction>::sync(instance, py_func_name, sessionID, errorCode, &copied_info); + // } + // catch (const async_dispatch_exception& e) + // { + // async_callback_exception_handler::handle_excepiton(e); + // } + + // }; + // dispatcher::instance().add(std::move(task)); // } - - // template <> - // struct loader + //}; + //template<> + //struct callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnOrder> + //{ + // inline static void call(ITapTrade::ITapTradeAPINotify* instance, const char* py_func_name, const ITapTrade::TapAPIOrderInfoNotice* info) // { - // inline FixedTapAPIOrderInfoNotice operator ()(FixedTapAPIOrderInfoNotice& val) + // ITapTrade::TapAPIOrderInfo orderInfo; + // if (info->OrderInfo != nullptr) // { - // return val; + // orderInfo = *info->OrderInfo; // } - // }; - //} + // ITapTrade::TapAPIOrderInfoNotice copied_info = *info; + // auto task = [=]() mutable + // { + // if (copied_info.OrderInfo != nullptr) + // { + // copied_info.OrderInfo = &orderInfo; // ensure pointer is pointer to the correct address(address changes after constructed lambda) + // } + // try + // { + // return default_callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnOrder>::sync(instance, py_func_name, &copied_info); + // } + // catch (const async_dispatch_exception& e) + // { + // async_callback_exception_handler::handle_excepiton(e); + // } + // }; + // dispatcher::instance().add(std::move(task)); + // } + //}; - template<> - struct callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRspOrderAction> - { - inline static void call(ITapTrade::ITapTradeAPINotify* instance, const char* py_func_name, ITapTrade::TAPIUINT32 sessionID, ITapTrade::TAPIINT32 errorCode, const ITapTrade::TapAPIOrderActionRsp* info) - { - ITapTrade::TapAPIOrderInfo orderInfo; - if (info->OrderInfo != nullptr) - { - orderInfo = *info->OrderInfo; - } - ITapTrade::TapAPIOrderActionRsp copied_info = *info; - auto task = [=]() mutable - { - if (copied_info.OrderInfo != nullptr) - { - copied_info.OrderInfo = &orderInfo; // ensure pointer is pointer to the correct address(address changes after constructed lambda) - } - return default_callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRspOrderAction>::sync(instance, py_func_name, sessionID, errorCode, &copied_info); - }; - dispatcher::instance().add(std::move(task)); - } - }; - template<> - struct callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnOrder> - { - inline static void call(ITapTrade::ITapTradeAPINotify* instance, const char* py_func_name, const ITapTrade::TapAPIOrderInfoNotice* info) - { - ITapTrade::TapAPIOrderInfo orderInfo; - if (info->OrderInfo != nullptr) - { - orderInfo = *info->OrderInfo; - } - ITapTrade::TapAPIOrderInfoNotice copied_info = *info; - auto task = [=]() mutable - { - if (copied_info.OrderInfo != nullptr) - { - copied_info.OrderInfo = &orderInfo; // ensure pointer is pointer to the correct address(address changes after constructed lambda) - } - return default_callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnOrder>::sync(instance, py_func_name, &copied_info); - }; - dispatcher::instance().add(std::move(task)); - } - }; + //template<> + //struct callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnPositionProfit> + //{ + // inline static void call(ITapTrade::ITapTradeAPINotify* instance, const char* py_func_name, const ITapTrade::TapAPIPositionProfitNotice* info) + // { - template<> - struct callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnPositionProfit> - { - inline static void call(ITapTrade::ITapTradeAPINotify* instance, const char* py_func_name, const ITapTrade::TapAPIPositionProfitNotice* info) - { - - ITapTrade::TapAPIPositionProfit profit; - if (info->Data != nullptr) - { - profit = *info->Data; - } - ITapTrade::TapAPIPositionProfitNotice copied_info = *info; - auto task = [=]() mutable - { - if (copied_info.Data != nullptr) - { - copied_info.Data = &profit; // ensure pointer is pointer to the correct address(address changes after constructed lambda) - } - return default_callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnPositionProfit>::sync(instance, py_func_name, &copied_info); - }; - dispatcher::instance().add(std::move(task)); - } - }; + // ITapTrade::TapAPIPositionProfit profit; + // if (info->Data != nullptr) + // { + // profit = *info->Data; + // } + // ITapTrade::TapAPIPositionProfitNotice copied_info = *info; + // auto task = [=]() mutable + // { + // if (copied_info.Data != nullptr) + // { + // copied_info.Data = &profit; // ensure pointer is pointer to the correct address(address changes after constructed lambda) + // } + // try + // { + // return default_callback_wrapper<&ITapTrade::ITapTradeAPINotify::OnRtnPositionProfit>::sync(instance, py_func_name, &copied_info); + // } + // catch (const async_dispatch_exception& e) + // { + // async_callback_exception_handler::handle_excepiton(e); + // } + // }; + // dispatcher::instance().add(std::move(task)); + // } + //}; } diff --git a/vnpy/api/tap/vntap/generated_files/generated_functions_0.cpp b/vnpy/api/tap/vntap/generated_files/generated_functions_0.cpp index e44a09e2..c7ecae6c 100644 --- a/vnpy/api/tap/vntap/generated_files/generated_functions_0.cpp +++ b/vnpy/api/tap/vntap/generated_files/generated_functions_0.cpp @@ -45,57 +45,27 @@ void generate_vntap(pybind11::module & parent) pybind11::call_guard() ); parent.def("FreeITapTradeAPI", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &FreeITapTradeAPI - >, - brigand::list< - > - >::value, + &FreeITapTradeAPI, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("GetITapTradeAPIVersion", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &GetITapTradeAPIVersion - >, - brigand::list< - > - >::value, + &GetITapTradeAPIVersion, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("SetITapTradeAPIDataPath", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &SetITapTradeAPIDataPath - >, - brigand::list< - > - >::value, + &SetITapTradeAPIDataPath, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("SetITapTradeAPILogLevel", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &SetITapTradeAPILogLevel - >, - brigand::list< - > - >::value, + &SetITapTradeAPILogLevel, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("GetITapErrorDescribe", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &GetITapErrorDescribe - >, - brigand::list< - > - >::value, + &GetITapErrorDescribe, pybind11::return_value_policy::reference, pybind11::call_guard() ); @@ -112,46 +82,22 @@ void generate_vntap(pybind11::module & parent) pybind11::call_guard() ); parent.def("FreeTapQuoteAPI", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &FreeTapQuoteAPI - >, - brigand::list< - > - >::value, + &FreeTapQuoteAPI, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("GetTapQuoteAPIVersion", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &GetTapQuoteAPIVersion - >, - brigand::list< - > - >::value, + &GetTapQuoteAPIVersion, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("SetTapQuoteAPIDataPath", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &SetTapQuoteAPIDataPath - >, - brigand::list< - > - >::value, + &SetTapQuoteAPIDataPath, pybind11::return_value_policy::reference, pybind11::call_guard() ); parent.def("SetTapQuoteAPILogLevel", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &SetTapQuoteAPILogLevel - >, - brigand::list< - > - >::value, + &SetTapQuoteAPILogLevel, pybind11::return_value_policy::reference, pybind11::call_guard() ); diff --git a/vnpy/api/tap/vntap/generated_files/generated_functions_1.cpp b/vnpy/api/tap/vntap/generated_files/generated_functions_1.cpp index 4dc3ae91..5401536a 100644 --- a/vnpy/api/tap/vntap/generated_files/generated_functions_1.cpp +++ b/vnpy/api/tap/vntap/generated_files/generated_functions_1.cpp @@ -589,35 +589,3 @@ void generate_class_ITapTrade_TapAPIFundData(pybind11::object & parent) AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIFundData, c); module_vntap::objects.emplace("ITapTrade::TapAPIFundData", c); } -void generate_class_ITapTrade_TapAPICommodityInfo(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPICommodityInfo"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "ExchangeNo", ExchangeNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityType", CommodityType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityNo", CommodityNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityName", CommodityName); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityEngName", CommodityEngName); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateExchangeNo", RelateExchangeNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityType", RelateCommodityType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityNo", RelateCommodityNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateExchangeNo2", RelateExchangeNo2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityType2", RelateCommodityType2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityNo2", RelateCommodityNo2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CurrencyGroupNo", CurrencyGroupNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "TradeCurrency", TradeCurrency); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "ContractSize", ContractSize); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "OpenCloseMode", OpenCloseMode); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "StrikePriceTimes", StrikePriceTimes); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityTickSize", CommodityTickSize); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityDenominator", CommodityDenominator); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CmbDirect", CmbDirect); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "DeliveryMode", DeliveryMode); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "DeliveryDays", DeliveryDays); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "AddOneTime", AddOneTime); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityTimeZone", CommodityTimeZone); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "IsAddOne", IsAddOne); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPICommodityInfo, c); - module_vntap::objects.emplace("ITapTrade::TapAPICommodityInfo", c); -} diff --git a/vnpy/api/tap/vntap/generated_files/generated_functions_2.cpp b/vnpy/api/tap/vntap/generated_files/generated_functions_2.cpp index d7bb6756..5fb80b4c 100644 --- a/vnpy/api/tap/vntap/generated_files/generated_functions_2.cpp +++ b/vnpy/api/tap/vntap/generated_files/generated_functions_2.cpp @@ -14,6 +14,38 @@ #include "custom/custom_wrappers.hpp" +void generate_class_ITapTrade_TapAPICommodityInfo(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPICommodityInfo"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "ExchangeNo", ExchangeNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityType", CommodityType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityNo", CommodityNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityName", CommodityName); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityEngName", CommodityEngName); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateExchangeNo", RelateExchangeNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityType", RelateCommodityType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityNo", RelateCommodityNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateExchangeNo2", RelateExchangeNo2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityType2", RelateCommodityType2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "RelateCommodityNo2", RelateCommodityNo2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CurrencyGroupNo", CurrencyGroupNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "TradeCurrency", TradeCurrency); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "ContractSize", ContractSize); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "OpenCloseMode", OpenCloseMode); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "StrikePriceTimes", StrikePriceTimes); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityTickSize", CommodityTickSize); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityDenominator", CommodityDenominator); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CmbDirect", CmbDirect); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "DeliveryMode", DeliveryMode); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "DeliveryDays", DeliveryDays); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "AddOneTime", AddOneTime); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "CommodityTimeZone", CommodityTimeZone); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPICommodityInfo, "IsAddOne", IsAddOne); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPICommodityInfo, c); + module_vntap::objects.emplace("ITapTrade::TapAPICommodityInfo", c); +} void generate_class_ITapTrade_TapAPITradeContractInfo(pybind11::object & parent) { pybind11::class_ c(parent, "TapAPITradeContractInfo"); @@ -554,78 +586,3 @@ void generate_class_ITapTrade_TapAPIOrderMarketInsertRsp(pybind11::object & pare AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderMarketInsertRsp, c); module_vntap::objects.emplace("ITapTrade::TapAPIOrderMarketInsertRsp", c); } -void generate_class_ITapTrade_TapAPIOrderMarketDeleteReq(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIOrderMarketDeleteReq"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, "ServerFlag", ServerFlag); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, "OrderBuyNo", OrderBuyNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, "OrderSellNo", OrderSellNo); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, c); - module_vntap::objects.emplace("ITapTrade::TapAPIOrderMarketDeleteReq", c); -} -void generate_class_ITapTrade_TapAPIOrderLocalRemoveReq(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIOrderLocalRemoveReq"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveReq, "ServerFlag", ServerFlag); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveReq, "OrderNo", OrderNo); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveReq, c); - module_vntap::objects.emplace("ITapTrade::TapAPIOrderLocalRemoveReq", c); -} -void generate_class_ITapTrade_TapAPIOrderLocalRemoveRsp(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIOrderLocalRemoveRsp"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "req", req); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "ClientLocalIP", ClientLocalIP); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "ClientMac", ClientMac); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "ClientIP", ClientIP); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, c); - module_vntap::objects.emplace("ITapTrade::TapAPIOrderLocalRemoveRsp", c); -} -void generate_class_ITapTrade_TapAPIOrderLocalInputReq(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIOrderLocalInputReq"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "AccountNo", AccountNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ExchangeNo", ExchangeNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CommodityType", CommodityType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CommodityNo", CommodityNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ContractNo", ContractNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "StrikePrice", StrikePrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CallOrPutFlag", CallOrPutFlag); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ContractNo2", ContractNo2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "StrikePrice2", StrikePrice2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CallOrPutFlag2", CallOrPutFlag2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderType", OrderType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderSource", OrderSource); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "TimeInForce", TimeInForce); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ExpireTime", ExpireTime); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "IsRiskOrder", IsRiskOrder); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderSide", OrderSide); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "PositionEffect", PositionEffect); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "PositionEffect2", PositionEffect2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "InquiryNo", InquiryNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "HedgeFlag", HedgeFlag); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderPrice", OrderPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderPrice2", OrderPrice2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "StopPrice", StopPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderQty", OrderQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMinQty", OrderMinQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderSystemNo", OrderSystemNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderExchangeSystemNo", OrderExchangeSystemNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "UpperNo", UpperNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchPrice", OrderMatchPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchPrice2", OrderMatchPrice2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchQty", OrderMatchQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchQty2", OrderMatchQty2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderState", OrderState); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "IsAddOne", IsAddOne); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, c); - module_vntap::objects.emplace("ITapTrade::TapAPIOrderLocalInputReq", c); -} diff --git a/vnpy/api/tap/vntap/generated_files/generated_functions_3.cpp b/vnpy/api/tap/vntap/generated_files/generated_functions_3.cpp index 2676ceb8..3af8e054 100644 --- a/vnpy/api/tap/vntap/generated_files/generated_functions_3.cpp +++ b/vnpy/api/tap/vntap/generated_files/generated_functions_3.cpp @@ -14,6 +14,81 @@ #include "custom/custom_wrappers.hpp" +void generate_class_ITapTrade_TapAPIOrderMarketDeleteReq(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIOrderMarketDeleteReq"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, "ServerFlag", ServerFlag); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, "OrderBuyNo", OrderBuyNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, "OrderSellNo", OrderSellNo); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderMarketDeleteReq, c); + module_vntap::objects.emplace("ITapTrade::TapAPIOrderMarketDeleteReq", c); +} +void generate_class_ITapTrade_TapAPIOrderLocalRemoveReq(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIOrderLocalRemoveReq"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveReq, "ServerFlag", ServerFlag); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveReq, "OrderNo", OrderNo); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveReq, c); + module_vntap::objects.emplace("ITapTrade::TapAPIOrderLocalRemoveReq", c); +} +void generate_class_ITapTrade_TapAPIOrderLocalRemoveRsp(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIOrderLocalRemoveRsp"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "req", req); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "ClientLocalIP", ClientLocalIP); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "ClientMac", ClientMac); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, "ClientIP", ClientIP); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderLocalRemoveRsp, c); + module_vntap::objects.emplace("ITapTrade::TapAPIOrderLocalRemoveRsp", c); +} +void generate_class_ITapTrade_TapAPIOrderLocalInputReq(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIOrderLocalInputReq"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "AccountNo", AccountNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ExchangeNo", ExchangeNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CommodityType", CommodityType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CommodityNo", CommodityNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ContractNo", ContractNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "StrikePrice", StrikePrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CallOrPutFlag", CallOrPutFlag); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ContractNo2", ContractNo2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "StrikePrice2", StrikePrice2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "CallOrPutFlag2", CallOrPutFlag2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderType", OrderType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderSource", OrderSource); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "TimeInForce", TimeInForce); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "ExpireTime", ExpireTime); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "IsRiskOrder", IsRiskOrder); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderSide", OrderSide); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "PositionEffect", PositionEffect); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "PositionEffect2", PositionEffect2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "InquiryNo", InquiryNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "HedgeFlag", HedgeFlag); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderPrice", OrderPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderPrice2", OrderPrice2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "StopPrice", StopPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderQty", OrderQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMinQty", OrderMinQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderSystemNo", OrderSystemNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderExchangeSystemNo", OrderExchangeSystemNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "UpperNo", UpperNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchPrice", OrderMatchPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchPrice2", OrderMatchPrice2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchQty", OrderMatchQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderMatchQty2", OrderMatchQty2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "OrderState", OrderState); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, "IsAddOne", IsAddOne); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::TapAPIOrderLocalInputReq, c); + module_vntap::objects.emplace("ITapTrade::TapAPIOrderLocalInputReq", c); +} void generate_class_ITapTrade_TapAPIOrderLocalModifyReq(pybind11::object & parent) { pybind11::class_ c(parent, "TapAPIOrderLocalModifyReq"); @@ -95,555 +170,752 @@ void generate_class_ITapTrade_ITapTradeAPINotify(pybind11::object & parent) if constexpr (std::is_default_constructible_v) c.def(pybind11::init<>()); c.def("OnConnect", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnConnect - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnConnect, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspLogin", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspLogin - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspLogin, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnContactInfo", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnContactInfo - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnContactInfo, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspRequestVertificateCode", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspRequestVertificateCode - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspRequestVertificateCode, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnExpriationDate", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnExpriationDate - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnExpriationDate, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnAPIReady", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnAPIReady - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnAPIReady, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnDisconnect", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnDisconnect - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnDisconnect, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspChangePassword", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspChangePassword - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspChangePassword, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspAuthPassword", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspAuthPassword - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspAuthPassword, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryTradingDate", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryTradingDate - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryTradingDate, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspSetReservedInfo", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspSetReservedInfo - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspSetReservedInfo, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryAccount", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryAccount - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryAccount, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryFund", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryFund - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryFund, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnFund", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnFund - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnFund, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryExchange", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryExchange - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryExchange, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryCommodity", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryCommodity - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryCommodity, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryContract", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryContract - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryContract, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnContract", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnContract - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnContract, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspOrderAction", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspOrderAction - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspOrderAction, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnOrder - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnOrder, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryOrder - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryOrder, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryOrderProcess", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryOrderProcess - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryOrderProcess, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryFill", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryFill - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryFill, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnFill", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnFill - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnFill, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryPosition", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryPosition - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryPosition, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnPosition", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnPosition - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnPosition, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryPositionSummary", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryPositionSummary - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryPositionSummary, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnPositionSummary", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnPositionSummary - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnPositionSummary, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnPositionProfit", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnPositionProfit - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnPositionProfit, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryCurrency", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryCurrency - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryCurrency, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryTradeMessage", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryTradeMessage - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryTradeMessage, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRtnTradeMessage", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRtnTradeMessage - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRtnTradeMessage, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryHisOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryHisOrder - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryHisOrder, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryHisOrderProcess", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryHisOrderProcess - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryHisOrderProcess, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryHisMatch", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryHisMatch - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryHisMatch, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryHisPosition", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryHisPosition - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryHisPosition, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryHisDelivery", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryHisDelivery - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryHisDelivery, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryAccountCashAdjust", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryAccountCashAdjust - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryAccountCashAdjust, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryBill", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryBill - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryBill, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryAccountFeeRent", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryAccountFeeRent - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryAccountFeeRent, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspQryAccountMarginRent", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspQryAccountMarginRent - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspQryAccountMarginRent, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspHKMarketOrderInsert", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspHKMarketOrderInsert - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspHKMarketOrderInsert, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspHKMarketOrderDelete", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspHKMarketOrderDelete - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspHKMarketOrderDelete, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnHKMarketQuoteNotice", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnHKMarketQuoteNotice - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnHKMarketQuoteNotice, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspOrderLocalRemove", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalRemove - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalRemove, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspOrderLocalInput", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalInput - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalInput, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspOrderLocalModify", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalModify - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalModify, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspOrderLocalTransfer", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalTransfer - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspOrderLocalTransfer, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspFillLocalInput", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspFillLocalInput - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspFillLocalInput, pybind11::return_value_policy::reference, pybind11::call_guard() ); c.def("OnRspFillLocalRemove", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPINotify::OnRspFillLocalRemove - >, - brigand::list< - > - >::value, + &ITapTrade::ITapTradeAPINotify::OnRspFillLocalRemove, pybind11::return_value_policy::reference, pybind11::call_guard() ); AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::ITapTradeAPINotify, c); module_vntap::objects.emplace("ITapTrade::ITapTradeAPINotify", c); } +void generate_class_ITapTrade_ITapTradeAPI(pybind11::object & parent) +{ + pybind11::class_ c(parent, "ITapTradeAPI"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.def("SetAPINotify", + &ITapTrade::ITapTradeAPI::SetAPINotify, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("SetHostAddress", + &ITapTrade::ITapTradeAPI::SetHostAddress, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("Login", + &ITapTrade::ITapTradeAPI::Login, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("RequestVertificateCode", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::RequestVertificateCode + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("SetVertificateCode", + &ITapTrade::ITapTradeAPI::SetVertificateCode, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("Disconnect", + &ITapTrade::ITapTradeAPI::Disconnect, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("ChangePassword", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::ChangePassword + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("AuthPassword", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::AuthPassword + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("HaveCertainRight", + &ITapTrade::ITapTradeAPI::HaveCertainRight, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryTradingDate", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryTradingDate + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("SetReservedInfo", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::SetReservedInfo + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryAccount", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryAccount + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryFund", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryFund + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryExchange", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryExchange + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryCommodity", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryCommodity + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryContract", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryContract + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("InsertOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::InsertOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder, + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("CancelOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::CancelOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("AmendOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::AmendOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("ActivateOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::ActivateOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryOrderProcess", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryOrderProcess + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryFill", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryFill + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryPosition", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryPosition + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryPositionSummary", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryPositionSummary + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryCurrency", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryCurrency + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryAccountCashAdjust", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryAccountCashAdjust + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryTradeMessage", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryTradeMessage + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryBill", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryBill + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryHisOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryHisOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryHisOrderProcess", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryHisOrderProcess + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryHisMatch", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryHisMatch + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryHisPosition", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryHisPosition + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryHisDelivery", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryHisDelivery + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryAccountFeeRent", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryAccountFeeRent + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryAccountMarginRent", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::QryAccountMarginRent + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("InsertHKMarketOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::InsertHKMarketOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder, + autocxxpy::indexed_transform_holder, + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("CancelHKMarketOrder", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::CancelHKMarketOrder + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OrderLocalRemove", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::OrderLocalRemove + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OrderLocalInput", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::OrderLocalInput + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OrderLocalModify", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::OrderLocalModify + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OrderLocalTransfer", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::OrderLocalTransfer + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("FillLocalInput", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::FillLocalInput + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("FillLocalRemove", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapTrade::ITapTradeAPI::FillLocalRemove + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::ITapTradeAPI, c); + module_vntap::objects.emplace("ITapTrade::ITapTradeAPI", c); +} diff --git a/vnpy/api/tap/vntap/generated_files/generated_functions_4.cpp b/vnpy/api/tap/vntap/generated_files/generated_functions_4.cpp index 444f424d..2e233128 100644 --- a/vnpy/api/tap/vntap/generated_files/generated_functions_4.cpp +++ b/vnpy/api/tap/vntap/generated_files/generated_functions_4.cpp @@ -14,539 +14,6 @@ #include "custom/custom_wrappers.hpp" -void generate_class_ITapTrade_ITapTradeAPI(pybind11::object & parent) -{ - pybind11::class_ c(parent, "ITapTradeAPI"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.def("SetAPINotify", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::SetAPINotify - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("SetHostAddress", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::SetHostAddress - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("Login", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::Login - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("RequestVertificateCode", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::RequestVertificateCode - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("SetVertificateCode", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::SetVertificateCode - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("Disconnect", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::Disconnect - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("ChangePassword", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::ChangePassword - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("AuthPassword", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::AuthPassword - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("HaveCertainRight", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::HaveCertainRight - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryTradingDate", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryTradingDate - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("SetReservedInfo", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::SetReservedInfo - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryAccount", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryAccount - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryFund", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryFund - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryExchange", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryExchange - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryCommodity", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryCommodity - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryContract", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryContract - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("InsertOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::InsertOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder, - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("CancelOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::CancelOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("AmendOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::AmendOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("ActivateOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::ActivateOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryOrderProcess", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryOrderProcess - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryFill", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryFill - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryPosition", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryPosition - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryPositionSummary", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryPositionSummary - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryCurrency", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryCurrency - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryAccountCashAdjust", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryAccountCashAdjust - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryTradeMessage", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryTradeMessage - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryBill", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryBill - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryHisOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryHisOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryHisOrderProcess", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryHisOrderProcess - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryHisMatch", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryHisMatch - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryHisPosition", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryHisPosition - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryHisDelivery", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryHisDelivery - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryAccountFeeRent", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryAccountFeeRent - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryAccountMarginRent", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::QryAccountMarginRent - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("InsertHKMarketOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::InsertHKMarketOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder, - autocxxpy::indexed_transform_holder, - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("CancelHKMarketOrder", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::CancelHKMarketOrder - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OrderLocalRemove", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::OrderLocalRemove - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OrderLocalInput", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::OrderLocalInput - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OrderLocalModify", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::OrderLocalModify - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OrderLocalTransfer", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::OrderLocalTransfer - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("FillLocalInput", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::FillLocalInput - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("FillLocalRemove", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapTrade::ITapTradeAPI::FillLocalRemove - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapTrade::ITapTradeAPI, c); - module_vntap::objects.emplace("ITapTrade::ITapTradeAPI", c); -} void generate_caster_ITapTrade(pybind11::object & parent) { struct caster: autocxxpy::caster{}; @@ -698,3 +165,355 @@ void generate_caster_ITapTrade(pybind11::object & parent) autocxxpy::caster::try_generate(c, "toTapAPIFillLocalInputRsp)"); autocxxpy::caster::try_generate(c, "toTapAPIFillLocalRemoveRsp)"); } +void generate_class_TapAPIApplicationInfo(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIApplicationInfo"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIApplicationInfo, "AuthCode", AuthCode); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIApplicationInfo, "KeyOperationLogPath", KeyOperationLogPath); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIApplicationInfo, c); + module_vntap::objects.emplace("TapAPIApplicationInfo", c); +} +void generate_class_TapAPICommodity(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPICommodity"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPICommodity, "ExchangeNo", ExchangeNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPICommodity, "CommodityType", CommodityType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPICommodity, "CommodityNo", CommodityNo); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPICommodity, c); + module_vntap::objects.emplace("TapAPICommodity", c); +} +void generate_class_TapAPIContract(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIContract"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "Commodity", Commodity); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "ContractNo1", ContractNo1); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "StrikePrice1", StrikePrice1); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "CallOrPutFlag1", CallOrPutFlag1); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "ContractNo2", ContractNo2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "StrikePrice2", StrikePrice2); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "CallOrPutFlag2", CallOrPutFlag2); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIContract, c); + module_vntap::objects.emplace("TapAPIContract", c); +} +void generate_class_TapAPIExchangeInfo(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIExchangeInfo"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIExchangeInfo, "ExchangeNo", ExchangeNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIExchangeInfo, "ExchangeName", ExchangeName); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIExchangeInfo, c); + module_vntap::objects.emplace("TapAPIExchangeInfo", c); +} +void generate_class_TapAPIChangePasswordReq(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIChangePasswordReq"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIChangePasswordReq, "OldPassword", OldPassword); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIChangePasswordReq, "NewPassword", NewPassword); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIChangePasswordReq, c); + module_vntap::objects.emplace("TapAPIChangePasswordReq", c); +} +void generate_class_TapAPIQuoteLoginAuth(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIQuoteLoginAuth"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "UserNo", UserNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "ISModifyPassword", ISModifyPassword); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "Password", Password); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "NewPassword", NewPassword); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "QuoteTempPassword", QuoteTempPassword); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "ISDDA", ISDDA); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "DDASerialNo", DDASerialNo); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteLoginAuth, c); + module_vntap::objects.emplace("TapAPIQuoteLoginAuth", c); +} +void generate_class_TapAPIQuotLoginRspInfo(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIQuotLoginRspInfo"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "UserNo", UserNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "UserType", UserType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "UserName", UserName); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "QuoteTempPassword", QuoteTempPassword); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "ReservedInfo", ReservedInfo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLoginIP", LastLoginIP); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLoginProt", LastLoginProt); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLoginTime", LastLoginTime); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLogoutTime", LastLogoutTime); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "TradeDate", TradeDate); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastSettleTime", LastSettleTime); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "StartTime", StartTime); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "InitTime", InitTime); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuotLoginRspInfo, c); + module_vntap::objects.emplace("TapAPIQuotLoginRspInfo", c); +} +void generate_class_TapAPIQuoteCommodityInfo(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIQuoteCommodityInfo"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "Commodity", Commodity); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityName", CommodityName); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityEngName", CommodityEngName); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "ContractSize", ContractSize); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityTickSize", CommodityTickSize); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityDenominator", CommodityDenominator); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CmbDirect", CmbDirect); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityContractLen", CommodityContractLen); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "IsDST", IsDST); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "RelateCommodity1", RelateCommodity1); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "RelateCommodity2", RelateCommodity2); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteCommodityInfo, c); + module_vntap::objects.emplace("TapAPIQuoteCommodityInfo", c); +} +void generate_class_TapAPIQuoteContractInfo(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIQuoteContractInfo"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "Contract", Contract); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "ContractType", ContractType); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "QuoteUnderlyingContract", QuoteUnderlyingContract); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "ContractName", ContractName); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "ContractExpDate", ContractExpDate); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "LastTradeDate", LastTradeDate); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "FirstNoticeDate", FirstNoticeDate); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteContractInfo, c); + module_vntap::objects.emplace("TapAPIQuoteContractInfo", c); +} +void generate_class_TapAPIQuoteWhole(pybind11::object & parent) +{ + pybind11::class_ c(parent, "TapAPIQuoteWhole"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "Contract", Contract); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "CurrencyNo", CurrencyNo); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "TradingState", TradingState); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "DateTimeStamp", DateTimeStamp); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPreClosingPrice", QPreClosingPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPreSettlePrice", QPreSettlePrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPrePositionQty", QPrePositionQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QOpeningPrice", QOpeningPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLastPrice", QLastPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QHighPrice", QHighPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLowPrice", QLowPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QHisHighPrice", QHisHighPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QHisLowPrice", QHisLowPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLimitUpPrice", QLimitUpPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLimitDownPrice", QLimitDownPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalQty", QTotalQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalTurnover", QTotalTurnover); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPositionQty", QPositionQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QAveragePrice", QAveragePrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QClosingPrice", QClosingPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QSettlePrice", QSettlePrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLastQty", QLastQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QBidPrice", QBidPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QBidQty", QBidQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QAskPrice", QAskPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QAskQty", QAskQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedBidPrice", QImpliedBidPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedBidQty", QImpliedBidQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedAskPrice", QImpliedAskPrice); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedAskQty", QImpliedAskQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPreDelta", QPreDelta); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QCurrDelta", QCurrDelta); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QInsideQty", QInsideQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QOutsideQty", QOutsideQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTurnoverRate", QTurnoverRate); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "Q5DAvgQty", Q5DAvgQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPERatio", QPERatio); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalValue", QTotalValue); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QNegotiableValue", QNegotiableValue); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPositionTrend", QPositionTrend); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QChangeSpeed", QChangeSpeed); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QChangeRate", QChangeRate); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QChangeValue", QChangeValue); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QSwing", QSwing); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalBidQty", QTotalBidQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalAskQty", QTotalAskQty); + c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "UnderlyContract", UnderlyContract); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteWhole, c); + module_vntap::objects.emplace("TapAPIQuoteWhole", c); +} +void generate_class_ITapQuoteAPINotify(pybind11::object & parent) +{ + pybind11::class_ c(parent, "ITapQuoteAPINotify"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.def("OnRspLogin", + &ITapQuoteAPINotify::OnRspLogin, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnAPIReady", + &ITapQuoteAPINotify::OnAPIReady, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnDisconnect", + &ITapQuoteAPINotify::OnDisconnect, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnRspQryCommodity", + &ITapQuoteAPINotify::OnRspQryCommodity, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnRspQryContract", + &ITapQuoteAPINotify::OnRspQryContract, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnRspSubscribeQuote", + &ITapQuoteAPINotify::OnRspSubscribeQuote, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnRspUnSubscribeQuote", + &ITapQuoteAPINotify::OnRspUnSubscribeQuote, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("OnRtnQuote", + &ITapQuoteAPINotify::OnRtnQuote, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapQuoteAPINotify, c); + module_vntap::objects.emplace("ITapQuoteAPINotify", c); +} +void generate_class_ITapQuoteAPI(pybind11::object & parent) +{ + pybind11::class_ c(parent, "ITapQuoteAPI"); + if constexpr (std::is_default_constructible_v) + c.def(pybind11::init<>()); + c.def("SetAPINotify", + &ITapQuoteAPI::SetAPINotify, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("SetHostAddress", + &ITapQuoteAPI::SetHostAddress, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("Login", + &ITapQuoteAPI::Login, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("Disconnect", + &ITapQuoteAPI::Disconnect, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryCommodity", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapQuoteAPI::QryCommodity + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("QryContract", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapQuoteAPI::QryContract + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("SubscribeQuote", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapQuoteAPI::SubscribeQuote + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + c.def("UnSubscribeQuote", + autocxxpy::apply_function_transform< + autocxxpy::function_constant< + &ITapQuoteAPI::UnSubscribeQuote + >, + brigand::list< + autocxxpy::indexed_transform_holder + > + >::value, + pybind11::return_value_policy::reference, + pybind11::call_guard() + ); + AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapQuoteAPI, c); + module_vntap::objects.emplace("ITapQuoteAPI", c); +} +void generate_caster_(pybind11::object & parent) +{ + struct caster: autocxxpy::caster{}; + auto c = autocxxpy::caster::bind(parent, "caster"); + autocxxpy::caster::try_generate(c, "toTapAPIApplicationInfo)"); + autocxxpy::caster::try_generate(c, "toTapAPICommodity)"); + autocxxpy::caster::try_generate(c, "toTapAPIContract)"); + autocxxpy::caster::try_generate(c, "toTapAPIExchangeInfo)"); + autocxxpy::caster::try_generate(c, "toTapAPIChangePasswordReq)"); + autocxxpy::caster::try_generate(c, "toTapAPIQuoteLoginAuth)"); + autocxxpy::caster::try_generate(c, "toTapAPIQuotLoginRspInfo)"); + autocxxpy::caster::try_generate(c, "toTapAPIQuoteCommodityInfo)"); + autocxxpy::caster::try_generate(c, "toTapAPIQuoteContractInfo)"); + autocxxpy::caster::try_generate(c, "toTapAPIQuoteWhole)"); + autocxxpy::caster::try_generate(c, "toITapQuoteAPINotify)"); + autocxxpy::caster::try_generate(c, "toITapQuoteAPI)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_10)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_20)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_30)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_40)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_50)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_70)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_100)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_300)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_500)"); + autocxxpy::caster::try_generate(c, "toTAPISTR_2000)"); + autocxxpy::caster::try_generate(c, "toTAPIAUTHCODE)"); + autocxxpy::caster::try_generate(c, "toTAPICHAR)"); + autocxxpy::caster::try_generate(c, "toTAPIINT32)"); + autocxxpy::caster::try_generate(c, "toTAPIUINT32)"); + autocxxpy::caster::try_generate(c, "toTAPIINT64)"); + autocxxpy::caster::try_generate(c, "toTAPIUINT64)"); + autocxxpy::caster::try_generate(c, "toTAPIUINT16)"); + autocxxpy::caster::try_generate(c, "toTAPIUINT8)"); + autocxxpy::caster::try_generate(c, "toTAPIREAL64)"); + autocxxpy::caster::try_generate(c, "toTAPIYNFLAG)"); + autocxxpy::caster::try_generate(c, "toTAPIDTSTAMP)"); + autocxxpy::caster::try_generate(c, "toTAPIDATETIME)"); + autocxxpy::caster::try_generate(c, "toTAPIDATE)"); + autocxxpy::caster::try_generate(c, "toTAPITIME)"); + autocxxpy::caster::try_generate(c, "toTAPILOGLEVEL)"); + autocxxpy::caster::try_generate(c, "toTAPICommodityType)"); + autocxxpy::caster::try_generate(c, "toTAPICallOrPutFlagType)"); + autocxxpy::caster::try_generate(c, "toTAPIQPRICE)"); + autocxxpy::caster::try_generate(c, "toTAPIQVOLUME)"); + autocxxpy::caster::try_generate(c, "toTAPIQDIFF)"); +} diff --git a/vnpy/api/tap/vntap/generated_files/generated_functions_5.cpp b/vnpy/api/tap/vntap/generated_files/generated_functions_5.cpp deleted file mode 100644 index 4cc209a4..00000000 --- a/vnpy/api/tap/vntap/generated_files/generated_functions_5.cpp +++ /dev/null @@ -1,440 +0,0 @@ -#include -#include -#include -#include - -#include "module.hpp" -#include "wrappers.hpp" -#include "generated_functions.h" - -#include "iTapTradeAPI.h" -#include "TapQuoteAPI.h" -#include "TapAPIError.h" -#include "iTapAPIError.h" -#include "custom/custom_wrappers.hpp" - - -void generate_class_TapAPIApplicationInfo(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIApplicationInfo"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIApplicationInfo, "AuthCode", AuthCode); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIApplicationInfo, "KeyOperationLogPath", KeyOperationLogPath); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIApplicationInfo, c); - module_vntap::objects.emplace("TapAPIApplicationInfo", c); -} -void generate_class_TapAPICommodity(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPICommodity"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPICommodity, "ExchangeNo", ExchangeNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPICommodity, "CommodityType", CommodityType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPICommodity, "CommodityNo", CommodityNo); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPICommodity, c); - module_vntap::objects.emplace("TapAPICommodity", c); -} -void generate_class_TapAPIContract(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIContract"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "Commodity", Commodity); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "ContractNo1", ContractNo1); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "StrikePrice1", StrikePrice1); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "CallOrPutFlag1", CallOrPutFlag1); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "ContractNo2", ContractNo2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "StrikePrice2", StrikePrice2); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIContract, "CallOrPutFlag2", CallOrPutFlag2); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIContract, c); - module_vntap::objects.emplace("TapAPIContract", c); -} -void generate_class_TapAPIExchangeInfo(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIExchangeInfo"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIExchangeInfo, "ExchangeNo", ExchangeNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIExchangeInfo, "ExchangeName", ExchangeName); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIExchangeInfo, c); - module_vntap::objects.emplace("TapAPIExchangeInfo", c); -} -void generate_class_TapAPIChangePasswordReq(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIChangePasswordReq"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIChangePasswordReq, "OldPassword", OldPassword); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIChangePasswordReq, "NewPassword", NewPassword); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIChangePasswordReq, c); - module_vntap::objects.emplace("TapAPIChangePasswordReq", c); -} -void generate_class_TapAPIQuoteLoginAuth(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIQuoteLoginAuth"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "UserNo", UserNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "ISModifyPassword", ISModifyPassword); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "Password", Password); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "NewPassword", NewPassword); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "QuoteTempPassword", QuoteTempPassword); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "ISDDA", ISDDA); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteLoginAuth, "DDASerialNo", DDASerialNo); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteLoginAuth, c); - module_vntap::objects.emplace("TapAPIQuoteLoginAuth", c); -} -void generate_class_TapAPIQuotLoginRspInfo(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIQuotLoginRspInfo"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "UserNo", UserNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "UserType", UserType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "UserName", UserName); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "QuoteTempPassword", QuoteTempPassword); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "ReservedInfo", ReservedInfo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLoginIP", LastLoginIP); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLoginProt", LastLoginProt); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLoginTime", LastLoginTime); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastLogoutTime", LastLogoutTime); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "TradeDate", TradeDate); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "LastSettleTime", LastSettleTime); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "StartTime", StartTime); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuotLoginRspInfo, "InitTime", InitTime); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuotLoginRspInfo, c); - module_vntap::objects.emplace("TapAPIQuotLoginRspInfo", c); -} -void generate_class_TapAPIQuoteCommodityInfo(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIQuoteCommodityInfo"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "Commodity", Commodity); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityName", CommodityName); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityEngName", CommodityEngName); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "ContractSize", ContractSize); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityTickSize", CommodityTickSize); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityDenominator", CommodityDenominator); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CmbDirect", CmbDirect); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "CommodityContractLen", CommodityContractLen); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "IsDST", IsDST); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "RelateCommodity1", RelateCommodity1); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteCommodityInfo, "RelateCommodity2", RelateCommodity2); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteCommodityInfo, c); - module_vntap::objects.emplace("TapAPIQuoteCommodityInfo", c); -} -void generate_class_TapAPIQuoteContractInfo(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIQuoteContractInfo"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "Contract", Contract); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "ContractType", ContractType); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "QuoteUnderlyingContract", QuoteUnderlyingContract); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "ContractName", ContractName); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "ContractExpDate", ContractExpDate); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "LastTradeDate", LastTradeDate); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteContractInfo, "FirstNoticeDate", FirstNoticeDate); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteContractInfo, c); - module_vntap::objects.emplace("TapAPIQuoteContractInfo", c); -} -void generate_class_TapAPIQuoteWhole(pybind11::object & parent) -{ - pybind11::class_ c(parent, "TapAPIQuoteWhole"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "Contract", Contract); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "CurrencyNo", CurrencyNo); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "TradingState", TradingState); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "DateTimeStamp", DateTimeStamp); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPreClosingPrice", QPreClosingPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPreSettlePrice", QPreSettlePrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPrePositionQty", QPrePositionQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QOpeningPrice", QOpeningPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLastPrice", QLastPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QHighPrice", QHighPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLowPrice", QLowPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QHisHighPrice", QHisHighPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QHisLowPrice", QHisLowPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLimitUpPrice", QLimitUpPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLimitDownPrice", QLimitDownPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalQty", QTotalQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalTurnover", QTotalTurnover); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPositionQty", QPositionQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QAveragePrice", QAveragePrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QClosingPrice", QClosingPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QSettlePrice", QSettlePrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QLastQty", QLastQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QBidPrice", QBidPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QBidQty", QBidQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QAskPrice", QAskPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QAskQty", QAskQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedBidPrice", QImpliedBidPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedBidQty", QImpliedBidQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedAskPrice", QImpliedAskPrice); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QImpliedAskQty", QImpliedAskQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPreDelta", QPreDelta); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QCurrDelta", QCurrDelta); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QInsideQty", QInsideQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QOutsideQty", QOutsideQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTurnoverRate", QTurnoverRate); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "Q5DAvgQty", Q5DAvgQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPERatio", QPERatio); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalValue", QTotalValue); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QNegotiableValue", QNegotiableValue); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QPositionTrend", QPositionTrend); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QChangeSpeed", QChangeSpeed); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QChangeRate", QChangeRate); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QChangeValue", QChangeValue); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QSwing", QSwing); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalBidQty", QTotalBidQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "QTotalAskQty", QTotalAskQty); - c.AUTOCXXPY_DEF_PROPERTY(tag_vntap, TapAPIQuoteWhole, "UnderlyContract", UnderlyContract); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, TapAPIQuoteWhole, c); - module_vntap::objects.emplace("TapAPIQuoteWhole", c); -} -void generate_class_ITapQuoteAPINotify(pybind11::object & parent) -{ - pybind11::class_ c(parent, "ITapQuoteAPINotify"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.def("OnRspLogin", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnRspLogin - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnAPIReady", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnAPIReady - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnDisconnect", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnDisconnect - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnRspQryCommodity", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnRspQryCommodity - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnRspQryContract", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnRspQryContract - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnRspSubscribeQuote", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnRspSubscribeQuote - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnRspUnSubscribeQuote", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnRspUnSubscribeQuote - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("OnRtnQuote", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPINotify::OnRtnQuote - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapQuoteAPINotify, c); - module_vntap::objects.emplace("ITapQuoteAPINotify", c); -} -void generate_class_ITapQuoteAPI(pybind11::object & parent) -{ - pybind11::class_ c(parent, "ITapQuoteAPI"); - if constexpr (std::is_default_constructible_v) - c.def(pybind11::init<>()); - c.def("SetAPINotify", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::SetAPINotify - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("SetHostAddress", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::SetHostAddress - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("Login", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::Login - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("Disconnect", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::Disconnect - >, - brigand::list< - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryCommodity", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::QryCommodity - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("QryContract", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::QryContract - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("SubscribeQuote", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::SubscribeQuote - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - c.def("UnSubscribeQuote", - autocxxpy::apply_function_transform< - autocxxpy::function_constant< - &ITapQuoteAPI::UnSubscribeQuote - >, - brigand::list< - autocxxpy::indexed_transform_holder - > - >::value, - pybind11::return_value_policy::reference, - pybind11::call_guard() - ); - AUTOCXXPY_POST_REGISTER_CLASS(tag_vntap, ITapQuoteAPI, c); - module_vntap::objects.emplace("ITapQuoteAPI", c); -} -void generate_caster_(pybind11::object & parent) -{ - struct caster: autocxxpy::caster{}; - auto c = autocxxpy::caster::bind(parent, "caster"); - autocxxpy::caster::try_generate(c, "toTapAPIApplicationInfo)"); - autocxxpy::caster::try_generate(c, "toTapAPICommodity)"); - autocxxpy::caster::try_generate(c, "toTapAPIContract)"); - autocxxpy::caster::try_generate(c, "toTapAPIExchangeInfo)"); - autocxxpy::caster::try_generate(c, "toTapAPIChangePasswordReq)"); - autocxxpy::caster::try_generate(c, "toTapAPIQuoteLoginAuth)"); - autocxxpy::caster::try_generate(c, "toTapAPIQuotLoginRspInfo)"); - autocxxpy::caster::try_generate(c, "toTapAPIQuoteCommodityInfo)"); - autocxxpy::caster::try_generate(c, "toTapAPIQuoteContractInfo)"); - autocxxpy::caster::try_generate(c, "toTapAPIQuoteWhole)"); - autocxxpy::caster::try_generate(c, "toITapQuoteAPINotify)"); - autocxxpy::caster::try_generate(c, "toITapQuoteAPI)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_10)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_20)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_30)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_40)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_50)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_70)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_100)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_300)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_500)"); - autocxxpy::caster::try_generate(c, "toTAPISTR_2000)"); - autocxxpy::caster::try_generate(c, "toTAPIAUTHCODE)"); - autocxxpy::caster::try_generate(c, "toTAPICHAR)"); - autocxxpy::caster::try_generate(c, "toTAPIINT32)"); - autocxxpy::caster::try_generate(c, "toTAPIUINT32)"); - autocxxpy::caster::try_generate(c, "toTAPIINT64)"); - autocxxpy::caster::try_generate(c, "toTAPIUINT64)"); - autocxxpy::caster::try_generate(c, "toTAPIUINT16)"); - autocxxpy::caster::try_generate(c, "toTAPIUINT8)"); - autocxxpy::caster::try_generate(c, "toTAPIREAL64)"); - autocxxpy::caster::try_generate(c, "toTAPIYNFLAG)"); - autocxxpy::caster::try_generate(c, "toTAPIDTSTAMP)"); - autocxxpy::caster::try_generate(c, "toTAPIDATETIME)"); - autocxxpy::caster::try_generate(c, "toTAPIDATE)"); - autocxxpy::caster::try_generate(c, "toTAPITIME)"); - autocxxpy::caster::try_generate(c, "toTAPILOGLEVEL)"); - autocxxpy::caster::try_generate(c, "toTAPICommodityType)"); - autocxxpy::caster::try_generate(c, "toTAPICallOrPutFlagType)"); - autocxxpy::caster::try_generate(c, "toTAPIQPRICE)"); - autocxxpy::caster::try_generate(c, "toTAPIQVOLUME)"); - autocxxpy::caster::try_generate(c, "toTAPIQDIFF)"); -} diff --git a/vnpy/api/tap/vntap/include/autocxxpy/wrappers/output_argument.hpp b/vnpy/api/tap/vntap/include/autocxxpy/wrappers/output_argument.hpp index b9d5105a..95873a40 100644 --- a/vnpy/api/tap/vntap/include/autocxxpy/wrappers/output_argument.hpp +++ b/vnpy/api/tap/vntap/include/autocxxpy/wrappers/output_argument.hpp @@ -17,28 +17,43 @@ namespace autocxxpy { + template + struct is_string_type : std::false_type {}; + + template<> + struct is_string_type : std::true_type {}; + + template + struct is_string_type> : std::true_type {}; + + template + constexpr bool is_string_type_v = is_string_type::value; + template inline constexpr auto wrap_pointer_argument_as_output_impl(brigand::list, brigand::list ) { namespace ct = boost::callable_traits; return [](Ls ... ls, Rs ... rs) { - base_t arg; + base_t arg{}; constexpr auto method = method_constant::value; auto stdmethod = std::function>(method); + + using converted_arg_t = std::conditional_t, std::string, base_t>; if constexpr (std::is_void_v) { stdmethod(std::forward(ls)..., &arg, std::forward(rs)...); - return std::move(arg); + return converted_arg_t(std::move(arg)); } else { - return append_as_tuple(stdmethod( + auto retv_left = stdmethod( std::forward(ls)..., &arg, std::forward(rs)... - ), std::move(arg)); - + ); + auto retv = append_as_tuple(std::move(retv_left), converted_arg_t(std::move(arg))); + return std::move(retv); // make debugging easier } }; } @@ -48,22 +63,26 @@ namespace autocxxpy namespace ct = boost::callable_traits; return [](Ls ... ls, Rs ... rs) { - base_t arg; + base_t arg{}; constexpr auto method = method_constant::value; auto stdmethod = std::function>(method); + + using converted_arg_t = std::conditional_t, std::string, base_t>; if constexpr (std::is_void_v) { stdmethod(std::forward(ls)..., arg, std::forward(rs)...); - return arg; + return converted_arg_t(std::move(arg)); } else { - return append_as_tuple(stdmethod( + auto retv_left = stdmethod( std::forward(ls)..., arg, std::forward(rs)... - ), arg); - + ); + auto retv = append_as_tuple(std::move(retv_left), converted_arg_t(std::move(arg)) + ); + return std::move(retv); // make debugging easier } }; } diff --git a/vnpy/api/tap/vntap/vntap.vcxproj b/vnpy/api/tap/vntap/vntap.vcxproj index 3a360813..67b3474f 100644 --- a/vnpy/api/tap/vntap/vntap.vcxproj +++ b/vnpy/api/tap/vntap/vntap.vcxproj @@ -20,6 +20,7 @@ + @@ -38,7 +39,6 @@ - Create @@ -145,6 +145,7 @@ pch.h pch.h stdcpp17 + /bigobj %(AdditionalOptions) Console @@ -164,6 +165,7 @@ stdcpp17 pch.h pch.h + /bigobj %(AdditionalOptions) Console @@ -186,6 +188,7 @@ pch.h pch.h stdcpp17 + /bigobj %(AdditionalOptions) Console @@ -210,6 +213,7 @@ stdcpp17 pch.h pch.h + /bigobj %(AdditionalOptions) Console diff --git a/vnpy/api/tap/vntap/vntap.vcxproj.filters b/vnpy/api/tap/vntap/vntap.vcxproj.filters index 66749c2f..3175e8b1 100644 --- a/vnpy/api/tap/vntap/vntap.vcxproj.filters +++ b/vnpy/api/tap/vntap/vntap.vcxproj.filters @@ -51,6 +51,9 @@ Header Files + + Header Files + @@ -71,9 +74,6 @@ Source Files - - Source Files - Source Files diff --git a/vnpy/api/tap/vntap_ITapTrade.pyi b/vnpy/api/tap/vntap_ITapTrade.pyi index 2ded0e27..5fbcbc2f 100644 --- a/vnpy/api/tap/vntap_ITapTrade.pyi +++ b/vnpy/api/tap/vntap_ITapTrade.pyi @@ -34,7 +34,7 @@ class TapAPICommodity(): ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str @@ -44,10 +44,10 @@ class TapAPIContract(): Commodity: ITapTrade.TapAPICommodity ContractNo1: str StrikePrice1: str - CallOrPutFlag1: int + CallOrPutFlag1: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int + CallOrPutFlag2: str class TapAPIExchangeInfo(): @@ -61,7 +61,7 @@ class TapAPIChangePasswordReq(): AccountNo: str - PasswordType: int + PasswordType: str OldPassword: str NewPassword: str @@ -70,7 +70,7 @@ class TapAPIAuthPasswordReq(): AccountNo: str - PasswordType: int + PasswordType: str Password: str @@ -78,7 +78,7 @@ class TapAPITradeLoginAuth(): UserNo: str - ISModifyPassword: int + ISModifyPassword: str Password: str NewPassword: str @@ -117,9 +117,9 @@ class TapAPIAccountInfo(): AccountNo: str - AccountType: int - AccountState: int - AccountTradeRight: int + AccountType: str + AccountState: str + AccountTradeRight: str CommodityGroupNo: str AccountShortName: str AccountEnShortName: str @@ -130,24 +130,24 @@ class TapAPINewOrder(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int + CallOrPutFlag: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int - OrderType: int - OrderSource: int - TimeInForce: int + CallOrPutFlag2: str + OrderType: str + OrderSource: str + TimeInForce: str ExpireTime: str - IsRiskOrder: int - OrderSide: int - PositionEffect: int - PositionEffect2: int + IsRiskOrder: str + OrderSide: str + PositionEffect: str + PositionEffect2: str InquiryNo: str - HedgeFlag: int + HedgeFlag: str OrderPrice: float OrderPrice2: float StopPrice: float @@ -159,10 +159,10 @@ class TapAPINewOrder(): RefDouble: float RefString: str ClientID: str - TacticsType: int - TriggerCondition: int - TriggerPriceType: int - AddOneIsValid: int + TacticsType: str + TriggerCondition: str + TriggerPriceType: str + AddOneIsValid: str class TapAPIOrderInfo(): @@ -170,24 +170,24 @@ class TapAPIOrderInfo(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int + CallOrPutFlag: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int - OrderType: int - OrderSource: int - TimeInForce: int + CallOrPutFlag2: str + OrderType: str + OrderSource: str + TimeInForce: str ExpireTime: str - IsRiskOrder: int - OrderSide: int - PositionEffect: int - PositionEffect2: int + IsRiskOrder: str + OrderSide: str + PositionEffect: str + PositionEffect2: str InquiryNo: str - HedgeFlag: int + HedgeFlag: str OrderPrice: float OrderPrice2: float StopPrice: float @@ -199,14 +199,14 @@ class TapAPIOrderInfo(): MinClipSize: int MaxClipSize: int LicenseNo: str - ServerFlag: int + ServerFlag: str OrderNo: str ClientOrderNo: str ClientID: str - TacticsType: int - TriggerCondition: int - TriggerPriceType: int - AddOneIsValid: int + TacticsType: str + TriggerCondition: str + TriggerPriceType: str + AddOneIsValid: str ClientLocalIP: str ClientMac: str ClientIP: str @@ -223,16 +223,16 @@ class TapAPIOrderInfo(): OrderCommandUserNo: str OrderUpdateUserNo: str OrderUpdateTime: str - OrderState: int + OrderState: str OrderMatchPrice: float OrderMatchPrice2: float OrderMatchQty: int OrderMatchQty2: int ErrorCode: int ErrorText: str - IsBackInput: int - IsDeleted: int - IsAddOne: int + IsBackInput: str + IsDeleted: str + IsAddOne: str class TapAPIOrderInfoNotice(): @@ -246,7 +246,7 @@ class TapAPIOrderInfoNotice(): class TapAPIOrderActionRsp(): - ActionType: int + ActionType: str OrderInfo: ITapTrade.TapAPIOrderInfo @@ -254,7 +254,7 @@ class TapAPIAmendOrder(): ReqData: ITapTrade.TapAPINewOrder - ServerFlag: int + ServerFlag: str OrderNo: str @@ -264,7 +264,7 @@ class TapAPIOrderCancelReq(): RefInt: int RefDouble: float RefString: str - ServerFlag: int + ServerFlag: str OrderNo: str @@ -273,24 +273,24 @@ class TapAPIOrderQryReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str - OrderType: int - OrderSource: int - TimeInForce: int + OrderType: str + OrderSource: str + TimeInForce: str ExpireTime: str - IsRiskOrder: int - ServerFlag: int + IsRiskOrder: str + ServerFlag: str OrderNo: str - IsBackInput: int - IsDeleted: int - IsAddOne: int + IsBackInput: str + IsDeleted: str + IsAddOne: str class TapAPIOrderProcessQryReq(): - ServerFlag: int + ServerFlag: str OrderNo: str @@ -299,19 +299,19 @@ class TapAPIFillQryReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSource: int - MatchSide: int - PositionEffect: int - ServerFlag: int + CallOrPutFlag: str + MatchSource: str + MatchSide: str + PositionEffect: str + ServerFlag: str OrderNo: str UpperNo: str - IsDeleted: int - IsAddOne: int + IsDeleted: str + IsAddOne: str class TapAPIFillInfo(): @@ -319,15 +319,15 @@ class TapAPIFillInfo(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSource: int - MatchSide: int - PositionEffect: int - ServerFlag: int + CallOrPutFlag: str + MatchSource: str + MatchSide: str + PositionEffect: str + ServerFlag: str OrderNo: str OrderSystemNo: str MatchNo: str @@ -338,12 +338,12 @@ class TapAPIFillInfo(): UpperNo: str MatchPrice: float MatchQty: int - IsDeleted: int - IsAddOne: int + IsDeleted: str + IsAddOne: str FeeCurrencyGroup: str FeeCurrency: str FeeValue: float - IsManualFee: int + IsManualFee: str ClosePrositionPrice: float @@ -352,7 +352,7 @@ class TapAPICloseQryReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str @@ -361,12 +361,12 @@ class TapAPICloseInfo(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - CloseSide: int + CallOrPutFlag: str + CloseSide: str CloseQty: int OpenPrice: float ClosePrice: float @@ -391,15 +391,15 @@ class TapAPIPositionInfo(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSide: int - HedgeFlag: int + CallOrPutFlag: str + MatchSide: str + HedgeFlag: str PositionNo: str - ServerFlag: int + ServerFlag: str OrderNo: str MatchNo: str UpperNo: str @@ -416,7 +416,7 @@ class TapAPIPositionInfo(): PositionProfit: float LMEPositionProfit: float OptionMarketValue: float - IsHistory: int + IsHistory: str class TapAPIPositionProfit(): @@ -433,7 +433,7 @@ class TapAPIPositionProfit(): class TapAPIPositionProfitNotice(): - IsLast: int + IsLast: str Data: ITapTrade.TapAPIPositionProfit @@ -442,12 +442,12 @@ class TapAPIPositionSummary(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSide: int + CallOrPutFlag: str + MatchSide: str PositionPrice: float PositionQty: int HisPositionQty: int @@ -466,8 +466,8 @@ class TapAPIFundData(): CurrencyGroupNo: str CurrencyNo: str TradeRate: float - FutureAlg: int - OptionAlg: int + FutureAlg: str + OptionAlg: str PreBalance: float PreUnExpProfit: float PreLMEPositionProfit: float @@ -509,44 +509,44 @@ class TapAPICommodityInfo(): ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str CommodityName: str CommodityEngName: str RelateExchangeNo: str - RelateCommodityType: int + RelateCommodityType: str RelateCommodityNo: str RelateExchangeNo2: str - RelateCommodityType2: int + RelateCommodityType2: str RelateCommodityNo2: str CurrencyGroupNo: str TradeCurrency: str ContractSize: float - OpenCloseMode: int + OpenCloseMode: str StrikePriceTimes: float CommodityTickSize: float CommodityDenominator: int - CmbDirect: int - DeliveryMode: int + CmbDirect: str + DeliveryMode: str DeliveryDays: int AddOneTime: str CommodityTimeZone: int - IsAddOne: int + IsAddOne: str class TapAPITradeContractInfo(): ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo1: str StrikePrice1: str - CallOrPutFlag1: int + CallOrPutFlag1: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int - ContractType: int + CallOrPutFlag2: str + ContractType: str QuoteUnderlyingContract: str ContractName: str ContractExpDate: str @@ -561,8 +561,8 @@ class TapAPICurrencyInfo(): CurrencyGroupNo: str TradeRate: float TradeRate2: float - FutureAlg: int - OptionAlg: int + FutureAlg: str + OptionAlg: str class TapAPITradeMessageReq(): @@ -582,10 +582,10 @@ class TapAPITradeMessage(): TMsgValidDateTime: str TMsgTitle: str TMsgContent: str - TMsgType: int - TMsgLevel: int - IsSendBySMS: int - IsSendByEMail: int + TMsgType: str + TMsgLevel: str + IsSendBySMS: str + IsSendByEMail: str Sender: str SendDateTime: str @@ -594,9 +594,9 @@ class TapAPIBillQryReq(): UserNo: str - BillType: int + BillType: str BillDate: str - BillFileType: int + BillFileType: str class TapAPIBillQryRsp(): @@ -604,7 +604,7 @@ class TapAPIBillQryRsp(): Reqdata: ITapTrade.TapAPIBillQryReq BillLen: int - BillText: List[int] + BillText: List[str] class TapAPIHisOrderQryReq(): @@ -622,24 +622,24 @@ class TapAPIHisOrderQryRsp(): Date: str AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int + CallOrPutFlag: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int - OrderType: int - OrderSource: int - TimeInForce: int + CallOrPutFlag2: str + OrderType: str + OrderSource: str + TimeInForce: str ExpireTime: str - IsRiskOrder: int - OrderSide: int - PositionEffect: int - PositionEffect2: int + IsRiskOrder: str + OrderSide: str + PositionEffect: str + PositionEffect2: str InquiryNo: str - HedgeFlag: int + HedgeFlag: str OrderPrice: float OrderPrice2: float StopPrice: float @@ -649,7 +649,7 @@ class TapAPIHisOrderQryRsp(): RefInt: int RefDouble: float RefString: str - ServerFlag: int + ServerFlag: str OrderNo: str OrderStreamID: int UpperNo: str @@ -664,23 +664,23 @@ class TapAPIHisOrderQryRsp(): OrderCommandUserNo: str OrderUpdateUserNo: str OrderUpdateTime: str - OrderState: int + OrderState: str OrderMatchPrice: float OrderMatchPrice2: float OrderMatchQty: int OrderMatchQty2: int ErrorCode: int ErrorText: str - IsBackInput: int - IsDeleted: int - IsAddOne: int - AddOneIsValid: int + IsBackInput: str + IsDeleted: str + IsAddOne: str + AddOneIsValid: str MinClipSize: int MaxClipSize: int LicenseNo: str - TacticsType: int - TriggerCondition: int - TriggerPriceType: int + TacticsType: str + TriggerCondition: str + TriggerPriceType: str class TapAPIHisMatchQryReq(): @@ -690,7 +690,7 @@ class TapAPIHisMatchQryReq(): AccountAttributeNo: str BeginDate: str EndDate: str - CountType: int + CountType: str class TapAPIHisMatchQryRsp(): @@ -700,15 +700,15 @@ class TapAPIHisMatchQryRsp(): TradeDate: str AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSource: int - MatchSide: int - PositionEffect: int - HedgeFlag: int + CallOrPutFlag: str + MatchSource: str + MatchSide: str + PositionEffect: str + HedgeFlag: str MatchPrice: float MatchQty: int OrderNo: str @@ -726,12 +726,12 @@ class TapAPIHisMatchQryRsp(): AccountFee: float AccountFeeCurrencyGroup: str AccountFeeCurrency: str - IsManualFee: int + IsManualFee: str AccountOtherFee: float UpperFee: float UpperFeeCurrencyGroup: str UpperFeeCurrency: str - IsUpperManualFee: int + IsUpperManualFee: str UpperOtherFee: float MatchDateTime: str UpperMatchDateTime: str @@ -755,7 +755,7 @@ class TapAPIHisPositionQryReq(): AccountNo: str Date: str - SettleFlag: int + SettleFlag: str class TapAPIHisPositionQryRsp(): @@ -765,13 +765,13 @@ class TapAPIHisPositionQryRsp(): OpenDate: str AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSide: int - HedgeFlag: int + CallOrPutFlag: str + MatchSide: str + HedgeFlag: str PositionPrice: float PositionQty: int OrderNo: str @@ -798,7 +798,7 @@ class TapAPIHisDeliveryQryReq(): AccountAttributeNo: str BeginDate: str EndDate: str - CountType: int + CountType: str class TapAPIHisDeliveryQryRsp(): @@ -808,13 +808,13 @@ class TapAPIHisDeliveryQryRsp(): OpenDate: str AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSource: int - OpenSide: int + CallOrPutFlag: str + MatchSource: str + OpenSide: str OpenPrice: float DeliveryPrice: float DeliveryQty: int @@ -835,7 +835,7 @@ class TapAPIHisDeliveryQryRsp(): UpperFeeCurrencyGroup: str UpperFeeCurrency: str UpperDeliveryFee: float - DeliveryMode: int + DeliveryMode: str OperatorNo: str OperateTime: str SettleGourpNo: str @@ -856,7 +856,7 @@ class TapAPIAccountCashAdjustQryRsp(): Date: str AccountNo: str - CashAdjustType: int + CashAdjustType: str CurrencyGroupNo: str CurrencyNo: str CashAdjustValue: float @@ -865,10 +865,10 @@ class TapAPIAccountCashAdjustQryRsp(): OperatorNo: str AccountBank: str BankAccount: str - AccountLWFlag: int + AccountLWFlag: str CompanyBank: str InternalBankAccount: str - CompanyLWFlag: int + CompanyLWFlag: str class TapAPIAccountFeeRentQryReq(): @@ -882,10 +882,10 @@ class TapAPIAccountFeeRentQryRsp(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str - MatchSource: int - CalculateMode: int + MatchSource: str + CalculateMode: str CurrencyGroupNo: str CurrencyNo: str OpenCloseFee: float @@ -897,7 +897,7 @@ class TapAPIAccountMarginRentQryReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str @@ -906,12 +906,12 @@ class TapAPIAccountMarginRentQryRsp(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - CalculateMode: int + CallOrPutFlag: str + CalculateMode: str CurrencyGroupNo: str CurrencyNo: str InitialMargin: float @@ -925,12 +925,12 @@ class TapAPIOrderQuoteMarketNotice(): ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - OrderSide: int + CallOrPutFlag: str + OrderSide: str OrderQty: int @@ -939,18 +939,18 @@ class TapAPIOrderMarketInsertReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - OrderType: int - TimeInForce: int + CallOrPutFlag: str + OrderType: str + TimeInForce: str ExpireTime: str - OrderSource: int - BuyPositionEffect: int - SellPositionEffect: int - AddOneIsValid: int + OrderSource: str + BuyPositionEffect: str + SellPositionEffect: str + AddOneIsValid: str OrderBuyPrice: float OrderSellPrice: float OrderBuyQty: int @@ -968,25 +968,25 @@ class TapAPIOrderMarketInsertRsp(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - OrderType: int - TimeInForce: int + CallOrPutFlag: str + OrderType: str + TimeInForce: str ExpireTime: str - OrderSource: int - BuyPositionEffect: int - SellPositionEffect: int + OrderSource: str + BuyPositionEffect: str + SellPositionEffect: str OrderBuyPrice: float OrderSellPrice: float OrderBuyQty: int OrderSellQty: int - ServerFlag: int + ServerFlag: str OrderBuyNo: str OrderSellNo: str - AddOneIsValid: int + AddOneIsValid: str OrderMarketUserNo: str OrderMarketTime: str RefInt: int @@ -1005,7 +1005,7 @@ class TapAPIOrderMarketInsertRsp(): class TapAPIOrderMarketDeleteReq(): - ServerFlag: int + ServerFlag: str OrderBuyNo: str OrderSellNo: str @@ -1013,7 +1013,7 @@ class TapAPIOrderMarketDeleteReq(): class TapAPIOrderLocalRemoveReq(): - ServerFlag: int + ServerFlag: str OrderNo: str @@ -1031,24 +1031,24 @@ class TapAPIOrderLocalInputReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int + CallOrPutFlag: str ContractNo2: str StrikePrice2: str - CallOrPutFlag2: int - OrderType: int - OrderSource: int - TimeInForce: int + CallOrPutFlag2: str + OrderType: str + OrderSource: str + TimeInForce: str ExpireTime: str - IsRiskOrder: int - OrderSide: int - PositionEffect: int - PositionEffect2: int + IsRiskOrder: str + OrderSide: str + PositionEffect: str + PositionEffect2: str InquiryNo: str - HedgeFlag: int + HedgeFlag: str OrderPrice: float OrderPrice2: float StopPrice: float @@ -1061,15 +1061,15 @@ class TapAPIOrderLocalInputReq(): OrderMatchPrice2: float OrderMatchQty: int OrderMatchQty2: int - OrderState: int - IsAddOne: int + OrderState: str + IsAddOne: str class TapAPIOrderLocalModifyReq(): req: ITapTrade.TapAPIOrderLocalInputReq - ServerFlag: int + ServerFlag: str OrderNo: str @@ -1077,7 +1077,7 @@ class TapAPIOrderLocalTransferReq(): AccountNo: str - ServerFlag: int + ServerFlag: str OrderNo: str @@ -1086,14 +1086,14 @@ class TapAPIFillLocalInputReq(): AccountNo: str ExchangeNo: str - CommodityType: int + CommodityType: str CommodityNo: str ContractNo: str StrikePrice: str - CallOrPutFlag: int - MatchSide: int - PositionEffect: int - HedgeFlag: int + CallOrPutFlag: str + MatchSide: str + PositionEffect: str + HedgeFlag: str MatchPrice: float MatchQty: int OrderSystemNo: str @@ -1101,18 +1101,18 @@ class TapAPIFillLocalInputReq(): MatchDateTime: str UpperMatchDateTime: str UpperNo: str - IsAddOne: int + IsAddOne: str FeeCurrencyGroup: str FeeCurrency: str FeeValue: float - IsManualFee: int + IsManualFee: str ClosePositionPrice: float class TapAPIFillLocalRemoveReq(): - ServerFlag: int + ServerFlag: str MatchNo: str @@ -1134,7 +1134,7 @@ class ITapTradeAPINotify(): ... def OnRspLogin(self, errorCode: int, loginRspInfo: ITapTrade.TapAPITradeLoginRspInfo)->None: ... - def OnRtnContactInfo(self, errorCode: int, isLast: int, ContactInfo: str)->None: + def OnRtnContactInfo(self, errorCode: int, isLast: str, ContactInfo: str)->None: ... def OnRspRequestVertificateCode(self, sessionID: int, errorCode: int, rsp: ITapTrade.TapAPIRequestVertificateCodeRsp)->None: ... @@ -1152,17 +1152,17 @@ class ITapTradeAPINotify(): ... def OnRspSetReservedInfo(self, sessionID: int, errorCode: int, info: str)->None: ... - def OnRspQryAccount(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIAccountInfo)->None: + def OnRspQryAccount(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIAccountInfo)->None: ... - def OnRspQryFund(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIFundData)->None: + def OnRspQryFund(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIFundData)->None: ... def OnRtnFund(self, info: ITapTrade.TapAPIFundData)->None: ... - def OnRspQryExchange(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIExchangeInfo)->None: + def OnRspQryExchange(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIExchangeInfo)->None: ... - def OnRspQryCommodity(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPICommodityInfo)->None: + def OnRspQryCommodity(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPICommodityInfo)->None: ... - def OnRspQryContract(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPITradeContractInfo)->None: + def OnRspQryContract(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPITradeContractInfo)->None: ... def OnRtnContract(self, info: ITapTrade.TapAPITradeContractInfo)->None: ... @@ -1170,47 +1170,47 @@ class ITapTradeAPINotify(): ... def OnRtnOrder(self, info: ITapTrade.TapAPIOrderInfoNotice)->None: ... - def OnRspQryOrder(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIOrderInfo)->None: + def OnRspQryOrder(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIOrderInfo)->None: ... - def OnRspQryOrderProcess(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIOrderInfo)->None: + def OnRspQryOrderProcess(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIOrderInfo)->None: ... - def OnRspQryFill(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIFillInfo)->None: + def OnRspQryFill(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIFillInfo)->None: ... def OnRtnFill(self, info: ITapTrade.TapAPIFillInfo)->None: ... - def OnRspQryPosition(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIPositionInfo)->None: + def OnRspQryPosition(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIPositionInfo)->None: ... def OnRtnPosition(self, info: ITapTrade.TapAPIPositionInfo)->None: ... - def OnRspQryPositionSummary(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIPositionSummary)->None: + def OnRspQryPositionSummary(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIPositionSummary)->None: ... def OnRtnPositionSummary(self, info: ITapTrade.TapAPIPositionSummary)->None: ... def OnRtnPositionProfit(self, info: ITapTrade.TapAPIPositionProfitNotice)->None: ... - def OnRspQryCurrency(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPICurrencyInfo)->None: + def OnRspQryCurrency(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPICurrencyInfo)->None: ... - def OnRspQryTradeMessage(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPITradeMessage)->None: + def OnRspQryTradeMessage(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPITradeMessage)->None: ... def OnRtnTradeMessage(self, info: ITapTrade.TapAPITradeMessage)->None: ... - def OnRspQryHisOrder(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIHisOrderQryRsp)->None: + def OnRspQryHisOrder(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIHisOrderQryRsp)->None: ... - def OnRspQryHisOrderProcess(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIHisOrderQryRsp)->None: + def OnRspQryHisOrderProcess(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIHisOrderQryRsp)->None: ... - def OnRspQryHisMatch(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIHisMatchQryRsp)->None: + def OnRspQryHisMatch(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIHisMatchQryRsp)->None: ... - def OnRspQryHisPosition(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIHisPositionQryRsp)->None: + def OnRspQryHisPosition(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIHisPositionQryRsp)->None: ... - def OnRspQryHisDelivery(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIHisDeliveryQryRsp)->None: + def OnRspQryHisDelivery(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIHisDeliveryQryRsp)->None: ... - def OnRspQryAccountCashAdjust(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIAccountCashAdjustQryRsp)->None: + def OnRspQryAccountCashAdjust(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIAccountCashAdjustQryRsp)->None: ... - def OnRspQryBill(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIBillQryRsp)->None: + def OnRspQryBill(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIBillQryRsp)->None: ... - def OnRspQryAccountFeeRent(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIAccountFeeRentQryRsp)->None: + def OnRspQryAccountFeeRent(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIAccountFeeRentQryRsp)->None: ... - def OnRspQryAccountMarginRent(self, sessionID: int, errorCode: int, isLast: int, info: ITapTrade.TapAPIAccountMarginRentQryRsp)->None: + def OnRspQryAccountMarginRent(self, sessionID: int, errorCode: int, isLast: str, info: ITapTrade.TapAPIAccountMarginRentQryRsp)->None: ... def OnRspHKMarketOrderInsert(self, sessionID: int, errorCode: int, info: ITapTrade.TapAPIOrderMarketInsertRsp)->None: ... @@ -1336,7 +1336,7 @@ TAPISTR_2000 = str TAPIAUTHCODE = str TAPIMACTYPE = str TAPISecondSerialIDType = str -TAPICHAR = int +TAPICHAR = str TAPIClientIDType = str TAPIINT32 = int TAPIUINT32 = int @@ -1345,101 +1345,101 @@ TAPIUINT64 = int TAPIUINT16 = int TAPIUINT8 = int TAPIREAL64 = float -TAPIYNFLAG = int -TAPIPasswordType = int +TAPIYNFLAG = str +TAPIPasswordType = str TAPIDTSTAMP = str TAPIDATETIME = str TAPIDATE = str TAPITIME = str -TAPILOGLEVEL = int -TAPIOptionType = int -TAPICommodityType = int -TAPICallOrPutFlagType = int -TAPIAccountType = int +TAPILOGLEVEL = str +TAPIOptionType = str +TAPICommodityType = str +TAPICallOrPutFlagType = str +TAPIAccountType = str TAPIRightIDType = int TAPIUserTypeType = int -TAPIAccountState = int -TAPIAccountRightType = int -TAPIOrderTypeType = int -TAPIOrderSourceType = int -TAPITimeInForceType = int -TAPISideType = int -TAPIPositionEffectType = int -TAPIHedgeFlagType = int -TAPIOrderStateType = int -TAPICalculateModeType = int -TAPIMatchSourceType = int -TAPIOpenCloseModeType = int -TAPIFutureAlgType = int -TAPIOptionAlgType = int -TAPISendType = int -TAPIBankAccountLWFlagType = int -TAPICashAdjustTypeType = int -TAPIMarginCalculateModeType = int -TAPIOptionMarginCalculateModeType = int -TAPICmbDirectType = int -TAPIDeliveryModeType = int -TAPIContractTypeType = int -TAPITacticsTypeType = int -TAPIORDERACT = int -TAPITriggerConditionType = int -TAPITriggerPriceTypeType = int -TAPITradingStateType = int +TAPIAccountState = str +TAPIAccountRightType = str +TAPIOrderTypeType = str +TAPIOrderSourceType = str +TAPITimeInForceType = str +TAPISideType = str +TAPIPositionEffectType = str +TAPIHedgeFlagType = str +TAPIOrderStateType = str +TAPICalculateModeType = str +TAPIMatchSourceType = str +TAPIOpenCloseModeType = str +TAPIFutureAlgType = str +TAPIOptionAlgType = str +TAPISendType = str +TAPIBankAccountLWFlagType = str +TAPICashAdjustTypeType = str +TAPIMarginCalculateModeType = str +TAPIOptionMarginCalculateModeType = str +TAPICmbDirectType = str +TAPIDeliveryModeType = str +TAPIContractTypeType = str +TAPITacticsTypeType = str +TAPIORDERACT = str +TAPITriggerConditionType = str +TAPITriggerPriceTypeType = str +TAPITradingStateType = str TAPINoticeIgnoreFlagType = int -TAPIOrderQryTypeType = int +TAPIOrderQryTypeType = str TapAPIOrderDeactivateReq = ITapTrade.TapAPIOrderCancelReq TapAPIOrderActivateReq = ITapTrade.TapAPIOrderCancelReq TapAPIOrderDeleteReq = ITapTrade.TapAPIOrderCancelReq -TAPIMsgReceiverType = int -TAPIMsgLevelType = int -TAPIMsgTypeType = int -TAPIBillTypeType = int -TAPIBillFileTypeType = int +TAPIMsgReceiverType = str +TAPIMsgLevelType = str +TAPIMsgTypeType = str +TAPIBillTypeType = str +TAPIBillFileTypeType = str TapAPIHisOrderProcessQryRsp = ITapTrade.TapAPIHisOrderQryRsp -TAPISettleFlagType = int +TAPISettleFlagType = str TapAPIOrderMarketDeleteRsp = ITapTrade.TapAPIOrderMarketInsertRsp TapAPIOrderLocalInputRsp = ITapTrade.TapAPIOrderInfo TapAPIOrderLocalModifyRsp = ITapTrade.TapAPIOrderInfo TapAPIOrderLocalTransferRsp = ITapTrade.TapAPIOrderInfo TapAPIFillLocalInputRsp = ITapTrade.TapAPIFillLocalInputReq TapAPIFillLocalRemoveRsp = ITapTrade.TapAPIFillLocalRemoveReq -APIYNFLAG_YES: int -APIYNFLAG_NO: int -APIPASSWORD_TRADE: int -APIPASSWORD_PHONE: int -APILOGLEVEL_NONE: int -APILOGLEVEL_ERROR: int -APILOGLEVEL_WARNING: int -APILOGLEVEL_DEBUG: int -TAPI_OPTION_TYPE_AMERICAN: int -TAPI_OPTION_TYPE_AMERICAN2: int -TAPI_OPTION_TYPE_EUROPEAN: int -TAPI_OPTION_TYPE_EUROPEAN2: int -TAPI_COMMODITY_TYPE_NONE: int -TAPI_COMMODITY_TYPE_SPOT: int -TAPI_COMMODITY_TYPE_FUTURES: int -TAPI_COMMODITY_TYPE_OPTION: int -TAPI_COMMODITY_TYPE_SPREAD_MONTH: int -TAPI_COMMODITY_TYPE_SPREAD_COMMODITY: int -TAPI_COMMODITY_TYPE_BUL: int -TAPI_COMMODITY_TYPE_BER: int -TAPI_COMMODITY_TYPE_STD: int -TAPI_COMMODITY_TYPE_STG: int -TAPI_COMMODITY_TYPE_PRT: int -TAPI_COMMODITY_TYPE_DIRECTFOREX: int -TAPI_COMMODITY_TYPE_INDIRECTFOREX: int -TAPI_COMMODITY_TYPE_CROSSFOREX: int -TAPI_COMMODITY_TYPE_INDEX: int -TAPI_COMMODITY_TYPE_STOCK: int -TAPI_CALLPUT_FLAG_CALL: int -TAPI_CALLPUT_FLAG_PUT: int -TAPI_CALLPUT_FLAG_NONE: int -TAPI_ACCOUNT_TYPE_PERSON: int -TAPI_ACCOUNT_TYPE_ORGANIZATION: int -TAPI_ACCOUNT_TYPE_AGENT: int -TAPI_ACCOUNT_TYPE_MARGIN: int -TAPI_ACCOUNT_TYPE_HOUSE: int -TAPI_ACCOUNT_TYPE_STOCK: int +APIYNFLAG_YES: str +APIYNFLAG_NO: str +APIPASSWORD_TRADE: str +APIPASSWORD_PHONE: str +APILOGLEVEL_NONE: str +APILOGLEVEL_ERROR: str +APILOGLEVEL_WARNING: str +APILOGLEVEL_DEBUG: str +TAPI_OPTION_TYPE_AMERICAN: str +TAPI_OPTION_TYPE_AMERICAN2: str +TAPI_OPTION_TYPE_EUROPEAN: str +TAPI_OPTION_TYPE_EUROPEAN2: str +TAPI_COMMODITY_TYPE_NONE: str +TAPI_COMMODITY_TYPE_SPOT: str +TAPI_COMMODITY_TYPE_FUTURES: str +TAPI_COMMODITY_TYPE_OPTION: str +TAPI_COMMODITY_TYPE_SPREAD_MONTH: str +TAPI_COMMODITY_TYPE_SPREAD_COMMODITY: str +TAPI_COMMODITY_TYPE_BUL: str +TAPI_COMMODITY_TYPE_BER: str +TAPI_COMMODITY_TYPE_STD: str +TAPI_COMMODITY_TYPE_STG: str +TAPI_COMMODITY_TYPE_PRT: str +TAPI_COMMODITY_TYPE_DIRECTFOREX: str +TAPI_COMMODITY_TYPE_INDIRECTFOREX: str +TAPI_COMMODITY_TYPE_CROSSFOREX: str +TAPI_COMMODITY_TYPE_INDEX: str +TAPI_COMMODITY_TYPE_STOCK: str +TAPI_CALLPUT_FLAG_CALL: str +TAPI_CALLPUT_FLAG_PUT: str +TAPI_CALLPUT_FLAG_NONE: str +TAPI_ACCOUNT_TYPE_PERSON: str +TAPI_ACCOUNT_TYPE_ORGANIZATION: str +TAPI_ACCOUNT_TYPE_AGENT: str +TAPI_ACCOUNT_TYPE_MARGIN: str +TAPI_ACCOUNT_TYPE_HOUSE: str +TAPI_ACCOUNT_TYPE_STOCK: str TAPI_RIGHT_ORDER_DEL: int TAPI_RIGHT_ORDER_CHECK: int TAPI_RIGHT_ONLY_QRY: int @@ -1450,140 +1450,140 @@ TAPI_USERTYPE_TRADER: int TAPI_USERTYPE_RISK: int TAPI_USERTYPE_MANAGER: int TAPI_USERTYPE_QUOTE: int -TAPI_ACCOUNT_STATE_NORMAL: int -TAPI_ACCOUNT_STATE_CANCEL: int -TAPI_ACCOUNT_STATE_SLEEP: int -TAPI_ACCOUNT_TRADING_RIGHT_NORMAL: int -TAPI_ACCOUNT_TRADING_RIGHT_NOTRADE: int -TAPI_ACCOUNT_TRADING_RIGHT_CLOSE: int -TAPI_ORDER_TYPE_MARKET: int -TAPI_ORDER_TYPE_LIMIT: int -TAPI_ORDER_TYPE_STOP_MARKET: int -TAPI_ORDER_TYPE_STOP_LIMIT: int -TAPI_ORDER_TYPE_OPT_EXEC: int -TAPI_ORDER_TYPE_OPT_ABANDON: int -TAPI_ORDER_TYPE_REQQUOT: int -TAPI_ORDER_TYPE_RSPQUOT: int -TAPI_ORDER_TYPE_ICEBERG: int -TAPI_ORDER_TYPE_GHOST: int -TAPI_ORDER_TYPE_HKEX_AUCTION: int -TAPI_ORDER_TYPE_SWAP: int -TAPI_ORDER_SOURCE_SELF_ETRADER: int -TAPI_ORDER_SOURCE_PROXY_ETRADER: int -TAPI_ORDER_SOURCE_JTRADER: int -TAPI_ORDER_SOURCE_MANUAL: int -TAPI_ORDER_SOURCE_CARRY: int -TAPI_ORDER_SOURCE_PROGRAM: int -TAPI_ORDER_SOURCE_DELIVERY: int -TAPI_ORDER_SOURCE_ABANDON: int -TAPI_ORDER_SOURCE_CHANNEL: int -TAPI_ORDER_TIMEINFORCE_GFD: int -TAPI_ORDER_TIMEINFORCE_GTC: int -TAPI_ORDER_TIMEINFORCE_GTD: int -TAPI_ORDER_TIMEINFORCE_FAK: int -TAPI_ORDER_TIMEINFORCE_FOK: int -TAPI_SIDE_NONE: int -TAPI_SIDE_BUY: int -TAPI_SIDE_SELL: int -TAPI_PositionEffect_NONE: int -TAPI_PositionEffect_OPEN: int -TAPI_PositionEffect_COVER: int -TAPI_PositionEffect_COVER_TODAY: int -TAPI_HEDGEFLAG_NONE: int -TAPI_HEDGEFLAG_T: int -TAPI_HEDGEFLAG_B: int -TAPI_HEDGEFLAG_L: int -TAPI_ORDER_STATE_SUBMIT: int -TAPI_ORDER_STATE_ACCEPT: int -TAPI_ORDER_STATE_TRIGGERING: int -TAPI_ORDER_STATE_EXCTRIGGERING: int -TAPI_ORDER_STATE_QUEUED: int -TAPI_ORDER_STATE_PARTFINISHED: int -TAPI_ORDER_STATE_FINISHED: int -TAPI_ORDER_STATE_CANCELING: int -TAPI_ORDER_STATE_MODIFYING: int -TAPI_ORDER_STATE_CANCELED: int -TAPI_ORDER_STATE_LEFTDELETED: int -TAPI_ORDER_STATE_FAIL: int -TAPI_ORDER_STATE_DELETED: int -TAPI_ORDER_STATE_SUPPENDED: int -TAPI_ORDER_STATE_DELETEDFOREXPIRE: int -TAPI_ORDER_STATE_EFFECT: int -TAPI_ORDER_STATE_APPLY: int -TAPI_CALULATE_MODE_COMBINE: int -TAPI_CALCULATE_MODE_PERCENTAGE: int -TAPI_CALCULATE_MODE_QUOTA: int -TAPI_CALCULATE_MODE_CHAPERCENTAGE: int -TAPI_CALCULATE_MODE_CHAQUOTA: int -TAPI_CALCULATE_MODE_DISCOUNT: int -TAPI_MATCH_SOURCE_ALL: int -TAPI_MATCH_SOURCE_SELF_ETRADER: int -TAPI_MATCH_SOURCE_PROXY_ETRADER: int -TAPI_MATCH_SOURCE_JTRADER: int -TAPI_MATCH_SOURCE_MANUAL: int -TAPI_MATCH_SOURCE_CARRY: int -TAPI_MATCH_SOURCE_PROGRAM: int -TAPI_MATCH_SOURCE_DELIVERY: int -TAPI_MATCH_SOURCE_ABANDON: int -TAPI_MATCH_SOURCE_CHANNEL: int -TAPI_MATCH_SOURCE_ESUNNY_API: int -TAPI_CLOSE_MODE_NONE: int -TAPI_CLOSE_MODE_UNFINISHED: int -TAPI_CLOSE_MODE_OPENCOVER: int -TAPI_CLOSE_MODE_CLOSETODAY: int -TAPI_FUTURES_ALG_ZHUBI: int -TAPI_FUTURES_ALG_DINGSHI: int -TAPI_OPTION_ALG_FUTURES: int -TAPI_OPTION_ALG_OPTION: int -SENDTYPE_SMS: int -SENDTYPE_MAIL: int -TAPI_LWFlag_L: int -TAPI_LWFlag_W: int -TAPI_CASHINOUT_MODE_FEEADJUST: int -TAPI_CASHINOUT_MODE_YKADJUST: int -TAPI_CASHINOUT_MODE_PLEDGE: int -TAPI_CASHINOUT_MODE_INTERESTREVENUE: int -TAPI_CASHINOUT_MODE_COLLECTIONCOST: int -TAPI_CASHINOUT_MODE_OTHER: int -TAPI_CASHINOUT_MODE_COMPANY: int -TAPI_DEPOSITCALCULATE_MODE_FEN: int -TAPI_DEPOSITCALCULATE_MODE_SUO: int -TAPI_CMB_DIRECT_FIRST: int -TAPI_CMB_DIRECT_SECOND: int -TAPI_DELIVERY_MODE_GOODS: int -TAPI_DELIVERY_MODE_CASH: int -TAPI_DELIVERY_MODE_EXECUTE: int -TAPI_DELIVERY_MODE_ABANDON: int -TAPI_DELIVERY_MODE_HKF: int -TAPI_CONTRACT_TYPE_TRADEQUOTE: int -TAPI_CONTRACT_TYPE_QUOTE: int -TAPI_TACTICS_TYPE_NONE: int -TAPI_TACTICS_TYPE_READY: int -TAPI_TACTICS_TYPE_ATUO: int -TAPI_TACTICS_TYPE_CONDITION: int -APIORDER_INSERT: int -APIORDER_MODIFY: int -APIORDER_DELETE: int -APIORDER_SUSPEND: int -APIORDER_ACTIVATE: int -APIORDER_SYSTEM_DELETE: int -TAPI_TRIGGER_CONDITION_NONE: int -TAPI_TRIGGER_CONDITION_GREAT: int -TAPI_TRIGGER_CONDITION_LITTLE: int -TAPI_TRIGGER_PRICE_NONE: int -TAPI_TRIGGER_PRICE_BUY: int -TAPI_TRIGGER_PRICE_SELL: int -TAPI_TRIGGER_PRICE_LAST: int -TAPI_TRADE_STATE_BID: int -TAPI_TRADE_STATE_MATCH: int -TAPI_TRADE_STATE_CONTINUOUS: int -TAPI_TRADE_STATE_PAUSED: int -TAPI_TRADE_STATE_CLOSE: int -TAPI_TRADE_STATE_DEALLAST: int -TAPI_TRADE_STATE_GWDISCONNECT: int -TAPI_TRADE_STATE_UNKNOWN: int -TAPI_TRADE_STATE_INITIALIZE: int -TAPI_TRADE_STATE_READY: int +TAPI_ACCOUNT_STATE_NORMAL: str +TAPI_ACCOUNT_STATE_CANCEL: str +TAPI_ACCOUNT_STATE_SLEEP: str +TAPI_ACCOUNT_TRADING_RIGHT_NORMAL: str +TAPI_ACCOUNT_TRADING_RIGHT_NOTRADE: str +TAPI_ACCOUNT_TRADING_RIGHT_CLOSE: str +TAPI_ORDER_TYPE_MARKET: str +TAPI_ORDER_TYPE_LIMIT: str +TAPI_ORDER_TYPE_STOP_MARKET: str +TAPI_ORDER_TYPE_STOP_LIMIT: str +TAPI_ORDER_TYPE_OPT_EXEC: str +TAPI_ORDER_TYPE_OPT_ABANDON: str +TAPI_ORDER_TYPE_REQQUOT: str +TAPI_ORDER_TYPE_RSPQUOT: str +TAPI_ORDER_TYPE_ICEBERG: str +TAPI_ORDER_TYPE_GHOST: str +TAPI_ORDER_TYPE_HKEX_AUCTION: str +TAPI_ORDER_TYPE_SWAP: str +TAPI_ORDER_SOURCE_SELF_ETRADER: str +TAPI_ORDER_SOURCE_PROXY_ETRADER: str +TAPI_ORDER_SOURCE_JTRADER: str +TAPI_ORDER_SOURCE_MANUAL: str +TAPI_ORDER_SOURCE_CARRY: str +TAPI_ORDER_SOURCE_PROGRAM: str +TAPI_ORDER_SOURCE_DELIVERY: str +TAPI_ORDER_SOURCE_ABANDON: str +TAPI_ORDER_SOURCE_CHANNEL: str +TAPI_ORDER_TIMEINFORCE_GFD: str +TAPI_ORDER_TIMEINFORCE_GTC: str +TAPI_ORDER_TIMEINFORCE_GTD: str +TAPI_ORDER_TIMEINFORCE_FAK: str +TAPI_ORDER_TIMEINFORCE_FOK: str +TAPI_SIDE_NONE: str +TAPI_SIDE_BUY: str +TAPI_SIDE_SELL: str +TAPI_PositionEffect_NONE: str +TAPI_PositionEffect_OPEN: str +TAPI_PositionEffect_COVER: str +TAPI_PositionEffect_COVER_TODAY: str +TAPI_HEDGEFLAG_NONE: str +TAPI_HEDGEFLAG_T: str +TAPI_HEDGEFLAG_B: str +TAPI_HEDGEFLAG_L: str +TAPI_ORDER_STATE_SUBMIT: str +TAPI_ORDER_STATE_ACCEPT: str +TAPI_ORDER_STATE_TRIGGERING: str +TAPI_ORDER_STATE_EXCTRIGGERING: str +TAPI_ORDER_STATE_QUEUED: str +TAPI_ORDER_STATE_PARTFINISHED: str +TAPI_ORDER_STATE_FINISHED: str +TAPI_ORDER_STATE_CANCELING: str +TAPI_ORDER_STATE_MODIFYING: str +TAPI_ORDER_STATE_CANCELED: str +TAPI_ORDER_STATE_LEFTDELETED: str +TAPI_ORDER_STATE_FAIL: str +TAPI_ORDER_STATE_DELETED: str +TAPI_ORDER_STATE_SUPPENDED: str +TAPI_ORDER_STATE_DELETEDFOREXPIRE: str +TAPI_ORDER_STATE_EFFECT: str +TAPI_ORDER_STATE_APPLY: str +TAPI_CALULATE_MODE_COMBINE: str +TAPI_CALCULATE_MODE_PERCENTAGE: str +TAPI_CALCULATE_MODE_QUOTA: str +TAPI_CALCULATE_MODE_CHAPERCENTAGE: str +TAPI_CALCULATE_MODE_CHAQUOTA: str +TAPI_CALCULATE_MODE_DISCOUNT: str +TAPI_MATCH_SOURCE_ALL: str +TAPI_MATCH_SOURCE_SELF_ETRADER: str +TAPI_MATCH_SOURCE_PROXY_ETRADER: str +TAPI_MATCH_SOURCE_JTRADER: str +TAPI_MATCH_SOURCE_MANUAL: str +TAPI_MATCH_SOURCE_CARRY: str +TAPI_MATCH_SOURCE_PROGRAM: str +TAPI_MATCH_SOURCE_DELIVERY: str +TAPI_MATCH_SOURCE_ABANDON: str +TAPI_MATCH_SOURCE_CHANNEL: str +TAPI_MATCH_SOURCE_ESUNNY_API: str +TAPI_CLOSE_MODE_NONE: str +TAPI_CLOSE_MODE_UNFINISHED: str +TAPI_CLOSE_MODE_OPENCOVER: str +TAPI_CLOSE_MODE_CLOSETODAY: str +TAPI_FUTURES_ALG_ZHUBI: str +TAPI_FUTURES_ALG_DINGSHI: str +TAPI_OPTION_ALG_FUTURES: str +TAPI_OPTION_ALG_OPTION: str +SENDTYPE_SMS: str +SENDTYPE_MAIL: str +TAPI_LWFlag_L: str +TAPI_LWFlag_W: str +TAPI_CASHINOUT_MODE_FEEADJUST: str +TAPI_CASHINOUT_MODE_YKADJUST: str +TAPI_CASHINOUT_MODE_PLEDGE: str +TAPI_CASHINOUT_MODE_INTERESTREVENUE: str +TAPI_CASHINOUT_MODE_COLLECTIONCOST: str +TAPI_CASHINOUT_MODE_OTHER: str +TAPI_CASHINOUT_MODE_COMPANY: str +TAPI_DEPOSITCALCULATE_MODE_FEN: str +TAPI_DEPOSITCALCULATE_MODE_SUO: str +TAPI_CMB_DIRECT_FIRST: str +TAPI_CMB_DIRECT_SECOND: str +TAPI_DELIVERY_MODE_GOODS: str +TAPI_DELIVERY_MODE_CASH: str +TAPI_DELIVERY_MODE_EXECUTE: str +TAPI_DELIVERY_MODE_ABANDON: str +TAPI_DELIVERY_MODE_HKF: str +TAPI_CONTRACT_TYPE_TRADEQUOTE: str +TAPI_CONTRACT_TYPE_QUOTE: str +TAPI_TACTICS_TYPE_NONE: str +TAPI_TACTICS_TYPE_READY: str +TAPI_TACTICS_TYPE_ATUO: str +TAPI_TACTICS_TYPE_CONDITION: str +APIORDER_INSERT: str +APIORDER_MODIFY: str +APIORDER_DELETE: str +APIORDER_SUSPEND: str +APIORDER_ACTIVATE: str +APIORDER_SYSTEM_DELETE: str +TAPI_TRIGGER_CONDITION_NONE: str +TAPI_TRIGGER_CONDITION_GREAT: str +TAPI_TRIGGER_CONDITION_LITTLE: str +TAPI_TRIGGER_PRICE_NONE: str +TAPI_TRIGGER_PRICE_BUY: str +TAPI_TRIGGER_PRICE_SELL: str +TAPI_TRIGGER_PRICE_LAST: str +TAPI_TRADE_STATE_BID: str +TAPI_TRADE_STATE_MATCH: str +TAPI_TRADE_STATE_CONTINUOUS: str +TAPI_TRADE_STATE_PAUSED: str +TAPI_TRADE_STATE_CLOSE: str +TAPI_TRADE_STATE_DEALLAST: str +TAPI_TRADE_STATE_GWDISCONNECT: str +TAPI_TRADE_STATE_UNKNOWN: str +TAPI_TRADE_STATE_INITIALIZE: str +TAPI_TRADE_STATE_READY: str TAPI_NOTICE_IGNORE_NONE: int TAPI_NOTICE_IGNORE_ALL: int TAPI_NOTICE_IGNORE_FUND: int @@ -1592,23 +1592,23 @@ TAPI_NOTICE_IGNORE_FILL: int TAPI_NOTICE_IGNORE_POSITION: int TAPI_NOTICE_IGNORE_CLOSE: int TAPI_NOTICE_IGNORE_POSITIONPROFIT: int -TAPI_ORDER_QRY_TYPE_ALL: int -TAPI_ORDER_QRY_TYPE_UNENDED: int -TAPI_MSG_RECEIVER_ACCOUNTNO: int -TAPI_MSG_RECEIVER_ACCOUNTGROUPNO: int -TAPI_MSG_RECEIVER_ATTRIBUTE: int -TAPI_MSG_RECEIVER_USERNO: int -TAPI_MSG_LEVEL_NORMAL: int -TAPI_MSG_LEVEL_IMPORTANT: int -TAPI_MSG_LEVEL_IMERGENCY: int -TAPI_Msg_TYPE_MANAGER: int -TAPI_Msg_TYPE_RISKCONTROL: int -TAPI_BILL_DATE: int -TAPI_BILL_MONTH: int -TAPI_BILL_FILE_TXT: int -TAPI_BILL_FILE_PDF: int -SettleFlag_AutoSettle: int -SettleFlagh_Manual: int +TAPI_ORDER_QRY_TYPE_ALL: str +TAPI_ORDER_QRY_TYPE_UNENDED: str +TAPI_MSG_RECEIVER_ACCOUNTNO: str +TAPI_MSG_RECEIVER_ACCOUNTGROUPNO: str +TAPI_MSG_RECEIVER_ATTRIBUTE: str +TAPI_MSG_RECEIVER_USERNO: str +TAPI_MSG_LEVEL_NORMAL: str +TAPI_MSG_LEVEL_IMPORTANT: str +TAPI_MSG_LEVEL_IMERGENCY: str +TAPI_Msg_TYPE_MANAGER: str +TAPI_Msg_TYPE_RISKCONTROL: str +TAPI_BILL_DATE: str +TAPI_BILL_MONTH: str +TAPI_BILL_FILE_TXT: str +TAPI_BILL_FILE_PDF: str +SettleFlag_AutoSettle: str +SettleFlagh_Manual: str TAPIERROR_LOGIN: int TAPIERROR_LOGIN_USER: int TAPIERROR_LOGIN_DDA: int