ctpbee-opt-api 0.1.0__cp310-cp310-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.cp310-win_amd64.pyd +0 -0
  160. ctpbee_api/ctp/vnctptd.cp310-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.cp310-win_amd64.pyd +0 -0
  281. ctpbee_api/ctp_mini/vnctp_minitd.cp310-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.cp310-win_amd64.pyd +0 -0
  410. ctpbee_api/rohon/vnrohontd.cp310-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,1456 @@
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, "reserve1", myreq.reserve1);
28
+ getString(req, "LoginRemark", myreq.LoginRemark);
29
+ getInt(req, "ClientIPPort", &myreq.ClientIPPort);
30
+ getString(req, "ClientIPAddress", myreq.ClientIPAddress);
31
+ int i = this->api->ReqUserLogin(&myreq, reqid);
32
+ return i;
33
+ };
34
+
35
+ int TdApi::reqUserLogout(const dict &req, int reqid)
36
+ {
37
+ CThostFtdcUserLogoutField myreq = CThostFtdcUserLogoutField();
38
+ memset(&myreq, 0, sizeof(myreq));
39
+ getString(req, "BrokerID", myreq.BrokerID);
40
+ getString(req, "UserID", myreq.UserID);
41
+ int i = this->api->ReqUserLogout(&myreq, reqid);
42
+ return i;
43
+ };
44
+
45
+ int TdApi::reqUserPasswordUpdate(const dict &req, int reqid)
46
+ {
47
+ CThostFtdcUserPasswordUpdateField myreq = CThostFtdcUserPasswordUpdateField();
48
+ memset(&myreq, 0, sizeof(myreq));
49
+ getString(req, "BrokerID", myreq.BrokerID);
50
+ getString(req, "UserID", myreq.UserID);
51
+ getString(req, "OldPassword", myreq.OldPassword);
52
+ getString(req, "NewPassword", myreq.NewPassword);
53
+ int i = this->api->ReqUserPasswordUpdate(&myreq, reqid);
54
+ return i;
55
+ };
56
+
57
+ int TdApi::reqTradingAccountPasswordUpdate(const dict &req, int reqid)
58
+ {
59
+ CThostFtdcTradingAccountPasswordUpdateField myreq = CThostFtdcTradingAccountPasswordUpdateField();
60
+ memset(&myreq, 0, sizeof(myreq));
61
+ getString(req, "BrokerID", myreq.BrokerID);
62
+ getString(req, "AccountID", myreq.AccountID);
63
+ getString(req, "OldPassword", myreq.OldPassword);
64
+ getString(req, "NewPassword", myreq.NewPassword);
65
+ getString(req, "CurrencyID", myreq.CurrencyID);
66
+ int i = this->api->ReqTradingAccountPasswordUpdate(&myreq, reqid);
67
+ return i;
68
+ };
69
+
70
+ int TdApi::reqUserAuthMethod(const dict &req, int reqid)
71
+ {
72
+ CThostFtdcReqUserAuthMethodField myreq = CThostFtdcReqUserAuthMethodField();
73
+ memset(&myreq, 0, sizeof(myreq));
74
+ getString(req, "TradingDay", myreq.TradingDay);
75
+ getString(req, "BrokerID", myreq.BrokerID);
76
+ getString(req, "UserID", myreq.UserID);
77
+ int i = this->api->ReqUserAuthMethod(&myreq, reqid);
78
+ return i;
79
+ };
80
+
81
+ int TdApi::reqGenUserCaptcha(const dict &req, int reqid)
82
+ {
83
+ CThostFtdcReqGenUserCaptchaField myreq = CThostFtdcReqGenUserCaptchaField();
84
+ memset(&myreq, 0, sizeof(myreq));
85
+ getString(req, "TradingDay", myreq.TradingDay);
86
+ getString(req, "BrokerID", myreq.BrokerID);
87
+ getString(req, "UserID", myreq.UserID);
88
+ int i = this->api->ReqGenUserCaptcha(&myreq, reqid);
89
+ return i;
90
+ };
91
+
92
+ int TdApi::reqGenUserText(const dict &req, int reqid)
93
+ {
94
+ CThostFtdcReqGenUserTextField myreq = CThostFtdcReqGenUserTextField();
95
+ memset(&myreq, 0, sizeof(myreq));
96
+ getString(req, "TradingDay", myreq.TradingDay);
97
+ getString(req, "BrokerID", myreq.BrokerID);
98
+ getString(req, "UserID", myreq.UserID);
99
+ int i = this->api->ReqGenUserText(&myreq, reqid);
100
+ return i;
101
+ };
102
+
103
+ int TdApi::reqUserLoginWithCaptcha(const dict &req, int reqid)
104
+ {
105
+ CThostFtdcReqUserLoginWithCaptchaField myreq = CThostFtdcReqUserLoginWithCaptchaField();
106
+ memset(&myreq, 0, sizeof(myreq));
107
+ getString(req, "TradingDay", myreq.TradingDay);
108
+ getString(req, "BrokerID", myreq.BrokerID);
109
+ getString(req, "UserID", myreq.UserID);
110
+ getString(req, "Password", myreq.Password);
111
+ getString(req, "UserProductInfo", myreq.UserProductInfo);
112
+ getString(req, "InterfaceProductInfo", myreq.InterfaceProductInfo);
113
+ getString(req, "ProtocolInfo", myreq.ProtocolInfo);
114
+ getString(req, "MacAddress", myreq.MacAddress);
115
+ getString(req, "reserve1", myreq.reserve1);
116
+ getString(req, "LoginRemark", myreq.LoginRemark);
117
+ getString(req, "Captcha", myreq.Captcha);
118
+ getInt(req, "ClientIPPort", &myreq.ClientIPPort);
119
+ getString(req, "ClientIPAddress", myreq.ClientIPAddress);
120
+ int i = this->api->ReqUserLoginWithCaptcha(&myreq, reqid);
121
+ return i;
122
+ };
123
+
124
+ int TdApi::reqUserLoginWithText(const dict &req, int reqid)
125
+ {
126
+ CThostFtdcReqUserLoginWithTextField myreq = CThostFtdcReqUserLoginWithTextField();
127
+ memset(&myreq, 0, sizeof(myreq));
128
+ getString(req, "TradingDay", myreq.TradingDay);
129
+ getString(req, "BrokerID", myreq.BrokerID);
130
+ getString(req, "UserID", myreq.UserID);
131
+ getString(req, "Password", myreq.Password);
132
+ getString(req, "UserProductInfo", myreq.UserProductInfo);
133
+ getString(req, "InterfaceProductInfo", myreq.InterfaceProductInfo);
134
+ getString(req, "ProtocolInfo", myreq.ProtocolInfo);
135
+ getString(req, "MacAddress", myreq.MacAddress);
136
+ getString(req, "reserve1", myreq.reserve1);
137
+ getString(req, "LoginRemark", myreq.LoginRemark);
138
+ getString(req, "Text", myreq.Text);
139
+ getInt(req, "ClientIPPort", &myreq.ClientIPPort);
140
+ getString(req, "ClientIPAddress", myreq.ClientIPAddress);
141
+ int i = this->api->ReqUserLoginWithText(&myreq, reqid);
142
+ return i;
143
+ };
144
+
145
+ int TdApi::reqUserLoginWithOTP(const dict &req, int reqid)
146
+ {
147
+ CThostFtdcReqUserLoginWithOTPField myreq = CThostFtdcReqUserLoginWithOTPField();
148
+ memset(&myreq, 0, sizeof(myreq));
149
+ getString(req, "TradingDay", myreq.TradingDay);
150
+ getString(req, "BrokerID", myreq.BrokerID);
151
+ getString(req, "UserID", myreq.UserID);
152
+ getString(req, "Password", myreq.Password);
153
+ getString(req, "UserProductInfo", myreq.UserProductInfo);
154
+ getString(req, "InterfaceProductInfo", myreq.InterfaceProductInfo);
155
+ getString(req, "ProtocolInfo", myreq.ProtocolInfo);
156
+ getString(req, "MacAddress", myreq.MacAddress);
157
+ getString(req, "reserve1", myreq.reserve1);
158
+ getString(req, "LoginRemark", myreq.LoginRemark);
159
+ getString(req, "OTPPassword", myreq.OTPPassword);
160
+ getInt(req, "ClientIPPort", &myreq.ClientIPPort);
161
+ getString(req, "ClientIPAddress", myreq.ClientIPAddress);
162
+ int i = this->api->ReqUserLoginWithOTP(&myreq, reqid);
163
+ return i;
164
+ };
165
+
166
+ int TdApi::reqOrderInsert(const dict &req, int reqid)
167
+ {
168
+ CThostFtdcInputOrderField myreq = CThostFtdcInputOrderField();
169
+ memset(&myreq, 0, sizeof(myreq));
170
+ getString(req, "BrokerID", myreq.BrokerID);
171
+ getString(req, "InvestorID", myreq.InvestorID);
172
+ getString(req, "reserve1", myreq.reserve1);
173
+ getString(req, "OrderRef", myreq.OrderRef);
174
+ getString(req, "UserID", myreq.UserID);
175
+ getChar(req, "OrderPriceType", &myreq.OrderPriceType);
176
+ getChar(req, "Direction", &myreq.Direction);
177
+ getString(req, "CombOffsetFlag", myreq.CombOffsetFlag);
178
+ getString(req, "CombHedgeFlag", myreq.CombHedgeFlag);
179
+ getDouble(req, "LimitPrice", &myreq.LimitPrice);
180
+ getInt(req, "VolumeTotalOriginal", &myreq.VolumeTotalOriginal);
181
+ getChar(req, "TimeCondition", &myreq.TimeCondition);
182
+ getString(req, "GTDDate", myreq.GTDDate);
183
+ getChar(req, "VolumeCondition", &myreq.VolumeCondition);
184
+ getInt(req, "MinVolume", &myreq.MinVolume);
185
+ getChar(req, "ContingentCondition", &myreq.ContingentCondition);
186
+ getDouble(req, "StopPrice", &myreq.StopPrice);
187
+ getChar(req, "ForceCloseReason", &myreq.ForceCloseReason);
188
+ getInt(req, "IsAutoSuspend", &myreq.IsAutoSuspend);
189
+ getString(req, "BusinessUnit", myreq.BusinessUnit);
190
+ getInt(req, "RequestID", &myreq.RequestID);
191
+ getInt(req, "UserForceClose", &myreq.UserForceClose);
192
+ getInt(req, "IsSwapOrder", &myreq.IsSwapOrder);
193
+ getString(req, "ExchangeID", myreq.ExchangeID);
194
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
195
+ getString(req, "AccountID", myreq.AccountID);
196
+ getString(req, "CurrencyID", myreq.CurrencyID);
197
+ getString(req, "ClientID", myreq.ClientID);
198
+ getString(req, "reserve2", myreq.reserve2);
199
+ getString(req, "MacAddress", myreq.MacAddress);
200
+ getString(req, "InstrumentID", myreq.InstrumentID);
201
+ getString(req, "IPAddress", myreq.IPAddress);
202
+ int i = this->api->ReqOrderInsert(&myreq, reqid);
203
+ return i;
204
+ };
205
+
206
+ int TdApi::reqParkedOrderInsert(const dict &req, int reqid)
207
+ {
208
+ CThostFtdcParkedOrderField myreq = CThostFtdcParkedOrderField();
209
+ memset(&myreq, 0, sizeof(myreq));
210
+ getString(req, "BrokerID", myreq.BrokerID);
211
+ getString(req, "InvestorID", myreq.InvestorID);
212
+ getString(req, "reserve1", myreq.reserve1);
213
+ getString(req, "OrderRef", myreq.OrderRef);
214
+ getString(req, "UserID", myreq.UserID);
215
+ getChar(req, "OrderPriceType", &myreq.OrderPriceType);
216
+ getChar(req, "Direction", &myreq.Direction);
217
+ getString(req, "CombOffsetFlag", myreq.CombOffsetFlag);
218
+ getString(req, "CombHedgeFlag", myreq.CombHedgeFlag);
219
+ getDouble(req, "LimitPrice", &myreq.LimitPrice);
220
+ getInt(req, "VolumeTotalOriginal", &myreq.VolumeTotalOriginal);
221
+ getChar(req, "TimeCondition", &myreq.TimeCondition);
222
+ getString(req, "GTDDate", myreq.GTDDate);
223
+ getChar(req, "VolumeCondition", &myreq.VolumeCondition);
224
+ getInt(req, "MinVolume", &myreq.MinVolume);
225
+ getChar(req, "ContingentCondition", &myreq.ContingentCondition);
226
+ getDouble(req, "StopPrice", &myreq.StopPrice);
227
+ getChar(req, "ForceCloseReason", &myreq.ForceCloseReason);
228
+ getInt(req, "IsAutoSuspend", &myreq.IsAutoSuspend);
229
+ getString(req, "BusinessUnit", myreq.BusinessUnit);
230
+ getInt(req, "RequestID", &myreq.RequestID);
231
+ getInt(req, "UserForceClose", &myreq.UserForceClose);
232
+ getString(req, "ExchangeID", myreq.ExchangeID);
233
+ getString(req, "ParkedOrderID", myreq.ParkedOrderID);
234
+ getChar(req, "UserType", &myreq.UserType);
235
+ getChar(req, "Status", &myreq.Status);
236
+ getInt(req, "ErrorID", &myreq.ErrorID);
237
+ getString(req, "ErrorMsg", myreq.ErrorMsg);
238
+ getInt(req, "IsSwapOrder", &myreq.IsSwapOrder);
239
+ getString(req, "AccountID", myreq.AccountID);
240
+ getString(req, "CurrencyID", myreq.CurrencyID);
241
+ getString(req, "ClientID", myreq.ClientID);
242
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
243
+ getString(req, "reserve2", myreq.reserve2);
244
+ getString(req, "MacAddress", myreq.MacAddress);
245
+ getString(req, "InstrumentID", myreq.InstrumentID);
246
+ getString(req, "IPAddress", myreq.IPAddress);
247
+ int i = this->api->ReqParkedOrderInsert(&myreq, reqid);
248
+ return i;
249
+ };
250
+
251
+ int TdApi::reqParkedOrderAction(const dict &req, int reqid)
252
+ {
253
+ CThostFtdcParkedOrderActionField myreq = CThostFtdcParkedOrderActionField();
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
+ getString(req, "OrderRef", myreq.OrderRef);
259
+ getInt(req, "RequestID", &myreq.RequestID);
260
+ getInt(req, "FrontID", &myreq.FrontID);
261
+ getInt(req, "SessionID", &myreq.SessionID);
262
+ getString(req, "ExchangeID", myreq.ExchangeID);
263
+ getString(req, "OrderSysID", myreq.OrderSysID);
264
+ getChar(req, "ActionFlag", &myreq.ActionFlag);
265
+ getDouble(req, "LimitPrice", &myreq.LimitPrice);
266
+ getInt(req, "VolumeChange", &myreq.VolumeChange);
267
+ getString(req, "UserID", myreq.UserID);
268
+ getString(req, "reserve1", myreq.reserve1);
269
+ getString(req, "ParkedOrderActionID", myreq.ParkedOrderActionID);
270
+ getChar(req, "UserType", &myreq.UserType);
271
+ getChar(req, "Status", &myreq.Status);
272
+ getInt(req, "ErrorID", &myreq.ErrorID);
273
+ getString(req, "ErrorMsg", myreq.ErrorMsg);
274
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
275
+ getString(req, "reserve2", myreq.reserve2);
276
+ getString(req, "MacAddress", myreq.MacAddress);
277
+ getString(req, "InstrumentID", myreq.InstrumentID);
278
+ getString(req, "IPAddress", myreq.IPAddress);
279
+ int i = this->api->ReqParkedOrderAction(&myreq, reqid);
280
+ return i;
281
+ };
282
+
283
+ int TdApi::reqOrderAction(const dict &req, int reqid)
284
+ {
285
+ CThostFtdcInputOrderActionField myreq = CThostFtdcInputOrderActionField();
286
+ memset(&myreq, 0, sizeof(myreq));
287
+ getString(req, "BrokerID", myreq.BrokerID);
288
+ getString(req, "InvestorID", myreq.InvestorID);
289
+ getInt(req, "OrderActionRef", &myreq.OrderActionRef);
290
+ getString(req, "OrderRef", myreq.OrderRef);
291
+ getInt(req, "RequestID", &myreq.RequestID);
292
+ getInt(req, "FrontID", &myreq.FrontID);
293
+ getInt(req, "SessionID", &myreq.SessionID);
294
+ getString(req, "ExchangeID", myreq.ExchangeID);
295
+ getString(req, "OrderSysID", myreq.OrderSysID);
296
+ getChar(req, "ActionFlag", &myreq.ActionFlag);
297
+ getDouble(req, "LimitPrice", &myreq.LimitPrice);
298
+ getInt(req, "VolumeChange", &myreq.VolumeChange);
299
+ getString(req, "UserID", myreq.UserID);
300
+ getString(req, "reserve1", myreq.reserve1);
301
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
302
+ getString(req, "reserve2", myreq.reserve2);
303
+ getString(req, "MacAddress", myreq.MacAddress);
304
+ getString(req, "InstrumentID", myreq.InstrumentID);
305
+ getString(req, "IPAddress", myreq.IPAddress);
306
+ int i = this->api->ReqOrderAction(&myreq, reqid);
307
+ return i;
308
+ };
309
+
310
+ int TdApi::reqQryMaxOrderVolume(const dict &req, int reqid)
311
+ {
312
+ CThostFtdcQryMaxOrderVolumeField myreq = CThostFtdcQryMaxOrderVolumeField();
313
+ memset(&myreq, 0, sizeof(myreq));
314
+ getString(req, "BrokerID", myreq.BrokerID);
315
+ getString(req, "InvestorID", myreq.InvestorID);
316
+ getString(req, "reserve1", myreq.reserve1);
317
+ getChar(req, "Direction", &myreq.Direction);
318
+ getChar(req, "OffsetFlag", &myreq.OffsetFlag);
319
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
320
+ getInt(req, "MaxVolume", &myreq.MaxVolume);
321
+ getString(req, "ExchangeID", myreq.ExchangeID);
322
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
323
+ getString(req, "InstrumentID", myreq.InstrumentID);
324
+ int i = this->api->ReqQryMaxOrderVolume(&myreq, reqid);
325
+ return i;
326
+ };
327
+
328
+ int TdApi::reqSettlementInfoConfirm(const dict &req, int reqid)
329
+ {
330
+ CThostFtdcSettlementInfoConfirmField myreq = CThostFtdcSettlementInfoConfirmField();
331
+ memset(&myreq, 0, sizeof(myreq));
332
+ getString(req, "BrokerID", myreq.BrokerID);
333
+ getString(req, "InvestorID", myreq.InvestorID);
334
+ getString(req, "ConfirmDate", myreq.ConfirmDate);
335
+ getString(req, "ConfirmTime", myreq.ConfirmTime);
336
+ getInt(req, "SettlementID", &myreq.SettlementID);
337
+ getString(req, "AccountID", myreq.AccountID);
338
+ getString(req, "CurrencyID", myreq.CurrencyID);
339
+ int i = this->api->ReqSettlementInfoConfirm(&myreq, reqid);
340
+ return i;
341
+ };
342
+
343
+ int TdApi::reqRemoveParkedOrder(const dict &req, int reqid)
344
+ {
345
+ CThostFtdcRemoveParkedOrderField myreq = CThostFtdcRemoveParkedOrderField();
346
+ memset(&myreq, 0, sizeof(myreq));
347
+ getString(req, "BrokerID", myreq.BrokerID);
348
+ getString(req, "InvestorID", myreq.InvestorID);
349
+ getString(req, "ParkedOrderID", myreq.ParkedOrderID);
350
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
351
+ int i = this->api->ReqRemoveParkedOrder(&myreq, reqid);
352
+ return i;
353
+ };
354
+
355
+ int TdApi::reqRemoveParkedOrderAction(const dict &req, int reqid)
356
+ {
357
+ CThostFtdcRemoveParkedOrderActionField myreq = CThostFtdcRemoveParkedOrderActionField();
358
+ memset(&myreq, 0, sizeof(myreq));
359
+ getString(req, "BrokerID", myreq.BrokerID);
360
+ getString(req, "InvestorID", myreq.InvestorID);
361
+ getString(req, "ParkedOrderActionID", myreq.ParkedOrderActionID);
362
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
363
+ int i = this->api->ReqRemoveParkedOrderAction(&myreq, reqid);
364
+ return i;
365
+ };
366
+
367
+ int TdApi::reqExecOrderInsert(const dict &req, int reqid)
368
+ {
369
+ CThostFtdcInputExecOrderField myreq = CThostFtdcInputExecOrderField();
370
+ memset(&myreq, 0, sizeof(myreq));
371
+ getString(req, "BrokerID", myreq.BrokerID);
372
+ getString(req, "InvestorID", myreq.InvestorID);
373
+ getString(req, "reserve1", myreq.reserve1);
374
+ getString(req, "ExecOrderRef", myreq.ExecOrderRef);
375
+ getString(req, "UserID", myreq.UserID);
376
+ getInt(req, "Volume", &myreq.Volume);
377
+ getInt(req, "RequestID", &myreq.RequestID);
378
+ getString(req, "BusinessUnit", myreq.BusinessUnit);
379
+ getChar(req, "OffsetFlag", &myreq.OffsetFlag);
380
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
381
+ getChar(req, "ActionType", &myreq.ActionType);
382
+ getChar(req, "PosiDirection", &myreq.PosiDirection);
383
+ getChar(req, "ReservePositionFlag", &myreq.ReservePositionFlag);
384
+ getChar(req, "CloseFlag", &myreq.CloseFlag);
385
+ getString(req, "ExchangeID", myreq.ExchangeID);
386
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
387
+ getString(req, "AccountID", myreq.AccountID);
388
+ getString(req, "CurrencyID", myreq.CurrencyID);
389
+ getString(req, "ClientID", myreq.ClientID);
390
+ getString(req, "reserve2", myreq.reserve2);
391
+ getString(req, "MacAddress", myreq.MacAddress);
392
+ getString(req, "InstrumentID", myreq.InstrumentID);
393
+ getString(req, "IPAddress", myreq.IPAddress);
394
+ int i = this->api->ReqExecOrderInsert(&myreq, reqid);
395
+ return i;
396
+ };
397
+
398
+ int TdApi::reqExecOrderAction(const dict &req, int reqid)
399
+ {
400
+ CThostFtdcInputExecOrderActionField myreq = CThostFtdcInputExecOrderActionField();
401
+ memset(&myreq, 0, sizeof(myreq));
402
+ getString(req, "BrokerID", myreq.BrokerID);
403
+ getString(req, "InvestorID", myreq.InvestorID);
404
+ getInt(req, "ExecOrderActionRef", &myreq.ExecOrderActionRef);
405
+ getString(req, "ExecOrderRef", myreq.ExecOrderRef);
406
+ getInt(req, "RequestID", &myreq.RequestID);
407
+ getInt(req, "FrontID", &myreq.FrontID);
408
+ getInt(req, "SessionID", &myreq.SessionID);
409
+ getString(req, "ExchangeID", myreq.ExchangeID);
410
+ getString(req, "ExecOrderSysID", myreq.ExecOrderSysID);
411
+ getChar(req, "ActionFlag", &myreq.ActionFlag);
412
+ getString(req, "UserID", myreq.UserID);
413
+ getString(req, "reserve1", myreq.reserve1);
414
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
415
+ getString(req, "reserve2", myreq.reserve2);
416
+ getString(req, "MacAddress", myreq.MacAddress);
417
+ getString(req, "InstrumentID", myreq.InstrumentID);
418
+ getString(req, "IPAddress", myreq.IPAddress);
419
+ int i = this->api->ReqExecOrderAction(&myreq, reqid);
420
+ return i;
421
+ };
422
+
423
+ int TdApi::reqForQuoteInsert(const dict &req, int reqid)
424
+ {
425
+ CThostFtdcInputForQuoteField myreq = CThostFtdcInputForQuoteField();
426
+ memset(&myreq, 0, sizeof(myreq));
427
+ getString(req, "BrokerID", myreq.BrokerID);
428
+ getString(req, "InvestorID", myreq.InvestorID);
429
+ getString(req, "reserve1", myreq.reserve1);
430
+ getString(req, "ForQuoteRef", myreq.ForQuoteRef);
431
+ getString(req, "UserID", myreq.UserID);
432
+ getString(req, "ExchangeID", myreq.ExchangeID);
433
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
434
+ getString(req, "reserve2", myreq.reserve2);
435
+ getString(req, "MacAddress", myreq.MacAddress);
436
+ getString(req, "InstrumentID", myreq.InstrumentID);
437
+ getString(req, "IPAddress", myreq.IPAddress);
438
+ int i = this->api->ReqForQuoteInsert(&myreq, reqid);
439
+ return i;
440
+ };
441
+
442
+ int TdApi::reqQuoteInsert(const dict &req, int reqid)
443
+ {
444
+ CThostFtdcInputQuoteField myreq = CThostFtdcInputQuoteField();
445
+ memset(&myreq, 0, sizeof(myreq));
446
+ getString(req, "BrokerID", myreq.BrokerID);
447
+ getString(req, "InvestorID", myreq.InvestorID);
448
+ getString(req, "reserve1", myreq.reserve1);
449
+ getString(req, "QuoteRef", myreq.QuoteRef);
450
+ getString(req, "UserID", myreq.UserID);
451
+ getDouble(req, "AskPrice", &myreq.AskPrice);
452
+ getDouble(req, "BidPrice", &myreq.BidPrice);
453
+ getInt(req, "AskVolume", &myreq.AskVolume);
454
+ getInt(req, "BidVolume", &myreq.BidVolume);
455
+ getInt(req, "RequestID", &myreq.RequestID);
456
+ getString(req, "BusinessUnit", myreq.BusinessUnit);
457
+ getChar(req, "AskOffsetFlag", &myreq.AskOffsetFlag);
458
+ getChar(req, "BidOffsetFlag", &myreq.BidOffsetFlag);
459
+ getChar(req, "AskHedgeFlag", &myreq.AskHedgeFlag);
460
+ getChar(req, "BidHedgeFlag", &myreq.BidHedgeFlag);
461
+ getString(req, "AskOrderRef", myreq.AskOrderRef);
462
+ getString(req, "BidOrderRef", myreq.BidOrderRef);
463
+ getString(req, "ForQuoteSysID", myreq.ForQuoteSysID);
464
+ getString(req, "ExchangeID", myreq.ExchangeID);
465
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
466
+ getString(req, "ClientID", myreq.ClientID);
467
+ getString(req, "reserve2", myreq.reserve2);
468
+ getString(req, "MacAddress", myreq.MacAddress);
469
+ getString(req, "InstrumentID", myreq.InstrumentID);
470
+ getString(req, "IPAddress", myreq.IPAddress);
471
+ getString(req, "ReplaceSysID", myreq.ReplaceSysID);
472
+ int i = this->api->ReqQuoteInsert(&myreq, reqid);
473
+ return i;
474
+ };
475
+
476
+ int TdApi::reqQuoteAction(const dict &req, int reqid)
477
+ {
478
+ CThostFtdcInputQuoteActionField myreq = CThostFtdcInputQuoteActionField();
479
+ memset(&myreq, 0, sizeof(myreq));
480
+ getString(req, "BrokerID", myreq.BrokerID);
481
+ getString(req, "InvestorID", myreq.InvestorID);
482
+ getInt(req, "QuoteActionRef", &myreq.QuoteActionRef);
483
+ getString(req, "QuoteRef", myreq.QuoteRef);
484
+ getInt(req, "RequestID", &myreq.RequestID);
485
+ getInt(req, "FrontID", &myreq.FrontID);
486
+ getInt(req, "SessionID", &myreq.SessionID);
487
+ getString(req, "ExchangeID", myreq.ExchangeID);
488
+ getString(req, "QuoteSysID", myreq.QuoteSysID);
489
+ getChar(req, "ActionFlag", &myreq.ActionFlag);
490
+ getString(req, "UserID", myreq.UserID);
491
+ getString(req, "reserve1", myreq.reserve1);
492
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
493
+ getString(req, "ClientID", myreq.ClientID);
494
+ getString(req, "reserve2", myreq.reserve2);
495
+ getString(req, "MacAddress", myreq.MacAddress);
496
+ getString(req, "InstrumentID", myreq.InstrumentID);
497
+ getString(req, "IPAddress", myreq.IPAddress);
498
+ int i = this->api->ReqQuoteAction(&myreq, reqid);
499
+ return i;
500
+ };
501
+
502
+ int TdApi::reqBatchOrderAction(const dict &req, int reqid)
503
+ {
504
+ CThostFtdcInputBatchOrderActionField myreq = CThostFtdcInputBatchOrderActionField();
505
+ memset(&myreq, 0, sizeof(myreq));
506
+ getString(req, "BrokerID", myreq.BrokerID);
507
+ getString(req, "InvestorID", myreq.InvestorID);
508
+ getInt(req, "OrderActionRef", &myreq.OrderActionRef);
509
+ getInt(req, "RequestID", &myreq.RequestID);
510
+ getInt(req, "FrontID", &myreq.FrontID);
511
+ getInt(req, "SessionID", &myreq.SessionID);
512
+ getString(req, "ExchangeID", myreq.ExchangeID);
513
+ getString(req, "UserID", myreq.UserID);
514
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
515
+ getString(req, "reserve1", myreq.reserve1);
516
+ getString(req, "MacAddress", myreq.MacAddress);
517
+ getString(req, "IPAddress", myreq.IPAddress);
518
+ int i = this->api->ReqBatchOrderAction(&myreq, reqid);
519
+ return i;
520
+ };
521
+
522
+ int TdApi::reqOptionSelfCloseInsert(const dict &req, int reqid)
523
+ {
524
+ CThostFtdcInputOptionSelfCloseField myreq = CThostFtdcInputOptionSelfCloseField();
525
+ memset(&myreq, 0, sizeof(myreq));
526
+ getString(req, "BrokerID", myreq.BrokerID);
527
+ getString(req, "InvestorID", myreq.InvestorID);
528
+ getString(req, "reserve1", myreq.reserve1);
529
+ getString(req, "OptionSelfCloseRef", myreq.OptionSelfCloseRef);
530
+ getString(req, "UserID", myreq.UserID);
531
+ getInt(req, "Volume", &myreq.Volume);
532
+ getInt(req, "RequestID", &myreq.RequestID);
533
+ getString(req, "BusinessUnit", myreq.BusinessUnit);
534
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
535
+ getChar(req, "OptSelfCloseFlag", &myreq.OptSelfCloseFlag);
536
+ getString(req, "ExchangeID", myreq.ExchangeID);
537
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
538
+ getString(req, "AccountID", myreq.AccountID);
539
+ getString(req, "CurrencyID", myreq.CurrencyID);
540
+ getString(req, "ClientID", myreq.ClientID);
541
+ getString(req, "reserve2", myreq.reserve2);
542
+ getString(req, "MacAddress", myreq.MacAddress);
543
+ getString(req, "InstrumentID", myreq.InstrumentID);
544
+ getString(req, "IPAddress", myreq.IPAddress);
545
+ int i = this->api->ReqOptionSelfCloseInsert(&myreq, reqid);
546
+ return i;
547
+ };
548
+
549
+ int TdApi::reqOptionSelfCloseAction(const dict &req, int reqid)
550
+ {
551
+ CThostFtdcInputOptionSelfCloseActionField myreq = CThostFtdcInputOptionSelfCloseActionField();
552
+ memset(&myreq, 0, sizeof(myreq));
553
+ getString(req, "BrokerID", myreq.BrokerID);
554
+ getString(req, "InvestorID", myreq.InvestorID);
555
+ getInt(req, "OptionSelfCloseActionRef", &myreq.OptionSelfCloseActionRef);
556
+ getString(req, "OptionSelfCloseRef", myreq.OptionSelfCloseRef);
557
+ getInt(req, "RequestID", &myreq.RequestID);
558
+ getInt(req, "FrontID", &myreq.FrontID);
559
+ getInt(req, "SessionID", &myreq.SessionID);
560
+ getString(req, "ExchangeID", myreq.ExchangeID);
561
+ getString(req, "OptionSelfCloseSysID", myreq.OptionSelfCloseSysID);
562
+ getChar(req, "ActionFlag", &myreq.ActionFlag);
563
+ getString(req, "UserID", myreq.UserID);
564
+ getString(req, "reserve1", myreq.reserve1);
565
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
566
+ getString(req, "reserve2", myreq.reserve2);
567
+ getString(req, "MacAddress", myreq.MacAddress);
568
+ getString(req, "InstrumentID", myreq.InstrumentID);
569
+ getString(req, "IPAddress", myreq.IPAddress);
570
+ int i = this->api->ReqOptionSelfCloseAction(&myreq, reqid);
571
+ return i;
572
+ };
573
+
574
+ int TdApi::reqCombActionInsert(const dict &req, int reqid)
575
+ {
576
+ CThostFtdcInputCombActionField myreq = CThostFtdcInputCombActionField();
577
+ memset(&myreq, 0, sizeof(myreq));
578
+ getString(req, "BrokerID", myreq.BrokerID);
579
+ getString(req, "InvestorID", myreq.InvestorID);
580
+ getString(req, "reserve1", myreq.reserve1);
581
+ getString(req, "CombActionRef", myreq.CombActionRef);
582
+ getString(req, "UserID", myreq.UserID);
583
+ getChar(req, "Direction", &myreq.Direction);
584
+ getInt(req, "Volume", &myreq.Volume);
585
+ getChar(req, "CombDirection", &myreq.CombDirection);
586
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
587
+ getString(req, "ExchangeID", myreq.ExchangeID);
588
+ getString(req, "reserve2", myreq.reserve2);
589
+ getString(req, "MacAddress", myreq.MacAddress);
590
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
591
+ getInt(req, "FrontID", &myreq.FrontID);
592
+ getInt(req, "SessionID", &myreq.SessionID);
593
+ getString(req, "InstrumentID", myreq.InstrumentID);
594
+ getString(req, "IPAddress", myreq.IPAddress);
595
+ int i = this->api->ReqCombActionInsert(&myreq, reqid);
596
+ return i;
597
+ };
598
+
599
+ int TdApi::reqQryOrder(const dict &req, int reqid)
600
+ {
601
+ CThostFtdcQryOrderField myreq = CThostFtdcQryOrderField();
602
+ memset(&myreq, 0, sizeof(myreq));
603
+ getString(req, "BrokerID", myreq.BrokerID);
604
+ getString(req, "InvestorID", myreq.InvestorID);
605
+ getString(req, "reserve1", myreq.reserve1);
606
+ getString(req, "ExchangeID", myreq.ExchangeID);
607
+ getString(req, "OrderSysID", myreq.OrderSysID);
608
+ getString(req, "InsertTimeStart", myreq.InsertTimeStart);
609
+ getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
610
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
611
+ getString(req, "InstrumentID", myreq.InstrumentID);
612
+ int i = this->api->ReqQryOrder(&myreq, reqid);
613
+ return i;
614
+ };
615
+
616
+ int TdApi::reqQryTrade(const dict &req, int reqid)
617
+ {
618
+ CThostFtdcQryTradeField myreq = CThostFtdcQryTradeField();
619
+ memset(&myreq, 0, sizeof(myreq));
620
+ getString(req, "BrokerID", myreq.BrokerID);
621
+ getString(req, "InvestorID", myreq.InvestorID);
622
+ getString(req, "reserve1", myreq.reserve1);
623
+ getString(req, "ExchangeID", myreq.ExchangeID);
624
+ getString(req, "TradeID", myreq.TradeID);
625
+ getString(req, "TradeTimeStart", myreq.TradeTimeStart);
626
+ getString(req, "TradeTimeEnd", myreq.TradeTimeEnd);
627
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
628
+ getString(req, "InstrumentID", myreq.InstrumentID);
629
+ int i = this->api->ReqQryTrade(&myreq, reqid);
630
+ return i;
631
+ };
632
+
633
+ int TdApi::reqQryInvestorPosition(const dict &req, int reqid)
634
+ {
635
+ CThostFtdcQryInvestorPositionField myreq = CThostFtdcQryInvestorPositionField();
636
+ memset(&myreq, 0, sizeof(myreq));
637
+ getString(req, "BrokerID", myreq.BrokerID);
638
+ getString(req, "InvestorID", myreq.InvestorID);
639
+ getString(req, "reserve1", myreq.reserve1);
640
+ getString(req, "ExchangeID", myreq.ExchangeID);
641
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
642
+ getString(req, "InstrumentID", myreq.InstrumentID);
643
+ int i = this->api->ReqQryInvestorPosition(&myreq, reqid);
644
+ return i;
645
+ };
646
+
647
+ int TdApi::reqQryTradingAccount(const dict &req, int reqid)
648
+ {
649
+ CThostFtdcQryTradingAccountField myreq = CThostFtdcQryTradingAccountField();
650
+ memset(&myreq, 0, sizeof(myreq));
651
+ getString(req, "BrokerID", myreq.BrokerID);
652
+ getString(req, "InvestorID", myreq.InvestorID);
653
+ getString(req, "CurrencyID", myreq.CurrencyID);
654
+ getChar(req, "BizType", &myreq.BizType);
655
+ getString(req, "AccountID", myreq.AccountID);
656
+ int i = this->api->ReqQryTradingAccount(&myreq, reqid);
657
+ return i;
658
+ };
659
+
660
+ int TdApi::reqQryInvestor(const dict &req, int reqid)
661
+ {
662
+ CThostFtdcQryInvestorField myreq = CThostFtdcQryInvestorField();
663
+ memset(&myreq, 0, sizeof(myreq));
664
+ getString(req, "BrokerID", myreq.BrokerID);
665
+ getString(req, "InvestorID", myreq.InvestorID);
666
+ int i = this->api->ReqQryInvestor(&myreq, reqid);
667
+ return i;
668
+ };
669
+
670
+ int TdApi::reqQryTradingCode(const dict &req, int reqid)
671
+ {
672
+ CThostFtdcQryTradingCodeField myreq = CThostFtdcQryTradingCodeField();
673
+ memset(&myreq, 0, sizeof(myreq));
674
+ getString(req, "BrokerID", myreq.BrokerID);
675
+ getString(req, "InvestorID", myreq.InvestorID);
676
+ getString(req, "ExchangeID", myreq.ExchangeID);
677
+ getString(req, "ClientID", myreq.ClientID);
678
+ getChar(req, "ClientIDType", &myreq.ClientIDType);
679
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
680
+ int i = this->api->ReqQryTradingCode(&myreq, reqid);
681
+ return i;
682
+ };
683
+
684
+ int TdApi::reqQryInstrumentMarginRate(const dict &req, int reqid)
685
+ {
686
+ CThostFtdcQryInstrumentMarginRateField myreq = CThostFtdcQryInstrumentMarginRateField();
687
+ memset(&myreq, 0, sizeof(myreq));
688
+ getString(req, "BrokerID", myreq.BrokerID);
689
+ getString(req, "InvestorID", myreq.InvestorID);
690
+ getString(req, "reserve1", myreq.reserve1);
691
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
692
+ getString(req, "ExchangeID", myreq.ExchangeID);
693
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
694
+ getString(req, "InstrumentID", myreq.InstrumentID);
695
+ int i = this->api->ReqQryInstrumentMarginRate(&myreq, reqid);
696
+ return i;
697
+ };
698
+
699
+ int TdApi::reqQryInstrumentCommissionRate(const dict &req, int reqid)
700
+ {
701
+ CThostFtdcQryInstrumentCommissionRateField myreq = CThostFtdcQryInstrumentCommissionRateField();
702
+ memset(&myreq, 0, sizeof(myreq));
703
+ getString(req, "BrokerID", myreq.BrokerID);
704
+ getString(req, "InvestorID", myreq.InvestorID);
705
+ getString(req, "reserve1", myreq.reserve1);
706
+ getString(req, "ExchangeID", myreq.ExchangeID);
707
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
708
+ getString(req, "InstrumentID", myreq.InstrumentID);
709
+ int i = this->api->ReqQryInstrumentCommissionRate(&myreq, reqid);
710
+ return i;
711
+ };
712
+
713
+ int TdApi::reqQryExchange(const dict &req, int reqid)
714
+ {
715
+ CThostFtdcQryExchangeField myreq = CThostFtdcQryExchangeField();
716
+ memset(&myreq, 0, sizeof(myreq));
717
+ getString(req, "ExchangeID", myreq.ExchangeID);
718
+ int i = this->api->ReqQryExchange(&myreq, reqid);
719
+ return i;
720
+ };
721
+
722
+ int TdApi::reqQryProduct(const dict &req, int reqid)
723
+ {
724
+ CThostFtdcQryProductField myreq = CThostFtdcQryProductField();
725
+ memset(&myreq, 0, sizeof(myreq));
726
+ getString(req, "reserve1", myreq.reserve1);
727
+ getChar(req, "ProductClass", &myreq.ProductClass);
728
+ getString(req, "ExchangeID", myreq.ExchangeID);
729
+ getString(req, "ProductID", myreq.ProductID);
730
+ int i = this->api->ReqQryProduct(&myreq, reqid);
731
+ return i;
732
+ };
733
+
734
+ int TdApi::reqQryInstrument(const dict &req, int reqid)
735
+ {
736
+ CThostFtdcQryInstrumentField myreq = CThostFtdcQryInstrumentField();
737
+ memset(&myreq, 0, sizeof(myreq));
738
+ getString(req, "reserve1", myreq.reserve1);
739
+ getString(req, "ExchangeID", myreq.ExchangeID);
740
+ getString(req, "reserve2", myreq.reserve2);
741
+ getString(req, "reserve3", myreq.reserve3);
742
+ getString(req, "InstrumentID", myreq.InstrumentID);
743
+ getString(req, "ExchangeInstID", myreq.ExchangeInstID);
744
+ getString(req, "ProductID", myreq.ProductID);
745
+ int i = this->api->ReqQryInstrument(&myreq, reqid);
746
+ return i;
747
+ };
748
+
749
+ int TdApi::reqQryDepthMarketData(const dict &req, int reqid)
750
+ {
751
+ CThostFtdcQryDepthMarketDataField myreq = CThostFtdcQryDepthMarketDataField();
752
+ memset(&myreq, 0, sizeof(myreq));
753
+ getString(req, "reserve1", myreq.reserve1);
754
+ getString(req, "ExchangeID", myreq.ExchangeID);
755
+ getString(req, "InstrumentID", myreq.InstrumentID);
756
+ int i = this->api->ReqQryDepthMarketData(&myreq, reqid);
757
+ return i;
758
+ };
759
+
760
+ int TdApi::reqQryTraderOffer(const dict &req, int reqid)
761
+ {
762
+ CThostFtdcQryTraderOfferField myreq = CThostFtdcQryTraderOfferField();
763
+ memset(&myreq, 0, sizeof(myreq));
764
+ getString(req, "ExchangeID", myreq.ExchangeID);
765
+ getString(req, "ParticipantID", myreq.ParticipantID);
766
+ getString(req, "TraderID", myreq.TraderID);
767
+ int i = this->api->ReqQryTraderOffer(&myreq, reqid);
768
+ return i;
769
+ };
770
+
771
+ int TdApi::reqQrySettlementInfo(const dict &req, int reqid)
772
+ {
773
+ CThostFtdcQrySettlementInfoField myreq = CThostFtdcQrySettlementInfoField();
774
+ memset(&myreq, 0, sizeof(myreq));
775
+ getString(req, "BrokerID", myreq.BrokerID);
776
+ getString(req, "InvestorID", myreq.InvestorID);
777
+ getString(req, "TradingDay", myreq.TradingDay);
778
+ getString(req, "AccountID", myreq.AccountID);
779
+ getString(req, "CurrencyID", myreq.CurrencyID);
780
+ int i = this->api->ReqQrySettlementInfo(&myreq, reqid);
781
+ return i;
782
+ };
783
+
784
+ int TdApi::reqQryTransferBank(const dict &req, int reqid)
785
+ {
786
+ CThostFtdcQryTransferBankField myreq = CThostFtdcQryTransferBankField();
787
+ memset(&myreq, 0, sizeof(myreq));
788
+ getString(req, "BankID", myreq.BankID);
789
+ getString(req, "BankBrchID", myreq.BankBrchID);
790
+ int i = this->api->ReqQryTransferBank(&myreq, reqid);
791
+ return i;
792
+ };
793
+
794
+ int TdApi::reqQryInvestorPositionDetail(const dict &req, int reqid)
795
+ {
796
+ CThostFtdcQryInvestorPositionDetailField myreq = CThostFtdcQryInvestorPositionDetailField();
797
+ memset(&myreq, 0, sizeof(myreq));
798
+ getString(req, "BrokerID", myreq.BrokerID);
799
+ getString(req, "InvestorID", myreq.InvestorID);
800
+ getString(req, "reserve1", myreq.reserve1);
801
+ getString(req, "ExchangeID", myreq.ExchangeID);
802
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
803
+ getString(req, "InstrumentID", myreq.InstrumentID);
804
+ int i = this->api->ReqQryInvestorPositionDetail(&myreq, reqid);
805
+ return i;
806
+ };
807
+
808
+ int TdApi::reqQryNotice(const dict &req, int reqid)
809
+ {
810
+ CThostFtdcQryNoticeField myreq = CThostFtdcQryNoticeField();
811
+ memset(&myreq, 0, sizeof(myreq));
812
+ getString(req, "BrokerID", myreq.BrokerID);
813
+ int i = this->api->ReqQryNotice(&myreq, reqid);
814
+ return i;
815
+ };
816
+
817
+ int TdApi::reqQrySettlementInfoConfirm(const dict &req, int reqid)
818
+ {
819
+ CThostFtdcQrySettlementInfoConfirmField myreq = CThostFtdcQrySettlementInfoConfirmField();
820
+ memset(&myreq, 0, sizeof(myreq));
821
+ getString(req, "BrokerID", myreq.BrokerID);
822
+ getString(req, "InvestorID", myreq.InvestorID);
823
+ getString(req, "AccountID", myreq.AccountID);
824
+ getString(req, "CurrencyID", myreq.CurrencyID);
825
+ int i = this->api->ReqQrySettlementInfoConfirm(&myreq, reqid);
826
+ return i;
827
+ };
828
+
829
+ int TdApi::reqQryInvestorPositionCombineDetail(const dict &req, int reqid)
830
+ {
831
+ CThostFtdcQryInvestorPositionCombineDetailField myreq = CThostFtdcQryInvestorPositionCombineDetailField();
832
+ memset(&myreq, 0, sizeof(myreq));
833
+ getString(req, "BrokerID", myreq.BrokerID);
834
+ getString(req, "InvestorID", myreq.InvestorID);
835
+ getString(req, "reserve1", myreq.reserve1);
836
+ getString(req, "ExchangeID", myreq.ExchangeID);
837
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
838
+ getString(req, "CombInstrumentID", myreq.CombInstrumentID);
839
+ int i = this->api->ReqQryInvestorPositionCombineDetail(&myreq, reqid);
840
+ return i;
841
+ };
842
+
843
+ int TdApi::reqQryCFMMCTradingAccountKey(const dict &req, int reqid)
844
+ {
845
+ CThostFtdcQryCFMMCTradingAccountKeyField myreq = CThostFtdcQryCFMMCTradingAccountKeyField();
846
+ memset(&myreq, 0, sizeof(myreq));
847
+ getString(req, "BrokerID", myreq.BrokerID);
848
+ getString(req, "InvestorID", myreq.InvestorID);
849
+ int i = this->api->ReqQryCFMMCTradingAccountKey(&myreq, reqid);
850
+ return i;
851
+ };
852
+
853
+ int TdApi::reqQryEWarrantOffset(const dict &req, int reqid)
854
+ {
855
+ CThostFtdcQryEWarrantOffsetField myreq = CThostFtdcQryEWarrantOffsetField();
856
+ memset(&myreq, 0, sizeof(myreq));
857
+ getString(req, "BrokerID", myreq.BrokerID);
858
+ getString(req, "InvestorID", myreq.InvestorID);
859
+ getString(req, "ExchangeID", myreq.ExchangeID);
860
+ getString(req, "reserve1", myreq.reserve1);
861
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
862
+ getString(req, "InstrumentID", myreq.InstrumentID);
863
+ int i = this->api->ReqQryEWarrantOffset(&myreq, reqid);
864
+ return i;
865
+ };
866
+
867
+ int TdApi::reqQryInvestorProductGroupMargin(const dict &req, int reqid)
868
+ {
869
+ CThostFtdcQryInvestorProductGroupMarginField myreq = CThostFtdcQryInvestorProductGroupMarginField();
870
+ memset(&myreq, 0, sizeof(myreq));
871
+ getString(req, "BrokerID", myreq.BrokerID);
872
+ getString(req, "InvestorID", myreq.InvestorID);
873
+ getString(req, "reserve1", myreq.reserve1);
874
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
875
+ getString(req, "ExchangeID", myreq.ExchangeID);
876
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
877
+ getString(req, "ProductGroupID", myreq.ProductGroupID);
878
+ int i = this->api->ReqQryInvestorProductGroupMargin(&myreq, reqid);
879
+ return i;
880
+ };
881
+
882
+ int TdApi::reqQryExchangeMarginRate(const dict &req, int reqid)
883
+ {
884
+ CThostFtdcQryExchangeMarginRateField myreq = CThostFtdcQryExchangeMarginRateField();
885
+ memset(&myreq, 0, sizeof(myreq));
886
+ getString(req, "BrokerID", myreq.BrokerID);
887
+ getString(req, "reserve1", myreq.reserve1);
888
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
889
+ getString(req, "ExchangeID", myreq.ExchangeID);
890
+ getString(req, "InstrumentID", myreq.InstrumentID);
891
+ int i = this->api->ReqQryExchangeMarginRate(&myreq, reqid);
892
+ return i;
893
+ };
894
+
895
+ int TdApi::reqQryExchangeMarginRateAdjust(const dict &req, int reqid)
896
+ {
897
+ CThostFtdcQryExchangeMarginRateAdjustField myreq = CThostFtdcQryExchangeMarginRateAdjustField();
898
+ memset(&myreq, 0, sizeof(myreq));
899
+ getString(req, "BrokerID", myreq.BrokerID);
900
+ getString(req, "reserve1", myreq.reserve1);
901
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
902
+ getString(req, "InstrumentID", myreq.InstrumentID);
903
+ int i = this->api->ReqQryExchangeMarginRateAdjust(&myreq, reqid);
904
+ return i;
905
+ };
906
+
907
+ int TdApi::reqQryExchangeRate(const dict &req, int reqid)
908
+ {
909
+ CThostFtdcQryExchangeRateField myreq = CThostFtdcQryExchangeRateField();
910
+ memset(&myreq, 0, sizeof(myreq));
911
+ getString(req, "BrokerID", myreq.BrokerID);
912
+ getString(req, "FromCurrencyID", myreq.FromCurrencyID);
913
+ getString(req, "ToCurrencyID", myreq.ToCurrencyID);
914
+ int i = this->api->ReqQryExchangeRate(&myreq, reqid);
915
+ return i;
916
+ };
917
+
918
+ int TdApi::reqQrySecAgentACIDMap(const dict &req, int reqid)
919
+ {
920
+ CThostFtdcQrySecAgentACIDMapField myreq = CThostFtdcQrySecAgentACIDMapField();
921
+ memset(&myreq, 0, sizeof(myreq));
922
+ getString(req, "BrokerID", myreq.BrokerID);
923
+ getString(req, "UserID", myreq.UserID);
924
+ getString(req, "AccountID", myreq.AccountID);
925
+ getString(req, "CurrencyID", myreq.CurrencyID);
926
+ int i = this->api->ReqQrySecAgentACIDMap(&myreq, reqid);
927
+ return i;
928
+ };
929
+
930
+ int TdApi::reqQryProductExchRate(const dict &req, int reqid)
931
+ {
932
+ CThostFtdcQryProductExchRateField myreq = CThostFtdcQryProductExchRateField();
933
+ memset(&myreq, 0, sizeof(myreq));
934
+ getString(req, "reserve1", myreq.reserve1);
935
+ getString(req, "ExchangeID", myreq.ExchangeID);
936
+ getString(req, "ProductID", myreq.ProductID);
937
+ int i = this->api->ReqQryProductExchRate(&myreq, reqid);
938
+ return i;
939
+ };
940
+
941
+ int TdApi::reqQryProductGroup(const dict &req, int reqid)
942
+ {
943
+ CThostFtdcQryProductGroupField myreq = CThostFtdcQryProductGroupField();
944
+ memset(&myreq, 0, sizeof(myreq));
945
+ getString(req, "reserve1", myreq.reserve1);
946
+ getString(req, "ExchangeID", myreq.ExchangeID);
947
+ getString(req, "ProductID", myreq.ProductID);
948
+ int i = this->api->ReqQryProductGroup(&myreq, reqid);
949
+ return i;
950
+ };
951
+
952
+ int TdApi::reqQryMMInstrumentCommissionRate(const dict &req, int reqid)
953
+ {
954
+ CThostFtdcQryMMInstrumentCommissionRateField myreq = CThostFtdcQryMMInstrumentCommissionRateField();
955
+ memset(&myreq, 0, sizeof(myreq));
956
+ getString(req, "BrokerID", myreq.BrokerID);
957
+ getString(req, "InvestorID", myreq.InvestorID);
958
+ getString(req, "reserve1", myreq.reserve1);
959
+ getString(req, "InstrumentID", myreq.InstrumentID);
960
+ int i = this->api->ReqQryMMInstrumentCommissionRate(&myreq, reqid);
961
+ return i;
962
+ };
963
+
964
+ int TdApi::reqQryMMOptionInstrCommRate(const dict &req, int reqid)
965
+ {
966
+ CThostFtdcQryMMOptionInstrCommRateField myreq = CThostFtdcQryMMOptionInstrCommRateField();
967
+ memset(&myreq, 0, sizeof(myreq));
968
+ getString(req, "BrokerID", myreq.BrokerID);
969
+ getString(req, "InvestorID", myreq.InvestorID);
970
+ getString(req, "reserve1", myreq.reserve1);
971
+ getString(req, "InstrumentID", myreq.InstrumentID);
972
+ int i = this->api->ReqQryMMOptionInstrCommRate(&myreq, reqid);
973
+ return i;
974
+ };
975
+
976
+ int TdApi::reqQryInstrumentOrderCommRate(const dict &req, int reqid)
977
+ {
978
+ CThostFtdcQryInstrumentOrderCommRateField myreq = CThostFtdcQryInstrumentOrderCommRateField();
979
+ memset(&myreq, 0, sizeof(myreq));
980
+ getString(req, "BrokerID", myreq.BrokerID);
981
+ getString(req, "InvestorID", myreq.InvestorID);
982
+ getString(req, "reserve1", myreq.reserve1);
983
+ getString(req, "InstrumentID", myreq.InstrumentID);
984
+ int i = this->api->ReqQryInstrumentOrderCommRate(&myreq, reqid);
985
+ return i;
986
+ };
987
+
988
+ int TdApi::reqQrySecAgentTradingAccount(const dict &req, int reqid)
989
+ {
990
+ CThostFtdcQryTradingAccountField myreq = CThostFtdcQryTradingAccountField();
991
+ memset(&myreq, 0, sizeof(myreq));
992
+ getString(req, "BrokerID", myreq.BrokerID);
993
+ getString(req, "InvestorID", myreq.InvestorID);
994
+ getString(req, "CurrencyID", myreq.CurrencyID);
995
+ getChar(req, "BizType", &myreq.BizType);
996
+ getString(req, "AccountID", myreq.AccountID);
997
+ int i = this->api->ReqQrySecAgentTradingAccount(&myreq, reqid);
998
+ return i;
999
+ };
1000
+
1001
+ int TdApi::reqQrySecAgentCheckMode(const dict &req, int reqid)
1002
+ {
1003
+ CThostFtdcQrySecAgentCheckModeField myreq = CThostFtdcQrySecAgentCheckModeField();
1004
+ memset(&myreq, 0, sizeof(myreq));
1005
+ getString(req, "BrokerID", myreq.BrokerID);
1006
+ getString(req, "InvestorID", myreq.InvestorID);
1007
+ int i = this->api->ReqQrySecAgentCheckMode(&myreq, reqid);
1008
+ return i;
1009
+ };
1010
+
1011
+ int TdApi::reqQrySecAgentTradeInfo(const dict &req, int reqid)
1012
+ {
1013
+ CThostFtdcQrySecAgentTradeInfoField myreq = CThostFtdcQrySecAgentTradeInfoField();
1014
+ memset(&myreq, 0, sizeof(myreq));
1015
+ getString(req, "BrokerID", myreq.BrokerID);
1016
+ getString(req, "BrokerSecAgentID", myreq.BrokerSecAgentID);
1017
+ int i = this->api->ReqQrySecAgentTradeInfo(&myreq, reqid);
1018
+ return i;
1019
+ };
1020
+
1021
+ int TdApi::reqQryOptionInstrTradeCost(const dict &req, int reqid)
1022
+ {
1023
+ CThostFtdcQryOptionInstrTradeCostField myreq = CThostFtdcQryOptionInstrTradeCostField();
1024
+ memset(&myreq, 0, sizeof(myreq));
1025
+ getString(req, "BrokerID", myreq.BrokerID);
1026
+ getString(req, "InvestorID", myreq.InvestorID);
1027
+ getString(req, "reserve1", myreq.reserve1);
1028
+ getChar(req, "HedgeFlag", &myreq.HedgeFlag);
1029
+ getDouble(req, "InputPrice", &myreq.InputPrice);
1030
+ getDouble(req, "UnderlyingPrice", &myreq.UnderlyingPrice);
1031
+ getString(req, "ExchangeID", myreq.ExchangeID);
1032
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1033
+ getString(req, "InstrumentID", myreq.InstrumentID);
1034
+ int i = this->api->ReqQryOptionInstrTradeCost(&myreq, reqid);
1035
+ return i;
1036
+ };
1037
+
1038
+ int TdApi::reqQryOptionInstrCommRate(const dict &req, int reqid)
1039
+ {
1040
+ CThostFtdcQryOptionInstrCommRateField myreq = CThostFtdcQryOptionInstrCommRateField();
1041
+ memset(&myreq, 0, sizeof(myreq));
1042
+ getString(req, "BrokerID", myreq.BrokerID);
1043
+ getString(req, "InvestorID", myreq.InvestorID);
1044
+ getString(req, "reserve1", myreq.reserve1);
1045
+ getString(req, "ExchangeID", myreq.ExchangeID);
1046
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1047
+ getString(req, "InstrumentID", myreq.InstrumentID);
1048
+ int i = this->api->ReqQryOptionInstrCommRate(&myreq, reqid);
1049
+ return i;
1050
+ };
1051
+
1052
+ int TdApi::reqQryExecOrder(const dict &req, int reqid)
1053
+ {
1054
+ CThostFtdcQryExecOrderField myreq = CThostFtdcQryExecOrderField();
1055
+ memset(&myreq, 0, sizeof(myreq));
1056
+ getString(req, "BrokerID", myreq.BrokerID);
1057
+ getString(req, "InvestorID", myreq.InvestorID);
1058
+ getString(req, "reserve1", myreq.reserve1);
1059
+ getString(req, "ExchangeID", myreq.ExchangeID);
1060
+ getString(req, "ExecOrderSysID", myreq.ExecOrderSysID);
1061
+ getString(req, "InsertTimeStart", myreq.InsertTimeStart);
1062
+ getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
1063
+ getString(req, "InstrumentID", myreq.InstrumentID);
1064
+ int i = this->api->ReqQryExecOrder(&myreq, reqid);
1065
+ return i;
1066
+ };
1067
+
1068
+ int TdApi::reqQryForQuote(const dict &req, int reqid)
1069
+ {
1070
+ CThostFtdcQryForQuoteField myreq = CThostFtdcQryForQuoteField();
1071
+ memset(&myreq, 0, sizeof(myreq));
1072
+ getString(req, "BrokerID", myreq.BrokerID);
1073
+ getString(req, "InvestorID", myreq.InvestorID);
1074
+ getString(req, "reserve1", myreq.reserve1);
1075
+ getString(req, "ExchangeID", myreq.ExchangeID);
1076
+ getString(req, "InsertTimeStart", myreq.InsertTimeStart);
1077
+ getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
1078
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1079
+ getString(req, "InstrumentID", myreq.InstrumentID);
1080
+ int i = this->api->ReqQryForQuote(&myreq, reqid);
1081
+ return i;
1082
+ };
1083
+
1084
+ int TdApi::reqQryQuote(const dict &req, int reqid)
1085
+ {
1086
+ CThostFtdcQryQuoteField myreq = CThostFtdcQryQuoteField();
1087
+ memset(&myreq, 0, sizeof(myreq));
1088
+ getString(req, "BrokerID", myreq.BrokerID);
1089
+ getString(req, "InvestorID", myreq.InvestorID);
1090
+ getString(req, "reserve1", myreq.reserve1);
1091
+ getString(req, "ExchangeID", myreq.ExchangeID);
1092
+ getString(req, "QuoteSysID", myreq.QuoteSysID);
1093
+ getString(req, "InsertTimeStart", myreq.InsertTimeStart);
1094
+ getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
1095
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1096
+ getString(req, "InstrumentID", myreq.InstrumentID);
1097
+ int i = this->api->ReqQryQuote(&myreq, reqid);
1098
+ return i;
1099
+ };
1100
+
1101
+ int TdApi::reqQryOptionSelfClose(const dict &req, int reqid)
1102
+ {
1103
+ CThostFtdcQryOptionSelfCloseField myreq = CThostFtdcQryOptionSelfCloseField();
1104
+ memset(&myreq, 0, sizeof(myreq));
1105
+ getString(req, "BrokerID", myreq.BrokerID);
1106
+ getString(req, "InvestorID", myreq.InvestorID);
1107
+ getString(req, "reserve1", myreq.reserve1);
1108
+ getString(req, "ExchangeID", myreq.ExchangeID);
1109
+ getString(req, "OptionSelfCloseSysID", myreq.OptionSelfCloseSysID);
1110
+ getString(req, "InsertTimeStart", myreq.InsertTimeStart);
1111
+ getString(req, "InsertTimeEnd", myreq.InsertTimeEnd);
1112
+ getString(req, "InstrumentID", myreq.InstrumentID);
1113
+ int i = this->api->ReqQryOptionSelfClose(&myreq, reqid);
1114
+ return i;
1115
+ };
1116
+
1117
+ int TdApi::reqQryInvestUnit(const dict &req, int reqid)
1118
+ {
1119
+ CThostFtdcQryInvestUnitField myreq = CThostFtdcQryInvestUnitField();
1120
+ memset(&myreq, 0, sizeof(myreq));
1121
+ getString(req, "BrokerID", myreq.BrokerID);
1122
+ getString(req, "InvestorID", myreq.InvestorID);
1123
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1124
+ int i = this->api->ReqQryInvestUnit(&myreq, reqid);
1125
+ return i;
1126
+ };
1127
+
1128
+ int TdApi::reqQryCombInstrumentGuard(const dict &req, int reqid)
1129
+ {
1130
+ CThostFtdcQryCombInstrumentGuardField myreq = CThostFtdcQryCombInstrumentGuardField();
1131
+ memset(&myreq, 0, sizeof(myreq));
1132
+ getString(req, "BrokerID", myreq.BrokerID);
1133
+ getString(req, "reserve1", myreq.reserve1);
1134
+ getString(req, "ExchangeID", myreq.ExchangeID);
1135
+ getString(req, "InstrumentID", myreq.InstrumentID);
1136
+ int i = this->api->ReqQryCombInstrumentGuard(&myreq, reqid);
1137
+ return i;
1138
+ };
1139
+
1140
+ int TdApi::reqQryCombAction(const dict &req, int reqid)
1141
+ {
1142
+ CThostFtdcQryCombActionField myreq = CThostFtdcQryCombActionField();
1143
+ memset(&myreq, 0, sizeof(myreq));
1144
+ getString(req, "BrokerID", myreq.BrokerID);
1145
+ getString(req, "InvestorID", myreq.InvestorID);
1146
+ getString(req, "reserve1", myreq.reserve1);
1147
+ getString(req, "ExchangeID", myreq.ExchangeID);
1148
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1149
+ getString(req, "InstrumentID", myreq.InstrumentID);
1150
+ int i = this->api->ReqQryCombAction(&myreq, reqid);
1151
+ return i;
1152
+ };
1153
+
1154
+ int TdApi::reqQryTransferSerial(const dict &req, int reqid)
1155
+ {
1156
+ CThostFtdcQryTransferSerialField myreq = CThostFtdcQryTransferSerialField();
1157
+ memset(&myreq, 0, sizeof(myreq));
1158
+ getString(req, "BrokerID", myreq.BrokerID);
1159
+ getString(req, "AccountID", myreq.AccountID);
1160
+ getString(req, "BankID", myreq.BankID);
1161
+ getString(req, "CurrencyID", myreq.CurrencyID);
1162
+ int i = this->api->ReqQryTransferSerial(&myreq, reqid);
1163
+ return i;
1164
+ };
1165
+
1166
+ int TdApi::reqQryAccountregister(const dict &req, int reqid)
1167
+ {
1168
+ CThostFtdcQryAccountregisterField myreq = CThostFtdcQryAccountregisterField();
1169
+ memset(&myreq, 0, sizeof(myreq));
1170
+ getString(req, "BrokerID", myreq.BrokerID);
1171
+ getString(req, "AccountID", myreq.AccountID);
1172
+ getString(req, "BankID", myreq.BankID);
1173
+ getString(req, "BankBranchID", myreq.BankBranchID);
1174
+ getString(req, "CurrencyID", myreq.CurrencyID);
1175
+ int i = this->api->ReqQryAccountregister(&myreq, reqid);
1176
+ return i;
1177
+ };
1178
+
1179
+ int TdApi::reqQryContractBank(const dict &req, int reqid)
1180
+ {
1181
+ CThostFtdcQryContractBankField myreq = CThostFtdcQryContractBankField();
1182
+ memset(&myreq, 0, sizeof(myreq));
1183
+ getString(req, "BrokerID", myreq.BrokerID);
1184
+ getString(req, "BankID", myreq.BankID);
1185
+ getString(req, "BankBrchID", myreq.BankBrchID);
1186
+ int i = this->api->ReqQryContractBank(&myreq, reqid);
1187
+ return i;
1188
+ };
1189
+
1190
+ int TdApi::reqQryParkedOrder(const dict &req, int reqid)
1191
+ {
1192
+ CThostFtdcQryParkedOrderField myreq = CThostFtdcQryParkedOrderField();
1193
+ memset(&myreq, 0, sizeof(myreq));
1194
+ getString(req, "BrokerID", myreq.BrokerID);
1195
+ getString(req, "InvestorID", myreq.InvestorID);
1196
+ getString(req, "reserve1", myreq.reserve1);
1197
+ getString(req, "ExchangeID", myreq.ExchangeID);
1198
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1199
+ getString(req, "InstrumentID", myreq.InstrumentID);
1200
+ int i = this->api->ReqQryParkedOrder(&myreq, reqid);
1201
+ return i;
1202
+ };
1203
+
1204
+ int TdApi::reqQryParkedOrderAction(const dict &req, int reqid)
1205
+ {
1206
+ CThostFtdcQryParkedOrderActionField myreq = CThostFtdcQryParkedOrderActionField();
1207
+ memset(&myreq, 0, sizeof(myreq));
1208
+ getString(req, "BrokerID", myreq.BrokerID);
1209
+ getString(req, "InvestorID", myreq.InvestorID);
1210
+ getString(req, "reserve1", myreq.reserve1);
1211
+ getString(req, "ExchangeID", myreq.ExchangeID);
1212
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1213
+ getString(req, "InstrumentID", myreq.InstrumentID);
1214
+ int i = this->api->ReqQryParkedOrderAction(&myreq, reqid);
1215
+ return i;
1216
+ };
1217
+
1218
+ int TdApi::reqQryTradingNotice(const dict &req, int reqid)
1219
+ {
1220
+ CThostFtdcQryTradingNoticeField myreq = CThostFtdcQryTradingNoticeField();
1221
+ memset(&myreq, 0, sizeof(myreq));
1222
+ getString(req, "BrokerID", myreq.BrokerID);
1223
+ getString(req, "InvestorID", myreq.InvestorID);
1224
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1225
+ int i = this->api->ReqQryTradingNotice(&myreq, reqid);
1226
+ return i;
1227
+ };
1228
+
1229
+ int TdApi::reqQryBrokerTradingParams(const dict &req, int reqid)
1230
+ {
1231
+ CThostFtdcQryBrokerTradingParamsField myreq = CThostFtdcQryBrokerTradingParamsField();
1232
+ memset(&myreq, 0, sizeof(myreq));
1233
+ getString(req, "BrokerID", myreq.BrokerID);
1234
+ getString(req, "InvestorID", myreq.InvestorID);
1235
+ getString(req, "CurrencyID", myreq.CurrencyID);
1236
+ getString(req, "AccountID", myreq.AccountID);
1237
+ int i = this->api->ReqQryBrokerTradingParams(&myreq, reqid);
1238
+ return i;
1239
+ };
1240
+
1241
+ int TdApi::reqQryBrokerTradingAlgos(const dict &req, int reqid)
1242
+ {
1243
+ CThostFtdcQryBrokerTradingAlgosField myreq = CThostFtdcQryBrokerTradingAlgosField();
1244
+ memset(&myreq, 0, sizeof(myreq));
1245
+ getString(req, "BrokerID", myreq.BrokerID);
1246
+ getString(req, "ExchangeID", myreq.ExchangeID);
1247
+ getString(req, "reserve1", myreq.reserve1);
1248
+ getString(req, "InstrumentID", myreq.InstrumentID);
1249
+ int i = this->api->ReqQryBrokerTradingAlgos(&myreq, reqid);
1250
+ return i;
1251
+ };
1252
+
1253
+ int TdApi::reqQueryCFMMCTradingAccountToken(const dict &req, int reqid)
1254
+ {
1255
+ CThostFtdcQueryCFMMCTradingAccountTokenField myreq = CThostFtdcQueryCFMMCTradingAccountTokenField();
1256
+ memset(&myreq, 0, sizeof(myreq));
1257
+ getString(req, "BrokerID", myreq.BrokerID);
1258
+ getString(req, "InvestorID", myreq.InvestorID);
1259
+ getString(req, "InvestUnitID", myreq.InvestUnitID);
1260
+ int i = this->api->ReqQueryCFMMCTradingAccountToken(&myreq, reqid);
1261
+ return i;
1262
+ };
1263
+
1264
+ int TdApi::reqFromBankToFutureByFuture(const dict &req, int reqid)
1265
+ {
1266
+ CThostFtdcReqTransferField myreq = CThostFtdcReqTransferField();
1267
+ memset(&myreq, 0, sizeof(myreq));
1268
+ getString(req, "TradeCode", myreq.TradeCode);
1269
+ getString(req, "BankID", myreq.BankID);
1270
+ getString(req, "BankBranchID", myreq.BankBranchID);
1271
+ getString(req, "BrokerID", myreq.BrokerID);
1272
+ getString(req, "BrokerBranchID", myreq.BrokerBranchID);
1273
+ getString(req, "TradeDate", myreq.TradeDate);
1274
+ getString(req, "TradeTime", myreq.TradeTime);
1275
+ getString(req, "BankSerial", myreq.BankSerial);
1276
+ getString(req, "TradingDay", myreq.TradingDay);
1277
+ getInt(req, "PlateSerial", &myreq.PlateSerial);
1278
+ getChar(req, "LastFragment", &myreq.LastFragment);
1279
+ getInt(req, "SessionID", &myreq.SessionID);
1280
+ getString(req, "CustomerName", myreq.CustomerName);
1281
+ getChar(req, "IdCardType", &myreq.IdCardType);
1282
+ getString(req, "IdentifiedCardNo", myreq.IdentifiedCardNo);
1283
+ getChar(req, "CustType", &myreq.CustType);
1284
+ getString(req, "BankAccount", myreq.BankAccount);
1285
+ getString(req, "BankPassWord", myreq.BankPassWord);
1286
+ getString(req, "AccountID", myreq.AccountID);
1287
+ getString(req, "Password", myreq.Password);
1288
+ getInt(req, "InstallID", &myreq.InstallID);
1289
+ getInt(req, "FutureSerial", &myreq.FutureSerial);
1290
+ getString(req, "UserID", myreq.UserID);
1291
+ getChar(req, "VerifyCertNoFlag", &myreq.VerifyCertNoFlag);
1292
+ getString(req, "CurrencyID", myreq.CurrencyID);
1293
+ getDouble(req, "TradeAmount", &myreq.TradeAmount);
1294
+ getDouble(req, "FutureFetchAmount", &myreq.FutureFetchAmount);
1295
+ getChar(req, "FeePayFlag", &myreq.FeePayFlag);
1296
+ getDouble(req, "CustFee", &myreq.CustFee);
1297
+ getDouble(req, "BrokerFee", &myreq.BrokerFee);
1298
+ getString(req, "Message", myreq.Message);
1299
+ getString(req, "Digest", myreq.Digest);
1300
+ getChar(req, "BankAccType", &myreq.BankAccType);
1301
+ getString(req, "DeviceID", myreq.DeviceID);
1302
+ getChar(req, "BankSecuAccType", &myreq.BankSecuAccType);
1303
+ getString(req, "BrokerIDByBank", myreq.BrokerIDByBank);
1304
+ getString(req, "BankSecuAcc", myreq.BankSecuAcc);
1305
+ getChar(req, "BankPwdFlag", &myreq.BankPwdFlag);
1306
+ getChar(req, "SecuPwdFlag", &myreq.SecuPwdFlag);
1307
+ getString(req, "OperNo", myreq.OperNo);
1308
+ getInt(req, "RequestID", &myreq.RequestID);
1309
+ getInt(req, "TID", &myreq.TID);
1310
+ getChar(req, "TransferStatus", &myreq.TransferStatus);
1311
+ getString(req, "LongCustomerName", myreq.LongCustomerName);
1312
+ int i = this->api->ReqFromBankToFutureByFuture(&myreq, reqid);
1313
+ return i;
1314
+ };
1315
+
1316
+ int TdApi::reqFromFutureToBankByFuture(const dict &req, int reqid)
1317
+ {
1318
+ CThostFtdcReqTransferField myreq = CThostFtdcReqTransferField();
1319
+ memset(&myreq, 0, sizeof(myreq));
1320
+ getString(req, "TradeCode", myreq.TradeCode);
1321
+ getString(req, "BankID", myreq.BankID);
1322
+ getString(req, "BankBranchID", myreq.BankBranchID);
1323
+ getString(req, "BrokerID", myreq.BrokerID);
1324
+ getString(req, "BrokerBranchID", myreq.BrokerBranchID);
1325
+ getString(req, "TradeDate", myreq.TradeDate);
1326
+ getString(req, "TradeTime", myreq.TradeTime);
1327
+ getString(req, "BankSerial", myreq.BankSerial);
1328
+ getString(req, "TradingDay", myreq.TradingDay);
1329
+ getInt(req, "PlateSerial", &myreq.PlateSerial);
1330
+ getChar(req, "LastFragment", &myreq.LastFragment);
1331
+ getInt(req, "SessionID", &myreq.SessionID);
1332
+ getString(req, "CustomerName", myreq.CustomerName);
1333
+ getChar(req, "IdCardType", &myreq.IdCardType);
1334
+ getString(req, "IdentifiedCardNo", myreq.IdentifiedCardNo);
1335
+ getChar(req, "CustType", &myreq.CustType);
1336
+ getString(req, "BankAccount", myreq.BankAccount);
1337
+ getString(req, "BankPassWord", myreq.BankPassWord);
1338
+ getString(req, "AccountID", myreq.AccountID);
1339
+ getString(req, "Password", myreq.Password);
1340
+ getInt(req, "InstallID", &myreq.InstallID);
1341
+ getInt(req, "FutureSerial", &myreq.FutureSerial);
1342
+ getString(req, "UserID", myreq.UserID);
1343
+ getChar(req, "VerifyCertNoFlag", &myreq.VerifyCertNoFlag);
1344
+ getString(req, "CurrencyID", myreq.CurrencyID);
1345
+ getDouble(req, "TradeAmount", &myreq.TradeAmount);
1346
+ getDouble(req, "FutureFetchAmount", &myreq.FutureFetchAmount);
1347
+ getChar(req, "FeePayFlag", &myreq.FeePayFlag);
1348
+ getDouble(req, "CustFee", &myreq.CustFee);
1349
+ getDouble(req, "BrokerFee", &myreq.BrokerFee);
1350
+ getString(req, "Message", myreq.Message);
1351
+ getString(req, "Digest", myreq.Digest);
1352
+ getChar(req, "BankAccType", &myreq.BankAccType);
1353
+ getString(req, "DeviceID", myreq.DeviceID);
1354
+ getChar(req, "BankSecuAccType", &myreq.BankSecuAccType);
1355
+ getString(req, "BrokerIDByBank", myreq.BrokerIDByBank);
1356
+ getString(req, "BankSecuAcc", myreq.BankSecuAcc);
1357
+ getChar(req, "BankPwdFlag", &myreq.BankPwdFlag);
1358
+ getChar(req, "SecuPwdFlag", &myreq.SecuPwdFlag);
1359
+ getString(req, "OperNo", myreq.OperNo);
1360
+ getInt(req, "RequestID", &myreq.RequestID);
1361
+ getInt(req, "TID", &myreq.TID);
1362
+ getChar(req, "TransferStatus", &myreq.TransferStatus);
1363
+ getString(req, "LongCustomerName", myreq.LongCustomerName);
1364
+ int i = this->api->ReqFromFutureToBankByFuture(&myreq, reqid);
1365
+ return i;
1366
+ };
1367
+
1368
+ int TdApi::reqQueryBankAccountMoneyByFuture(const dict &req, int reqid)
1369
+ {
1370
+ CThostFtdcReqQueryAccountField myreq = CThostFtdcReqQueryAccountField();
1371
+ memset(&myreq, 0, sizeof(myreq));
1372
+ getString(req, "TradeCode", myreq.TradeCode);
1373
+ getString(req, "BankID", myreq.BankID);
1374
+ getString(req, "BankBranchID", myreq.BankBranchID);
1375
+ getString(req, "BrokerID", myreq.BrokerID);
1376
+ getString(req, "BrokerBranchID", myreq.BrokerBranchID);
1377
+ getString(req, "TradeDate", myreq.TradeDate);
1378
+ getString(req, "TradeTime", myreq.TradeTime);
1379
+ getString(req, "BankSerial", myreq.BankSerial);
1380
+ getString(req, "TradingDay", myreq.TradingDay);
1381
+ getInt(req, "PlateSerial", &myreq.PlateSerial);
1382
+ getChar(req, "LastFragment", &myreq.LastFragment);
1383
+ getInt(req, "SessionID", &myreq.SessionID);
1384
+ getString(req, "CustomerName", myreq.CustomerName);
1385
+ getChar(req, "IdCardType", &myreq.IdCardType);
1386
+ getString(req, "IdentifiedCardNo", myreq.IdentifiedCardNo);
1387
+ getChar(req, "CustType", &myreq.CustType);
1388
+ getString(req, "BankAccount", myreq.BankAccount);
1389
+ getString(req, "BankPassWord", myreq.BankPassWord);
1390
+ getString(req, "AccountID", myreq.AccountID);
1391
+ getString(req, "Password", myreq.Password);
1392
+ getInt(req, "FutureSerial", &myreq.FutureSerial);
1393
+ getInt(req, "InstallID", &myreq.InstallID);
1394
+ getString(req, "UserID", myreq.UserID);
1395
+ getChar(req, "VerifyCertNoFlag", &myreq.VerifyCertNoFlag);
1396
+ getString(req, "CurrencyID", myreq.CurrencyID);
1397
+ getString(req, "Digest", myreq.Digest);
1398
+ getChar(req, "BankAccType", &myreq.BankAccType);
1399
+ getString(req, "DeviceID", myreq.DeviceID);
1400
+ getChar(req, "BankSecuAccType", &myreq.BankSecuAccType);
1401
+ getString(req, "BrokerIDByBank", myreq.BrokerIDByBank);
1402
+ getString(req, "BankSecuAcc", myreq.BankSecuAcc);
1403
+ getChar(req, "BankPwdFlag", &myreq.BankPwdFlag);
1404
+ getChar(req, "SecuPwdFlag", &myreq.SecuPwdFlag);
1405
+ getString(req, "OperNo", myreq.OperNo);
1406
+ getInt(req, "RequestID", &myreq.RequestID);
1407
+ getInt(req, "TID", &myreq.TID);
1408
+ getString(req, "LongCustomerName", myreq.LongCustomerName);
1409
+ int i = this->api->ReqQueryBankAccountMoneyByFuture(&myreq, reqid);
1410
+ return i;
1411
+ };
1412
+
1413
+ int TdApi::reqQryClassifiedInstrument(const dict &req, int reqid)
1414
+ {
1415
+ CThostFtdcQryClassifiedInstrumentField myreq = CThostFtdcQryClassifiedInstrumentField();
1416
+ memset(&myreq, 0, sizeof(myreq));
1417
+ getString(req, "InstrumentID", myreq.InstrumentID);
1418
+ getString(req, "ExchangeID", myreq.ExchangeID);
1419
+ getString(req, "ExchangeInstID", myreq.ExchangeInstID);
1420
+ getString(req, "ProductID", myreq.ProductID);
1421
+ getChar(req, "TradingType", &myreq.TradingType);
1422
+ getChar(req, "ClassType", &myreq.ClassType);
1423
+ int i = this->api->ReqQryClassifiedInstrument(&myreq, reqid);
1424
+ return i;
1425
+ };
1426
+
1427
+ int TdApi::reqQryCombPromotionParam(const dict &req, int reqid)
1428
+ {
1429
+ CThostFtdcQryCombPromotionParamField myreq = CThostFtdcQryCombPromotionParamField();
1430
+ memset(&myreq, 0, sizeof(myreq));
1431
+ getString(req, "ExchangeID", myreq.ExchangeID);
1432
+ getString(req, "InstrumentID", myreq.InstrumentID);
1433
+ int i = this->api->ReqQryCombPromotionParam(&myreq, reqid);
1434
+ return i;
1435
+ };
1436
+
1437
+ int TdApi::reqQryRiskSettleInvstPosition(const dict &req, int reqid)
1438
+ {
1439
+ CThostFtdcQryRiskSettleInvstPositionField myreq = CThostFtdcQryRiskSettleInvstPositionField();
1440
+ memset(&myreq, 0, sizeof(myreq));
1441
+ getString(req, "BrokerID", myreq.BrokerID);
1442
+ getString(req, "InvestorID", myreq.InvestorID);
1443
+ getString(req, "InstrumentID", myreq.InstrumentID);
1444
+ int i = this->api->ReqQryRiskSettleInvstPosition(&myreq, reqid);
1445
+ return i;
1446
+ };
1447
+
1448
+ int TdApi::reqQryRiskSettleProductStatus(const dict &req, int reqid)
1449
+ {
1450
+ CThostFtdcQryRiskSettleProductStatusField myreq = CThostFtdcQryRiskSettleProductStatusField();
1451
+ memset(&myreq, 0, sizeof(myreq));
1452
+ getString(req, "ProductID", myreq.ProductID);
1453
+ int i = this->api->ReqQryRiskSettleProductStatus(&myreq, reqid);
1454
+ return i;
1455
+ };
1456
+