ctpbee-opt-api 0.1.0__cp310-cp310-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ctpbee_api/__init__.py +17 -0
- ctpbee_api/ctp/__init__.py +3 -0
- ctpbee_api/ctp/ctp_constant.py +1253 -0
- ctpbee_api/ctp/generator/concat.py +93 -0
- ctpbee_api/ctp/generator/const.py +325 -0
- ctpbee_api/ctp/generator/ctp_constant.py +1274 -0
- ctpbee_api/ctp/generator/ctp_md_header_define.h +13 -0
- ctpbee_api/ctp/generator/ctp_md_header_function.h +6 -0
- ctpbee_api/ctp/generator/ctp_md_header_on.h +26 -0
- ctpbee_api/ctp/generator/ctp_md_header_process.h +26 -0
- ctpbee_api/ctp/generator/ctp_md_source_function.cpp +42 -0
- ctpbee_api/ctp/generator/ctp_md_source_module.cpp +18 -0
- ctpbee_api/ctp/generator/ctp_md_source_on.cpp +156 -0
- ctpbee_api/ctp/generator/ctp_md_source_process.cpp +282 -0
- ctpbee_api/ctp/generator/ctp_md_source_switch.cpp +78 -0
- ctpbee_api/ctp/generator/ctp_md_source_task.cpp +211 -0
- ctpbee_api/ctp/generator/ctp_struct.py +5640 -0
- ctpbee_api/ctp/generator/ctp_td_header_define.h +130 -0
- ctpbee_api/ctp/generator/ctp_td_header_function.h +174 -0
- ctpbee_api/ctp/generator/ctp_td_header_on.h +260 -0
- ctpbee_api/ctp/generator/ctp_td_header_process.h +260 -0
- ctpbee_api/ctp/generator/ctp_td_source_function.cpp +1456 -0
- ctpbee_api/ctp/generator/ctp_td_source_module.cpp +222 -0
- ctpbee_api/ctp/generator/ctp_td_source_on.cpp +1572 -0
- ctpbee_api/ctp/generator/ctp_td_source_process.cpp +5472 -0
- ctpbee_api/ctp/generator/ctp_td_source_switch.cpp +780 -0
- ctpbee_api/ctp/generator/ctp_td_source_task.cpp +2444 -0
- ctpbee_api/ctp/generator/ctp_typedef.py +800 -0
- ctpbee_api/ctp/generator/generate_api_functions.py +345 -0
- ctpbee_api/ctp/generator/generate_data_type.py +76 -0
- ctpbee_api/ctp/generator/generate_struct.py +84 -0
- ctpbee_api/ctp/include/mac/ctp/ThostFtdcMdApi.h +168 -0
- ctpbee_api/ctp/include/mac/ctp/ThostFtdcTraderApi.h +770 -0
- ctpbee_api/ctp/include/mac/ctp/ThostFtdcUserApiDataType.h +6878 -0
- ctpbee_api/ctp/include/mac/ctp/ThostFtdcUserApiStruct.h +10915 -0
- ctpbee_api/ctp/include/mac/pybind11/attr.h +690 -0
- ctpbee_api/ctp/include/mac/pybind11/buffer_info.h +208 -0
- ctpbee_api/ctp/include/mac/pybind11/cast.h +1704 -0
- ctpbee_api/ctp/include/mac/pybind11/chrono.h +225 -0
- ctpbee_api/ctp/include/mac/pybind11/common.h +2 -0
- ctpbee_api/ctp/include/mac/pybind11/complex.h +74 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/class.h +743 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/common.h +1255 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/descr.h +171 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/init.h +434 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/internals.h +656 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/type_caster_base.h +1177 -0
- ctpbee_api/ctp/include/mac/pybind11/detail/typeid.h +65 -0
- ctpbee_api/ctp/include/mac/pybind11/eigen/common.h +9 -0
- ctpbee_api/ctp/include/mac/pybind11/eigen/matrix.h +714 -0
- ctpbee_api/ctp/include/mac/pybind11/eigen/tensor.h +516 -0
- ctpbee_api/ctp/include/mac/pybind11/eigen.h +12 -0
- ctpbee_api/ctp/include/mac/pybind11/embed.h +316 -0
- ctpbee_api/ctp/include/mac/pybind11/eval.h +156 -0
- ctpbee_api/ctp/include/mac/pybind11/functional.h +137 -0
- ctpbee_api/ctp/include/mac/pybind11/gil.h +239 -0
- ctpbee_api/ctp/include/mac/pybind11/iostream.h +265 -0
- ctpbee_api/ctp/include/mac/pybind11/numpy.h +1998 -0
- ctpbee_api/ctp/include/mac/pybind11/operators.h +202 -0
- ctpbee_api/ctp/include/mac/pybind11/options.h +92 -0
- ctpbee_api/ctp/include/mac/pybind11/pybind11.h +2890 -0
- ctpbee_api/ctp/include/mac/pybind11/pytypes.h +2557 -0
- ctpbee_api/ctp/include/mac/pybind11/stl/filesystem.h +116 -0
- ctpbee_api/ctp/include/mac/pybind11/stl.h +447 -0
- ctpbee_api/ctp/include/mac/pybind11/stl_bind.h +851 -0
- ctpbee_api/ctp/include/mac/pybind11/type_caster_pyobject_ptr.h +61 -0
- ctpbee_api/ctp/include/new/ctp/ThostFtdcMdApi.h +168 -0
- ctpbee_api/ctp/include/new/ctp/ThostFtdcTraderApi.h +770 -0
- ctpbee_api/ctp/include/new/ctp/ThostFtdcUserApiDataType.h +6878 -0
- ctpbee_api/ctp/include/new/ctp/ThostFtdcUserApiStruct.h +10915 -0
- ctpbee_api/ctp/include/new/pybind11/attr.h +690 -0
- ctpbee_api/ctp/include/new/pybind11/buffer_info.h +208 -0
- ctpbee_api/ctp/include/new/pybind11/cast.h +1704 -0
- ctpbee_api/ctp/include/new/pybind11/chrono.h +225 -0
- ctpbee_api/ctp/include/new/pybind11/common.h +2 -0
- ctpbee_api/ctp/include/new/pybind11/complex.h +74 -0
- ctpbee_api/ctp/include/new/pybind11/detail/class.h +743 -0
- ctpbee_api/ctp/include/new/pybind11/detail/common.h +1255 -0
- ctpbee_api/ctp/include/new/pybind11/detail/descr.h +171 -0
- ctpbee_api/ctp/include/new/pybind11/detail/init.h +434 -0
- ctpbee_api/ctp/include/new/pybind11/detail/internals.h +656 -0
- ctpbee_api/ctp/include/new/pybind11/detail/type_caster_base.h +1177 -0
- ctpbee_api/ctp/include/new/pybind11/detail/typeid.h +65 -0
- ctpbee_api/ctp/include/new/pybind11/eigen/common.h +9 -0
- ctpbee_api/ctp/include/new/pybind11/eigen/matrix.h +714 -0
- ctpbee_api/ctp/include/new/pybind11/eigen/tensor.h +516 -0
- ctpbee_api/ctp/include/new/pybind11/eigen.h +12 -0
- ctpbee_api/ctp/include/new/pybind11/embed.h +316 -0
- ctpbee_api/ctp/include/new/pybind11/eval.h +156 -0
- ctpbee_api/ctp/include/new/pybind11/functional.h +137 -0
- ctpbee_api/ctp/include/new/pybind11/gil.h +239 -0
- ctpbee_api/ctp/include/new/pybind11/iostream.h +265 -0
- ctpbee_api/ctp/include/new/pybind11/numpy.h +1998 -0
- ctpbee_api/ctp/include/new/pybind11/operators.h +202 -0
- ctpbee_api/ctp/include/new/pybind11/options.h +92 -0
- ctpbee_api/ctp/include/new/pybind11/pybind11.h +2890 -0
- ctpbee_api/ctp/include/new/pybind11/pytypes.h +2557 -0
- ctpbee_api/ctp/include/new/pybind11/stl/filesystem.h +116 -0
- ctpbee_api/ctp/include/new/pybind11/stl.h +447 -0
- ctpbee_api/ctp/include/new/pybind11/stl_bind.h +851 -0
- ctpbee_api/ctp/include/new/pybind11/type_caster_pyobject_ptr.h +61 -0
- ctpbee_api/ctp/include/previous/ctp/ThostFtdcMdApi.h +168 -0
- ctpbee_api/ctp/include/previous/ctp/ThostFtdcTraderApi.h +770 -0
- ctpbee_api/ctp/include/previous/ctp/ThostFtdcUserApiDataType.h +6878 -0
- ctpbee_api/ctp/include/previous/ctp/ThostFtdcUserApiStruct.h +10915 -0
- ctpbee_api/ctp/include/previous/pybind11/attr.h +489 -0
- ctpbee_api/ctp/include/previous/pybind11/buffer_info.h +108 -0
- ctpbee_api/ctp/include/previous/pybind11/cast.h +2067 -0
- ctpbee_api/ctp/include/previous/pybind11/chrono.h +162 -0
- ctpbee_api/ctp/include/previous/pybind11/common.h +2 -0
- ctpbee_api/ctp/include/previous/pybind11/complex.h +61 -0
- ctpbee_api/ctp/include/previous/pybind11/detail/class.h +626 -0
- ctpbee_api/ctp/include/previous/pybind11/detail/common.h +803 -0
- ctpbee_api/ctp/include/previous/pybind11/detail/descr.h +185 -0
- ctpbee_api/ctp/include/previous/pybind11/detail/init.h +335 -0
- ctpbee_api/ctp/include/previous/pybind11/detail/internals.h +285 -0
- ctpbee_api/ctp/include/previous/pybind11/detail/typeid.h +53 -0
- ctpbee_api/ctp/include/previous/pybind11/eigen.h +604 -0
- ctpbee_api/ctp/include/previous/pybind11/embed.h +194 -0
- ctpbee_api/ctp/include/previous/pybind11/eval.h +117 -0
- ctpbee_api/ctp/include/previous/pybind11/functional.h +85 -0
- ctpbee_api/ctp/include/previous/pybind11/iostream.h +200 -0
- ctpbee_api/ctp/include/previous/pybind11/numpy.h +1601 -0
- ctpbee_api/ctp/include/previous/pybind11/operators.h +168 -0
- ctpbee_api/ctp/include/previous/pybind11/options.h +65 -0
- ctpbee_api/ctp/include/previous/pybind11/pybind11.h +1965 -0
- ctpbee_api/ctp/include/previous/pybind11/pytypes.h +1332 -0
- ctpbee_api/ctp/include/previous/pybind11/stl.h +376 -0
- ctpbee_api/ctp/include/previous/pybind11/stl_bind.h +599 -0
- ctpbee_api/ctp/libs/libcomunicationkey.a +0 -0
- ctpbee_api/ctp/libs/libcrypto.a +0 -0
- ctpbee_api/ctp/libs/libssl.a +0 -0
- ctpbee_api/ctp/libs/thostmduserapi_se.lib +0 -0
- ctpbee_api/ctp/libs/thosttraderapi_se.lib +0 -0
- ctpbee_api/ctp/libthostmduserapi_se.so +0 -0
- ctpbee_api/ctp/libthosttraderapi_se.so +0 -0
- ctpbee_api/ctp/thostmduserapi_se.dll +0 -0
- ctpbee_api/ctp/thosttraderapi_se.dll +0 -0
- ctpbee_api/ctp/vnctp/vnctp.h +189 -0
- ctpbee_api/ctp/vnctp/vnctp.sln +41 -0
- ctpbee_api/ctp/vnctp/vnctpmd/dllmain.cpp +19 -0
- ctpbee_api/ctp/vnctp/vnctpmd/stdafx.cpp +1 -0
- ctpbee_api/ctp/vnctp/vnctpmd/stdafx.h +17 -0
- ctpbee_api/ctp/vnctp/vnctpmd/targetver.h +8 -0
- ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.cpp +953 -0
- ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.h +209 -0
- ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj +200 -0
- ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj.filters +54 -0
- ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj.user +4 -0
- ctpbee_api/ctp/vnctp/vnctptd/dllmain.cpp +19 -0
- ctpbee_api/ctp/vnctp/vnctptd/stdafx.cpp +1 -0
- ctpbee_api/ctp/vnctp/vnctptd/stdafx.h +16 -0
- ctpbee_api/ctp/vnctp/vnctptd/targetver.h +8 -0
- ctpbee_api/ctp/vnctp/vnctptd/vnctptd.cpp +12148 -0
- ctpbee_api/ctp/vnctp/vnctptd/vnctptd.h +1329 -0
- ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj +198 -0
- ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj.filters +54 -0
- ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj.user +4 -0
- ctpbee_api/ctp/vnctpmd.cp310-win_amd64.pyd +0 -0
- ctpbee_api/ctp/vnctptd.cp310-win_amd64.pyd +0 -0
- ctpbee_api/ctp_mini/__init__.py +3 -0
- ctpbee_api/ctp_mini/generator/generate_api_functions.py +343 -0
- ctpbee_api/ctp_mini/generator/generate_data_type.py +76 -0
- ctpbee_api/ctp_mini/generator/generate_struct.py +85 -0
- ctpbee_api/ctp_mini/generator/mini_constant.py +1186 -0
- ctpbee_api/ctp_mini/generator/mini_md_header_define.h +13 -0
- ctpbee_api/ctp_mini/generator/mini_md_header_function.h +4 -0
- ctpbee_api/ctp_mini/generator/mini_md_header_on.h +26 -0
- ctpbee_api/ctp_mini/generator/mini_md_header_process.h +26 -0
- ctpbee_api/ctp_mini/generator/mini_md_source_function.cpp +29 -0
- ctpbee_api/ctp_mini/generator/mini_md_source_module.cpp +17 -0
- ctpbee_api/ctp_mini/generator/mini_md_source_on.cpp +156 -0
- ctpbee_api/ctp_mini/generator/mini_md_source_process.cpp +264 -0
- ctpbee_api/ctp_mini/generator/mini_md_source_switch.cpp +78 -0
- ctpbee_api/ctp_mini/generator/mini_md_source_task.cpp +203 -0
- ctpbee_api/ctp_mini/generator/mini_struct.py +4599 -0
- ctpbee_api/ctp_mini/generator/mini_td_header_define.h +63 -0
- ctpbee_api/ctp_mini/generator/mini_td_header_function.h +84 -0
- ctpbee_api/ctp_mini/generator/mini_td_header_on.h +126 -0
- ctpbee_api/ctp_mini/generator/mini_td_header_process.h +126 -0
- ctpbee_api/ctp_mini/generator/mini_td_source_function.cpp +663 -0
- ctpbee_api/ctp_mini/generator/mini_td_source_module.cpp +107 -0
- ctpbee_api/ctp_mini/generator/mini_td_source_on.cpp +756 -0
- ctpbee_api/ctp_mini/generator/mini_td_source_process.cpp +2492 -0
- ctpbee_api/ctp_mini/generator/mini_td_source_switch.cpp +378 -0
- ctpbee_api/ctp_mini/generator/mini_td_source_task.cpp +1193 -0
- ctpbee_api/ctp_mini/generator/mini_typedef.py +755 -0
- ctpbee_api/ctp_mini/generator/package/vnminimd.cpp +886 -0
- ctpbee_api/ctp_mini/generator/package/vnminimd.h +205 -0
- ctpbee_api/ctp_mini/include/new/mini/ThostFtdcMdApi.h +148 -0
- ctpbee_api/ctp_mini/include/new/mini/ThostFtdcTraderApi.h +419 -0
- ctpbee_api/ctp_mini/include/new/mini/ThostFtdcUserApiDataType.h +6458 -0
- ctpbee_api/ctp_mini/include/new/mini/ThostFtdcUserApiStruct.h +8890 -0
- ctpbee_api/ctp_mini/include/new/pybind11/attr.h +690 -0
- ctpbee_api/ctp_mini/include/new/pybind11/buffer_info.h +208 -0
- ctpbee_api/ctp_mini/include/new/pybind11/cast.h +1704 -0
- ctpbee_api/ctp_mini/include/new/pybind11/chrono.h +225 -0
- ctpbee_api/ctp_mini/include/new/pybind11/common.h +2 -0
- ctpbee_api/ctp_mini/include/new/pybind11/complex.h +74 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/class.h +743 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/common.h +1255 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/descr.h +171 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/init.h +434 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/internals.h +656 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/type_caster_base.h +1177 -0
- ctpbee_api/ctp_mini/include/new/pybind11/detail/typeid.h +65 -0
- ctpbee_api/ctp_mini/include/new/pybind11/eigen/common.h +9 -0
- ctpbee_api/ctp_mini/include/new/pybind11/eigen/matrix.h +714 -0
- ctpbee_api/ctp_mini/include/new/pybind11/eigen/tensor.h +516 -0
- ctpbee_api/ctp_mini/include/new/pybind11/eigen.h +12 -0
- ctpbee_api/ctp_mini/include/new/pybind11/embed.h +316 -0
- ctpbee_api/ctp_mini/include/new/pybind11/eval.h +156 -0
- ctpbee_api/ctp_mini/include/new/pybind11/functional.h +137 -0
- ctpbee_api/ctp_mini/include/new/pybind11/gil.h +239 -0
- ctpbee_api/ctp_mini/include/new/pybind11/iostream.h +265 -0
- ctpbee_api/ctp_mini/include/new/pybind11/numpy.h +1998 -0
- ctpbee_api/ctp_mini/include/new/pybind11/operators.h +202 -0
- ctpbee_api/ctp_mini/include/new/pybind11/options.h +92 -0
- ctpbee_api/ctp_mini/include/new/pybind11/pybind11.h +2890 -0
- ctpbee_api/ctp_mini/include/new/pybind11/pytypes.h +2557 -0
- ctpbee_api/ctp_mini/include/new/pybind11/stl/filesystem.h +116 -0
- ctpbee_api/ctp_mini/include/new/pybind11/stl.h +447 -0
- ctpbee_api/ctp_mini/include/new/pybind11/stl_bind.h +851 -0
- ctpbee_api/ctp_mini/include/new/pybind11/type_caster_pyobject_ptr.h +61 -0
- ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcMdApi.h +148 -0
- ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcTraderApi.h +419 -0
- ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcUserApiDataType.h +6458 -0
- ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcUserApiStruct.h +8890 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/attr.h +489 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/buffer_info.h +108 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/cast.h +2067 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/chrono.h +162 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/common.h +2 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/complex.h +61 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/detail/class.h +626 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/detail/common.h +803 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/detail/descr.h +185 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/detail/init.h +335 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/detail/internals.h +285 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/detail/typeid.h +53 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/eigen.h +604 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/embed.h +194 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/eval.h +117 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/functional.h +85 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/iostream.h +200 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/numpy.h +1601 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/operators.h +168 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/options.h +65 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/pybind11.h +1965 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/pytypes.h +1332 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/stl.h +376 -0
- ctpbee_api/ctp_mini/include/previous/pybind11/stl_bind.h +599 -0
- ctpbee_api/ctp_mini/libs/thostmduserapi.lib +0 -0
- ctpbee_api/ctp_mini/libs/thosttraderapi.lib +0 -0
- ctpbee_api/ctp_mini/libthostmduserapi.so +0 -0
- ctpbee_api/ctp_mini/libthosttraderapi.so +0 -0
- ctpbee_api/ctp_mini/mini_constant.py +1186 -0
- ctpbee_api/ctp_mini/thostmduserapi.dll +0 -0
- ctpbee_api/ctp_mini/thosttraderapi.dll +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_mini.h +146 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_mini.sln +41 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/dllmain.cpp +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/stdafx.cpp +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/stdafx.h +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/targetver.h +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.cpp +886 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.h +203 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.vcxproj +183 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.vcxproj.filters +54 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.vcxproj.user +4 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/dllmain.cpp +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/stdafx.cpp +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/stdafx.h +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/targetver.h +0 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.cpp +5716 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.h +680 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.vcxproj +180 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.vcxproj.filters +54 -0
- ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.vcxproj.user +4 -0
- ctpbee_api/ctp_mini/vnctp_minimd.cp310-win_amd64.pyd +0 -0
- ctpbee_api/ctp_mini/vnctp_minitd.cp310-win_amd64.pyd +0 -0
- ctpbee_api/ctp_mini/vnctp_minitd.lib +0 -0
- ctpbee_api/rohon/RohonBaseV64.dll +0 -0
- ctpbee_api/rohon/WinDataCollect.dll +0 -0
- ctpbee_api/rohon/__init__.py +3 -0
- ctpbee_api/rohon/generator/generate_api_functions.py +348 -0
- ctpbee_api/rohon/generator/generate_data_type.py +76 -0
- ctpbee_api/rohon/generator/generate_struct.py +84 -0
- ctpbee_api/rohon/generator/rohon_constant.py +1242 -0
- ctpbee_api/rohon/generator/rohon_md_header_define.h +13 -0
- ctpbee_api/rohon/generator/rohon_md_header_function.h +6 -0
- ctpbee_api/rohon/generator/rohon_md_header_on.h +26 -0
- ctpbee_api/rohon/generator/rohon_md_header_process.h +26 -0
- ctpbee_api/rohon/generator/rohon_md_source_function.cpp +40 -0
- ctpbee_api/rohon/generator/rohon_md_source_module.cpp +18 -0
- ctpbee_api/rohon/generator/rohon_md_source_on.cpp +156 -0
- ctpbee_api/rohon/generator/rohon_md_source_process.cpp +271 -0
- ctpbee_api/rohon/generator/rohon_md_source_switch.cpp +78 -0
- ctpbee_api/rohon/generator/rohon_md_source_task.cpp +211 -0
- ctpbee_api/rohon/generator/rohon_struct.py +4958 -0
- ctpbee_api/rohon/generator/rohon_td_header_define.h +125 -0
- ctpbee_api/rohon/generator/rohon_td_header_function.h +164 -0
- ctpbee_api/rohon/generator/rohon_td_header_on.h +250 -0
- ctpbee_api/rohon/generator/rohon_td_header_process.h +250 -0
- ctpbee_api/rohon/generator/rohon_td_source_function.cpp +1338 -0
- ctpbee_api/rohon/generator/rohon_td_source_module.cpp +209 -0
- ctpbee_api/rohon/generator/rohon_td_source_on.cpp +1500 -0
- ctpbee_api/rohon/generator/rohon_td_source_process.cpp +5125 -0
- ctpbee_api/rohon/generator/rohon_td_source_switch.cpp +750 -0
- ctpbee_api/rohon/generator/rohon_td_source_task.cpp +2339 -0
- ctpbee_api/rohon/generator/rohon_typedef.py +781 -0
- ctpbee_api/rohon/include/new/pybind11/attr.h +690 -0
- ctpbee_api/rohon/include/new/pybind11/buffer_info.h +208 -0
- ctpbee_api/rohon/include/new/pybind11/cast.h +1704 -0
- ctpbee_api/rohon/include/new/pybind11/chrono.h +225 -0
- ctpbee_api/rohon/include/new/pybind11/common.h +2 -0
- ctpbee_api/rohon/include/new/pybind11/complex.h +74 -0
- ctpbee_api/rohon/include/new/pybind11/detail/class.h +743 -0
- ctpbee_api/rohon/include/new/pybind11/detail/common.h +1255 -0
- ctpbee_api/rohon/include/new/pybind11/detail/descr.h +171 -0
- ctpbee_api/rohon/include/new/pybind11/detail/init.h +434 -0
- ctpbee_api/rohon/include/new/pybind11/detail/internals.h +656 -0
- ctpbee_api/rohon/include/new/pybind11/detail/type_caster_base.h +1177 -0
- ctpbee_api/rohon/include/new/pybind11/detail/typeid.h +65 -0
- ctpbee_api/rohon/include/new/pybind11/eigen/common.h +9 -0
- ctpbee_api/rohon/include/new/pybind11/eigen/matrix.h +714 -0
- ctpbee_api/rohon/include/new/pybind11/eigen/tensor.h +516 -0
- ctpbee_api/rohon/include/new/pybind11/eigen.h +12 -0
- ctpbee_api/rohon/include/new/pybind11/embed.h +316 -0
- ctpbee_api/rohon/include/new/pybind11/eval.h +156 -0
- ctpbee_api/rohon/include/new/pybind11/functional.h +137 -0
- ctpbee_api/rohon/include/new/pybind11/gil.h +239 -0
- ctpbee_api/rohon/include/new/pybind11/iostream.h +265 -0
- ctpbee_api/rohon/include/new/pybind11/numpy.h +1998 -0
- ctpbee_api/rohon/include/new/pybind11/operators.h +202 -0
- ctpbee_api/rohon/include/new/pybind11/options.h +92 -0
- ctpbee_api/rohon/include/new/pybind11/pybind11.h +2890 -0
- ctpbee_api/rohon/include/new/pybind11/pytypes.h +2557 -0
- ctpbee_api/rohon/include/new/pybind11/stl/filesystem.h +116 -0
- ctpbee_api/rohon/include/new/pybind11/stl.h +447 -0
- ctpbee_api/rohon/include/new/pybind11/stl_bind.h +851 -0
- ctpbee_api/rohon/include/new/pybind11/type_caster_pyobject_ptr.h +61 -0
- ctpbee_api/rohon/include/new/rohon/ThostFtdcMdApi.h +168 -0
- ctpbee_api/rohon/include/new/rohon/ThostFtdcTraderApi.h +739 -0
- ctpbee_api/rohon/include/new/rohon/ThostFtdcUserApiDataType.h +6708 -0
- ctpbee_api/rohon/include/new/rohon/ThostFtdcUserApiStruct.h +9580 -0
- ctpbee_api/rohon/include/previous/pybind11/attr.h +489 -0
- ctpbee_api/rohon/include/previous/pybind11/buffer_info.h +108 -0
- ctpbee_api/rohon/include/previous/pybind11/cast.h +2067 -0
- ctpbee_api/rohon/include/previous/pybind11/chrono.h +162 -0
- ctpbee_api/rohon/include/previous/pybind11/common.h +2 -0
- ctpbee_api/rohon/include/previous/pybind11/complex.h +61 -0
- ctpbee_api/rohon/include/previous/pybind11/detail/class.h +626 -0
- ctpbee_api/rohon/include/previous/pybind11/detail/common.h +803 -0
- ctpbee_api/rohon/include/previous/pybind11/detail/descr.h +185 -0
- ctpbee_api/rohon/include/previous/pybind11/detail/init.h +335 -0
- ctpbee_api/rohon/include/previous/pybind11/detail/internals.h +285 -0
- ctpbee_api/rohon/include/previous/pybind11/detail/typeid.h +53 -0
- ctpbee_api/rohon/include/previous/pybind11/eigen.h +604 -0
- ctpbee_api/rohon/include/previous/pybind11/embed.h +194 -0
- ctpbee_api/rohon/include/previous/pybind11/eval.h +117 -0
- ctpbee_api/rohon/include/previous/pybind11/functional.h +85 -0
- ctpbee_api/rohon/include/previous/pybind11/iostream.h +200 -0
- ctpbee_api/rohon/include/previous/pybind11/numpy.h +1601 -0
- ctpbee_api/rohon/include/previous/pybind11/operators.h +168 -0
- ctpbee_api/rohon/include/previous/pybind11/options.h +65 -0
- ctpbee_api/rohon/include/previous/pybind11/pybind11.h +1965 -0
- ctpbee_api/rohon/include/previous/pybind11/pytypes.h +1332 -0
- ctpbee_api/rohon/include/previous/pybind11/stl.h +376 -0
- ctpbee_api/rohon/include/previous/pybind11/stl_bind.h +599 -0
- ctpbee_api/rohon/include/previous/rohon/ThostFtdcMdApi.h +168 -0
- ctpbee_api/rohon/include/previous/rohon/ThostFtdcTraderApi.h +739 -0
- ctpbee_api/rohon/include/previous/rohon/ThostFtdcUserApiDataType.h +6708 -0
- ctpbee_api/rohon/include/previous/rohon/ThostFtdcUserApiStruct.h +9580 -0
- ctpbee_api/rohon/libLinuxDataCollect.so +0 -0
- ctpbee_api/rohon/librohonbase.so +0 -0
- ctpbee_api/rohon/librohonbase.so.1.1 +0 -0
- ctpbee_api/rohon/librohonbase.so.1.1.0.1 +0 -0
- ctpbee_api/rohon/libs/thostmduserapi_se.lib +0 -0
- ctpbee_api/rohon/libs/thosttraderapi_se.lib +0 -0
- ctpbee_api/rohon/libthostmduserapi_se.so +0 -0
- ctpbee_api/rohon/libthosttraderapi_se.so +0 -0
- ctpbee_api/rohon/rohon_constant.py +1242 -0
- ctpbee_api/rohon/thostmduserapi_se.dll +0 -0
- ctpbee_api/rohon/thosttraderapi_se.dll +0 -0
- ctpbee_api/rohon/vnrohon/.vs/vnrohon/v15/.suo +0 -0
- ctpbee_api/rohon/vnrohon/.vs/vnrohon/v15/Browse.VC.db +0 -0
- ctpbee_api/rohon/vnrohon/.vs/vnrohon/v15/Solution.VC.db +0 -0
- ctpbee_api/rohon/vnrohon/vnrohon.h +147 -0
- ctpbee_api/rohon/vnrohon/vnrohon.sln +41 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/dllmain.cpp +19 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/framework.h +5 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/pch.cpp +5 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/pch.h +13 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.cpp +931 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.h +207 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.vcxproj +188 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.vcxproj.filters +54 -0
- ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.vcxproj.user +4 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/dllmain.cpp +19 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/framework.h +5 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/pch.cpp +5 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/pch.h +13 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.cpp +11395 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.h +1259 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj +188 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj.filters +54 -0
- ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj.user +4 -0
- ctpbee_api/rohon/vnrohonmd.cp310-win_amd64.pyd +0 -0
- ctpbee_api/rohon/vnrohontd.cp310-win_amd64.pyd +0 -0
- ctpbee_opt_api-0.1.0.dist-info/METADATA +46 -0
- ctpbee_opt_api-0.1.0.dist-info/RECORD +414 -0
- ctpbee_opt_api-0.1.0.dist-info/WHEEL +5 -0
- ctpbee_opt_api-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,663 @@
|
|
|
1
|
+
int TdApi::reqAuthenticate(const dict &req, int reqid)
|
|
2
|
+
{
|
|
3
|
+
CThostFtdcReqAuthenticateField myreq = CThostFtdcReqAuthenticateField();
|
|
4
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
5
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
6
|
+
getString(req, "UserID", myreq.UserID);
|
|
7
|
+
getString(req, "UserProductInfo", myreq.UserProductInfo);
|
|
8
|
+
getString(req, "AuthCode", myreq.AuthCode);
|
|
9
|
+
getString(req, "AppID", myreq.AppID);
|
|
10
|
+
int i = this->api->ReqAuthenticate(&myreq, reqid);
|
|
11
|
+
return i;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
int TdApi::reqUserLogin(const dict &req, int reqid)
|
|
15
|
+
{
|
|
16
|
+
CThostFtdcReqUserLoginField myreq = CThostFtdcReqUserLoginField();
|
|
17
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
18
|
+
getString(req, "TradingDay", myreq.TradingDay);
|
|
19
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
20
|
+
getString(req, "UserID", myreq.UserID);
|
|
21
|
+
getString(req, "Password", myreq.Password);
|
|
22
|
+
getString(req, "UserProductInfo", myreq.UserProductInfo);
|
|
23
|
+
getString(req, "InterfaceProductInfo", myreq.InterfaceProductInfo);
|
|
24
|
+
getString(req, "ProtocolInfo", myreq.ProtocolInfo);
|
|
25
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
26
|
+
getString(req, "OneTimePassword", myreq.OneTimePassword);
|
|
27
|
+
getString(req, "ClientIPAddress", myreq.ClientIPAddress);
|
|
28
|
+
getString(req, "LoginRemark", myreq.LoginRemark);
|
|
29
|
+
int i = this->api->ReqUserLogin(&myreq, reqid);
|
|
30
|
+
return i;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
int TdApi::reqUserLoginEncrypt(const dict &req, int reqid)
|
|
34
|
+
{
|
|
35
|
+
CThostFtdcReqUserLoginField myreq = CThostFtdcReqUserLoginField();
|
|
36
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
37
|
+
getString(req, "TradingDay", myreq.TradingDay);
|
|
38
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
39
|
+
getString(req, "UserID", myreq.UserID);
|
|
40
|
+
getString(req, "Password", myreq.Password);
|
|
41
|
+
getString(req, "UserProductInfo", myreq.UserProductInfo);
|
|
42
|
+
getString(req, "InterfaceProductInfo", myreq.InterfaceProductInfo);
|
|
43
|
+
getString(req, "ProtocolInfo", myreq.ProtocolInfo);
|
|
44
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
45
|
+
getString(req, "OneTimePassword", myreq.OneTimePassword);
|
|
46
|
+
getString(req, "ClientIPAddress", myreq.ClientIPAddress);
|
|
47
|
+
getString(req, "LoginRemark", myreq.LoginRemark);
|
|
48
|
+
int i = this->api->ReqUserLoginEncrypt(&myreq, reqid);
|
|
49
|
+
return i;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
int TdApi::reqUserLogout(const dict &req, int reqid)
|
|
53
|
+
{
|
|
54
|
+
CThostFtdcUserLogoutField myreq = CThostFtdcUserLogoutField();
|
|
55
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
56
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
57
|
+
getString(req, "UserID", myreq.UserID);
|
|
58
|
+
int i = this->api->ReqUserLogout(&myreq, reqid);
|
|
59
|
+
return i;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
int TdApi::reqOrderInsert(const dict &req, int reqid)
|
|
63
|
+
{
|
|
64
|
+
CThostFtdcInputOrderField myreq = CThostFtdcInputOrderField();
|
|
65
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
66
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
67
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
68
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
69
|
+
getString(req, "OrderRef", myreq.OrderRef);
|
|
70
|
+
getString(req, "UserID", myreq.UserID);
|
|
71
|
+
getChar(req, "OrderPriceType", &myreq.OrderPriceType);
|
|
72
|
+
getChar(req, "Direction", &myreq.Direction);
|
|
73
|
+
getString(req, "CombOffsetFlag", myreq.CombOffsetFlag);
|
|
74
|
+
getString(req, "CombHedgeFlag", myreq.CombHedgeFlag);
|
|
75
|
+
getDouble(req, "LimitPrice", &myreq.LimitPrice);
|
|
76
|
+
getInt(req, "VolumeTotalOriginal", &myreq.VolumeTotalOriginal);
|
|
77
|
+
getChar(req, "TimeCondition", &myreq.TimeCondition);
|
|
78
|
+
getString(req, "GTDDate", myreq.GTDDate);
|
|
79
|
+
getChar(req, "VolumeCondition", &myreq.VolumeCondition);
|
|
80
|
+
getInt(req, "MinVolume", &myreq.MinVolume);
|
|
81
|
+
getChar(req, "ContingentCondition", &myreq.ContingentCondition);
|
|
82
|
+
getDouble(req, "StopPrice", &myreq.StopPrice);
|
|
83
|
+
getChar(req, "ForceCloseReason", &myreq.ForceCloseReason);
|
|
84
|
+
getInt(req, "IsAutoSuspend", &myreq.IsAutoSuspend);
|
|
85
|
+
getString(req, "BusinessUnit", myreq.BusinessUnit);
|
|
86
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
87
|
+
getInt(req, "UserForceClose", &myreq.UserForceClose);
|
|
88
|
+
getInt(req, "IsSwapOrder", &myreq.IsSwapOrder);
|
|
89
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
90
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
91
|
+
getString(req, "AccountID", myreq.AccountID);
|
|
92
|
+
getString(req, "CurrencyID", myreq.CurrencyID);
|
|
93
|
+
getString(req, "ClientID", myreq.ClientID);
|
|
94
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
95
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
96
|
+
int i = this->api->ReqOrderInsert(&myreq, reqid);
|
|
97
|
+
return i;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
int TdApi::reqOrderAction(const dict &req, int reqid)
|
|
101
|
+
{
|
|
102
|
+
CThostFtdcInputOrderActionField myreq = CThostFtdcInputOrderActionField();
|
|
103
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
104
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
105
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
106
|
+
getInt(req, "OrderActionRef", &myreq.OrderActionRef);
|
|
107
|
+
getString(req, "OrderRef", myreq.OrderRef);
|
|
108
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
109
|
+
getInt(req, "FrontID", &myreq.FrontID);
|
|
110
|
+
getInt(req, "SessionID", &myreq.SessionID);
|
|
111
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
112
|
+
getString(req, "OrderSysID", myreq.OrderSysID);
|
|
113
|
+
getChar(req, "ActionFlag", &myreq.ActionFlag);
|
|
114
|
+
getDouble(req, "LimitPrice", &myreq.LimitPrice);
|
|
115
|
+
getInt(req, "VolumeChange", &myreq.VolumeChange);
|
|
116
|
+
getString(req, "UserID", myreq.UserID);
|
|
117
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
118
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
119
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
120
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
121
|
+
int i = this->api->ReqOrderAction(&myreq, reqid);
|
|
122
|
+
return i;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
int TdApi::reqExecOrderInsert(const dict &req, int reqid)
|
|
126
|
+
{
|
|
127
|
+
CThostFtdcInputExecOrderField myreq = CThostFtdcInputExecOrderField();
|
|
128
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
129
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
130
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
131
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
132
|
+
getString(req, "ExecOrderRef", myreq.ExecOrderRef);
|
|
133
|
+
getString(req, "UserID", myreq.UserID);
|
|
134
|
+
getInt(req, "Volume", &myreq.Volume);
|
|
135
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
136
|
+
getString(req, "BusinessUnit", myreq.BusinessUnit);
|
|
137
|
+
getChar(req, "OffsetFlag", &myreq.OffsetFlag);
|
|
138
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
139
|
+
getChar(req, "ActionType", &myreq.ActionType);
|
|
140
|
+
getChar(req, "PosiDirection", &myreq.PosiDirection);
|
|
141
|
+
getChar(req, "ReservePositionFlag", &myreq.ReservePositionFlag);
|
|
142
|
+
getChar(req, "CloseFlag", &myreq.CloseFlag);
|
|
143
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
144
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
145
|
+
getString(req, "AccountID", myreq.AccountID);
|
|
146
|
+
getString(req, "CurrencyID", myreq.CurrencyID);
|
|
147
|
+
getString(req, "ClientID", myreq.ClientID);
|
|
148
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
149
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
150
|
+
int i = this->api->ReqExecOrderInsert(&myreq, reqid);
|
|
151
|
+
return i;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
int TdApi::reqExecOrderAction(const dict &req, int reqid)
|
|
155
|
+
{
|
|
156
|
+
CThostFtdcInputExecOrderActionField myreq = CThostFtdcInputExecOrderActionField();
|
|
157
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
158
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
159
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
160
|
+
getInt(req, "ExecOrderActionRef", &myreq.ExecOrderActionRef);
|
|
161
|
+
getString(req, "ExecOrderRef", myreq.ExecOrderRef);
|
|
162
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
163
|
+
getInt(req, "FrontID", &myreq.FrontID);
|
|
164
|
+
getInt(req, "SessionID", &myreq.SessionID);
|
|
165
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
166
|
+
getString(req, "ExecOrderSysID", myreq.ExecOrderSysID);
|
|
167
|
+
getChar(req, "ActionFlag", &myreq.ActionFlag);
|
|
168
|
+
getString(req, "UserID", myreq.UserID);
|
|
169
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
170
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
171
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
172
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
173
|
+
int i = this->api->ReqExecOrderAction(&myreq, reqid);
|
|
174
|
+
return i;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
int TdApi::reqForQuoteInsert(const dict &req, int reqid)
|
|
178
|
+
{
|
|
179
|
+
CThostFtdcInputForQuoteField myreq = CThostFtdcInputForQuoteField();
|
|
180
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
181
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
182
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
183
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
184
|
+
getString(req, "ForQuoteRef", myreq.ForQuoteRef);
|
|
185
|
+
getString(req, "UserID", myreq.UserID);
|
|
186
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
187
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
188
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
189
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
190
|
+
getString(req, "BusinessUnit", myreq.BusinessUnit);
|
|
191
|
+
int i = this->api->ReqForQuoteInsert(&myreq, reqid);
|
|
192
|
+
return i;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
int TdApi::reqQuoteInsert(const dict &req, int reqid)
|
|
196
|
+
{
|
|
197
|
+
CThostFtdcInputQuoteField myreq = CThostFtdcInputQuoteField();
|
|
198
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
199
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
200
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
201
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
202
|
+
getString(req, "QuoteRef", myreq.QuoteRef);
|
|
203
|
+
getString(req, "UserID", myreq.UserID);
|
|
204
|
+
getDouble(req, "AskPrice", &myreq.AskPrice);
|
|
205
|
+
getDouble(req, "BidPrice", &myreq.BidPrice);
|
|
206
|
+
getInt(req, "AskVolume", &myreq.AskVolume);
|
|
207
|
+
getInt(req, "BidVolume", &myreq.BidVolume);
|
|
208
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
209
|
+
getString(req, "BusinessUnit", myreq.BusinessUnit);
|
|
210
|
+
getChar(req, "AskOffsetFlag", &myreq.AskOffsetFlag);
|
|
211
|
+
getChar(req, "BidOffsetFlag", &myreq.BidOffsetFlag);
|
|
212
|
+
getChar(req, "AskHedgeFlag", &myreq.AskHedgeFlag);
|
|
213
|
+
getChar(req, "BidHedgeFlag", &myreq.BidHedgeFlag);
|
|
214
|
+
getString(req, "AskOrderRef", myreq.AskOrderRef);
|
|
215
|
+
getString(req, "BidOrderRef", myreq.BidOrderRef);
|
|
216
|
+
getString(req, "ForQuoteSysID", myreq.ForQuoteSysID);
|
|
217
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
218
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
219
|
+
getString(req, "ClientID", myreq.ClientID);
|
|
220
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
221
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
222
|
+
getString(req, "ReplaceSysID", myreq.ReplaceSysID);
|
|
223
|
+
int i = this->api->ReqQuoteInsert(&myreq, reqid);
|
|
224
|
+
return i;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
int TdApi::reqQuoteAction(const dict &req, int reqid)
|
|
228
|
+
{
|
|
229
|
+
CThostFtdcInputQuoteActionField myreq = CThostFtdcInputQuoteActionField();
|
|
230
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
231
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
232
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
233
|
+
getInt(req, "QuoteActionRef", &myreq.QuoteActionRef);
|
|
234
|
+
getString(req, "QuoteRef", myreq.QuoteRef);
|
|
235
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
236
|
+
getInt(req, "FrontID", &myreq.FrontID);
|
|
237
|
+
getInt(req, "SessionID", &myreq.SessionID);
|
|
238
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
239
|
+
getString(req, "QuoteSysID", myreq.QuoteSysID);
|
|
240
|
+
getChar(req, "ActionFlag", &myreq.ActionFlag);
|
|
241
|
+
getString(req, "UserID", myreq.UserID);
|
|
242
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
243
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
244
|
+
getString(req, "ClientID", myreq.ClientID);
|
|
245
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
246
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
247
|
+
int i = this->api->ReqQuoteAction(&myreq, reqid);
|
|
248
|
+
return i;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
int TdApi::reqBatchOrderAction(const dict &req, int reqid)
|
|
252
|
+
{
|
|
253
|
+
CThostFtdcInputBatchOrderActionField myreq = CThostFtdcInputBatchOrderActionField();
|
|
254
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
255
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
256
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
257
|
+
getInt(req, "OrderActionRef", &myreq.OrderActionRef);
|
|
258
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
259
|
+
getInt(req, "FrontID", &myreq.FrontID);
|
|
260
|
+
getInt(req, "SessionID", &myreq.SessionID);
|
|
261
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
262
|
+
getString(req, "UserID", myreq.UserID);
|
|
263
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
264
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
265
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
266
|
+
int i = this->api->ReqBatchOrderAction(&myreq, reqid);
|
|
267
|
+
return i;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
int TdApi::reqOptionSelfCloseInsert(const dict &req, int reqid)
|
|
271
|
+
{
|
|
272
|
+
CThostFtdcInputOptionSelfCloseField myreq = CThostFtdcInputOptionSelfCloseField();
|
|
273
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
274
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
275
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
276
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
277
|
+
getString(req, "OptionSelfCloseRef", myreq.OptionSelfCloseRef);
|
|
278
|
+
getString(req, "UserID", myreq.UserID);
|
|
279
|
+
getInt(req, "Volume", &myreq.Volume);
|
|
280
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
281
|
+
getString(req, "BusinessUnit", myreq.BusinessUnit);
|
|
282
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
283
|
+
getChar(req, "OptSelfCloseFlag", &myreq.OptSelfCloseFlag);
|
|
284
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
285
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
286
|
+
getString(req, "AccountID", myreq.AccountID);
|
|
287
|
+
getString(req, "CurrencyID", myreq.CurrencyID);
|
|
288
|
+
getString(req, "ClientID", myreq.ClientID);
|
|
289
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
290
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
291
|
+
int i = this->api->ReqOptionSelfCloseInsert(&myreq, reqid);
|
|
292
|
+
return i;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
int TdApi::reqOptionSelfCloseAction(const dict &req, int reqid)
|
|
296
|
+
{
|
|
297
|
+
CThostFtdcInputOptionSelfCloseActionField myreq = CThostFtdcInputOptionSelfCloseActionField();
|
|
298
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
299
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
300
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
301
|
+
getInt(req, "OptionSelfCloseActionRef", &myreq.OptionSelfCloseActionRef);
|
|
302
|
+
getString(req, "OptionSelfCloseRef", myreq.OptionSelfCloseRef);
|
|
303
|
+
getInt(req, "RequestID", &myreq.RequestID);
|
|
304
|
+
getInt(req, "FrontID", &myreq.FrontID);
|
|
305
|
+
getInt(req, "SessionID", &myreq.SessionID);
|
|
306
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
307
|
+
getString(req, "OptionSelfCloseSysID", myreq.OptionSelfCloseSysID);
|
|
308
|
+
getChar(req, "ActionFlag", &myreq.ActionFlag);
|
|
309
|
+
getString(req, "UserID", myreq.UserID);
|
|
310
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
311
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
312
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
313
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
314
|
+
int i = this->api->ReqOptionSelfCloseAction(&myreq, reqid);
|
|
315
|
+
return i;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
int TdApi::reqCombActionInsert(const dict &req, int reqid)
|
|
319
|
+
{
|
|
320
|
+
CThostFtdcInputCombActionField myreq = CThostFtdcInputCombActionField();
|
|
321
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
322
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
323
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
324
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
325
|
+
getString(req, "CombActionRef", myreq.CombActionRef);
|
|
326
|
+
getString(req, "UserID", myreq.UserID);
|
|
327
|
+
getChar(req, "Direction", &myreq.Direction);
|
|
328
|
+
getInt(req, "Volume", &myreq.Volume);
|
|
329
|
+
getChar(req, "CombDirection", &myreq.CombDirection);
|
|
330
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
331
|
+
getString(req, "BusinessUnit", myreq.BusinessUnit);
|
|
332
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
333
|
+
getString(req, "IPAddress", myreq.IPAddress);
|
|
334
|
+
getString(req, "MacAddress", myreq.MacAddress);
|
|
335
|
+
getString(req, "InvestUnitID", myreq.InvestUnitID);
|
|
336
|
+
getInt(req, "FrontID", &myreq.FrontID);
|
|
337
|
+
getInt(req, "SessionID", &myreq.SessionID);
|
|
338
|
+
int i = this->api->ReqCombActionInsert(&myreq, reqid);
|
|
339
|
+
return i;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
int TdApi::reqQryOrder(const dict &req, int reqid)
|
|
343
|
+
{
|
|
344
|
+
CThostFtdcQryOrderField myreq = CThostFtdcQryOrderField();
|
|
345
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
346
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
347
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
348
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
349
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
350
|
+
getString(req, "OrderSysID", myreq.OrderSysID);
|
|
351
|
+
getString(req, "InsertTimeStart", myreq.InsertTimeStart);
|
|
352
|
+
getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
|
|
353
|
+
int i = this->api->ReqQryOrder(&myreq, reqid);
|
|
354
|
+
return i;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
int TdApi::reqQryTrade(const dict &req, int reqid)
|
|
358
|
+
{
|
|
359
|
+
CThostFtdcQryTradeField myreq = CThostFtdcQryTradeField();
|
|
360
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
361
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
362
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
363
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
364
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
365
|
+
getString(req, "TradeID", myreq.TradeID);
|
|
366
|
+
getString(req, "TradeTimeStart", myreq.TradeTimeStart);
|
|
367
|
+
getString(req, "TradeTimeEnd", myreq.TradeTimeEnd);
|
|
368
|
+
int i = this->api->ReqQryTrade(&myreq, reqid);
|
|
369
|
+
return i;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
int TdApi::reqQryInvestorPosition(const dict &req, int reqid)
|
|
373
|
+
{
|
|
374
|
+
CThostFtdcQryInvestorPositionField myreq = CThostFtdcQryInvestorPositionField();
|
|
375
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
376
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
377
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
378
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
379
|
+
int i = this->api->ReqQryInvestorPosition(&myreq, reqid);
|
|
380
|
+
return i;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
int TdApi::reqQryTradingAccount(const dict &req, int reqid)
|
|
384
|
+
{
|
|
385
|
+
CThostFtdcQryTradingAccountField myreq = CThostFtdcQryTradingAccountField();
|
|
386
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
387
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
388
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
389
|
+
getString(req, "CurrencyID", myreq.CurrencyID);
|
|
390
|
+
int i = this->api->ReqQryTradingAccount(&myreq, reqid);
|
|
391
|
+
return i;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
int TdApi::reqQryInvestor(const dict &req, int reqid)
|
|
395
|
+
{
|
|
396
|
+
CThostFtdcQryInvestorField myreq = CThostFtdcQryInvestorField();
|
|
397
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
398
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
399
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
400
|
+
int i = this->api->ReqQryInvestor(&myreq, reqid);
|
|
401
|
+
return i;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
int TdApi::reqQryTradingCode(const dict &req, int reqid)
|
|
405
|
+
{
|
|
406
|
+
CThostFtdcQryTradingCodeField myreq = CThostFtdcQryTradingCodeField();
|
|
407
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
408
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
409
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
410
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
411
|
+
getString(req, "ClientID", myreq.ClientID);
|
|
412
|
+
getChar(req, "ClientIDType", &myreq.ClientIDType);
|
|
413
|
+
int i = this->api->ReqQryTradingCode(&myreq, reqid);
|
|
414
|
+
return i;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
int TdApi::reqQryInstrumentMarginRate(const dict &req, int reqid)
|
|
418
|
+
{
|
|
419
|
+
CThostFtdcQryInstrumentMarginRateField myreq = CThostFtdcQryInstrumentMarginRateField();
|
|
420
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
421
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
422
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
423
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
424
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
425
|
+
int i = this->api->ReqQryInstrumentMarginRate(&myreq, reqid);
|
|
426
|
+
return i;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
int TdApi::reqQryInstrumentCommissionRate(const dict &req, int reqid)
|
|
430
|
+
{
|
|
431
|
+
CThostFtdcQryInstrumentCommissionRateField myreq = CThostFtdcQryInstrumentCommissionRateField();
|
|
432
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
433
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
434
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
435
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
436
|
+
int i = this->api->ReqQryInstrumentCommissionRate(&myreq, reqid);
|
|
437
|
+
return i;
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
int TdApi::reqQryExchange(const dict &req, int reqid)
|
|
441
|
+
{
|
|
442
|
+
CThostFtdcQryExchangeField myreq = CThostFtdcQryExchangeField();
|
|
443
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
444
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
445
|
+
int i = this->api->ReqQryExchange(&myreq, reqid);
|
|
446
|
+
return i;
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
int TdApi::reqQryProduct(const dict &req, int reqid)
|
|
450
|
+
{
|
|
451
|
+
CThostFtdcQryProductField myreq = CThostFtdcQryProductField();
|
|
452
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
453
|
+
getString(req, "ProductID", myreq.ProductID);
|
|
454
|
+
getChar(req, "ProductClass", &myreq.ProductClass);
|
|
455
|
+
int i = this->api->ReqQryProduct(&myreq, reqid);
|
|
456
|
+
return i;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
int TdApi::reqQryInstrument(const dict &req, int reqid)
|
|
460
|
+
{
|
|
461
|
+
CThostFtdcQryInstrumentField myreq = CThostFtdcQryInstrumentField();
|
|
462
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
463
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
464
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
465
|
+
getString(req, "ExchangeInstID", myreq.ExchangeInstID);
|
|
466
|
+
getString(req, "ProductID", myreq.ProductID);
|
|
467
|
+
int i = this->api->ReqQryInstrument(&myreq, reqid);
|
|
468
|
+
return i;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
int TdApi::reqQryCombInstrument(const dict &req, int reqid)
|
|
472
|
+
{
|
|
473
|
+
CThostFtdcQryCombInstrumentField myreq = CThostFtdcQryCombInstrumentField();
|
|
474
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
475
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
476
|
+
getString(req, "ProductID", myreq.ProductID);
|
|
477
|
+
int i = this->api->ReqQryCombInstrument(&myreq, reqid);
|
|
478
|
+
return i;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
int TdApi::reqQryInvestorPositionForComb(const dict &req, int reqid)
|
|
482
|
+
{
|
|
483
|
+
CThostFtdcQryInvestorPositionForCombField myreq = CThostFtdcQryInvestorPositionForCombField();
|
|
484
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
485
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
486
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
487
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
488
|
+
getString(req, "LegInstrumentID", myreq.LegInstrumentID);
|
|
489
|
+
int i = this->api->ReqQryInvestorPositionForComb(&myreq, reqid);
|
|
490
|
+
return i;
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
int TdApi::reqQryCombAction(const dict &req, int reqid)
|
|
494
|
+
{
|
|
495
|
+
CThostFtdcQryCombActionField myreq = CThostFtdcQryCombActionField();
|
|
496
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
497
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
498
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
499
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
500
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
501
|
+
int i = this->api->ReqQryCombAction(&myreq, reqid);
|
|
502
|
+
return i;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
int TdApi::reqQryDepthMarketData(const dict &req, int reqid)
|
|
506
|
+
{
|
|
507
|
+
CThostFtdcQryDepthMarketDataField myreq = CThostFtdcQryDepthMarketDataField();
|
|
508
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
509
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
510
|
+
int i = this->api->ReqQryDepthMarketData(&myreq, reqid);
|
|
511
|
+
return i;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
int TdApi::reqQryOptionSelfClose(const dict &req, int reqid)
|
|
515
|
+
{
|
|
516
|
+
CThostFtdcQryOptionSelfCloseField myreq = CThostFtdcQryOptionSelfCloseField();
|
|
517
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
518
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
519
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
520
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
521
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
522
|
+
getString(req, "OptionSelfCloseSysID", myreq.OptionSelfCloseSysID);
|
|
523
|
+
getString(req, "InsertTimeStart", myreq.InsertTimeStart);
|
|
524
|
+
getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
|
|
525
|
+
int i = this->api->ReqQryOptionSelfClose(&myreq, reqid);
|
|
526
|
+
return i;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
int TdApi::reqQryInstrumentStatus(const dict &req, int reqid)
|
|
530
|
+
{
|
|
531
|
+
CThostFtdcQryInstrumentStatusField myreq = CThostFtdcQryInstrumentStatusField();
|
|
532
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
533
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
534
|
+
getString(req, "ExchangeInstID", myreq.ExchangeInstID);
|
|
535
|
+
int i = this->api->ReqQryInstrumentStatus(&myreq, reqid);
|
|
536
|
+
return i;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
int TdApi::reqQryInvestorPositionDetail(const dict &req, int reqid)
|
|
540
|
+
{
|
|
541
|
+
CThostFtdcQryInvestorPositionDetailField myreq = CThostFtdcQryInvestorPositionDetailField();
|
|
542
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
543
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
544
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
545
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
546
|
+
int i = this->api->ReqQryInvestorPositionDetail(&myreq, reqid);
|
|
547
|
+
return i;
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
int TdApi::reqQryInvestorPositionCombineDetail(const dict &req, int reqid)
|
|
551
|
+
{
|
|
552
|
+
CThostFtdcQryInvestorPositionCombineDetailField myreq = CThostFtdcQryInvestorPositionCombineDetailField();
|
|
553
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
554
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
555
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
556
|
+
getString(req, "CombInstrumentID", myreq.CombInstrumentID);
|
|
557
|
+
int i = this->api->ReqQryInvestorPositionCombineDetail(&myreq, reqid);
|
|
558
|
+
return i;
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
int TdApi::reqQryExchangeMarginRate(const dict &req, int reqid)
|
|
562
|
+
{
|
|
563
|
+
CThostFtdcQryExchangeMarginRateField myreq = CThostFtdcQryExchangeMarginRateField();
|
|
564
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
565
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
566
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
567
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
568
|
+
int i = this->api->ReqQryExchangeMarginRate(&myreq, reqid);
|
|
569
|
+
return i;
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
int TdApi::reqQryExchangeMarginRateAdjust(const dict &req, int reqid)
|
|
573
|
+
{
|
|
574
|
+
CThostFtdcQryExchangeMarginRateAdjustField myreq = CThostFtdcQryExchangeMarginRateAdjustField();
|
|
575
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
576
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
577
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
578
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
579
|
+
int i = this->api->ReqQryExchangeMarginRateAdjust(&myreq, reqid);
|
|
580
|
+
return i;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
int TdApi::reqQryOptionInstrTradeCost(const dict &req, int reqid)
|
|
584
|
+
{
|
|
585
|
+
CThostFtdcQryOptionInstrTradeCostField myreq = CThostFtdcQryOptionInstrTradeCostField();
|
|
586
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
587
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
588
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
589
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
590
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
591
|
+
getDouble(req, "InputPrice", &myreq.InputPrice);
|
|
592
|
+
getDouble(req, "UnderlyingPrice", &myreq.UnderlyingPrice);
|
|
593
|
+
int i = this->api->ReqQryOptionInstrTradeCost(&myreq, reqid);
|
|
594
|
+
return i;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
int TdApi::reqQryOptionInstrCommRate(const dict &req, int reqid)
|
|
598
|
+
{
|
|
599
|
+
CThostFtdcQryOptionInstrCommRateField myreq = CThostFtdcQryOptionInstrCommRateField();
|
|
600
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
601
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
602
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
603
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
604
|
+
int i = this->api->ReqQryOptionInstrCommRate(&myreq, reqid);
|
|
605
|
+
return i;
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
int TdApi::reqQryExecOrder(const dict &req, int reqid)
|
|
609
|
+
{
|
|
610
|
+
CThostFtdcQryExecOrderField myreq = CThostFtdcQryExecOrderField();
|
|
611
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
612
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
613
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
614
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
615
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
616
|
+
getString(req, "ExecOrderSysID", myreq.ExecOrderSysID);
|
|
617
|
+
getString(req, "InsertTimeStart", myreq.InsertTimeStart);
|
|
618
|
+
getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
|
|
619
|
+
int i = this->api->ReqQryExecOrder(&myreq, reqid);
|
|
620
|
+
return i;
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
int TdApi::reqQryForQuote(const dict &req, int reqid)
|
|
624
|
+
{
|
|
625
|
+
CThostFtdcQryForQuoteField myreq = CThostFtdcQryForQuoteField();
|
|
626
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
627
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
628
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
629
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
630
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
631
|
+
getString(req, "InsertTimeStart", myreq.InsertTimeStart);
|
|
632
|
+
getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
|
|
633
|
+
int i = this->api->ReqQryForQuote(&myreq, reqid);
|
|
634
|
+
return i;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
int TdApi::reqQryQuote(const dict &req, int reqid)
|
|
638
|
+
{
|
|
639
|
+
CThostFtdcQryQuoteField myreq = CThostFtdcQryQuoteField();
|
|
640
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
641
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
642
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
643
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
644
|
+
getString(req, "ExchangeID", myreq.ExchangeID);
|
|
645
|
+
getString(req, "QuoteSysID", myreq.QuoteSysID);
|
|
646
|
+
getString(req, "InsertTimeStart", myreq.InsertTimeStart);
|
|
647
|
+
getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
|
|
648
|
+
int i = this->api->ReqQryQuote(&myreq, reqid);
|
|
649
|
+
return i;
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
int TdApi::reqQryInstrumentOrderCommRate(const dict &req, int reqid)
|
|
653
|
+
{
|
|
654
|
+
CThostFtdcQryInstrumentOrderCommRateField myreq = CThostFtdcQryInstrumentOrderCommRateField();
|
|
655
|
+
memset(&myreq, 0, sizeof(myreq));
|
|
656
|
+
getString(req, "BrokerID", myreq.BrokerID);
|
|
657
|
+
getString(req, "InvestorID", myreq.InvestorID);
|
|
658
|
+
getString(req, "InstrumentID", myreq.InstrumentID);
|
|
659
|
+
getChar(req, "HedgeFlag", &myreq.HedgeFlag);
|
|
660
|
+
int i = this->api->ReqQryInstrumentOrderCommRate(&myreq, reqid);
|
|
661
|
+
return i;
|
|
662
|
+
};
|
|
663
|
+
|