ctpbee-opt-api 0.1.0__cp312-cp312-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.
Files changed (414) hide show
  1. ctpbee_api/__init__.py +17 -0
  2. ctpbee_api/ctp/__init__.py +3 -0
  3. ctpbee_api/ctp/ctp_constant.py +1253 -0
  4. ctpbee_api/ctp/generator/concat.py +93 -0
  5. ctpbee_api/ctp/generator/const.py +325 -0
  6. ctpbee_api/ctp/generator/ctp_constant.py +1274 -0
  7. ctpbee_api/ctp/generator/ctp_md_header_define.h +13 -0
  8. ctpbee_api/ctp/generator/ctp_md_header_function.h +6 -0
  9. ctpbee_api/ctp/generator/ctp_md_header_on.h +26 -0
  10. ctpbee_api/ctp/generator/ctp_md_header_process.h +26 -0
  11. ctpbee_api/ctp/generator/ctp_md_source_function.cpp +42 -0
  12. ctpbee_api/ctp/generator/ctp_md_source_module.cpp +18 -0
  13. ctpbee_api/ctp/generator/ctp_md_source_on.cpp +156 -0
  14. ctpbee_api/ctp/generator/ctp_md_source_process.cpp +282 -0
  15. ctpbee_api/ctp/generator/ctp_md_source_switch.cpp +78 -0
  16. ctpbee_api/ctp/generator/ctp_md_source_task.cpp +211 -0
  17. ctpbee_api/ctp/generator/ctp_struct.py +5640 -0
  18. ctpbee_api/ctp/generator/ctp_td_header_define.h +130 -0
  19. ctpbee_api/ctp/generator/ctp_td_header_function.h +174 -0
  20. ctpbee_api/ctp/generator/ctp_td_header_on.h +260 -0
  21. ctpbee_api/ctp/generator/ctp_td_header_process.h +260 -0
  22. ctpbee_api/ctp/generator/ctp_td_source_function.cpp +1456 -0
  23. ctpbee_api/ctp/generator/ctp_td_source_module.cpp +222 -0
  24. ctpbee_api/ctp/generator/ctp_td_source_on.cpp +1572 -0
  25. ctpbee_api/ctp/generator/ctp_td_source_process.cpp +5472 -0
  26. ctpbee_api/ctp/generator/ctp_td_source_switch.cpp +780 -0
  27. ctpbee_api/ctp/generator/ctp_td_source_task.cpp +2444 -0
  28. ctpbee_api/ctp/generator/ctp_typedef.py +800 -0
  29. ctpbee_api/ctp/generator/generate_api_functions.py +345 -0
  30. ctpbee_api/ctp/generator/generate_data_type.py +76 -0
  31. ctpbee_api/ctp/generator/generate_struct.py +84 -0
  32. ctpbee_api/ctp/include/mac/ctp/ThostFtdcMdApi.h +168 -0
  33. ctpbee_api/ctp/include/mac/ctp/ThostFtdcTraderApi.h +770 -0
  34. ctpbee_api/ctp/include/mac/ctp/ThostFtdcUserApiDataType.h +6878 -0
  35. ctpbee_api/ctp/include/mac/ctp/ThostFtdcUserApiStruct.h +10915 -0
  36. ctpbee_api/ctp/include/mac/pybind11/attr.h +690 -0
  37. ctpbee_api/ctp/include/mac/pybind11/buffer_info.h +208 -0
  38. ctpbee_api/ctp/include/mac/pybind11/cast.h +1704 -0
  39. ctpbee_api/ctp/include/mac/pybind11/chrono.h +225 -0
  40. ctpbee_api/ctp/include/mac/pybind11/common.h +2 -0
  41. ctpbee_api/ctp/include/mac/pybind11/complex.h +74 -0
  42. ctpbee_api/ctp/include/mac/pybind11/detail/class.h +743 -0
  43. ctpbee_api/ctp/include/mac/pybind11/detail/common.h +1255 -0
  44. ctpbee_api/ctp/include/mac/pybind11/detail/descr.h +171 -0
  45. ctpbee_api/ctp/include/mac/pybind11/detail/init.h +434 -0
  46. ctpbee_api/ctp/include/mac/pybind11/detail/internals.h +656 -0
  47. ctpbee_api/ctp/include/mac/pybind11/detail/type_caster_base.h +1177 -0
  48. ctpbee_api/ctp/include/mac/pybind11/detail/typeid.h +65 -0
  49. ctpbee_api/ctp/include/mac/pybind11/eigen/common.h +9 -0
  50. ctpbee_api/ctp/include/mac/pybind11/eigen/matrix.h +714 -0
  51. ctpbee_api/ctp/include/mac/pybind11/eigen/tensor.h +516 -0
  52. ctpbee_api/ctp/include/mac/pybind11/eigen.h +12 -0
  53. ctpbee_api/ctp/include/mac/pybind11/embed.h +316 -0
  54. ctpbee_api/ctp/include/mac/pybind11/eval.h +156 -0
  55. ctpbee_api/ctp/include/mac/pybind11/functional.h +137 -0
  56. ctpbee_api/ctp/include/mac/pybind11/gil.h +239 -0
  57. ctpbee_api/ctp/include/mac/pybind11/iostream.h +265 -0
  58. ctpbee_api/ctp/include/mac/pybind11/numpy.h +1998 -0
  59. ctpbee_api/ctp/include/mac/pybind11/operators.h +202 -0
  60. ctpbee_api/ctp/include/mac/pybind11/options.h +92 -0
  61. ctpbee_api/ctp/include/mac/pybind11/pybind11.h +2890 -0
  62. ctpbee_api/ctp/include/mac/pybind11/pytypes.h +2557 -0
  63. ctpbee_api/ctp/include/mac/pybind11/stl/filesystem.h +116 -0
  64. ctpbee_api/ctp/include/mac/pybind11/stl.h +447 -0
  65. ctpbee_api/ctp/include/mac/pybind11/stl_bind.h +851 -0
  66. ctpbee_api/ctp/include/mac/pybind11/type_caster_pyobject_ptr.h +61 -0
  67. ctpbee_api/ctp/include/new/ctp/ThostFtdcMdApi.h +168 -0
  68. ctpbee_api/ctp/include/new/ctp/ThostFtdcTraderApi.h +770 -0
  69. ctpbee_api/ctp/include/new/ctp/ThostFtdcUserApiDataType.h +6878 -0
  70. ctpbee_api/ctp/include/new/ctp/ThostFtdcUserApiStruct.h +10915 -0
  71. ctpbee_api/ctp/include/new/pybind11/attr.h +690 -0
  72. ctpbee_api/ctp/include/new/pybind11/buffer_info.h +208 -0
  73. ctpbee_api/ctp/include/new/pybind11/cast.h +1704 -0
  74. ctpbee_api/ctp/include/new/pybind11/chrono.h +225 -0
  75. ctpbee_api/ctp/include/new/pybind11/common.h +2 -0
  76. ctpbee_api/ctp/include/new/pybind11/complex.h +74 -0
  77. ctpbee_api/ctp/include/new/pybind11/detail/class.h +743 -0
  78. ctpbee_api/ctp/include/new/pybind11/detail/common.h +1255 -0
  79. ctpbee_api/ctp/include/new/pybind11/detail/descr.h +171 -0
  80. ctpbee_api/ctp/include/new/pybind11/detail/init.h +434 -0
  81. ctpbee_api/ctp/include/new/pybind11/detail/internals.h +656 -0
  82. ctpbee_api/ctp/include/new/pybind11/detail/type_caster_base.h +1177 -0
  83. ctpbee_api/ctp/include/new/pybind11/detail/typeid.h +65 -0
  84. ctpbee_api/ctp/include/new/pybind11/eigen/common.h +9 -0
  85. ctpbee_api/ctp/include/new/pybind11/eigen/matrix.h +714 -0
  86. ctpbee_api/ctp/include/new/pybind11/eigen/tensor.h +516 -0
  87. ctpbee_api/ctp/include/new/pybind11/eigen.h +12 -0
  88. ctpbee_api/ctp/include/new/pybind11/embed.h +316 -0
  89. ctpbee_api/ctp/include/new/pybind11/eval.h +156 -0
  90. ctpbee_api/ctp/include/new/pybind11/functional.h +137 -0
  91. ctpbee_api/ctp/include/new/pybind11/gil.h +239 -0
  92. ctpbee_api/ctp/include/new/pybind11/iostream.h +265 -0
  93. ctpbee_api/ctp/include/new/pybind11/numpy.h +1998 -0
  94. ctpbee_api/ctp/include/new/pybind11/operators.h +202 -0
  95. ctpbee_api/ctp/include/new/pybind11/options.h +92 -0
  96. ctpbee_api/ctp/include/new/pybind11/pybind11.h +2890 -0
  97. ctpbee_api/ctp/include/new/pybind11/pytypes.h +2557 -0
  98. ctpbee_api/ctp/include/new/pybind11/stl/filesystem.h +116 -0
  99. ctpbee_api/ctp/include/new/pybind11/stl.h +447 -0
  100. ctpbee_api/ctp/include/new/pybind11/stl_bind.h +851 -0
  101. ctpbee_api/ctp/include/new/pybind11/type_caster_pyobject_ptr.h +61 -0
  102. ctpbee_api/ctp/include/previous/ctp/ThostFtdcMdApi.h +168 -0
  103. ctpbee_api/ctp/include/previous/ctp/ThostFtdcTraderApi.h +770 -0
  104. ctpbee_api/ctp/include/previous/ctp/ThostFtdcUserApiDataType.h +6878 -0
  105. ctpbee_api/ctp/include/previous/ctp/ThostFtdcUserApiStruct.h +10915 -0
  106. ctpbee_api/ctp/include/previous/pybind11/attr.h +489 -0
  107. ctpbee_api/ctp/include/previous/pybind11/buffer_info.h +108 -0
  108. ctpbee_api/ctp/include/previous/pybind11/cast.h +2067 -0
  109. ctpbee_api/ctp/include/previous/pybind11/chrono.h +162 -0
  110. ctpbee_api/ctp/include/previous/pybind11/common.h +2 -0
  111. ctpbee_api/ctp/include/previous/pybind11/complex.h +61 -0
  112. ctpbee_api/ctp/include/previous/pybind11/detail/class.h +626 -0
  113. ctpbee_api/ctp/include/previous/pybind11/detail/common.h +803 -0
  114. ctpbee_api/ctp/include/previous/pybind11/detail/descr.h +185 -0
  115. ctpbee_api/ctp/include/previous/pybind11/detail/init.h +335 -0
  116. ctpbee_api/ctp/include/previous/pybind11/detail/internals.h +285 -0
  117. ctpbee_api/ctp/include/previous/pybind11/detail/typeid.h +53 -0
  118. ctpbee_api/ctp/include/previous/pybind11/eigen.h +604 -0
  119. ctpbee_api/ctp/include/previous/pybind11/embed.h +194 -0
  120. ctpbee_api/ctp/include/previous/pybind11/eval.h +117 -0
  121. ctpbee_api/ctp/include/previous/pybind11/functional.h +85 -0
  122. ctpbee_api/ctp/include/previous/pybind11/iostream.h +200 -0
  123. ctpbee_api/ctp/include/previous/pybind11/numpy.h +1601 -0
  124. ctpbee_api/ctp/include/previous/pybind11/operators.h +168 -0
  125. ctpbee_api/ctp/include/previous/pybind11/options.h +65 -0
  126. ctpbee_api/ctp/include/previous/pybind11/pybind11.h +1965 -0
  127. ctpbee_api/ctp/include/previous/pybind11/pytypes.h +1332 -0
  128. ctpbee_api/ctp/include/previous/pybind11/stl.h +376 -0
  129. ctpbee_api/ctp/include/previous/pybind11/stl_bind.h +599 -0
  130. ctpbee_api/ctp/libs/libcomunicationkey.a +0 -0
  131. ctpbee_api/ctp/libs/libcrypto.a +0 -0
  132. ctpbee_api/ctp/libs/libssl.a +0 -0
  133. ctpbee_api/ctp/libs/thostmduserapi_se.lib +0 -0
  134. ctpbee_api/ctp/libs/thosttraderapi_se.lib +0 -0
  135. ctpbee_api/ctp/libthostmduserapi_se.so +0 -0
  136. ctpbee_api/ctp/libthosttraderapi_se.so +0 -0
  137. ctpbee_api/ctp/thostmduserapi_se.dll +0 -0
  138. ctpbee_api/ctp/thosttraderapi_se.dll +0 -0
  139. ctpbee_api/ctp/vnctp/vnctp.h +189 -0
  140. ctpbee_api/ctp/vnctp/vnctp.sln +41 -0
  141. ctpbee_api/ctp/vnctp/vnctpmd/dllmain.cpp +19 -0
  142. ctpbee_api/ctp/vnctp/vnctpmd/stdafx.cpp +1 -0
  143. ctpbee_api/ctp/vnctp/vnctpmd/stdafx.h +17 -0
  144. ctpbee_api/ctp/vnctp/vnctpmd/targetver.h +8 -0
  145. ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.cpp +953 -0
  146. ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.h +209 -0
  147. ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj +200 -0
  148. ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj.filters +54 -0
  149. ctpbee_api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj.user +4 -0
  150. ctpbee_api/ctp/vnctp/vnctptd/dllmain.cpp +19 -0
  151. ctpbee_api/ctp/vnctp/vnctptd/stdafx.cpp +1 -0
  152. ctpbee_api/ctp/vnctp/vnctptd/stdafx.h +16 -0
  153. ctpbee_api/ctp/vnctp/vnctptd/targetver.h +8 -0
  154. ctpbee_api/ctp/vnctp/vnctptd/vnctptd.cpp +12148 -0
  155. ctpbee_api/ctp/vnctp/vnctptd/vnctptd.h +1329 -0
  156. ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj +198 -0
  157. ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj.filters +54 -0
  158. ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj.user +4 -0
  159. ctpbee_api/ctp/vnctpmd.cp312-win_amd64.pyd +0 -0
  160. ctpbee_api/ctp/vnctptd.cp312-win_amd64.pyd +0 -0
  161. ctpbee_api/ctp_mini/__init__.py +3 -0
  162. ctpbee_api/ctp_mini/generator/generate_api_functions.py +343 -0
  163. ctpbee_api/ctp_mini/generator/generate_data_type.py +76 -0
  164. ctpbee_api/ctp_mini/generator/generate_struct.py +85 -0
  165. ctpbee_api/ctp_mini/generator/mini_constant.py +1186 -0
  166. ctpbee_api/ctp_mini/generator/mini_md_header_define.h +13 -0
  167. ctpbee_api/ctp_mini/generator/mini_md_header_function.h +4 -0
  168. ctpbee_api/ctp_mini/generator/mini_md_header_on.h +26 -0
  169. ctpbee_api/ctp_mini/generator/mini_md_header_process.h +26 -0
  170. ctpbee_api/ctp_mini/generator/mini_md_source_function.cpp +29 -0
  171. ctpbee_api/ctp_mini/generator/mini_md_source_module.cpp +17 -0
  172. ctpbee_api/ctp_mini/generator/mini_md_source_on.cpp +156 -0
  173. ctpbee_api/ctp_mini/generator/mini_md_source_process.cpp +264 -0
  174. ctpbee_api/ctp_mini/generator/mini_md_source_switch.cpp +78 -0
  175. ctpbee_api/ctp_mini/generator/mini_md_source_task.cpp +203 -0
  176. ctpbee_api/ctp_mini/generator/mini_struct.py +4599 -0
  177. ctpbee_api/ctp_mini/generator/mini_td_header_define.h +63 -0
  178. ctpbee_api/ctp_mini/generator/mini_td_header_function.h +84 -0
  179. ctpbee_api/ctp_mini/generator/mini_td_header_on.h +126 -0
  180. ctpbee_api/ctp_mini/generator/mini_td_header_process.h +126 -0
  181. ctpbee_api/ctp_mini/generator/mini_td_source_function.cpp +663 -0
  182. ctpbee_api/ctp_mini/generator/mini_td_source_module.cpp +107 -0
  183. ctpbee_api/ctp_mini/generator/mini_td_source_on.cpp +756 -0
  184. ctpbee_api/ctp_mini/generator/mini_td_source_process.cpp +2492 -0
  185. ctpbee_api/ctp_mini/generator/mini_td_source_switch.cpp +378 -0
  186. ctpbee_api/ctp_mini/generator/mini_td_source_task.cpp +1193 -0
  187. ctpbee_api/ctp_mini/generator/mini_typedef.py +755 -0
  188. ctpbee_api/ctp_mini/generator/package/vnminimd.cpp +886 -0
  189. ctpbee_api/ctp_mini/generator/package/vnminimd.h +205 -0
  190. ctpbee_api/ctp_mini/include/new/mini/ThostFtdcMdApi.h +148 -0
  191. ctpbee_api/ctp_mini/include/new/mini/ThostFtdcTraderApi.h +419 -0
  192. ctpbee_api/ctp_mini/include/new/mini/ThostFtdcUserApiDataType.h +6458 -0
  193. ctpbee_api/ctp_mini/include/new/mini/ThostFtdcUserApiStruct.h +8890 -0
  194. ctpbee_api/ctp_mini/include/new/pybind11/attr.h +690 -0
  195. ctpbee_api/ctp_mini/include/new/pybind11/buffer_info.h +208 -0
  196. ctpbee_api/ctp_mini/include/new/pybind11/cast.h +1704 -0
  197. ctpbee_api/ctp_mini/include/new/pybind11/chrono.h +225 -0
  198. ctpbee_api/ctp_mini/include/new/pybind11/common.h +2 -0
  199. ctpbee_api/ctp_mini/include/new/pybind11/complex.h +74 -0
  200. ctpbee_api/ctp_mini/include/new/pybind11/detail/class.h +743 -0
  201. ctpbee_api/ctp_mini/include/new/pybind11/detail/common.h +1255 -0
  202. ctpbee_api/ctp_mini/include/new/pybind11/detail/descr.h +171 -0
  203. ctpbee_api/ctp_mini/include/new/pybind11/detail/init.h +434 -0
  204. ctpbee_api/ctp_mini/include/new/pybind11/detail/internals.h +656 -0
  205. ctpbee_api/ctp_mini/include/new/pybind11/detail/type_caster_base.h +1177 -0
  206. ctpbee_api/ctp_mini/include/new/pybind11/detail/typeid.h +65 -0
  207. ctpbee_api/ctp_mini/include/new/pybind11/eigen/common.h +9 -0
  208. ctpbee_api/ctp_mini/include/new/pybind11/eigen/matrix.h +714 -0
  209. ctpbee_api/ctp_mini/include/new/pybind11/eigen/tensor.h +516 -0
  210. ctpbee_api/ctp_mini/include/new/pybind11/eigen.h +12 -0
  211. ctpbee_api/ctp_mini/include/new/pybind11/embed.h +316 -0
  212. ctpbee_api/ctp_mini/include/new/pybind11/eval.h +156 -0
  213. ctpbee_api/ctp_mini/include/new/pybind11/functional.h +137 -0
  214. ctpbee_api/ctp_mini/include/new/pybind11/gil.h +239 -0
  215. ctpbee_api/ctp_mini/include/new/pybind11/iostream.h +265 -0
  216. ctpbee_api/ctp_mini/include/new/pybind11/numpy.h +1998 -0
  217. ctpbee_api/ctp_mini/include/new/pybind11/operators.h +202 -0
  218. ctpbee_api/ctp_mini/include/new/pybind11/options.h +92 -0
  219. ctpbee_api/ctp_mini/include/new/pybind11/pybind11.h +2890 -0
  220. ctpbee_api/ctp_mini/include/new/pybind11/pytypes.h +2557 -0
  221. ctpbee_api/ctp_mini/include/new/pybind11/stl/filesystem.h +116 -0
  222. ctpbee_api/ctp_mini/include/new/pybind11/stl.h +447 -0
  223. ctpbee_api/ctp_mini/include/new/pybind11/stl_bind.h +851 -0
  224. ctpbee_api/ctp_mini/include/new/pybind11/type_caster_pyobject_ptr.h +61 -0
  225. ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcMdApi.h +148 -0
  226. ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcTraderApi.h +419 -0
  227. ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcUserApiDataType.h +6458 -0
  228. ctpbee_api/ctp_mini/include/previous/mini/ThostFtdcUserApiStruct.h +8890 -0
  229. ctpbee_api/ctp_mini/include/previous/pybind11/attr.h +489 -0
  230. ctpbee_api/ctp_mini/include/previous/pybind11/buffer_info.h +108 -0
  231. ctpbee_api/ctp_mini/include/previous/pybind11/cast.h +2067 -0
  232. ctpbee_api/ctp_mini/include/previous/pybind11/chrono.h +162 -0
  233. ctpbee_api/ctp_mini/include/previous/pybind11/common.h +2 -0
  234. ctpbee_api/ctp_mini/include/previous/pybind11/complex.h +61 -0
  235. ctpbee_api/ctp_mini/include/previous/pybind11/detail/class.h +626 -0
  236. ctpbee_api/ctp_mini/include/previous/pybind11/detail/common.h +803 -0
  237. ctpbee_api/ctp_mini/include/previous/pybind11/detail/descr.h +185 -0
  238. ctpbee_api/ctp_mini/include/previous/pybind11/detail/init.h +335 -0
  239. ctpbee_api/ctp_mini/include/previous/pybind11/detail/internals.h +285 -0
  240. ctpbee_api/ctp_mini/include/previous/pybind11/detail/typeid.h +53 -0
  241. ctpbee_api/ctp_mini/include/previous/pybind11/eigen.h +604 -0
  242. ctpbee_api/ctp_mini/include/previous/pybind11/embed.h +194 -0
  243. ctpbee_api/ctp_mini/include/previous/pybind11/eval.h +117 -0
  244. ctpbee_api/ctp_mini/include/previous/pybind11/functional.h +85 -0
  245. ctpbee_api/ctp_mini/include/previous/pybind11/iostream.h +200 -0
  246. ctpbee_api/ctp_mini/include/previous/pybind11/numpy.h +1601 -0
  247. ctpbee_api/ctp_mini/include/previous/pybind11/operators.h +168 -0
  248. ctpbee_api/ctp_mini/include/previous/pybind11/options.h +65 -0
  249. ctpbee_api/ctp_mini/include/previous/pybind11/pybind11.h +1965 -0
  250. ctpbee_api/ctp_mini/include/previous/pybind11/pytypes.h +1332 -0
  251. ctpbee_api/ctp_mini/include/previous/pybind11/stl.h +376 -0
  252. ctpbee_api/ctp_mini/include/previous/pybind11/stl_bind.h +599 -0
  253. ctpbee_api/ctp_mini/libs/thostmduserapi.lib +0 -0
  254. ctpbee_api/ctp_mini/libs/thosttraderapi.lib +0 -0
  255. ctpbee_api/ctp_mini/libthostmduserapi.so +0 -0
  256. ctpbee_api/ctp_mini/libthosttraderapi.so +0 -0
  257. ctpbee_api/ctp_mini/mini_constant.py +1186 -0
  258. ctpbee_api/ctp_mini/thostmduserapi.dll +0 -0
  259. ctpbee_api/ctp_mini/thosttraderapi.dll +0 -0
  260. ctpbee_api/ctp_mini/vnctp_mini/vnctp_mini.h +146 -0
  261. ctpbee_api/ctp_mini/vnctp_mini/vnctp_mini.sln +41 -0
  262. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/dllmain.cpp +0 -0
  263. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/stdafx.cpp +0 -0
  264. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/stdafx.h +0 -0
  265. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/targetver.h +0 -0
  266. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.cpp +886 -0
  267. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.h +203 -0
  268. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.vcxproj +183 -0
  269. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.vcxproj.filters +54 -0
  270. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minimd/vnctp_minimd.vcxproj.user +4 -0
  271. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/dllmain.cpp +0 -0
  272. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/stdafx.cpp +0 -0
  273. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/stdafx.h +0 -0
  274. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/targetver.h +0 -0
  275. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.cpp +5716 -0
  276. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.h +680 -0
  277. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.vcxproj +180 -0
  278. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.vcxproj.filters +54 -0
  279. ctpbee_api/ctp_mini/vnctp_mini/vnctp_minitd/vnctp_minitd.vcxproj.user +4 -0
  280. ctpbee_api/ctp_mini/vnctp_minimd.cp312-win_amd64.pyd +0 -0
  281. ctpbee_api/ctp_mini/vnctp_minitd.cp312-win_amd64.pyd +0 -0
  282. ctpbee_api/ctp_mini/vnctp_minitd.lib +0 -0
  283. ctpbee_api/rohon/RohonBaseV64.dll +0 -0
  284. ctpbee_api/rohon/WinDataCollect.dll +0 -0
  285. ctpbee_api/rohon/__init__.py +3 -0
  286. ctpbee_api/rohon/generator/generate_api_functions.py +348 -0
  287. ctpbee_api/rohon/generator/generate_data_type.py +76 -0
  288. ctpbee_api/rohon/generator/generate_struct.py +84 -0
  289. ctpbee_api/rohon/generator/rohon_constant.py +1242 -0
  290. ctpbee_api/rohon/generator/rohon_md_header_define.h +13 -0
  291. ctpbee_api/rohon/generator/rohon_md_header_function.h +6 -0
  292. ctpbee_api/rohon/generator/rohon_md_header_on.h +26 -0
  293. ctpbee_api/rohon/generator/rohon_md_header_process.h +26 -0
  294. ctpbee_api/rohon/generator/rohon_md_source_function.cpp +40 -0
  295. ctpbee_api/rohon/generator/rohon_md_source_module.cpp +18 -0
  296. ctpbee_api/rohon/generator/rohon_md_source_on.cpp +156 -0
  297. ctpbee_api/rohon/generator/rohon_md_source_process.cpp +271 -0
  298. ctpbee_api/rohon/generator/rohon_md_source_switch.cpp +78 -0
  299. ctpbee_api/rohon/generator/rohon_md_source_task.cpp +211 -0
  300. ctpbee_api/rohon/generator/rohon_struct.py +4958 -0
  301. ctpbee_api/rohon/generator/rohon_td_header_define.h +125 -0
  302. ctpbee_api/rohon/generator/rohon_td_header_function.h +164 -0
  303. ctpbee_api/rohon/generator/rohon_td_header_on.h +250 -0
  304. ctpbee_api/rohon/generator/rohon_td_header_process.h +250 -0
  305. ctpbee_api/rohon/generator/rohon_td_source_function.cpp +1338 -0
  306. ctpbee_api/rohon/generator/rohon_td_source_module.cpp +209 -0
  307. ctpbee_api/rohon/generator/rohon_td_source_on.cpp +1500 -0
  308. ctpbee_api/rohon/generator/rohon_td_source_process.cpp +5125 -0
  309. ctpbee_api/rohon/generator/rohon_td_source_switch.cpp +750 -0
  310. ctpbee_api/rohon/generator/rohon_td_source_task.cpp +2339 -0
  311. ctpbee_api/rohon/generator/rohon_typedef.py +781 -0
  312. ctpbee_api/rohon/include/new/pybind11/attr.h +690 -0
  313. ctpbee_api/rohon/include/new/pybind11/buffer_info.h +208 -0
  314. ctpbee_api/rohon/include/new/pybind11/cast.h +1704 -0
  315. ctpbee_api/rohon/include/new/pybind11/chrono.h +225 -0
  316. ctpbee_api/rohon/include/new/pybind11/common.h +2 -0
  317. ctpbee_api/rohon/include/new/pybind11/complex.h +74 -0
  318. ctpbee_api/rohon/include/new/pybind11/detail/class.h +743 -0
  319. ctpbee_api/rohon/include/new/pybind11/detail/common.h +1255 -0
  320. ctpbee_api/rohon/include/new/pybind11/detail/descr.h +171 -0
  321. ctpbee_api/rohon/include/new/pybind11/detail/init.h +434 -0
  322. ctpbee_api/rohon/include/new/pybind11/detail/internals.h +656 -0
  323. ctpbee_api/rohon/include/new/pybind11/detail/type_caster_base.h +1177 -0
  324. ctpbee_api/rohon/include/new/pybind11/detail/typeid.h +65 -0
  325. ctpbee_api/rohon/include/new/pybind11/eigen/common.h +9 -0
  326. ctpbee_api/rohon/include/new/pybind11/eigen/matrix.h +714 -0
  327. ctpbee_api/rohon/include/new/pybind11/eigen/tensor.h +516 -0
  328. ctpbee_api/rohon/include/new/pybind11/eigen.h +12 -0
  329. ctpbee_api/rohon/include/new/pybind11/embed.h +316 -0
  330. ctpbee_api/rohon/include/new/pybind11/eval.h +156 -0
  331. ctpbee_api/rohon/include/new/pybind11/functional.h +137 -0
  332. ctpbee_api/rohon/include/new/pybind11/gil.h +239 -0
  333. ctpbee_api/rohon/include/new/pybind11/iostream.h +265 -0
  334. ctpbee_api/rohon/include/new/pybind11/numpy.h +1998 -0
  335. ctpbee_api/rohon/include/new/pybind11/operators.h +202 -0
  336. ctpbee_api/rohon/include/new/pybind11/options.h +92 -0
  337. ctpbee_api/rohon/include/new/pybind11/pybind11.h +2890 -0
  338. ctpbee_api/rohon/include/new/pybind11/pytypes.h +2557 -0
  339. ctpbee_api/rohon/include/new/pybind11/stl/filesystem.h +116 -0
  340. ctpbee_api/rohon/include/new/pybind11/stl.h +447 -0
  341. ctpbee_api/rohon/include/new/pybind11/stl_bind.h +851 -0
  342. ctpbee_api/rohon/include/new/pybind11/type_caster_pyobject_ptr.h +61 -0
  343. ctpbee_api/rohon/include/new/rohon/ThostFtdcMdApi.h +168 -0
  344. ctpbee_api/rohon/include/new/rohon/ThostFtdcTraderApi.h +739 -0
  345. ctpbee_api/rohon/include/new/rohon/ThostFtdcUserApiDataType.h +6708 -0
  346. ctpbee_api/rohon/include/new/rohon/ThostFtdcUserApiStruct.h +9580 -0
  347. ctpbee_api/rohon/include/previous/pybind11/attr.h +489 -0
  348. ctpbee_api/rohon/include/previous/pybind11/buffer_info.h +108 -0
  349. ctpbee_api/rohon/include/previous/pybind11/cast.h +2067 -0
  350. ctpbee_api/rohon/include/previous/pybind11/chrono.h +162 -0
  351. ctpbee_api/rohon/include/previous/pybind11/common.h +2 -0
  352. ctpbee_api/rohon/include/previous/pybind11/complex.h +61 -0
  353. ctpbee_api/rohon/include/previous/pybind11/detail/class.h +626 -0
  354. ctpbee_api/rohon/include/previous/pybind11/detail/common.h +803 -0
  355. ctpbee_api/rohon/include/previous/pybind11/detail/descr.h +185 -0
  356. ctpbee_api/rohon/include/previous/pybind11/detail/init.h +335 -0
  357. ctpbee_api/rohon/include/previous/pybind11/detail/internals.h +285 -0
  358. ctpbee_api/rohon/include/previous/pybind11/detail/typeid.h +53 -0
  359. ctpbee_api/rohon/include/previous/pybind11/eigen.h +604 -0
  360. ctpbee_api/rohon/include/previous/pybind11/embed.h +194 -0
  361. ctpbee_api/rohon/include/previous/pybind11/eval.h +117 -0
  362. ctpbee_api/rohon/include/previous/pybind11/functional.h +85 -0
  363. ctpbee_api/rohon/include/previous/pybind11/iostream.h +200 -0
  364. ctpbee_api/rohon/include/previous/pybind11/numpy.h +1601 -0
  365. ctpbee_api/rohon/include/previous/pybind11/operators.h +168 -0
  366. ctpbee_api/rohon/include/previous/pybind11/options.h +65 -0
  367. ctpbee_api/rohon/include/previous/pybind11/pybind11.h +1965 -0
  368. ctpbee_api/rohon/include/previous/pybind11/pytypes.h +1332 -0
  369. ctpbee_api/rohon/include/previous/pybind11/stl.h +376 -0
  370. ctpbee_api/rohon/include/previous/pybind11/stl_bind.h +599 -0
  371. ctpbee_api/rohon/include/previous/rohon/ThostFtdcMdApi.h +168 -0
  372. ctpbee_api/rohon/include/previous/rohon/ThostFtdcTraderApi.h +739 -0
  373. ctpbee_api/rohon/include/previous/rohon/ThostFtdcUserApiDataType.h +6708 -0
  374. ctpbee_api/rohon/include/previous/rohon/ThostFtdcUserApiStruct.h +9580 -0
  375. ctpbee_api/rohon/libLinuxDataCollect.so +0 -0
  376. ctpbee_api/rohon/librohonbase.so +0 -0
  377. ctpbee_api/rohon/librohonbase.so.1.1 +0 -0
  378. ctpbee_api/rohon/librohonbase.so.1.1.0.1 +0 -0
  379. ctpbee_api/rohon/libs/thostmduserapi_se.lib +0 -0
  380. ctpbee_api/rohon/libs/thosttraderapi_se.lib +0 -0
  381. ctpbee_api/rohon/libthostmduserapi_se.so +0 -0
  382. ctpbee_api/rohon/libthosttraderapi_se.so +0 -0
  383. ctpbee_api/rohon/rohon_constant.py +1242 -0
  384. ctpbee_api/rohon/thostmduserapi_se.dll +0 -0
  385. ctpbee_api/rohon/thosttraderapi_se.dll +0 -0
  386. ctpbee_api/rohon/vnrohon/.vs/vnrohon/v15/.suo +0 -0
  387. ctpbee_api/rohon/vnrohon/.vs/vnrohon/v15/Browse.VC.db +0 -0
  388. ctpbee_api/rohon/vnrohon/.vs/vnrohon/v15/Solution.VC.db +0 -0
  389. ctpbee_api/rohon/vnrohon/vnrohon.h +147 -0
  390. ctpbee_api/rohon/vnrohon/vnrohon.sln +41 -0
  391. ctpbee_api/rohon/vnrohon/vnrohonmd/dllmain.cpp +19 -0
  392. ctpbee_api/rohon/vnrohon/vnrohonmd/framework.h +5 -0
  393. ctpbee_api/rohon/vnrohon/vnrohonmd/pch.cpp +5 -0
  394. ctpbee_api/rohon/vnrohon/vnrohonmd/pch.h +13 -0
  395. ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.cpp +931 -0
  396. ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.h +207 -0
  397. ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.vcxproj +188 -0
  398. ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.vcxproj.filters +54 -0
  399. ctpbee_api/rohon/vnrohon/vnrohonmd/vnrohonmd.vcxproj.user +4 -0
  400. ctpbee_api/rohon/vnrohon/vnrohontd/dllmain.cpp +19 -0
  401. ctpbee_api/rohon/vnrohon/vnrohontd/framework.h +5 -0
  402. ctpbee_api/rohon/vnrohon/vnrohontd/pch.cpp +5 -0
  403. ctpbee_api/rohon/vnrohon/vnrohontd/pch.h +13 -0
  404. ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.cpp +11395 -0
  405. ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.h +1259 -0
  406. ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj +188 -0
  407. ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj.filters +54 -0
  408. ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj.user +4 -0
  409. ctpbee_api/rohon/vnrohonmd.cp312-win_amd64.pyd +0 -0
  410. ctpbee_api/rohon/vnrohontd.cp312-win_amd64.pyd +0 -0
  411. ctpbee_opt_api-0.1.0.dist-info/METADATA +46 -0
  412. ctpbee_opt_api-0.1.0.dist-info/RECORD +414 -0
  413. ctpbee_opt_api-0.1.0.dist-info/WHEEL +5 -0
  414. ctpbee_opt_api-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1500 @@
