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,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
+