swagger.yaml 10 KB

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