swagger.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. basePath: /api
  2. definitions:
  3. app.Response:
  4. properties:
  5. code:
  6. type: integer
  7. data:
  8. type: object
  9. msg:
  10. type: string
  11. type: object
  12. cptrade.Cptradepositioncancel:
  13. properties:
  14. accountid:
  15. description: 申请人账户ID
  16. type: integer
  17. applystatus:
  18. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  19. type: integer
  20. applytime:
  21. description: 申请时间
  22. type: string
  23. cancelid:
  24. description: 注销ID(SEQ_CPTRADE_POSITIONCANCEL)
  25. type: integer
  26. cancelqty:
  27. description: 注销数量
  28. type: integer
  29. createtime:
  30. description: 创建时间
  31. type: string
  32. creatorid:
  33. description: 创建人
  34. type: integer
  35. goodscode:
  36. description: 订单商品代码
  37. type: string
  38. goodsid:
  39. description: 商品ID
  40. type: integer
  41. goodsname:
  42. description: 订单商品名称
  43. type: string
  44. goodunit:
  45. description: 报价单位
  46. type: string
  47. handlestatus:
  48. description: 处理状态
  49. type: integer
  50. marketid:
  51. description: 市场ID
  52. type: integer
  53. marketname:
  54. description: 市场名称
  55. type: string
  56. tradedate:
  57. description: 交易日(yyyyMMdd)
  58. type: string
  59. userid:
  60. description: 申请人ID
  61. type: integer
  62. required:
  63. - cancelid
  64. type: object
  65. cptrade.Cptradepresaleapply:
  66. properties:
  67. accountid:
  68. description: 申请人账户ID
  69. type: integer
  70. applyid:
  71. description: 申请ID(181+Unix秒时间戳(10位)+xxxxxx)
  72. type: integer
  73. applystatus:
  74. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  75. type: integer
  76. applytime:
  77. description: 申请时间
  78. type: string
  79. attachmenturl:
  80. description: 附件地址
  81. type: string
  82. endtime:
  83. description: 预售结束时间
  84. type: string
  85. goodscode:
  86. description: 商品代码
  87. type: string
  88. goodsname:
  89. description: 商品名称
  90. type: string
  91. goodunit:
  92. description: 报价单位
  93. type: string
  94. handlestatus:
  95. description: 处理状态
  96. type: integer
  97. marketid:
  98. description: 预售市场ID
  99. type: integer
  100. marketname:
  101. description: 预售市场名称
  102. type: string
  103. presaleqty:
  104. description: 预售数量
  105. type: integer
  106. relatedgoodscode:
  107. description: 关联交易合约代码
  108. type: string
  109. relatedgoodsid:
  110. description: 关联交易合约ID
  111. type: integer
  112. relatedgoodsname:
  113. description: 关联交易合约名称
  114. type: string
  115. starttime:
  116. description: 预售开始时间
  117. type: string
  118. tradedate:
  119. description: 交易日(yyyyMMdd)
  120. type: string
  121. trademode:
  122. description: 交易模式 - 16:挂牌点选 21:大宗竞拍
  123. type: integer
  124. userid:
  125. description: 申请人ID
  126. type: integer
  127. required:
  128. - applyid
  129. type: object
  130. cptrade.Cptradepresalegoodsex:
  131. properties:
  132. attachmenturl:
  133. description: 附件地址
  134. type: string
  135. createtime:
  136. description: 创建时间
  137. type: string
  138. endtime:
  139. description: 预售结束时间
  140. type: string
  141. floorprice:
  142. description: 底价[大宗式竞拍]
  143. type: number
  144. goodsid:
  145. description: 商品ID(预售)
  146. type: integer
  147. marketid:
  148. description: 预售市场ID - 根据预售模式选择市场
  149. type: integer
  150. presaledamount:
  151. description: 已预售总金额(预售结束时更新)
  152. type: number
  153. presaledqty:
  154. description: 已预售量(预售结束时更新)
  155. type: integer
  156. presalemode:
  157. description: 预售模式 - 1:一口价 2:大宗式竞拍
  158. type: integer
  159. presaleqty:
  160. description: 预售数量
  161. type: integer
  162. refprice:
  163. description: 参考价格[一口价]
  164. type: number
  165. relatedgoodsid:
  166. description: 关联交易合约ID
  167. type: integer
  168. relatedmarketid:
  169. description: 关联交易合约市场ID
  170. type: integer
  171. sellstatus:
  172. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  173. type: integer
  174. startprice:
  175. description: 起拍价[大宗式竞拍]
  176. type: number
  177. starttime:
  178. description: 预售开始时间
  179. type: string
  180. tradedate:
  181. description: 交易日(yyyyMMdd)
  182. type: string
  183. required:
  184. - goodsid
  185. type: object
  186. cptrade.Cptradeusergoodsdata:
  187. properties:
  188. EnabledQty:
  189. description: 可用量
  190. type: integer
  191. GoodsCode:
  192. description: 订单商品代码
  193. type: string
  194. GoodsName:
  195. description: 订单商品名称
  196. type: string
  197. WRStandardCode:
  198. description: 仓单标准代码
  199. type: string
  200. WRStandardName:
  201. description: 仓单标准名称
  202. type: string
  203. accountid:
  204. description: 账户ID
  205. type: integer
  206. cancelqty:
  207. description: 注销量
  208. type: integer
  209. curpresaleqty:
  210. description: 当前预售量
  211. type: integer
  212. deliveryqty:
  213. description: 交割量
  214. type: integer
  215. freezeamount:
  216. description: 冻结金额
  217. type: number
  218. goodsid:
  219. description: 商品ID
  220. type: integer
  221. goodunit:
  222. description: 报价单位
  223. type: string
  224. hasspotfreeze:
  225. description: 是否有现货冻结 - 0:否 1:有
  226. type: integer
  227. inqty:
  228. description: 转入量(总数量)
  229. type: integer
  230. marketid:
  231. description: 市场ID
  232. type: integer
  233. presaledamount:
  234. description: 已预售总金额
  235. type: integer
  236. presaledqty:
  237. description: 已预售量
  238. type: integer
  239. userid:
  240. description: 用户ID
  241. type: integer
  242. wrstandardid:
  243. description: 仓单标准ID
  244. type: integer
  245. required:
  246. - accountid
  247. - goodsid
  248. type: object
  249. info:
  250. contact: {}
  251. description: 新的查询服务,替代原通用查询服务。
  252. license: {}
  253. termsOfService: http://muchinfo.cn
  254. title: MTP2.0 查询服务 API
  255. version: "1.0"
  256. paths:
  257. /CPTrade/QueryPositionCancel:
  258. get:
  259. parameters:
  260. - description: 账户ID
  261. in: query
  262. name: userid
  263. required: true
  264. type: integer
  265. - description: 注销ID
  266. in: query
  267. name: cancelid
  268. type: integer
  269. - description: 资金账户ID
  270. in: query
  271. name: accountid
  272. type: integer
  273. produces:
  274. - application/json
  275. responses:
  276. "200":
  277. description: OK
  278. schema:
  279. $ref: '#/definitions/cptrade.Cptradepositioncancel'
  280. "500":
  281. description: Internal Server Error
  282. schema:
  283. $ref: '#/definitions/app.Response'
  284. security:
  285. - ApiKeyAuth: []
  286. summary: 查询远期订单注销申请信息
  287. tags:
  288. - 产能预售
  289. /CPTrade/QueryPreasleApply:
  290. get:
  291. parameters:
  292. - description: 账户ID
  293. in: query
  294. name: userid
  295. required: true
  296. type: integer
  297. - description: 申请ID
  298. in: query
  299. name: applyid
  300. type: integer
  301. - description: 资金账户ID
  302. in: query
  303. name: accountid
  304. type: integer
  305. produces:
  306. - application/json
  307. responses:
  308. "200":
  309. description: OK
  310. schema:
  311. $ref: '#/definitions/cptrade.Cptradepresaleapply'
  312. "500":
  313. description: Internal Server Error
  314. schema:
  315. $ref: '#/definitions/app.Response'
  316. security:
  317. - ApiKeyAuth: []
  318. summary: 查询产能预售申请信息
  319. tags:
  320. - 产能预售
  321. /CPTrade/QueryPresaleGoodsEx:
  322. get:
  323. parameters:
  324. - description: 预售商品ID
  325. in: query
  326. name: goodsid
  327. type: integer
  328. - description: 预售市场ID
  329. in: query
  330. name: marketid
  331. type: integer
  332. - description: 预售模式 - 1:一口价 2:大宗式竞拍
  333. in: query
  334. name: presalemode
  335. type: integer
  336. produces:
  337. - application/json
  338. responses:
  339. "200":
  340. description: OK
  341. schema:
  342. $ref: '#/definitions/cptrade.Cptradepresalegoodsex'
  343. "500":
  344. description: Internal Server Error
  345. schema:
  346. $ref: '#/definitions/app.Response'
  347. security:
  348. - ApiKeyAuth: []
  349. summary: 查询产能预售商品扩展信息
  350. tags:
  351. - 产能预售
  352. /CPTrade/QueryUserGoodsData:
  353. get:
  354. parameters:
  355. - description: 资金账户ID
  356. in: query
  357. name: accountid
  358. required: true
  359. type: integer
  360. produces:
  361. - application/json
  362. responses:
  363. "200":
  364. description: OK
  365. schema:
  366. $ref: '#/definitions/cptrade.Cptradeusergoodsdata'
  367. "500":
  368. description: Internal Server Error
  369. schema:
  370. $ref: '#/definitions/app.Response'
  371. security:
  372. - ApiKeyAuth: []
  373. summary: 查询远期订单信息
  374. tags:
  375. - 产能预售
  376. /WRTrade/GetAllDeliveryGoods:
  377. get:
  378. produces:
  379. - application/json
  380. responses:
  381. "200":
  382. description: OK
  383. schema:
  384. $ref: '#/definitions/app.Response'
  385. "500":
  386. description: Internal Server Error
  387. schema:
  388. $ref: '#/definitions/app.Response'
  389. security:
  390. - ApiKeyAuth: []
  391. summary: 获取带仓单分类的种类信息
  392. tags:
  393. - 仓单贸易
  394. securityDefinitions:
  395. ApiKeyAuth:
  396. in: header
  397. name: Authorization
  398. type: apiKey
  399. swagger: "2.0"