1
+ void onFrontConnected() override
2
+ {
3
+ try
4
+ {
5
+ PYBIND11_OVERLOAD(void, TdApi, onFrontConnected);
6
+ }
7
+ catch (const error_already_set &e)
8
+ {
9
+ cout << e.what() << endl;
10
+ }
11
+ };
12
+
13
+ void onFrontDisconnected(int reqid) override
14
+ {
15
+ try
16
+ {
17
+ PYBIND11_OVERLOAD(void, TdApi, onFrontDisconnected, reqid);
18
+ }
19
+ catch (const error_already_set &e)
20
+ {
21
+ cout << e.what() << endl;
22
+ }
23
+ };
24
+
25
+ void onHeartBeatWarning(int reqid) override
26
+ {
27
+ try
28
+ {
29
+ PYBIND11_OVERLOAD(void, TdApi, onHeartBeatWarning, reqid);
30
+ }
31
+ catch (const error_already_set &e)
32
+ {
33
+ cout << e.what() << endl;
34
+ }
35
+ };
36
+
37
+ void onRspAuthenticate(const dict &data, const dict &error, int reqid, bool last) override
38
+ {
39
+ try
40
+ {
41
+ PYBIND11_OVERLOAD(void, TdApi, onRspAuthenticate, data, error, reqid, last);
42
+ }
43
+ catch (const error_already_set &e)
44
+ {
45
+ cout << e.what() << endl;
46
+ }
47
+ };
48
+
49
+ void onRspUserLogin(const dict &data, const dict &error, int reqid, bool last) override
50
+ {
51
+ try
52
+ {
53
+ PYBIND11_OVERLOAD(void, TdApi, onRspUserLogin, data, error, reqid, last);
54
+ }
55
+ catch (const error_already_set &e)
56
+ {
57
+ cout << e.what() << endl;
58
+ }
59
+ };
60
+
61
+ void onRspUserLogout(const dict &data, const dict &error, int reqid, bool last) override
62
+ {
63
+ try
64
+ {
65
+ PYBIND11_OVERLOAD(void, TdApi, onRspUserLogout, data, error, reqid, last);
66
+ }
67
+ catch (const error_already_set &e)
68
+ {
69
+ cout << e.what() << endl;
70
+ }
71
+ };
72
+
73
+ void onRspUserPasswordUpdate(const dict &data, const dict &error, int reqid, bool last) override
74
+ {
75
+ try
76
+ {
77
+ PYBIND11_OVERLOAD(void, TdApi, onRspUserPasswordUpdate, data, error, reqid, last);
78
+ }
79
+ catch (const error_already_set &e)
80
+ {
81
+ cout << e.what() << endl;
82
+ }
83
+ };
84
+
85
+ void onRspTradingAccountPasswordUpdate(const dict &data, const dict &error, int reqid, bool last) override
86
+ {
87
+ try
88
+ {
89
+ PYBIND11_OVERLOAD(void, TdApi, onRspTradingAccountPasswordUpdate, data, error, reqid, last);
90
+ }
91
+ catch (const error_already_set &e)
92
+ {
93
+ cout << e.what() << endl;
94
+ }
95
+ };
96
+
97
+ void onRspUserAuthMethod(const dict &data, const dict &error, int reqid, bool last) override
98
+ {
99
+ try
100
+ {
101
+ PYBIND11_OVERLOAD(void, TdApi, onRspUserAuthMethod, data, error, reqid, last);
102
+ }
103
+ catch (const error_already_set &e)
104
+ {
105
+ cout << e.what() << endl;
106
+ }
107
+ };
108
+
109
+ void onRspGenUserCaptcha(const dict &data, const dict &error, int reqid, bool last) override
110
+ {
111
+ try
112
+ {
113
+ PYBIND11_OVERLOAD(void, TdApi, onRspGenUserCaptcha, data, error, reqid, last);
114
+ }
115
+ catch (const error_already_set &e)
116
+ {
117
+ cout << e.what() << endl;
118
+ }
119
+ };
120
+
121
+ void onRspGenUserText(const dict &data, const dict &error, int reqid, bool last) override
122
+ {
123
+ try
124
+ {
125
+ PYBIND11_OVERLOAD(void, TdApi, onRspGenUserText, data, error, reqid, last);
126
+ }
127
+ catch (const error_already_set &e)
128
+ {
129
+ cout << e.what() << endl;
130
+ }
131
+ };
132
+
133
+ void onRspOrderInsert(const dict &data, const dict &error, int reqid, bool last) override
134
+ {
135
+ try
136
+ {
137
+ PYBIND11_OVERLOAD(void, TdApi, onRspOrderInsert, data, error, reqid, last);
138
+ }
139
+ catch (const error_already_set &e)
140
+ {
141
+ cout << e.what() << endl;
142
+ }
143
+ };
144
+
145
+ void onRspParkedOrderInsert(const dict &data, const dict &error, int reqid, bool last) override
146
+ {
147
+ try
148
+ {
149
+ PYBIND11_OVERLOAD(void, TdApi, onRspParkedOrderInsert, data, error, reqid, last);
150
+ }
151
+ catch (const error_already_set &e)
152
+ {
153
+ cout << e.what() << endl;
154
+ }
155
+ };
156
+
157
+ void onRspParkedOrderAction(const dict &data, const dict &error, int reqid, bool last) override
158
+ {
159
+ try
160
+ {
161
+ PYBIND11_OVERLOAD(void, TdApi, onRspParkedOrderAction, data, error, reqid, last);
162
+ }
163
+ catch (const error_already_set &e)
164
+ {
165
+ cout << e.what() << endl;
166
+ }
167
+ };
168
+
169
+ void onRspOrderAction(const dict &data, const dict &error, int reqid, bool last) override
170
+ {
171
+ try
172
+ {
173
+ PYBIND11_OVERLOAD(void, TdApi, onRspOrderAction, data, error, reqid, last);
174
+ }
175
+ catch (const error_already_set &e)
176
+ {
177
+ cout << e.what() << endl;
178
+ }
179
+ };
180
+
181
+ void onRspQueryMaxOrderVolume(const dict &data, const dict &error, int reqid, bool last) override
182
+ {
183
+ try
184
+ {
185
+ PYBIND11_OVERLOAD(void, TdApi, onRspQueryMaxOrderVolume, data, error, reqid, last);
186
+ }
187
+ catch (const error_already_set &e)
188
+ {
189
+ cout << e.what() << endl;
190
+ }
191
+ };
192
+
193
+ void onRspSettlementInfoConfirm(const dict &data, const dict &error, int reqid, bool last) override
194
+ {
195
+ try
196
+ {
197
+ PYBIND11_OVERLOAD(void, TdApi, onRspSettlementInfoConfirm, data, error, reqid, last);
198
+ }
199
+ catch (const error_already_set &e)
200
+ {
201
+ cout << e.what() << endl;
202
+ }
203
+ };
204
+
205
+ void onRspRemoveParkedOrder(const dict &data, const dict &error, int reqid, bool last) override
206
+ {
207
+ try
208
+ {
209
+ PYBIND11_OVERLOAD(void, TdApi, onRspRemoveParkedOrder, data, error, reqid, last);
210
+ }
211
+ catch (const error_already_set &e)
212
+ {
213
+ cout << e.what() << endl;
214
+ }
215
+ };
216
+
217
+ void onRspRemoveParkedOrderAction(const dict &data, const dict &error, int reqid, bool last) override
218
+ {
219
+ try
220
+ {
221
+ PYBIND11_OVERLOAD(void, TdApi, onRspRemoveParkedOrderAction, data, error, reqid, last);
222
+ }
223
+ catch (const error_already_set &e)
224
+ {
225
+ cout << e.what() << endl;
226
+ }
227
+ };
228
+
229
+ void onRspExecOrderInsert(const dict &data, const dict &error, int reqid, bool last) override
230
+ {
231
+ try
232
+ {
233
+ PYBIND11_OVERLOAD(void, TdApi, onRspExecOrderInsert, data, error, reqid, last);
234
+ }
235
+ catch (const error_already_set &e)
236
+ {
237
+ cout << e.what() << endl;
238
+ }
239
+ };
240
+
241
+ void onRspExecOrderAction(const dict &data, const dict &error, int reqid, bool last) override
242
+ {
243
+ try
244
+ {
245
+ PYBIND11_OVERLOAD(void, TdApi, onRspExecOrderAction, data, error, reqid, last);
246
+ }
247
+ catch (const error_already_set &e)
248
+ {
249
+ cout << e.what() << endl;
250
+ }
251
+ };
252
+
253
+ void onRspForQuoteInsert(const dict &data, const dict &error, int reqid, bool last) override
254
+ {
255
+ try
256
+ {
257
+ PYBIND11_OVERLOAD(void, TdApi, onRspForQuoteInsert, data, error, reqid, last);
258
+ }
259
+ catch (const error_already_set &e)
260
+ {
261
+ cout << e.what() << endl;
262
+ }
263
+ };
264
+
265
+ void onRspQuoteInsert(const dict &data, const dict &error, int reqid, bool last) override
266
+ {
267
+ try
268
+ {
269
+ PYBIND11_OVERLOAD(void, TdApi, onRspQuoteInsert, data, error, reqid, last);
270
+ }
271
+ catch (const error_already_set &e)
272
+ {
273
+ cout << e.what() << endl;
274
+ }
275
+ };
276
+
277
+ void onRspQuoteAction(const dict &data, const dict &error, int reqid, bool last) override
278
+ {
279
+ try
280
+ {
281
+ PYBIND11_OVERLOAD(void, TdApi, onRspQuoteAction, data, error, reqid, last);
282
+ }
283
+ catch (const error_already_set &e)
284
+ {
285
+ cout << e.what() << endl;
286
+ }
287
+ };
288
+
289
+ void onRspBatchOrderAction(const dict &data, const dict &error, int reqid, bool last) override
290
+ {
291
+ try
292
+ {
293
+ PYBIND11_OVERLOAD(void, TdApi, onRspBatchOrderAction, data, error, reqid, last);
294
+ }
295
+ catch (const error_already_set &e)
296
+ {
297
+ cout << e.what() << endl;
298
+ }
299
+ };
300
+
301
+ void onRspOptionSelfCloseInsert(const dict &data, const dict &error, int reqid, bool last) override
302
+ {
303
+ try
304
+ {
305
+ PYBIND11_OVERLOAD(void, TdApi, onRspOptionSelfCloseInsert, data, error, reqid, last);
306
+ }
307
+ catch (const error_already_set &e)
308
+ {
309
+ cout << e.what() << endl;
310
+ }
311
+ };
312
+
313
+ void onRspOptionSelfCloseAction(const dict &data, const dict &error, int reqid, bool last) override
314
+ {
315
+ try
316
+ {
317
+ PYBIND11_OVERLOAD(void, TdApi, onRspOptionSelfCloseAction, data, error, reqid, last);
318
+ }
319
+ catch (const error_already_set &e)
320
+ {
321
+ cout << e.what() << endl;
322
+ }
323
+ };
324
+
325
+ void onRspCombActionInsert(const dict &data, const dict &error, int reqid, bool last) override
326
+ {
327
+ try
328
+ {
329
+ PYBIND11_OVERLOAD(void, TdApi, onRspCombActionInsert, data, error, reqid, last);
330
+ }
331
+ catch (const error_already_set &e)
332
+ {
333
+ cout << e.what() << endl;
334
+ }
335
+ };
336
+
337
+ void onRspQryOrder(const dict &data, const dict &error, int reqid, bool last) override
338
+ {
339
+ try
340
+ {
341
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryOrder, data, error, reqid, last);
342
+ }
343
+ catch (const error_already_set &e)
344
+ {
345
+ cout << e.what() << endl;
346
+ }
347
+ };
348
+
349
+ void onRspQryTrade(const dict &data, const dict &error, int reqid, bool last) override
350
+ {
351
+ try
352
+ {
353
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryTrade, data, error, reqid, last);
354
+ }
355
+ catch (const error_already_set &e)
356
+ {
357
+ cout << e.what() << endl;
358
+ }
359
+ };
360
+
361
+ void onRspQryInvestorPosition(const dict &data, const dict &error, int reqid, bool last) override
362
+ {
363
+ try
364
+ {
365
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInvestorPosition, data, error, reqid, last);
366
+ }
367
+ catch (const error_already_set &e)
368
+ {
369
+ cout << e.what() << endl;
370
+ }
371
+ };
372
+
373
+ void onRspQryTradingAccount(const dict &data, const dict &error, int reqid, bool last) override
374
+ {
375
+ try
376
+ {
377
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryTradingAccount, data, error, reqid, last);
378
+ }
379
+ catch (const error_already_set &e)
380
+ {
381
+ cout << e.what() << endl;
382
+ }
383
+ };
384
+
385
+ void onRspQryInvestor(const dict &data, const dict &error, int reqid, bool last) override
386
+ {
387
+ try
388
+ {
389
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInvestor, data, error, reqid, last);
390
+ }
391
+ catch (const error_already_set &e)
392
+ {
393
+ cout << e.what() << endl;
394
+ }
395
+ };
396
+
397
+ void onRspQryTradingCode(const dict &data, const dict &error, int reqid, bool last) override
398
+ {
399
+ try
400
+ {
401
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryTradingCode, data, error, reqid, last);
402
+ }
403
+ catch (const error_already_set &e)
404
+ {
405
+ cout << e.what() << endl;
406
+ }
407
+ };
408
+
409
+ void onRspQryInstrumentMarginRate(const dict &data, const dict &error, int reqid, bool last) override
410
+ {
411
+ try
412
+ {
413
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInstrumentMarginRate, data, error, reqid, last);
414
+ }
415
+ catch (const error_already_set &e)
416
+ {
417
+ cout << e.what() << endl;
418
+ }
419
+ };
420
+
421
+ void onRspQryInstrumentCommissionRate(const dict &data, const dict &error, int reqid, bool last) override
422
+ {
423
+ try
424
+ {
425
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInstrumentCommissionRate, data, error, reqid, last);
426
+ }
427
+ catch (const error_already_set &e)
428
+ {
429
+ cout << e.what() << endl;
430
+ }
431
+ };
432
+
433
+ void onRspQryExchange(const dict &data, const dict &error, int reqid, bool last) override
434
+ {
435
+ try
436
+ {
437
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryExchange, data, error, reqid, last);
438
+ }
439
+ catch (const error_already_set &e)
440
+ {
441
+ cout << e.what() << endl;
442
+ }
443
+ };
444
+
445
+ void onRspQryProduct(const dict &data, const dict &error, int reqid, bool last) override
446
+ {
447
+ try
448
+ {
449
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryProduct, data, error, reqid, last);
450
+ }
451
+ catch (const error_already_set &e)
452
+ {
453
+ cout << e.what() << endl;
454
+ }
455
+ };
456
+
457
+ void onRspQryInstrument(const dict &data, const dict &error, int reqid, bool last) override
458
+ {
459
+ try
460
+ {
461
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInstrument, data, error, reqid, last);
462
+ }
463
+ catch (const error_already_set &e)
464
+ {
465
+ cout << e.what() << endl;
466
+ }
467
+ };
468
+
469
+ void onRspQryDepthMarketData(const dict &data, const dict &error, int reqid, bool last) override
470
+ {
471
+ try
472
+ {
473
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryDepthMarketData, data, error, reqid, last);
474
+ }
475
+ catch (const error_already_set &e)
476
+ {
477
+ cout << e.what() << endl;
478
+ }
479
+ };
480
+
481
+ void onRspQrySettlementInfo(const dict &data, const dict &error, int reqid, bool last) override
482
+ {
483
+ try
484
+ {
485
+ PYBIND11_OVERLOAD(void, TdApi, onRspQrySettlementInfo, data, error, reqid, last);
486
+ }
487
+ catch (const error_already_set &e)
488
+ {
489
+ cout << e.what() << endl;
490
+ }
491
+ };
492
+
493
+ void onRspQryTransferBank(const dict &data, const dict &error, int reqid, bool last) override
494
+ {
495
+ try
496
+ {
497
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryTransferBank, data, error, reqid, last);
498
+ }
499
+ catch (const error_already_set &e)
500
+ {
501
+ cout << e.what() << endl;
502
+ }
503
+ };
504
+
505
+ void onRspQryInvestorPositionDetail(const dict &data, const dict &error, int reqid, bool last) override
506
+ {
507
+ try
508
+ {
509
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInvestorPositionDetail, data, error, reqid, last);
510
+ }
511
+ catch (const error_already_set &e)
512
+ {
513
+ cout << e.what() << endl;
514
+ }
515
+ };
516
+
517
+ void onRspQryNotice(const dict &data, const dict &error, int reqid, bool last) override
518
+ {
519
+ try
520
+ {
521
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryNotice, data, error, reqid, last);
522
+ }
523
+ catch (const error_already_set &e)
524
+ {
525
+ cout << e.what() << endl;
526
+ }
527
+ };
528
+
529
+ void onRspQrySettlementInfoConfirm(const dict &data, const dict &error, int reqid, bool last) override
530
+ {
531
+ try
532
+ {
533
+ PYBIND11_OVERLOAD(void, TdApi, onRspQrySettlementInfoConfirm, data, error, reqid, last);
534
+ }
535
+ catch (const error_already_set &e)
536
+ {
537
+ cout << e.what() << endl;
538
+ }
539
+ };
540
+
541
+ void onRspQryInvestorPositionCombineDetail(const dict &data, const dict &error, int reqid, bool last) override
542
+ {
543
+ try
544
+ {
545
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInvestorPositionCombineDetail, data, error, reqid, last);
546
+ }
547
+ catch (const error_already_set &e)
548
+ {
549
+ cout << e.what() << endl;
550
+ }
551
+ };
552
+
553
+ void onRspQryCFMMCTradingAccountKey(const dict &data, const dict &error, int reqid, bool last) override
554
+ {
555
+ try
556
+ {
557
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryCFMMCTradingAccountKey, data, error, reqid, last);
558
+ }
559
+ catch (const error_already_set &e)
560
+ {
561
+ cout << e.what() << endl;
562
+ }
563
+ };
564
+
565
+ void onRspQryEWarrantOffset(const dict &data, const dict &error, int reqid, bool last) override
566
+ {
567
+ try
568
+ {
569
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryEWarrantOffset, data, error, reqid, last);
570
+ }
571
+ catch (const error_already_set &e)
572
+ {
573
+ cout << e.what() << endl;
574
+ }
575
+ };
576
+
577
+ void onRspQryInvestorProductGroupMargin(const dict &data, const dict &error, int reqid, bool last) override
578
+ {
579
+ try
580
+ {
581
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInvestorProductGroupMargin, data, error, reqid, last);
582
+ }
583
+ catch (const error_already_set &e)
584
+ {
585
+ cout << e.what() << endl;
586
+ }
587
+ };
588
+
589
+ void onRspQryExchangeMarginRate(const dict &data, const dict &error, int reqid, bool last) override
590
+ {
591
+ try
592
+ {
593
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryExchangeMarginRate, data, error, reqid, last);
594
+ }
595
+ catch (const error_already_set &e)
596
+ {
597
+ cout << e.what() << endl;
598
+ }
599
+ };
600
+
601
+ void onRspQryExchangeMarginRateAdjust(const dict &data, const dict &error, int reqid, bool last) override
602
+ {
603
+ try
604
+ {
605
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryExchangeMarginRateAdjust, data, error, reqid, last);
606
+ }
607
+ catch (const error_already_set &e)
608
+ {
609
+ cout << e.what() << endl;
610
+ }
611
+ };
612
+
613
+ void onRspQryExchangeRate(const dict &data, const dict &error, int reqid, bool last) override
614
+ {
615
+ try
616
+ {
617
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryExchangeRate, data, error, reqid, last);
618
+ }
619
+ catch (const error_already_set &e)
620
+ {
621
+ cout << e.what() << endl;
622
+ }
623
+ };
624
+
625
+ void onRspQrySecAgentACIDMap(const dict &data, const dict &error, int reqid, bool last) override
626
+ {
627
+ try
628
+ {
629
+ PYBIND11_OVERLOAD(void, TdApi, onRspQrySecAgentACIDMap, data, error, reqid, last);
630
+ }
631
+ catch (const error_already_set &e)
632
+ {
633
+ cout << e.what() << endl;
634
+ }
635
+ };
636
+
637
+ void onRspQryProductExchRate(const dict &data, const dict &error, int reqid, bool last) override
638
+ {
639
+ try
640
+ {
641
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryProductExchRate, data, error, reqid, last);
642
+ }
643
+ catch (const error_already_set &e)
644
+ {
645
+ cout << e.what() << endl;
646
+ }
647
+ };
648
+
649
+ void onRspQryProductGroup(const dict &data, const dict &error, int reqid, bool last) override
650
+ {
651
+ try
652
+ {
653
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryProductGroup, data, error, reqid, last);
654
+ }
655
+ catch (const error_already_set &e)
656
+ {
657
+ cout << e.what() << endl;
658
+ }
659
+ };
660
+
661
+ void onRspQryMMInstrumentCommissionRate(const dict &data, const dict &error, int reqid, bool last) override
662
+ {
663
+ try
664
+ {
665
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryMMInstrumentCommissionRate, data, error, reqid, last);
666
+ }
667
+ catch (const error_already_set &e)
668
+ {
669
+ cout << e.what() << endl;
670
+ }
671
+ };
672
+
673
+ void onRspQryMMOptionInstrCommRate(const dict &data, const dict &error, int reqid, bool last) override
674
+ {
675
+ try
676
+ {
677
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryMMOptionInstrCommRate, data, error, reqid, last);
678
+ }
679
+ catch (const error_already_set &e)
680
+ {
681
+ cout << e.what() << endl;
682
+ }
683
+ };
684
+
685
+ void onRspQryInstrumentOrderCommRate(const dict &data, const dict &error, int reqid, bool last) override
686
+ {
687
+ try
688
+ {
689
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInstrumentOrderCommRate, data, error, reqid, last);
690
+ }
691
+ catch (const error_already_set &e)
692
+ {
693
+ cout << e.what() << endl;
694
+ }
695
+ };
696
+
697
+ void onRspQrySecAgentTradingAccount(const dict &data, const dict &error, int reqid, bool last) override
698
+ {
699
+ try
700
+ {
701
+ PYBIND11_OVERLOAD(void, TdApi, onRspQrySecAgentTradingAccount, data, error, reqid, last);
702
+ }
703
+ catch (const error_already_set &e)
704
+ {
705
+ cout << e.what() << endl;
706
+ }
707
+ };
708
+
709
+ void onRspQrySecAgentCheckMode(const dict &data, const dict &error, int reqid, bool last) override
710
+ {
711
+ try
712
+ {
713
+ PYBIND11_OVERLOAD(void, TdApi, onRspQrySecAgentCheckMode, data, error, reqid, last);
714
+ }
715
+ catch (const error_already_set &e)
716
+ {
717
+ cout << e.what() << endl;
718
+ }
719
+ };
720
+
721
+ void onRspQrySecAgentTradeInfo(const dict &data, const dict &error, int reqid, bool last) override
722
+ {
723
+ try
724
+ {
725
+ PYBIND11_OVERLOAD(void, TdApi, onRspQrySecAgentTradeInfo, data, error, reqid, last);
726
+ }
727
+ catch (const error_already_set &e)
728
+ {
729
+ cout << e.what() << endl;
730
+ }
731
+ };
732
+
733
+ void onRspQryOptionInstrTradeCost(const dict &data, const dict &error, int reqid, bool last) override
734
+ {
735
+ try
736
+ {
737
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryOptionInstrTradeCost, data, error, reqid, last);
738
+ }
739
+ catch (const error_already_set &e)
740
+ {
741
+ cout << e.what() << endl;
742
+ }
743
+ };
744
+
745
+ void onRspQryOptionInstrCommRate(const dict &data, const dict &error, int reqid, bool last) override
746
+ {
747
+ try
748
+ {
749
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryOptionInstrCommRate, data, error, reqid, last);
750
+ }
751
+ catch (const error_already_set &e)
752
+ {
753
+ cout << e.what() << endl;
754
+ }
755
+ };
756
+
757
+ void onRspQryExecOrder(const dict &data, const dict &error, int reqid, bool last) override
758
+ {
759
+ try
760
+ {
761
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryExecOrder, data, error, reqid, last);
762
+ }
763
+ catch (const error_already_set &e)
764
+ {
765
+ cout << e.what() << endl;
766
+ }
767
+ };
768
+
769
+ void onRspQryForQuote(const dict &data, const dict &error, int reqid, bool last) override
770
+ {
771
+ try
772
+ {
773
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryForQuote, data, error, reqid, last);
774
+ }
775
+ catch (const error_already_set &e)
776
+ {
777
+ cout << e.what() << endl;
778
+ }
779
+ };
780
+
781
+ void onRspQryQuote(const dict &data, const dict &error, int reqid, bool last) override
782
+ {
783
+ try
784
+ {
785
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryQuote, data, error, reqid, last);
786
+ }
787
+ catch (const error_already_set &e)
788
+ {
789
+ cout << e.what() << endl;
790
+ }
791
+ };
792
+
793
+ void onRspQryOptionSelfClose(const dict &data, const dict &error, int reqid, bool last) override
794
+ {
795
+ try
796
+ {
797
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryOptionSelfClose, data, error, reqid, last);
798
+ }
799
+ catch (const error_already_set &e)
800
+ {
801
+ cout << e.what() << endl;
802
+ }
803
+ };
804
+
805
+ void onRspQryInvestUnit(const dict &data, const dict &error, int reqid, bool last) override
806
+ {
807
+ try
808
+ {
809
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryInvestUnit, data, error, reqid, last);
810
+ }
811
+ catch (const error_already_set &e)
812
+ {
813
+ cout << e.what() << endl;
814
+ }
815
+ };
816
+
817
+ void onRspQryCombInstrumentGuard(const dict &data, const dict &error, int reqid, bool last) override
818
+ {
819
+ try
820
+ {
821
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryCombInstrumentGuard, data, error, reqid, last);
822
+ }
823
+ catch (const error_already_set &e)
824
+ {
825
+ cout << e.what() << endl;
826
+ }
827
+ };
828
+
829
+ void onRspQryCombAction(const dict &data, const dict &error, int reqid, bool last) override
830
+ {
831
+ try
832
+ {
833
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryCombAction, data, error, reqid, last);
834
+ }
835
+ catch (const error_already_set &e)
836
+ {
837
+ cout << e.what() << endl;
838
+ }
839
+ };
840
+
841
+ void onRspQryTransferSerial(const dict &data, const dict &error, int reqid, bool last) override
842
+ {
843
+ try
844
+ {
845
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryTransferSerial, data, error, reqid, last);
846
+ }
847
+ catch (const error_already_set &e)
848
+ {
849
+ cout << e.what() << endl;
850
+ }
851
+ };
852
+
853
+ void onRspQryAccountregister(const dict &data, const dict &error, int reqid, bool last) override
854
+ {
855
+ try
856
+ {
857
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryAccountregister, data, error, reqid, last);
858
+ }
859
+ catch (const error_already_set &e)
860
+ {
861
+ cout << e.what() << endl;
862
+ }
863
+ };
864
+
865
+ void onRspError(const dict &error, int reqid, bool last) override
866
+ {
867
+ try
868
+ {
869
+ PYBIND11_OVERLOAD(void, TdApi, onRspError, error, reqid, last);
870
+ }
871
+ catch (const error_already_set &e)
872
+ {
873
+ cout << e.what() << endl;
874
+ }
875
+ };
876
+
877
+ void onRtnOrder(const dict &data) override
878
+ {
879
+ try
880
+ {
881
+ PYBIND11_OVERLOAD(void, TdApi, onRtnOrder, data);
882
+ }
883
+ catch (const error_already_set &e)
884
+ {
885
+ cout << e.what() << endl;
886
+ }
887
+ };
888
+
889
+ void onRtnTrade(const dict &data) override
890
+ {
891
+ try
892
+ {
893
+ PYBIND11_OVERLOAD(void, TdApi, onRtnTrade, data);
894
+ }
895
+ catch (const error_already_set &e)
896
+ {
897
+ cout << e.what() << endl;
898
+ }
899
+ };
900
+
901
+ void onErrRtnOrderInsert(const dict &data, const dict &error) override
902
+ {
903
+ try
904
+ {
905
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnOrderInsert, data, error);
906
+ }
907
+ catch (const error_already_set &e)
908
+ {
909
+ cout << e.what() << endl;
910
+ }
911
+ };
912
+
913
+ void onErrRtnOrderAction(const dict &data, const dict &error) override
914
+ {
915
+ try
916
+ {
917
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnOrderAction, data, error);
918
+ }
919
+ catch (const error_already_set &e)
920
+ {
921
+ cout << e.what() << endl;
922
+ }
923
+ };
924
+
925
+ void onRtnInstrumentStatus(const dict &data) override
926
+ {
927
+ try
928
+ {
929
+ PYBIND11_OVERLOAD(void, TdApi, onRtnInstrumentStatus, data);
930
+ }
931
+ catch (const error_already_set &e)
932
+ {
933
+ cout << e.what() << endl;
934
+ }
935
+ };
936
+
937
+ void onRtnBulletin(const dict &data) override
938
+ {
939
+ try
940
+ {
941
+ PYBIND11_OVERLOAD(void, TdApi, onRtnBulletin, data);
942
+ }
943
+ catch (const error_already_set &e)
944
+ {
945
+ cout << e.what() << endl;
946
+ }
947
+ };
948
+
949
+ void onRtnTradingNotice(const dict &data) override
950
+ {
951
+ try
952
+ {
953
+ PYBIND11_OVERLOAD(void, TdApi, onRtnTradingNotice, data);
954
+ }
955
+ catch (const error_already_set &e)
956
+ {
957
+ cout << e.what() << endl;
958
+ }
959
+ };
960
+
961
+ void onRtnErrorConditionalOrder(const dict &data) override
962
+ {
963
+ try
964
+ {
965
+ PYBIND11_OVERLOAD(void, TdApi, onRtnErrorConditionalOrder, data);
966
+ }
967
+ catch (const error_already_set &e)
968
+ {
969
+ cout << e.what() << endl;
970
+ }
971
+ };
972
+
973
+ void onRtnExecOrder(const dict &data) override
974
+ {
975
+ try
976
+ {
977
+ PYBIND11_OVERLOAD(void, TdApi, onRtnExecOrder, data);
978
+ }
979
+ catch (const error_already_set &e)
980
+ {
981
+ cout << e.what() << endl;
982
+ }
983
+ };
984
+
985
+ void onErrRtnExecOrderInsert(const dict &data, const dict &error) override
986
+ {
987
+ try
988
+ {
989
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnExecOrderInsert, data, error);
990
+ }
991
+ catch (const error_already_set &e)
992
+ {
993
+ cout << e.what() << endl;
994
+ }
995
+ };
996
+
997
+ void onErrRtnExecOrderAction(const dict &data, const dict &error) override
998
+ {
999
+ try
1000
+ {
1001
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnExecOrderAction, data, error);
1002
+ }
1003
+ catch (const error_already_set &e)
1004
+ {
1005
+ cout << e.what() << endl;
1006
+ }
1007
+ };
1008
+
1009
+ void onErrRtnForQuoteInsert(const dict &data, const dict &error) override
1010
+ {
1011
+ try
1012
+ {
1013
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnForQuoteInsert, data, error);
1014
+ }
1015
+ catch (const error_already_set &e)
1016
+ {
1017
+ cout << e.what() << endl;
1018
+ }
1019
+ };
1020
+
1021
+ void onRtnQuote(const dict &data) override
1022
+ {
1023
+ try
1024
+ {
1025
+ PYBIND11_OVERLOAD(void, TdApi, onRtnQuote, data);
1026
+ }
1027
+ catch (const error_already_set &e)
1028
+ {
1029
+ cout << e.what() << endl;
1030
+ }
1031
+ };
1032
+
1033
+ void onErrRtnQuoteInsert(const dict &data, const dict &error) override
1034
+ {
1035
+ try
1036
+ {
1037
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnQuoteInsert, data, error);
1038
+ }
1039
+ catch (const error_already_set &e)
1040
+ {
1041
+ cout << e.what() << endl;
1042
+ }
1043
+ };
1044
+
1045
+ void onErrRtnQuoteAction(const dict &data, const dict &error) override
1046
+ {
1047
+ try
1048
+ {
1049
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnQuoteAction, data, error);
1050
+ }
1051
+ catch (const error_already_set &e)
1052
+ {
1053
+ cout << e.what() << endl;
1054
+ }
1055
+ };
1056
+
1057
+ void onRtnForQuoteRsp(const dict &data) override
1058
+ {
1059
+ try
1060
+ {
1061
+ PYBIND11_OVERLOAD(void, TdApi, onRtnForQuoteRsp, data);
1062
+ }
1063
+ catch (const error_already_set &e)
1064
+ {
1065
+ cout << e.what() << endl;
1066
+ }
1067
+ };
1068
+
1069
+ void onRtnCFMMCTradingAccountToken(const dict &data) override
1070
+ {
1071
+ try
1072
+ {
1073
+ PYBIND11_OVERLOAD(void, TdApi, onRtnCFMMCTradingAccountToken, data);
1074
+ }
1075
+ catch (const error_already_set &e)
1076
+ {
1077
+ cout << e.what() << endl;
1078
+ }
1079
+ };
1080
+
1081
+ void onErrRtnBatchOrderAction(const dict &data, const dict &error) override
1082
+ {
1083
+ try
1084
+ {
1085
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnBatchOrderAction, data, error);
1086
+ }
1087
+ catch (const error_already_set &e)
1088
+ {
1089
+ cout << e.what() << endl;
1090
+ }
1091
+ };
1092
+
1093
+ void onRtnOptionSelfClose(const dict &data) override
1094
+ {
1095
+ try
1096
+ {
1097
+ PYBIND11_OVERLOAD(void, TdApi, onRtnOptionSelfClose, data);
1098
+ }
1099
+ catch (const error_already_set &e)
1100
+ {
1101
+ cout << e.what() << endl;
1102
+ }
1103
+ };
1104
+
1105
+ void onErrRtnOptionSelfCloseInsert(const dict &data, const dict &error) override
1106
+ {
1107
+ try
1108
+ {
1109
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnOptionSelfCloseInsert, data, error);
1110
+ }
1111
+ catch (const error_already_set &e)
1112
+ {
1113
+ cout << e.what() << endl;
1114
+ }
1115
+ };
1116
+
1117
+ void onErrRtnOptionSelfCloseAction(const dict &data, const dict &error) override
1118
+ {
1119
+ try
1120
+ {
1121
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnOptionSelfCloseAction, data, error);
1122
+ }
1123
+ catch (const error_already_set &e)
1124
+ {
1125
+ cout << e.what() << endl;
1126
+ }
1127
+ };
1128
+
1129
+ void onRtnCombAction(const dict &data) override
1130
+ {
1131
+ try
1132
+ {
1133
+ PYBIND11_OVERLOAD(void, TdApi, onRtnCombAction, data);
1134
+ }
1135
+ catch (const error_already_set &e)
1136
+ {
1137
+ cout << e.what() << endl;
1138
+ }
1139
+ };
1140
+
1141
+ void onErrRtnCombActionInsert(const dict &data, const dict &error) override
1142
+ {
1143
+ try
1144
+ {
1145
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnCombActionInsert, data, error);
1146
+ }
1147
+ catch (const error_already_set &e)
1148
+ {
1149
+ cout << e.what() << endl;
1150
+ }
1151
+ };
1152
+
1153
+ void onRspQryContractBank(const dict &data, const dict &error, int reqid, bool last) override
1154
+ {
1155
+ try
1156
+ {
1157
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryContractBank, data, error, reqid, last);
1158
+ }
1159
+ catch (const error_already_set &e)
1160
+ {
1161
+ cout << e.what() << endl;
1162
+ }
1163
+ };
1164
+
1165
+ void onRspQryParkedOrder(const dict &data, const dict &error, int reqid, bool last) override
1166
+ {
1167
+ try
1168
+ {
1169
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryParkedOrder, data, error, reqid, last);
1170
+ }
1171
+ catch (const error_already_set &e)
1172
+ {
1173
+ cout << e.what() << endl;
1174
+ }
1175
+ };
1176
+
1177
+ void onRspQryParkedOrderAction(const dict &data, const dict &error, int reqid, bool last) override
1178
+ {
1179
+ try
1180
+ {
1181
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryParkedOrderAction, data, error, reqid, last);
1182
+ }
1183
+ catch (const error_already_set &e)
1184
+ {
1185
+ cout << e.what() << endl;
1186
+ }
1187
+ };
1188
+
1189
+ void onRspQryTradingNotice(const dict &data, const dict &error, int reqid, bool last) override
1190
+ {
1191
+ try
1192
+ {
1193
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryTradingNotice, data, error, reqid, last);
1194
+ }
1195
+ catch (const error_already_set &e)
1196
+ {
1197
+ cout << e.what() << endl;
1198
+ }
1199
+ };
1200
+
1201
+ void onRspQryBrokerTradingParams(const dict &data, const dict &error, int reqid, bool last) override
1202
+ {
1203
+ try
1204
+ {
1205
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryBrokerTradingParams, data, error, reqid, last);
1206
+ }
1207
+ catch (const error_already_set &e)
1208
+ {
1209
+ cout << e.what() << endl;
1210
+ }
1211
+ };
1212
+
1213
+ void onRspQryBrokerTradingAlgos(const dict &data, const dict &error, int reqid, bool last) override
1214
+ {
1215
+ try
1216
+ {
1217
+ PYBIND11_OVERLOAD(void, TdApi, onRspQryBrokerTradingAlgos, data, error, reqid, last);
1218
+ }
1219
+ catch (const error_already_set &e)
1220
+ {
1221
+ cout << e.what() << endl;
1222
+ }
1223
+ };
1224
+
1225
+ void onRspQueryCFMMCTradingAccountToken(const dict &data, const dict &error, int reqid, bool last) override
1226
+ {
1227
+ try
1228
+ {
1229
+ PYBIND11_OVERLOAD(void, TdApi, onRspQueryCFMMCTradingAccountToken, data, error, reqid, last);
1230
+ }
1231
+ catch (const error_already_set &e)
1232
+ {
1233
+ cout << e.what() << endl;
1234
+ }
1235
+ };
1236
+
1237
+ void onRtnFromBankToFutureByBank(const dict &data) override
1238
+ {
1239
+ try
1240
+ {
1241
+ PYBIND11_OVERLOAD(void, TdApi, onRtnFromBankToFutureByBank, data);
1242
+ }
1243
+ catch (const error_already_set &e)
1244
+ {
1245
+ cout << e.what() << endl;
1246
+ }
1247
+ };
1248
+
1249
+ void onRtnFromFutureToBankByBank(const dict &data) override
1250
+ {
1251
+ try
1252
+ {
1253
+ PYBIND11_OVERLOAD(void, TdApi, onRtnFromFutureToBankByBank, data);
1254
+ }
1255
+ catch (const error_already_set &e)
1256
+ {
1257
+ cout << e.what() << endl;
1258
+ }
1259
+ };
1260
+
1261
+ void onRtnRepealFromBankToFutureByBank(const dict &data) override
1262
+ {
1263
+ try
1264
+ {
1265
+ PYBIND11_OVERLOAD(void, TdApi, onRtnRepealFromBankToFutureByBank, data);
1266
+ }
1267
+ catch (const error_already_set &e)
1268
+ {
1269
+ cout << e.what() << endl;
1270
+ }
1271
+ };
1272
+
1273
+ void onRtnRepealFromFutureToBankByBank(const dict &data) override
1274
+ {
1275
+ try
1276
+ {
1277
+ PYBIND11_OVERLOAD(void, TdApi, onRtnRepealFromFutureToBankByBank, data);
1278
+ }
1279
+ catch (const error_already_set &e)
1280
+ {
1281
+ cout << e.what() << endl;
1282
+ }
1283
+ };
1284
+
1285
+ void onRtnFromBankToFutureByFuture(const dict &data) override
1286
+ {
1287
+ try
1288
+ {
1289
+ PYBIND11_OVERLOAD(void, TdApi, onRtnFromBankToFutureByFuture, data);
1290
+ }
1291
+ catch (const error_already_set &e)
1292
+ {
1293
+ cout << e.what() << endl;
1294
+ }
1295
+ };
1296
+
1297
+ void onRtnFromFutureToBankByFuture(const dict &data) override
1298
+ {
1299
+ try
1300
+ {
1301
+ PYBIND11_OVERLOAD(void, TdApi, onRtnFromFutureToBankByFuture, data);
1302
+ }
1303
+ catch (const error_already_set &e)
1304
+ {
1305
+ cout << e.what() << endl;
1306
+ }
1307
+ };
1308
+
1309
+ void onRtnRepealFromBankToFutureByFutureManual(const dict &data) override
1310
+ {
1311
+ try
1312
+ {
1313
+ PYBIND11_OVERLOAD(void, TdApi, onRtnRepealFromBankToFutureByFutureManual, data);
1314
+ }
1315
+ catch (const error_already_set &e)
1316
+ {
1317
+ cout << e.what() << endl;
1318
+ }
1319
+ };
1320
+
1321
+ void onRtnRepealFromFutureToBankByFutureManual(const dict &data) override
1322
+ {
1323
+ try
1324
+ {
1325
+ PYBIND11_OVERLOAD(void, TdApi, onRtnRepealFromFutureToBankByFutureManual, data);
1326
+ }
1327
+ catch (const error_already_set &e)
1328
+ {
1329
+ cout << e.what() << endl;
1330
+ }
1331
+ };
1332
+
1333
+ void onRtnQueryBankBalanceByFuture(const dict &data) override
1334
+ {
1335
+ try
1336
+ {
1337
+ PYBIND11_OVERLOAD(void, TdApi, onRtnQueryBankBalanceByFuture, data);
1338
+ }
1339
+ catch (const error_already_set &e)
1340
+ {
1341
+ cout << e.what() << endl;
1342
+ }
1343
+ };
1344
+
1345
+ void onErrRtnBankToFutureByFuture(const dict &data, const dict &error) override
1346
+ {
1347
+ try
1348
+ {
1349
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnBankToFutureByFuture, data, error);
1350
+ }
1351
+ catch (const error_already_set &e)
1352
+ {
1353
+ cout << e.what() << endl;
1354
+ }
1355
+ };
1356
+
1357
+ void onErrRtnFutureToBankByFuture(const dict &data, const dict &error) override
1358
+ {
1359
+ try
1360
+ {
1361
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnFutureToBankByFuture, data, error);
1362
+ }
1363
+ catch (const error_already_set &e)
1364
+ {
1365
+ cout << e.what() << endl;
1366
+ }
1367
+ };
1368
+
1369
+ void onErrRtnRepealBankToFutureByFutureManual(const dict &data, const dict &error) override
1370
+ {
1371
+ try
1372
+ {
1373
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnRepealBankToFutureByFutureManual, data, error);
1374
+ }
1375
+ catch (const error_already_set &e)
1376
+ {
1377
+ cout << e.what() << endl;
1378
+ }
1379
+ };
1380
+
1381
+ void onErrRtnRepealFutureToBankByFutureManual(const dict &data, const dict &error) override
1382
+ {
1383
+ try
1384
+ {
1385
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnRepealFutureToBankByFutureManual, data, error);
1386
+ }
1387
+ catch (const error_already_set &e)
1388
+ {
1389
+ cout << e.what() << endl;
1390
+ }
1391
+ };
1392
+
1393
+ void onErrRtnQueryBankBalanceByFuture(const dict &data, const dict &error) override
1394
+ {
1395
+ try
1396
+ {
1397
+ PYBIND11_OVERLOAD(void, TdApi, onErrRtnQueryBankBalanceByFuture, data, error);
1398
+ }
1399
+ catch (const error_already_set &e)
1400
+ {
1401
+ cout << e.what() << endl;
1402
+ }
1403
+ };
1404
+
1405
+ void onRtnRepealFromBankToFutureByFuture(const dict &data) override
1406
+ {
1407
+ try
1408
+ {
1409
+ PYBIND11_OVERLOAD(void, TdApi, onRtnRepealFromBankToFutureByFuture, data);
1410
+ }
1411
+ catch (const error_already_set &e)
1412
+ {
1413
+ cout << e.what() << endl;
1414
+ }
1415
+ };
1416
+
1417
+ void onRtnRepealFromFutureToBankByFuture(const dict &data) override
1418
+ {
1419
+ try
1420
+ {
1421
+ PYBIND11_OVERLOAD(void, TdApi, onRtnRepealFromFutureToBankByFuture, data);
1422
+ }
1423
+ catch (const error_already_set &e)
1424
+ {
1425
+ cout << e.what() << endl;
1426
+ }
1427
+ };
1428
+
1429
+ void onRspFromBankToFutureByFuture(const dict &data, const dict &error, int reqid, bool last) override
1430
+ {
1431
+ try
1432
+ {
1433
+ PYBIND11_OVERLOAD(void, TdApi, onRspFromBankToFutureByFuture, data, error, reqid, last);
1434
+ }
1435
+ catch (const error_already_set &e)
1436
+ {
1437
+ cout << e.what() << endl;
1438
+ }
1439
+ };
1440
+
1441
+ void onRspFromFutureToBankByFuture(const dict &data, const dict &error, int reqid, bool last) override
1442
+ {
1443
+ try
1444
+ {
1445
+ PYBIND11_OVERLOAD(void, TdApi, onRspFromFutureToBankByFuture, data, error, reqid, last);
1446
+ }
1447
+ catch (const error_already_set &e)
1448
+ {
1449
+ cout << e.what() << endl;
1450
+ }
1451
+ };
1452
+
1453
+ void onRspQueryBankAccountMoneyByFuture(const dict &data, const dict &error, int reqid, bool last) override
1454
+ {
1455
+ try
1456
+ {
1457
+ PYBIND11_OVERLOAD(void, TdApi, onRspQueryBankAccountMoneyByFuture, data, error, reqid, last);
1458
+ }
1459
+ catch (const error_already_set &e)
1460
+ {
1461
+ cout << e.what() << endl;
1462
+ }
1463
+ };
1464
+
1465
+ void onRtnOpenAccountByBank(const dict &data) override
1466
+ {
1467
+ try
1468
+ {
1469
+ PYBIND11_OVERLOAD(void, TdApi, onRtnOpenAccountByBank, data);
1470
+ }
1471
+ catch (const error_already_set &e)
1472
+ {
1473
+ cout << e.what() << endl;
1474
+ }
1475
+ };
1476
+
1477
+ void onRtnCancelAccountByBank(const dict &data) override
1478
+ {
1479
+ try
1480
+ {
1481
+ PYBIND11_OVERLOAD(void, TdApi, onRtnCancelAccountByBank, data);
1482
+ }
1483
+ catch (const error_already_set &e)
1484
+ {
1485
+ cout << e.what() << endl;
1486
+ }
1487
+ };
1488
+
1489
+ void onRtnChangeAccountByBank(const dict &data) override
1490
+ {
1491
+ try
1492
+ {
1493
+ PYBIND11_OVERLOAD(void, TdApi, onRtnChangeAccountByBank, data);
1494
+ }
1495
+ catch (const error_already_set &e)
1496
+ {
1497
+ cout << e.what() << endl;
1498
+ }
1499
+ };
1500
+