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