swagger.yaml 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168
  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. applyremark:
  77. description: 申请备注
  78. type: string
  79. applystatus:
  80. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  81. type: integer
  82. applytime:
  83. description: 申请时间
  84. type: string
  85. attachmenturl:
  86. description: 附件地址
  87. type: string
  88. endtime:
  89. description: 预售结束时间
  90. type: string
  91. goodscode:
  92. description: 商品代码
  93. type: string
  94. goodsid:
  95. description: 商品ID
  96. type: integer
  97. goodsname:
  98. description: 商品名称
  99. type: string
  100. goodunit:
  101. description: 报价单位
  102. type: string
  103. handlestatus:
  104. description: 处理状态
  105. type: integer
  106. marketid:
  107. description: 预售市场ID
  108. type: integer
  109. marketname:
  110. description: 预售市场名称
  111. type: string
  112. presaleqty:
  113. description: 预售数量
  114. type: integer
  115. relatedgoodscode:
  116. description: 关联交易合约代码
  117. type: string
  118. relatedgoodsid:
  119. description: 关联交易合约ID
  120. type: integer
  121. relatedgoodsname:
  122. description: 关联交易合约名称
  123. type: string
  124. starttime:
  125. description: 预售开始时间
  126. type: string
  127. tradedate:
  128. description: 交易日(yyyyMMdd)
  129. type: string
  130. trademode:
  131. description: 交易模式 - 16:挂牌点选 21:大宗竞拍
  132. type: integer
  133. userid:
  134. description: 申请人ID
  135. type: integer
  136. required:
  137. - applyid
  138. type: object
  139. cptrade.Cptradeusergoodsdata:
  140. properties:
  141. EnabledQty:
  142. description: 可用量
  143. type: integer
  144. GoodsCode:
  145. description: 订单商品代码
  146. type: string
  147. GoodsName:
  148. description: 订单商品名称
  149. type: string
  150. WRStandardCode:
  151. description: 仓单标准代码
  152. type: string
  153. WRStandardName:
  154. description: 仓单标准名称
  155. type: string
  156. accountid:
  157. description: 账户ID
  158. type: integer
  159. cancelqty:
  160. description: 注销量
  161. type: integer
  162. curpresaleqty:
  163. description: 当前预售量
  164. type: integer
  165. deliveryqty:
  166. description: 交割量
  167. type: integer
  168. freezeamount:
  169. description: 冻结金额
  170. type: number
  171. goodsid:
  172. description: 商品ID
  173. type: integer
  174. goodunit:
  175. description: 报价单位
  176. type: string
  177. hasspotfreeze:
  178. description: 是否有现货冻结 - 0:否 1:有
  179. type: integer
  180. inqty:
  181. description: 转入量(总数量)
  182. type: integer
  183. marketid:
  184. description: 市场ID
  185. type: integer
  186. presaledamount:
  187. description: 已预售总金额
  188. type: integer
  189. presaledqty:
  190. description: 已预售量
  191. type: integer
  192. userid:
  193. description: 用户ID
  194. type: integer
  195. wrstandardid:
  196. description: 仓单标准ID
  197. type: integer
  198. required:
  199. - accountid
  200. - goodsid
  201. type: object
  202. cptrade.QueryCPTradeMyBidRsp:
  203. properties:
  204. accountid:
  205. description: 账户ID[报价币种]
  206. type: integer
  207. goodsid:
  208. description: 商品ID
  209. type: integer
  210. goodunit:
  211. description: 报价单位
  212. type: string
  213. marketid:
  214. description: 市场ID
  215. type: integer
  216. orderid:
  217. description: 委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  218. type: integer
  219. orderprice:
  220. description: 委托价格
  221. type: number
  222. orderqty:
  223. description: 委托数量
  224. type: integer
  225. ordertime:
  226. description: 委托时间
  227. type: string
  228. ordertotalprice:
  229. description: 货款金额(委托总价格=委托价格*委托数量*合约单位)
  230. type: number
  231. ordertotalweight:
  232. description: 竞拍总重量(委托总重量=委托数量*合约单位)
  233. type: integer
  234. totaltotalprice:
  235. description: 成交货款金额(成交总价格=成交价格*成交数量*合约单位)
  236. type: number
  237. tradeprice:
  238. description: 成交价格
  239. type: number
  240. tradeqty:
  241. description: 成交数量
  242. type: integer
  243. required:
  244. - accountid
  245. - goodsid
  246. - marketid
  247. - orderid
  248. - orderqty
  249. - ordertime
  250. - tradeprice
  251. - tradeqty
  252. type: object
  253. cptrade.QueryCPTradeOrderDetailRsq:
  254. properties:
  255. accountid:
  256. description: 账户ID[报价币种]
  257. type: integer
  258. buildtype:
  259. description: 委托单据类型 - 1:建仓 2:平仓 3:先平后建
  260. type: integer
  261. buyorsell:
  262. description: 买卖 - 0:买 1:卖
  263. type: integer
  264. cancelorderid:
  265. description: 撤单单号(撤单时填写)
  266. type: integer
  267. cancelqty:
  268. description: 撤单数量
  269. type: integer
  270. clientordertime:
  271. description: 客户端委托时间
  272. type: string
  273. clientticket:
  274. description: 客户端流水号
  275. type: string
  276. clienttype:
  277. description: 客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
  278. type: integer
  279. closeexchagechargevalue:
  280. description: 平仓交易所手续费设置值
  281. type: number
  282. closefeealgorithm:
  283. description: 平仓手续费收取方式 1:比率 2:固定
  284. type: integer
  285. closefreezecharge:
  286. description: 平仓冻结手续费(先建后平操作,需要记录)
  287. type: number
  288. closememberchargevalue:
  289. description: 平仓会员手续费设置值
  290. type: number
  291. closeqty:
  292. description: 平仓数量(先建后平操作 需要记录)
  293. type: integer
  294. closetradeqty:
  295. description: 平仓成交数量(先建后平操作,需要记录)
  296. type: integer
  297. closeunfreezecharge:
  298. description: 平仓解冻手续费(先建后平操作,需要记录)
  299. type: number
  300. delistingtype:
  301. description: 摘牌类型 - 1:价格最优 2:点选成交
  302. type: integer
  303. freezecharge:
  304. description: 冻结手续费
  305. type: number
  306. freezemargin:
  307. description: 冻结保证金(冻结交易金额)
  308. type: number
  309. gcaccountid:
  310. description: 账户ID[合约币种]
  311. type: integer
  312. goodsid:
  313. description: 商品ID
  314. type: integer
  315. isconfirmexercise:
  316. description: 是否确认行权- 0:否 1:是
  317. type: integer
  318. ispreexercise:
  319. description: 是否预申报- 0:否 1:是
  320. type: integer
  321. listingselecttype:
  322. description: 挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  323. type: integer
  324. marginalgorithm:
  325. description: 保证金收取方式 1:比率 2:固定
  326. type: integer
  327. marginvalue:
  328. description: 即市保证金设置值
  329. type: number
  330. marketid:
  331. description: 市场ID
  332. type: integer
  333. marketmaxsub:
  334. description: 市价最大偏移范围
  335. type: number
  336. memberuserid:
  337. description: 所属会员UserID
  338. type: integer
  339. openexchagechargevalue:
  340. description: 建仓交易所手续费设置值
  341. type: number
  342. openfeealgorithm:
  343. description: 建仓手续费收取方式 1:比率 2:固定
  344. type: integer
  345. openfreezecharge:
  346. description: 开仓冻结手续费(先建后平操作,需要记录)
  347. type: number
  348. openmemberchargevalue:
  349. description: 建仓会员手续费设置值
  350. type: number
  351. openqty:
  352. description: 开仓数量(先建后平操作,需要记录)
  353. type: integer
  354. opentradeqty:
  355. description: 开仓成交数量(先建后平操作,需要记录)
  356. type: integer
  357. openunfreezecharge:
  358. description: 开仓解冻手续费(先建后平操作,需要记录)
  359. type: number
  360. operatetype:
  361. description: 操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
  362. type: integer
  363. operatorid:
  364. description: 登录账号(LoginID)
  365. type: integer
  366. optiontype:
  367. description: 期权类型 - 1:认购(看涨) 2:认沽(看跌)
  368. type: integer
  369. orderprice:
  370. description: 委托价格
  371. type: number
  372. orderqty:
  373. description: 委托数量
  374. type: integer
  375. ordersrc:
  376. description: 委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发
  377. type: integer
  378. orderstatus:
  379. description: 委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
  380. type: integer
  381. ordertime:
  382. description: 委托时间
  383. type: string
  384. preexerciseprice:
  385. description: 预申报价格
  386. type: number
  387. premium:
  388. description: 权利金
  389. type: number
  390. preorderid:
  391. description: 关联预埋单号(止盈止损单时填写)
  392. type: integer
  393. pricemode:
  394. description: '取价方式 - 1:市价 2: 限价'
  395. type: integer
  396. quoteid:
  397. description: 报价单ID
  398. type: integer
  399. relatedid:
  400. description: 关联单号(交割单)
  401. type: integer
  402. retcode:
  403. description: 错误代码
  404. type: integer
  405. sessionid:
  406. description: 会话ID
  407. type: integer
  408. strorderid:
  409. description: 委托单号
  410. type: string
  411. tradedate:
  412. description: 交易日(yyyyMMdd)
  413. type: string
  414. tradeproperty:
  415. description: 交易属性
  416. type: integer
  417. tradeqty:
  418. description: 成交数量
  419. type: integer
  420. unfreezecharge:
  421. description: 解冻手续费
  422. type: number
  423. unfreezemargin:
  424. description: 解冻保证金
  425. type: number
  426. updatetime:
  427. description: 更新时间
  428. type: string
  429. uuid:
  430. description: 发起端唯一id
  431. type: string
  432. validtime:
  433. description: 有效期限
  434. type: string
  435. validtype:
  436. description: 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
  437. type: integer
  438. volumetype:
  439. description: 当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
  440. type: integer
  441. required:
  442. - accountid
  443. - buildtype
  444. - buyorsell
  445. - goodsid
  446. - marketid
  447. - memberuserid
  448. - operatetype
  449. - orderqty
  450. - ordertime
  451. - pricemode
  452. - strorderid
  453. - tradedate
  454. - validtype
  455. type: object
  456. cptrade.QueryMyCPTradeGoodsRsp:
  457. properties:
  458. accountid:
  459. description: 卖方账户ID
  460. type: integer
  461. agreeunit:
  462. description: 合约单位
  463. type: number
  464. applyid:
  465. description: 关联申请ID
  466. type: integer
  467. attachmenturl:
  468. description: 附件地址
  469. type: string
  470. createtime:
  471. description: 创建时间
  472. type: string
  473. currencyid:
  474. description: 报价货币ID
  475. type: integer
  476. decimalplace:
  477. description: 报价小数位
  478. type: integer
  479. endtime:
  480. description: 预售结束时间
  481. type: string
  482. floorprice:
  483. description: 底价[大宗式竞拍]
  484. type: number
  485. goodscode:
  486. description: 商品代码(预售)
  487. type: string
  488. goodsdetail:
  489. description: 详情[大宗]
  490. type: string
  491. goodsid:
  492. description: 商品ID(自增ID SEQ_GOODS)
  493. type: integer
  494. goodsname:
  495. description: 商品名称(预售)
  496. type: string
  497. goodunit:
  498. description: 报价单位
  499. type: string
  500. goodunitid:
  501. description: 报价单位ID
  502. type: integer
  503. marketid:
  504. description: 所属市场ID
  505. type: integer
  506. marketname:
  507. description: 预售市场名称
  508. type: string
  509. presaledamount:
  510. description: 已预售总金额(预售结束时更新)
  511. type: number
  512. presaledqty:
  513. description: 已预售量(预售结束时更新)
  514. type: integer
  515. presalemode:
  516. description: 预售模式 - 1:一口价 2:大宗式竞拍
  517. type: integer
  518. presaleqty:
  519. description: 预售数量
  520. type: integer
  521. refprice:
  522. description: 参考价格[一口价]
  523. type: number
  524. relatedgoodscode:
  525. description: 商品代码(订单)
  526. type: string
  527. relatedgoodsid:
  528. description: 关联交易合约ID
  529. type: integer
  530. relatedgoodsname:
  531. description: 商品名称(订单)
  532. type: string
  533. relatedmarketid:
  534. description: 关联交易合约市场ID
  535. type: integer
  536. sellstatus:
  537. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  538. type: integer
  539. startprice:
  540. description: 起拍价[大宗式竞拍]
  541. type: number
  542. starttime:
  543. description: 预售开始时间
  544. type: string
  545. tradedate:
  546. description: 交易日(yyyyMMdd)
  547. type: string
  548. tradeprice:
  549. description: 成交价[大宗]
  550. type: number
  551. userid:
  552. description: 卖方用户ID
  553. type: integer
  554. required:
  555. - goodscode
  556. - goodsid
  557. - goodsname
  558. - marketid
  559. - relatedgoodscode
  560. - relatedgoodsname
  561. type: object
  562. cptrade.QueryPresaleGoodsExRsp:
  563. properties:
  564. attachmenturl:
  565. description: 附件地址
  566. type: string
  567. createtime:
  568. description: 创建时间
  569. type: string
  570. endtime:
  571. description: 预售结束时间
  572. type: string
  573. floorprice:
  574. description: 底价[大宗式竞拍]
  575. type: number
  576. goodsdetail:
  577. description: 详情[大宗]
  578. type: string
  579. goodsid:
  580. description: 商品ID(预售)
  581. type: integer
  582. goodunit:
  583. description: 报价单位
  584. type: string
  585. marketid:
  586. description: 预售市场ID - 根据预售模式选择市场
  587. type: integer
  588. presaledamount:
  589. description: 已预售总金额(预售结束时更新)
  590. type: number
  591. presaledqty:
  592. description: 已预售量(预售结束时更新)
  593. type: integer
  594. presalemode:
  595. description: 预售模式 - 1:一口价 2:大宗式竞拍
  596. type: integer
  597. presaleqty:
  598. description: 预售数量
  599. type: integer
  600. refprice:
  601. description: 参考价格[一口价]
  602. type: number
  603. relatedgoodsid:
  604. description: 关联交易合约ID
  605. type: integer
  606. relatedmarketid:
  607. description: 关联交易合约市场ID
  608. type: integer
  609. sellstatus:
  610. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  611. type: integer
  612. startprice:
  613. description: 起拍价[大宗式竞拍]
  614. type: number
  615. starttime:
  616. description: 预售开始时间
  617. type: string
  618. tradedate:
  619. description: 交易日(yyyyMMdd)
  620. type: string
  621. tradeprice:
  622. description: 成交价[大宗]
  623. type: number
  624. required:
  625. - goodsid
  626. type: object
  627. delivery.QueryDeliveryRelationRsp:
  628. properties:
  629. begindate:
  630. description: 起始日期(yyyyMMdd)
  631. type: string
  632. buytemplateid:
  633. description: 买履约计划模板ID
  634. type: integer
  635. deliverygoodscode:
  636. description: 品种代码
  637. type: string
  638. deliverygoodsid:
  639. description: 交割商品
  640. type: integer
  641. deliverygoodsname:
  642. description: 品种名称
  643. type: string
  644. deliverymode:
  645. description: 交割方式 - 1:点选式 2:申报式
  646. type: integer
  647. deliverypricerule:
  648. description: 交割价规则- 1:行情价 2:建仓价
  649. type: integer
  650. deliverytype:
  651. description: 交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割
  652. type: integer
  653. enddate:
  654. description: 结束日期(yyyyMMdd)
  655. type: string
  656. goodscode:
  657. description: 商品代码
  658. type: string
  659. goodsid:
  660. description: 交易合约ID
  661. type: integer
  662. goodsname:
  663. description: 商品名称
  664. type: string
  665. marketid:
  666. description: 市场ID
  667. type: integer
  668. mindeliveryqty:
  669. description: 最小交割系数(K)
  670. type: integer
  671. p2deliveryprice:
  672. description: P2合约价格(商品价时填写0,固定值时填写固定值)
  673. type: number
  674. p2deliveryratio:
  675. description: P2合约系数(p)
  676. type: integer
  677. p2goodsid:
  678. description: P2合约ID
  679. type: integer
  680. p2pricemode:
  681. description: P2合约价格方式 - 1:商品价 2:固定值
  682. type: integer
  683. pdeliveryprice:
  684. description: P合约价格(商品价时填写0,固定值时填写固定值)
  685. type: number
  686. pdeliveryratio:
  687. description: P合约系数(n)
  688. type: integer
  689. pgoodsid:
  690. description: P合约ID
  691. type: integer
  692. ppricemode:
  693. description: P合约价格方式 - 1:商品价 2:固定值
  694. type: integer
  695. rratio:
  696. description: 兑换系数(R)
  697. type: integer
  698. rratio1:
  699. description: 兑换系数(交易合约)(R1)
  700. type: integer
  701. rratio2:
  702. description: 兑换系数(仓单标准)(R2)
  703. type: integer
  704. selltemplateid:
  705. description: 卖履约计划模板ID
  706. type: integer
  707. wrstandardid:
  708. description: 仓单标准ID
  709. type: integer
  710. xdeliveryratio:
  711. description: 交易合约系数(m)
  712. type: integer
  713. required:
  714. - begindate
  715. - enddate
  716. - goodsid
  717. - mindeliveryqty
  718. - xdeliveryratio
  719. type: object
  720. erms2.QueryInnerTradeDetailRsp:
  721. properties:
  722. accountcurrencyid:
  723. description: 账户币种ID
  724. type: integer
  725. accountid:
  726. description: 账号ID
  727. type: integer
  728. asapplyid:
  729. description: 策略申请ID
  730. type: integer
  731. ascontractno:
  732. description: 策略编号
  733. type: string
  734. buyorsell:
  735. description: 方向 - 0:买 1:卖
  736. type: integer
  737. channelbuildtype:
  738. description: 委托单据类型 0:无 1:建仓 2:平仓
  739. type: integer
  740. closecharge:
  741. description: 平仓手续费(账户)
  742. type: number
  743. closecharge2:
  744. description: 平仓手续费(商品)
  745. type: number
  746. closechargevalue:
  747. description: 平仓手续费设置值
  748. type: number
  749. closefeealgorithm:
  750. description: 平仓手续费收取方式 1:比率 2:固定
  751. type: integer
  752. closepl:
  753. description: 平仓盈亏(账户)
  754. type: number
  755. closepl2:
  756. description: 平仓盈亏(商品)
  757. type: number
  758. closepl3:
  759. description: 平仓盈亏(账户)(逐笔)
  760. type: number
  761. closepl4:
  762. description: 平仓盈亏(商品)(逐笔)
  763. type: number
  764. closeqty:
  765. description: 平仓数量(先建后平操作 需要记录)
  766. type: integer
  767. closetype:
  768. description: 平仓方式 - 0:无 1:平今 2:平昨
  769. type: integer
  770. curexchangerate:
  771. description: 当前汇率
  772. type: number
  773. detailtype:
  774. description: 明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整
  775. type: integer
  776. extenalclosecharge:
  777. description: 平仓手续费(商品)(外部)
  778. type: number
  779. extenalclosechargevalue:
  780. description: 平仓手续费设置值
  781. type: number
  782. extenalclosefeealgorithm:
  783. description: 平仓手续费收取方式 1:比率 2:固定
  784. type: integer
  785. extenalopencharge:
  786. description: 建仓手续费(商品)(外部)
  787. type: number
  788. extenalopenchargevalue:
  789. description: 建仓手续费设置值
  790. type: number
  791. extenalopenfeealgorithm:
  792. description: 建仓手续费收取方式(外部配置) 1:比率 2:固定
  793. type: integer
  794. goodscurrencyid:
  795. description: 商品币种ID
  796. type: integer
  797. goodsid:
  798. description: 商品ID
  799. type: integer
  800. hedgeflag:
  801. description: 投机套保标志 - 0:无 1:投机 2:套保 3:套利
  802. type: integer
  803. isreckoned:
  804. description: 是否结算 - 0:未结算 1:已结算
  805. type: integer
  806. marketid:
  807. description: 市场ID
  808. type: integer
  809. opencharge:
  810. description: 建仓手续费(账户)
  811. type: number
  812. opencharge2:
  813. description: 建仓手续费(商品)
  814. type: number
  815. openchargevalue:
  816. description: 建仓手续费设置值
  817. type: number
  818. openfeealgorithm:
  819. description: 建仓手续费收取方式 1:比率 2:固定
  820. type: integer
  821. openqty:
  822. description: 开仓数量(先建后平操作 需要记录)
  823. type: integer
  824. orderid:
  825. description: 委托单号
  826. type: integer
  827. parentaccountid:
  828. description: 所属母账户
  829. type: integer
  830. relatedouttradeid:
  831. description: 关联外部成交单ID
  832. type: integer
  833. spotcontractid:
  834. description: 现货合同ID [1:套利对冲 为合同ID,2:期货换月\3:期货仓位调整时为0]
  835. type: integer
  836. spotcontractno:
  837. description: 现货合同编号
  838. type: string
  839. status:
  840. description: 处理状态 - 1:待处理 2:已处理 3:处理失败
  841. type: integer
  842. tradeamount:
  843. description: 成交金额(账户)
  844. type: number
  845. tradedate:
  846. description: 交易日(yyyyMMdd)
  847. type: string
  848. tradeid:
  849. description: 成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  850. type: integer
  851. tradeprice:
  852. description: 成交价格
  853. type: number
  854. tradeqty:
  855. description: 成交数量
  856. type: integer
  857. tradetime:
  858. description: 成交时间
  859. type: string
  860. tradetype:
  861. description: 成交类别 - 1:正常委托成交 2:风控斩仓成交 3:修正持仓成交 4:管理端斩仓成交
  862. type: integer
  863. required:
  864. - asapplyid
  865. - buyorsell
  866. - tradeid
  867. type: object
  868. info:
  869. contact: {}
  870. description: 新的查询服务,替代原通用查询服务。
  871. license: {}
  872. termsOfService: http://muchinfo.cn
  873. title: MTP2.0 查询服务 API
  874. version: "1.0"
  875. paths:
  876. /CPTrade/QueryCPTradeMyBidInfos:
  877. get:
  878. parameters:
  879. - description: 资金账户
  880. in: query
  881. name: accountid
  882. required: true
  883. type: integer
  884. - description: 预售市场ID
  885. in: query
  886. name: marketid
  887. type: integer
  888. - description: 预售商品ID
  889. in: query
  890. name: goodsid
  891. type: integer
  892. produces:
  893. - application/json
  894. responses:
  895. "200":
  896. description: OK
  897. schema:
  898. $ref: '#/definitions/cptrade.QueryCPTradeMyBidRsp'
  899. "500":
  900. description: Internal Server Error
  901. schema:
  902. $ref: '#/definitions/app.Response'
  903. security:
  904. - ApiKeyAuth: []
  905. summary: 查询产能预售我的出价信息
  906. tags:
  907. - 产能预售
  908. /CPTrade/QueryCPTradeOrderDetail:
  909. get:
  910. parameters:
  911. - description: 预售商品ID
  912. in: query
  913. name: goodsid
  914. type: integer
  915. - description: 预售市场ID
  916. in: query
  917. name: marketid
  918. type: integer
  919. - description: 预售商品ID列表 - 格式:1,2,3
  920. in: query
  921. name: goodsids
  922. type: string
  923. produces:
  924. - application/json
  925. responses:
  926. "200":
  927. description: OK
  928. schema:
  929. $ref: '#/definitions/cptrade.QueryCPTradeOrderDetailRsq'
  930. "500":
  931. description: Internal Server Error
  932. schema:
  933. $ref: '#/definitions/app.Response'
  934. security:
  935. - ApiKeyAuth: []
  936. summary: 查询产能预售委托单信息
  937. tags:
  938. - 产能预售
  939. /CPTrade/QueryMyCPTradeGoods:
  940. get:
  941. parameters:
  942. - description: 资金账户
  943. in: query
  944. name: accountid
  945. required: true
  946. type: integer
  947. produces:
  948. - application/json
  949. responses:
  950. "200":
  951. description: OK
  952. schema:
  953. $ref: '#/definitions/cptrade.QueryMyCPTradeGoodsRsp'
  954. "500":
  955. description: Internal Server Error
  956. schema:
  957. $ref: '#/definitions/app.Response'
  958. security:
  959. - ApiKeyAuth: []
  960. summary: 查询我的预售信息
  961. tags:
  962. - 产能预售
  963. /CPTrade/QueryPositionCancel:
  964. get:
  965. parameters:
  966. - description: 账户ID
  967. in: query
  968. name: userid
  969. required: true
  970. type: integer
  971. - description: 注销ID
  972. in: query
  973. name: cancelid
  974. type: integer
  975. - description: 资金账户ID
  976. in: query
  977. name: accountid
  978. type: integer
  979. produces:
  980. - application/json
  981. responses:
  982. "200":
  983. description: OK
  984. schema:
  985. $ref: '#/definitions/cptrade.Cptradepositioncancel'
  986. "500":
  987. description: Internal Server Error
  988. schema:
  989. $ref: '#/definitions/app.Response'
  990. security:
  991. - ApiKeyAuth: []
  992. summary: 查询远期订单注销申请信息
  993. tags:
  994. - 产能预售
  995. /CPTrade/QueryPreasleApply:
  996. get:
  997. parameters:
  998. - description: 账户ID
  999. in: query
  1000. name: userid
  1001. required: true
  1002. type: integer
  1003. - description: 申请ID
  1004. in: query
  1005. name: applyid
  1006. type: integer
  1007. - description: 资金账户ID
  1008. in: query
  1009. name: accountid
  1010. type: integer
  1011. produces:
  1012. - application/json
  1013. responses:
  1014. "200":
  1015. description: OK
  1016. schema:
  1017. $ref: '#/definitions/cptrade.Cptradepresaleapply'
  1018. "500":
  1019. description: Internal Server Error
  1020. schema:
  1021. $ref: '#/definitions/app.Response'
  1022. security:
  1023. - ApiKeyAuth: []
  1024. summary: 查询产能预售申请信息
  1025. tags:
  1026. - 产能预售
  1027. /CPTrade/QueryPresaleGoodsEx:
  1028. get:
  1029. parameters:
  1030. - description: 预售商品ID
  1031. in: query
  1032. name: goodsid
  1033. type: integer
  1034. - description: 预售市场ID
  1035. in: query
  1036. name: marketid
  1037. type: integer
  1038. - description: 预售模式 - 1:一口价 2:大宗式竞拍
  1039. in: query
  1040. name: presalemode
  1041. type: integer
  1042. - description: 预售商品ID列表 - 格式:1,2,3
  1043. in: query
  1044. name: goodsids
  1045. type: string
  1046. - description: 预售商品代码
  1047. in: query
  1048. name: goodscode
  1049. type: string
  1050. produces:
  1051. - application/json
  1052. responses:
  1053. "200":
  1054. description: OK
  1055. schema:
  1056. $ref: '#/definitions/cptrade.QueryPresaleGoodsExRsp'
  1057. "500":
  1058. description: Internal Server Error
  1059. schema:
  1060. $ref: '#/definitions/app.Response'
  1061. security:
  1062. - ApiKeyAuth: []
  1063. summary: 查询产能预售商品扩展信息
  1064. tags:
  1065. - 产能预售
  1066. /CPTrade/QueryUserGoodsData:
  1067. get:
  1068. parameters:
  1069. - description: 资金账户ID
  1070. in: query
  1071. name: accountid
  1072. required: true
  1073. type: integer
  1074. produces:
  1075. - application/json
  1076. responses:
  1077. "200":
  1078. description: OK
  1079. schema:
  1080. $ref: '#/definitions/cptrade.Cptradeusergoodsdata'
  1081. "500":
  1082. description: Internal Server Error
  1083. schema:
  1084. $ref: '#/definitions/app.Response'
  1085. security:
  1086. - ApiKeyAuth: []
  1087. summary: 查询远期订单信息
  1088. tags:
  1089. - 产能预售
  1090. /Delivery/QueryDeliveryRelation:
  1091. get:
  1092. parameters:
  1093. - description: 商品ID
  1094. in: query
  1095. name: goodsid
  1096. type: integer
  1097. - description: 品种ID
  1098. in: query
  1099. name: deliverygoodsid
  1100. type: integer
  1101. - description: 市场ID
  1102. in: query
  1103. name: marketid
  1104. type: integer
  1105. produces:
  1106. - application/json
  1107. responses:
  1108. "200":
  1109. description: OK
  1110. schema:
  1111. $ref: '#/definitions/delivery.QueryDeliveryRelationRsp'
  1112. "500":
  1113. description: Internal Server Error
  1114. schema:
  1115. $ref: '#/definitions/app.Response'
  1116. security:
  1117. - ApiKeyAuth: []
  1118. summary: 查询商品交割关系表
  1119. tags:
  1120. - 交割服务
  1121. /Erms2/QueryInnerTradeDetail:
  1122. get:
  1123. parameters:
  1124. - description: 资金账户
  1125. in: query
  1126. name: accountid
  1127. required: true
  1128. type: integer
  1129. produces:
  1130. - application/json
  1131. responses:
  1132. "200":
  1133. description: OK
  1134. schema:
  1135. $ref: '#/definitions/erms2.QueryInnerTradeDetailRsp'
  1136. "500":
  1137. description: Internal Server Error
  1138. schema:
  1139. $ref: '#/definitions/app.Response'
  1140. security:
  1141. - ApiKeyAuth: []
  1142. summary: 查询内部成交单信息
  1143. tags:
  1144. - 风险管理
  1145. /WRTrade/GetAllDeliveryGoods:
  1146. get:
  1147. produces:
  1148. - application/json
  1149. responses:
  1150. "200":
  1151. description: OK
  1152. schema:
  1153. $ref: '#/definitions/app.Response'
  1154. "500":
  1155. description: Internal Server Error
  1156. schema:
  1157. $ref: '#/definitions/app.Response'
  1158. security:
  1159. - ApiKeyAuth: []
  1160. summary: 获取带仓单分类的种类信息
  1161. tags:
  1162. - 仓单贸易
  1163. securityDefinitions:
  1164. ApiKeyAuth:
  1165. in: header
  1166. name: Authorization
  1167. type: apiKey
  1168. swagger: "2.0"