swagger.yaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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.Cptradeusergoodsdata:
  131. properties:
  132. EnabledQty:
  133. description: 可用量
  134. type: integer
  135. GoodsCode:
  136. description: 订单商品代码
  137. type: string
  138. GoodsName:
  139. description: 订单商品名称
  140. type: string
  141. WRStandardCode:
  142. description: 仓单标准代码
  143. type: string
  144. WRStandardName:
  145. description: 仓单标准名称
  146. type: string
  147. accountid:
  148. description: 账户ID
  149. type: integer
  150. cancelqty:
  151. description: 注销量
  152. type: integer
  153. curpresaleqty:
  154. description: 当前预售量
  155. type: integer
  156. deliveryqty:
  157. description: 交割量
  158. type: integer
  159. freezeamount:
  160. description: 冻结金额
  161. type: number
  162. goodsid:
  163. description: 商品ID
  164. type: integer
  165. goodunit:
  166. description: 报价单位
  167. type: string
  168. hasspotfreeze:
  169. description: 是否有现货冻结 - 0:否 1:有
  170. type: integer
  171. inqty:
  172. description: 转入量
  173. type: integer
  174. marketid:
  175. description: 市场ID
  176. type: integer
  177. presaledamount:
  178. description: 已预售总金额
  179. type: integer
  180. presaledqty:
  181. description: 已预售量
  182. type: integer
  183. userid:
  184. description: 用户ID
  185. type: integer
  186. wrstandardid:
  187. description: 仓单标准ID
  188. type: integer
  189. required:
  190. - accountid
  191. - goodsid
  192. type: object
  193. info:
  194. contact: {}
  195. description: 新的查询服务,替代原通用查询服务。
  196. license: {}
  197. termsOfService: http://muchinfo.cn
  198. title: MTP2.0 查询服务 API
  199. version: "1.0"
  200. paths:
  201. /CPTrade/QueryCPTradePositionCancel:
  202. get:
  203. parameters:
  204. - description: 账户ID
  205. in: query
  206. name: userid
  207. required: true
  208. type: integer
  209. - description: 注销ID
  210. in: query
  211. name: cancelid
  212. type: integer
  213. - description: 资金账户ID
  214. in: query
  215. name: accountid
  216. type: integer
  217. produces:
  218. - application/json
  219. responses:
  220. "200":
  221. description: OK
  222. schema:
  223. $ref: '#/definitions/cptrade.Cptradepositioncancel'
  224. "500":
  225. description: Internal Server Error
  226. schema:
  227. $ref: '#/definitions/app.Response'
  228. security:
  229. - ApiKeyAuth: []
  230. summary: 查询远期订单注销申请信息
  231. tags:
  232. - 产能预售
  233. /CPTrade/QueryCPTradeUserGoodsData:
  234. get:
  235. parameters:
  236. - description: 资金账户ID
  237. in: query
  238. name: accountid
  239. required: true
  240. type: integer
  241. produces:
  242. - application/json
  243. responses:
  244. "200":
  245. description: OK
  246. schema:
  247. $ref: '#/definitions/cptrade.Cptradeusergoodsdata'
  248. "500":
  249. description: Internal Server Error
  250. schema:
  251. $ref: '#/definitions/app.Response'
  252. security:
  253. - ApiKeyAuth: []
  254. summary: 查询远期订单信息
  255. tags:
  256. - 产能预售
  257. /CPTrade/QueryPreasleApply:
  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: applyid
  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.Cptradepresaleapply'
  280. "500":
  281. description: Internal Server Error
  282. schema:
  283. $ref: '#/definitions/app.Response'
  284. security:
  285. - ApiKeyAuth: []
  286. summary: 查询产能预售申请信息
  287. tags:
  288. - 产能预售
  289. /WRTrade/GetAllDeliveryGoods:
  290. get:
  291. produces:
  292. - application/json
  293. responses:
  294. "200":
  295. description: OK
  296. schema:
  297. $ref: '#/definitions/app.Response'
  298. "500":
  299. description: Internal Server Error
  300. schema:
  301. $ref: '#/definitions/app.Response'
  302. security:
  303. - ApiKeyAuth: []
  304. summary: 获取带仓单分类的种类信息
  305. tags:
  306. - 仓单贸易
  307. securityDefinitions:
  308. ApiKeyAuth:
  309. in: header
  310. name: token
  311. type: apiKey
  312. swagger: "2.0"