swagger.yaml 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672
  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. common.OperationPrimaryMenu:
  13. properties:
  14. Children:
  15. description: 二级功能菜单
  16. items:
  17. $ref: '#/definitions/common.OperationSecondaryMenu'
  18. type: array
  19. Key:
  20. description: 菜单KEY
  21. type: string
  22. Label:
  23. description: 菜单标题
  24. type: string
  25. type: object
  26. common.OperationSecondaryMenu:
  27. properties:
  28. Key:
  29. description: 菜单KEY
  30. type: string
  31. Label:
  32. description: 菜单标题
  33. type: string
  34. TabList:
  35. description: 三级功能菜单
  36. items:
  37. $ref: '#/definitions/common.OperationTabMenu'
  38. type: array
  39. type: object
  40. common.OperationTabMenu:
  41. properties:
  42. Key:
  43. description: 菜单KEY
  44. type: string
  45. Label:
  46. description: 菜单标题
  47. type: string
  48. type: object
  49. common.QueryTraderMenuRsp:
  50. properties:
  51. OperationMenu:
  52. description: 功能菜单
  53. items:
  54. $ref: '#/definitions/common.OperationPrimaryMenu'
  55. type: array
  56. QuoteMenu:
  57. description: 报价牌分类菜单
  58. items:
  59. $ref: '#/definitions/common.QuotePrimaryMenu'
  60. type: array
  61. type: object
  62. common.QuotePrimaryMenu:
  63. properties:
  64. Index:
  65. description: 序号
  66. type: integer
  67. Key:
  68. description: 键名
  69. type: string
  70. Name:
  71. description: 菜单名称
  72. type: string
  73. SubMenus:
  74. description: 子菜单
  75. items:
  76. $ref: '#/definitions/common.QuoteSecondaryMenu'
  77. type: array
  78. SubTitleType:
  79. description: 子菜单标题模式:0-市场名称;1-外部交易所名称
  80. type: integer
  81. TradeModes:
  82. description: 包含市场交易类型
  83. type: string
  84. type: object
  85. common.QuoteSecondaryMenu:
  86. properties:
  87. ExExchangeCode:
  88. description: 外部交易所代码
  89. type: string
  90. ExExchangeID:
  91. description: 外部交易所ID
  92. type: integer
  93. GoodsGroupIDs:
  94. description: 商品组ID列表
  95. items:
  96. type: integer
  97. type: array
  98. Index:
  99. description: 序号
  100. type: integer
  101. MarketID:
  102. description: 市场ID
  103. type: integer
  104. MenuTitle:
  105. description: 菜单标题(市场名称或外部交易所名称)
  106. type: string
  107. TradeMode:
  108. description: 交易模式
  109. type: integer
  110. type: object
  111. cptrade.Cptradepositioncancel:
  112. properties:
  113. accountid:
  114. description: 申请人账户ID
  115. type: integer
  116. applystatus:
  117. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  118. type: integer
  119. applytime:
  120. description: 申请时间
  121. type: string
  122. cancelid:
  123. description: 注销ID(SEQ_CPTRADE_POSITIONCANCEL)
  124. type: integer
  125. cancelqty:
  126. description: 注销数量
  127. type: integer
  128. createtime:
  129. description: 创建时间
  130. type: string
  131. creatorid:
  132. description: 创建人ID
  133. type: integer
  134. creatorname:
  135. description: 创建人
  136. type: string
  137. goodscode:
  138. description: 订单商品代码
  139. type: string
  140. goodsid:
  141. description: 商品ID
  142. type: integer
  143. goodsname:
  144. description: 订单商品名称
  145. type: string
  146. goodunit:
  147. description: 报价单位
  148. type: string
  149. handlestatus:
  150. description: 处理状态
  151. type: integer
  152. marketid:
  153. description: 市场ID
  154. type: integer
  155. marketname:
  156. description: 市场名称
  157. type: string
  158. tradedate:
  159. description: 交易日(yyyyMMdd)
  160. type: string
  161. userid:
  162. description: 申请人ID
  163. type: integer
  164. required:
  165. - cancelid
  166. type: object
  167. cptrade.Cptradepresaleapply:
  168. properties:
  169. accountid:
  170. description: 申请人账户ID
  171. type: integer
  172. applyid:
  173. description: 申请ID(181+Unix秒时间戳(10位)+xxxxxx)
  174. type: integer
  175. applyremark:
  176. description: 申请备注
  177. type: string
  178. applystatus:
  179. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  180. type: integer
  181. applytime:
  182. description: 申请时间
  183. type: string
  184. attachmenturl:
  185. description: 附件地址
  186. type: string
  187. endtime:
  188. description: 预售结束时间
  189. type: string
  190. goodscode:
  191. description: 商品代码
  192. type: string
  193. goodsid:
  194. description: 商品ID
  195. type: integer
  196. goodsname:
  197. description: 商品名称
  198. type: string
  199. goodunit:
  200. description: 报价单位
  201. type: string
  202. handlestatus:
  203. description: 处理状态
  204. type: integer
  205. marketid:
  206. description: 预售市场ID
  207. type: integer
  208. marketname:
  209. description: 预售市场名称
  210. type: string
  211. presaleqty:
  212. description: 预售数量
  213. type: integer
  214. relatedgoodscode:
  215. description: 关联交易合约代码
  216. type: string
  217. relatedgoodsid:
  218. description: 关联交易合约ID
  219. type: integer
  220. relatedgoodsname:
  221. description: 关联交易合约名称
  222. type: string
  223. starttime:
  224. description: 预售开始时间
  225. type: string
  226. tradedate:
  227. description: 交易日(yyyyMMdd)
  228. type: string
  229. trademode:
  230. description: 交易模式 - 16:挂牌点选 21:大宗竞拍
  231. type: integer
  232. userid:
  233. description: 申请人ID
  234. type: integer
  235. required:
  236. - applyid
  237. type: object
  238. cptrade.Cptradeusergoodsdata:
  239. properties:
  240. EnabledQty:
  241. description: 可用量
  242. type: integer
  243. GoodsCode:
  244. description: 订单商品代码
  245. type: string
  246. GoodsName:
  247. description: 订单商品名称
  248. type: string
  249. WRStandardCode:
  250. description: 仓单标准代码
  251. type: string
  252. WRStandardName:
  253. description: 仓单标准名称
  254. type: string
  255. accountid:
  256. description: 账户ID
  257. type: integer
  258. cancelqty:
  259. description: 注销量
  260. type: integer
  261. curpresaleqty:
  262. description: 当前预售量
  263. type: integer
  264. deliveryqty:
  265. description: 交割量
  266. type: integer
  267. freezeamount:
  268. description: 冻结金额
  269. type: number
  270. goodsid:
  271. description: 商品ID
  272. type: integer
  273. goodunit:
  274. description: 报价单位
  275. type: string
  276. hasspotfreeze:
  277. description: 是否有现货冻结 - 0:否 1:有
  278. type: integer
  279. inqty:
  280. description: 转入量(总数量)
  281. type: integer
  282. marketid:
  283. description: 市场ID
  284. type: integer
  285. presaledamount:
  286. description: 已预售总金额
  287. type: integer
  288. presaledqty:
  289. description: 已预售量
  290. type: integer
  291. userid:
  292. description: 用户ID
  293. type: integer
  294. wrstandardid:
  295. description: 仓单标准ID
  296. type: integer
  297. required:
  298. - accountid
  299. - goodsid
  300. type: object
  301. cptrade.QueryCPTradeMyBidRsp:
  302. properties:
  303. accountid:
  304. description: 账户ID[报价币种]
  305. type: integer
  306. goodsid:
  307. description: 商品ID
  308. type: integer
  309. goodunit:
  310. description: 报价单位
  311. type: string
  312. marketid:
  313. description: 市场ID
  314. type: integer
  315. orderid:
  316. description: 委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  317. type: integer
  318. orderprice:
  319. description: 委托价格
  320. type: number
  321. orderqty:
  322. description: 委托数量
  323. type: integer
  324. ordertime:
  325. description: 委托时间
  326. type: string
  327. ordertotalprice:
  328. description: 货款金额(委托总价格=委托价格*委托数量*合约单位)
  329. type: number
  330. ordertotalweight:
  331. description: 竞拍总重量(委托总重量=委托数量*合约单位)
  332. type: integer
  333. totaltotalprice:
  334. description: 成交货款金额(成交总价格=成交价格*成交数量*合约单位)
  335. type: number
  336. tradeprice:
  337. description: 成交价格
  338. type: number
  339. tradeqty:
  340. description: 成交数量
  341. type: integer
  342. required:
  343. - accountid
  344. - goodsid
  345. - marketid
  346. - orderid
  347. - orderqty
  348. - ordertime
  349. - tradeprice
  350. - tradeqty
  351. type: object
  352. cptrade.QueryCPTradeOrderDetailRsq:
  353. properties:
  354. accountid:
  355. description: 账户ID[报价币种]
  356. type: integer
  357. buildtype:
  358. description: 委托单据类型 - 1:建仓 2:平仓 3:先平后建
  359. type: integer
  360. buyorsell:
  361. description: 买卖 - 0:买 1:卖
  362. type: integer
  363. cancelorderid:
  364. description: 撤单单号(撤单时填写)
  365. type: integer
  366. cancelqty:
  367. description: 撤单数量
  368. type: integer
  369. clientordertime:
  370. description: 客户端委托时间
  371. type: string
  372. clientticket:
  373. description: 客户端流水号
  374. type: string
  375. clienttype:
  376. description: 客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
  377. type: integer
  378. closeexchagechargevalue:
  379. description: 平仓交易所手续费设置值
  380. type: number
  381. closefeealgorithm:
  382. description: 平仓手续费收取方式 1:比率 2:固定
  383. type: integer
  384. closefreezecharge:
  385. description: 平仓冻结手续费(先建后平操作,需要记录)
  386. type: number
  387. closememberchargevalue:
  388. description: 平仓会员手续费设置值
  389. type: number
  390. closeqty:
  391. description: 平仓数量(先建后平操作 需要记录)
  392. type: integer
  393. closetradeqty:
  394. description: 平仓成交数量(先建后平操作,需要记录)
  395. type: integer
  396. closeunfreezecharge:
  397. description: 平仓解冻手续费(先建后平操作,需要记录)
  398. type: number
  399. delistingtype:
  400. description: 摘牌类型 - 1:价格最优 2:点选成交
  401. type: integer
  402. freezecharge:
  403. description: 冻结手续费
  404. type: number
  405. freezemargin:
  406. description: 冻结保证金(冻结交易金额)
  407. type: number
  408. gcaccountid:
  409. description: 账户ID[合约币种]
  410. type: integer
  411. goodsid:
  412. description: 商品ID
  413. type: integer
  414. isconfirmexercise:
  415. description: 是否确认行权- 0:否 1:是
  416. type: integer
  417. ispreexercise:
  418. description: 是否预申报- 0:否 1:是
  419. type: integer
  420. listingselecttype:
  421. description: 挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  422. type: integer
  423. marginalgorithm:
  424. description: 保证金收取方式 1:比率 2:固定
  425. type: integer
  426. marginvalue:
  427. description: 即市保证金设置值
  428. type: number
  429. marketid:
  430. description: 市场ID
  431. type: integer
  432. marketmaxsub:
  433. description: 市价最大偏移范围
  434. type: number
  435. memberuserid:
  436. description: 所属会员UserID
  437. type: integer
  438. openexchagechargevalue:
  439. description: 建仓交易所手续费设置值
  440. type: number
  441. openfeealgorithm:
  442. description: 建仓手续费收取方式 1:比率 2:固定
  443. type: integer
  444. openfreezecharge:
  445. description: 开仓冻结手续费(先建后平操作,需要记录)
  446. type: number
  447. openmemberchargevalue:
  448. description: 建仓会员手续费设置值
  449. type: number
  450. openqty:
  451. description: 开仓数量(先建后平操作,需要记录)
  452. type: integer
  453. opentradeqty:
  454. description: 开仓成交数量(先建后平操作,需要记录)
  455. type: integer
  456. openunfreezecharge:
  457. description: 开仓解冻手续费(先建后平操作,需要记录)
  458. type: number
  459. operatetype:
  460. description: 操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
  461. type: integer
  462. operatorid:
  463. description: 登录账号(LoginID)
  464. type: integer
  465. optiontype:
  466. description: 期权类型 - 1:认购(看涨) 2:认沽(看跌)
  467. type: integer
  468. orderprice:
  469. description: 委托价格
  470. type: number
  471. orderqty:
  472. description: 委托数量
  473. type: integer
  474. ordersrc:
  475. description: 委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发
  476. type: integer
  477. orderstatus:
  478. description: 委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
  479. type: integer
  480. ordertime:
  481. description: 委托时间
  482. type: string
  483. preexerciseprice:
  484. description: 预申报价格
  485. type: number
  486. premium:
  487. description: 权利金
  488. type: number
  489. preorderid:
  490. description: 关联预埋单号(止盈止损单时填写)
  491. type: integer
  492. pricemode:
  493. description: '取价方式 - 1:市价 2: 限价'
  494. type: integer
  495. quoteid:
  496. description: 报价单ID
  497. type: integer
  498. relatedid:
  499. description: 关联单号(交割单)
  500. type: integer
  501. retcode:
  502. description: 错误代码
  503. type: integer
  504. sessionid:
  505. description: 会话ID
  506. type: integer
  507. strorderid:
  508. description: 委托单号
  509. type: string
  510. tradedate:
  511. description: 交易日(yyyyMMdd)
  512. type: string
  513. tradeproperty:
  514. description: 交易属性
  515. type: integer
  516. tradeqty:
  517. description: 成交数量
  518. type: integer
  519. unfreezecharge:
  520. description: 解冻手续费
  521. type: number
  522. unfreezemargin:
  523. description: 解冻保证金
  524. type: number
  525. updatetime:
  526. description: 更新时间
  527. type: string
  528. uuid:
  529. description: 发起端唯一id
  530. type: string
  531. validtime:
  532. description: 有效期限
  533. type: string
  534. validtype:
  535. description: 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
  536. type: integer
  537. volumetype:
  538. description: 当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
  539. type: integer
  540. required:
  541. - accountid
  542. - buildtype
  543. - buyorsell
  544. - goodsid
  545. - marketid
  546. - memberuserid
  547. - operatetype
  548. - orderqty
  549. - ordertime
  550. - pricemode
  551. - strorderid
  552. - tradedate
  553. - validtype
  554. type: object
  555. cptrade.QueryMyCPTradeGoodsRsp:
  556. properties:
  557. accountid:
  558. description: 卖方账户ID
  559. type: integer
  560. agreeunit:
  561. description: 合约单位
  562. type: number
  563. applyid:
  564. description: 关联申请ID
  565. type: integer
  566. attachmenturl:
  567. description: 附件地址
  568. type: string
  569. createtime:
  570. description: 创建时间
  571. type: string
  572. currencyid:
  573. description: 报价货币ID
  574. type: integer
  575. decimalplace:
  576. description: 报价小数位
  577. type: integer
  578. endtime:
  579. description: 预售结束时间
  580. type: string
  581. floorprice:
  582. description: 底价[大宗式竞拍]
  583. type: number
  584. goodscode:
  585. description: 商品代码(预售)
  586. type: string
  587. goodsdetail:
  588. description: 详情[大宗]
  589. type: string
  590. goodsid:
  591. description: 商品ID(自增ID SEQ_GOODS)
  592. type: integer
  593. goodsname:
  594. description: 商品名称(预售)
  595. type: string
  596. goodunit:
  597. description: 报价单位
  598. type: string
  599. goodunitid:
  600. description: 报价单位ID
  601. type: integer
  602. marketid:
  603. description: 所属市场ID
  604. type: integer
  605. marketname:
  606. description: 预售市场名称
  607. type: string
  608. presaledamount:
  609. description: 已预售总金额(预售结束时更新)
  610. type: number
  611. presaledqty:
  612. description: 已预售量(预售结束时更新)
  613. type: integer
  614. presalemode:
  615. description: 预售模式 - 1:一口价 2:大宗式竞拍
  616. type: integer
  617. presaleqty:
  618. description: 预售数量
  619. type: integer
  620. refprice:
  621. description: 参考价格[一口价]
  622. type: number
  623. relatedgoodscode:
  624. description: 商品代码(订单)
  625. type: string
  626. relatedgoodsid:
  627. description: 关联交易合约ID
  628. type: integer
  629. relatedgoodsname:
  630. description: 商品名称(订单)
  631. type: string
  632. relatedmarketid:
  633. description: 关联交易合约市场ID
  634. type: integer
  635. sellstatus:
  636. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  637. type: integer
  638. startprice:
  639. description: 起拍价[大宗式竞拍]
  640. type: number
  641. starttime:
  642. description: 预售开始时间
  643. type: string
  644. tradedate:
  645. description: 交易日(yyyyMMdd)
  646. type: string
  647. tradeprice:
  648. description: 成交价[大宗]
  649. type: number
  650. userid:
  651. description: 卖方用户ID
  652. type: integer
  653. required:
  654. - goodscode
  655. - goodsid
  656. - goodsname
  657. - marketid
  658. - relatedgoodscode
  659. - relatedgoodsname
  660. type: object
  661. cptrade.QueryPresaleGoodsExRsp:
  662. properties:
  663. attachmenturl:
  664. description: 附件地址
  665. type: string
  666. createtime:
  667. description: 创建时间
  668. type: string
  669. endtime:
  670. description: 预售结束时间
  671. type: string
  672. floorprice:
  673. description: 底价[大宗式竞拍]
  674. type: number
  675. goodsdetail:
  676. description: 详情[大宗]
  677. type: string
  678. goodsid:
  679. description: 商品ID(预售)
  680. type: integer
  681. goodunit:
  682. description: 报价单位
  683. type: string
  684. marketid:
  685. description: 预售市场ID - 根据预售模式选择市场
  686. type: integer
  687. presaledamount:
  688. description: 已预售总金额(预售结束时更新)
  689. type: number
  690. presaledqty:
  691. description: 已预售量(预售结束时更新)
  692. type: integer
  693. presalemode:
  694. description: 预售模式 - 1:一口价 2:大宗式竞拍
  695. type: integer
  696. presaleqty:
  697. description: 预售数量
  698. type: integer
  699. refprice:
  700. description: 参考价格[一口价]
  701. type: number
  702. relatedgoodsid:
  703. description: 关联交易合约ID
  704. type: integer
  705. relatedmarketid:
  706. description: 关联交易合约市场ID
  707. type: integer
  708. sellstatus:
  709. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  710. type: integer
  711. startprice:
  712. description: 起拍价[大宗式竞拍]
  713. type: number
  714. starttime:
  715. description: 预售开始时间
  716. type: string
  717. tradedate:
  718. description: 交易日(yyyyMMdd)
  719. type: string
  720. tradeprice:
  721. description: 成交价[大宗]
  722. type: number
  723. required:
  724. - goodsid
  725. type: object
  726. delivery.QueryDeliveryRelationRsp:
  727. properties:
  728. begindate:
  729. description: 起始日期(yyyyMMdd)
  730. type: string
  731. buytemplateid:
  732. description: 买履约计划模板ID
  733. type: integer
  734. deliverygoodscode:
  735. description: 品种代码
  736. type: string
  737. deliverygoodsid:
  738. description: 交割商品
  739. type: integer
  740. deliverygoodsname:
  741. description: 品种名称
  742. type: string
  743. deliverymode:
  744. description: 交割方式 - 1:点选式 2:申报式
  745. type: integer
  746. deliverypricerule:
  747. description: 交割价规则- 1:行情价 2:建仓价
  748. type: integer
  749. deliverytype:
  750. description: 交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割
  751. type: integer
  752. enddate:
  753. description: 结束日期(yyyyMMdd)
  754. type: string
  755. goodscode:
  756. description: 商品代码
  757. type: string
  758. goodsid:
  759. description: 交易合约ID
  760. type: integer
  761. goodsname:
  762. description: 商品名称
  763. type: string
  764. marketid:
  765. description: 市场ID
  766. type: integer
  767. mindeliveryqty:
  768. description: 最小交割系数(K)
  769. type: integer
  770. p2deliveryprice:
  771. description: P2合约价格(商品价时填写0,固定值时填写固定值)
  772. type: number
  773. p2deliveryratio:
  774. description: P2合约系数(p)
  775. type: integer
  776. p2goodsid:
  777. description: P2合约ID
  778. type: integer
  779. p2pricemode:
  780. description: P2合约价格方式 - 1:商品价 2:固定值
  781. type: integer
  782. pdeliveryprice:
  783. description: P合约价格(商品价时填写0,固定值时填写固定值)
  784. type: number
  785. pdeliveryratio:
  786. description: P合约系数(n)
  787. type: integer
  788. pgoodsid:
  789. description: P合约ID
  790. type: integer
  791. ppricemode:
  792. description: P合约价格方式 - 1:商品价 2:固定值
  793. type: integer
  794. rratio:
  795. description: 兑换系数(R)
  796. type: integer
  797. rratio1:
  798. description: 兑换系数(交易合约)(R1)
  799. type: integer
  800. rratio2:
  801. description: 兑换系数(仓单标准)(R2)
  802. type: integer
  803. selltemplateid:
  804. description: 卖履约计划模板ID
  805. type: integer
  806. wrstandardid:
  807. description: 仓单标准ID
  808. type: integer
  809. xdeliveryratio:
  810. description: 交易合约系数(m)
  811. type: integer
  812. required:
  813. - begindate
  814. - enddate
  815. - goodsid
  816. - mindeliveryqty
  817. - xdeliveryratio
  818. type: object
  819. erms2.QueryArbitrageStrategyRsp:
  820. properties:
  821. applybasis:
  822. description: 申请基差
  823. type: number
  824. asapplyid:
  825. description: 策略申请ID(702+Unix秒时间戳(10位)+xxxxxx)
  826. type: string
  827. asname:
  828. description: 策略名称
  829. type: string
  830. asno:
  831. description: 策略编号
  832. type: string
  833. basischangepl:
  834. description: 基差变动损益[结算更新]
  835. type: number
  836. biztype:
  837. description: 业务类型 - 1:正向套利 -1:反向套利
  838. type: integer
  839. closetradedate:
  840. description: 完结交易日(yyyyMMdd)
  841. type: string
  842. curbasis:
  843. description: 当前基差[结算更新]
  844. type: number
  845. deliverygoodsid:
  846. description: 现货品种ID
  847. type: integer
  848. futureavgprice:
  849. description: 期货建仓均价
  850. type: number
  851. futurecloseamount:
  852. description: 期货平仓金额
  853. type: number
  854. futurecloseqty:
  855. description: 期货平仓数量
  856. type: number
  857. futureopenamount:
  858. description: 期货开仓金额
  859. type: number
  860. futureopenqty:
  861. description: 期货开仓数量
  862. type: number
  863. futurepl:
  864. description: 期货总盈亏[结算更新]
  865. type: number
  866. futureqty:
  867. description: 期货持仓数量
  868. type: number
  869. futurequote:
  870. description: 期货额度
  871. type: number
  872. goodsgroupid:
  873. description: 期货品种ID
  874. type: integer
  875. marketid:
  876. description: 市场ID
  877. type: integer
  878. netexposure:
  879. description: 单笔业务头寸净敞口 = 期货持仓数量 + 已定价现货不含税数量
  880. type: number
  881. netexposurepl:
  882. description: 净敞口损益 = TotalPL - BasisChangePL[结算更新]
  883. type: number
  884. netexposurerate:
  885. description: 净敞口比例 - 0:未结束 = (NetExposure/PriceSpotQtyNoTax) ; 已结束为0
  886. type: number
  887. openbasis:
  888. description: 建仓基差
  889. type: number
  890. pricedspotqty:
  891. description: 已定价现货数量
  892. type: number
  893. pricedspotqtynotax:
  894. description: 已定价现货不含税数量
  895. type: number
  896. remark:
  897. description: 备注
  898. type: string
  899. spotavgprice:
  900. description: 现货均价
  901. type: number
  902. spotbuyamount:
  903. description: 现货采购金额
  904. type: number
  905. spotbuyqty:
  906. description: 现货采购数量
  907. type: number
  908. spotpl:
  909. description: 现货总盈亏[结算更新]
  910. type: number
  911. spotquota:
  912. description: 现货额度
  913. type: number
  914. spotsellamount:
  915. description: 现货销售金额
  916. type: number
  917. spotsellqty:
  918. description: 现货销售数量
  919. type: number
  920. spotusedquota:
  921. description: 现货占用资金
  922. type: number
  923. strategystatus:
  924. description: 策略状态 - 0:未结束 1:已结束
  925. type: integer
  926. totalpl:
  927. description: 业务合计损益 = FuturePL + SpotPL [结算更新]
  928. type: number
  929. tradedate:
  930. description: 交易日(yyyyMMdd)
  931. type: string
  932. updatetime:
  933. description: 更新时间
  934. type: string
  935. usedquota:
  936. description: 已占用资金
  937. type: number
  938. userid:
  939. description: 所属机构
  940. type: integer
  941. required:
  942. - asapplyid
  943. type: object
  944. erms2.QueryInnerTradeDetailRsp:
  945. properties:
  946. accountid:
  947. description: 账号ID
  948. type: integer
  949. agreeunit:
  950. description: 合约单位
  951. type: number
  952. asapplyid:
  953. description: 策略申请ID
  954. type: integer
  955. asname:
  956. description: 策略名称
  957. type: string
  958. asno:
  959. description: 策略编号
  960. type: string
  961. buyorsell:
  962. description: 方向 - 0:买 1:卖
  963. type: integer
  964. channelbuildtype:
  965. description: 委托单据类型 0:无 1:建仓 2:平仓
  966. type: integer
  967. closetype:
  968. description: 平仓方式 - 0:无 1:平今 2:平昨
  969. type: integer
  970. decimalplace:
  971. description: 报价小数位
  972. type: integer
  973. detailtype:
  974. description: 明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整
  975. type: integer
  976. exexchangecode:
  977. description: 外部交易所代码
  978. type: string
  979. exexchangename:
  980. description: 外部交易所名称
  981. type: string
  982. goodscode:
  983. description: 商品代码(合约)
  984. type: string
  985. goodsgroupid:
  986. description: 商品组ID(品种ID)
  987. type: integer
  988. goodsgroupname:
  989. description: 商品组名称(品种)
  990. type: string
  991. goodsid:
  992. description: 商品ID
  993. type: integer
  994. goodsname:
  995. description: 商品名称(合约)
  996. type: string
  997. goodunit:
  998. description: 报价单位
  999. type: string
  1000. marketid:
  1001. description: 市场ID
  1002. type: integer
  1003. orderid:
  1004. description: 委托单号
  1005. type: string
  1006. outgoodscode:
  1007. description: 商品代码(外部)
  1008. type: string
  1009. relatedouttradeid:
  1010. description: 关联外部成交单ID
  1011. type: string
  1012. remark:
  1013. description: 备注
  1014. type: string
  1015. spotcontractid:
  1016. description: 现货合同ID [1:套利对冲 为合同ID,2:期货换月\3:期货仓位调整时为0]
  1017. type: integer
  1018. spotcontractno:
  1019. description: 现货合同编号
  1020. type: string
  1021. tradeid:
  1022. description: 成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  1023. type: string
  1024. tradeprice:
  1025. description: 成交价格
  1026. type: number
  1027. tradeqty:
  1028. description: 成交数量
  1029. type: integer
  1030. tradetime:
  1031. description: 成交时间
  1032. type: string
  1033. updatetime:
  1034. description: 更新时间
  1035. type: string
  1036. required:
  1037. - asapplyid
  1038. - buyorsell
  1039. - goodscode
  1040. - goodsgroupid
  1041. - goodsgroupname
  1042. - goodsname
  1043. - tradeid
  1044. type: object
  1045. erms2.QuerySpotContractRsp:
  1046. properties:
  1047. accountid:
  1048. description: 资金账户ID
  1049. type: integer
  1050. areauserid:
  1051. description: 所属机构
  1052. type: integer
  1053. closedate:
  1054. description: 终止日期
  1055. type: string
  1056. closeremark:
  1057. description: 结束备注
  1058. type: string
  1059. closetradedate:
  1060. description: 完结交易日(yyyyMMdd)
  1061. type: string
  1062. closetype:
  1063. description: 终止类型 - 1:违约 2:提前终止
  1064. type: integer
  1065. contractamount:
  1066. description: 合同金额
  1067. type: number
  1068. contractattachment:
  1069. description: 合同附件
  1070. type: string
  1071. contractno:
  1072. description: 现货合同编号
  1073. type: string
  1074. contractqty:
  1075. description: 合同数量(数值) (用于计算)
  1076. type: number
  1077. contractqtychar:
  1078. description: 合同数量\已订价数量 (用于显示)
  1079. type: string
  1080. contractstatus:
  1081. description: 合同状态 - 0:未结束 1:已结束
  1082. type: integer
  1083. contracttype:
  1084. description: 现货合同类型 - 1:采购合同 -1:销售合同
  1085. type: integer
  1086. customeraccountid:
  1087. description: 客户资金账户ID
  1088. type: integer
  1089. customeruserid:
  1090. description: 客户ID
  1091. type: integer
  1092. deliverygoodsdesc:
  1093. description: 品种说明
  1094. type: string
  1095. deliverygoodsid:
  1096. description: 现货品种ID
  1097. type: integer
  1098. handlestatus:
  1099. description: 处理状态
  1100. type: integer
  1101. invoiceatt:
  1102. description: 发票附件
  1103. type: string
  1104. invoicedatetime:
  1105. description: 开收票更新时间
  1106. type: string
  1107. invoiceopentime:
  1108. description: 开票时间
  1109. type: string
  1110. invoiceremark:
  1111. description: 发票备注
  1112. type: string
  1113. invoicestatus:
  1114. description: 开收票状态 - 0:未开票 1:已开票
  1115. type: integer
  1116. lastdate:
  1117. description: 交货时间
  1118. type: string
  1119. marketid:
  1120. description: 市场ID
  1121. type: integer
  1122. paydatetime:
  1123. description: 收付款更新时间
  1124. type: string
  1125. payremark:
  1126. description: 收付款备注
  1127. type: string
  1128. paystatus:
  1129. description: 收付款状态 - 0:未支付 1:已收款 2:已付款
  1130. type: integer
  1131. positionqty:
  1132. description: 头寸数量 - 合同数量去小数部分
  1133. type: integer
  1134. producttype:
  1135. description: 产品类型 - 1:标准仓单 2:等标 3:非标
  1136. type: integer
  1137. relatedqty:
  1138. description: 已关联数量
  1139. type: number
  1140. relatedstatus:
  1141. description: 关联完结状态 - 0:未结束 1:已结束
  1142. type: integer
  1143. remark:
  1144. description: 备注
  1145. type: string
  1146. signdate:
  1147. description: 签订日期
  1148. type: string
  1149. spotcontractid:
  1150. description: 现货合同ID(701+Unix秒时间戳(10位)+xxxxxx)
  1151. type: string
  1152. spotdatetime:
  1153. description: 收发货更新时间
  1154. type: string
  1155. spotprice:
  1156. description: 价格
  1157. type: number
  1158. spotremark:
  1159. description: 收发货备注
  1160. type: string
  1161. spotstatus:
  1162. description: 收发货状态 - 0:未交收 1:已发货 2:已发货
  1163. type: integer
  1164. tradedate:
  1165. description: 交易日(yyyyMMdd)
  1166. type: string
  1167. userid:
  1168. description: 业务员用户ID
  1169. type: integer
  1170. warehouseid:
  1171. description: 仓库ID
  1172. type: integer
  1173. wrfactortypeid:
  1174. description: 仓单要素类型ID
  1175. type: integer
  1176. wrstandardid:
  1177. description: 仓单标准ID(SEQ_WRSTANDARD)
  1178. type: integer
  1179. required:
  1180. - spotcontractid
  1181. type: object
  1182. models.Tablecolumnconfig:
  1183. properties:
  1184. aligntype:
  1185. description: 对齐方式 - 1:居中对齐 2:左对齐 3:右对齐
  1186. type: integer
  1187. autoid:
  1188. description: AutoID
  1189. type: integer
  1190. columnfield:
  1191. description: 列字段
  1192. type: string
  1193. columntitle:
  1194. description: 列Title
  1195. type: string
  1196. columnwidth:
  1197. description: 列宽
  1198. type: string
  1199. formatterstring:
  1200. description: 格式化字符
  1201. type: string
  1202. formattertype:
  1203. description: 格式化类型
  1204. type: string
  1205. groupname:
  1206. description: 表头分组名称
  1207. type: string
  1208. isshow:
  1209. description: 是否显示 - 0:不显示 1:显示
  1210. type: integer
  1211. needsummary:
  1212. description: 是否需要汇总 - 0:不需要 1:需要
  1213. type: integer
  1214. orderindex:
  1215. description: 顺序
  1216. type: integer
  1217. remark:
  1218. description: 备注
  1219. type: string
  1220. summarytype:
  1221. description: 汇总类型 - 1:加总 2:最后一个
  1222. type: integer
  1223. tablekey:
  1224. description: 列表Key
  1225. type: string
  1226. required:
  1227. - autoid
  1228. type: object
  1229. info:
  1230. contact: {}
  1231. description: 新的查询服务,替代原通用查询服务。
  1232. license: {}
  1233. termsOfService: http://muchinfo.cn
  1234. title: MTP2.0 查询服务 API
  1235. version: "1.0"
  1236. paths:
  1237. /CPTrade/QueryCPTradeMyBidInfos:
  1238. get:
  1239. parameters:
  1240. - description: 资金账户
  1241. in: query
  1242. name: accountid
  1243. required: true
  1244. type: integer
  1245. - description: 预售市场ID
  1246. in: query
  1247. name: marketid
  1248. type: integer
  1249. - description: 预售商品ID
  1250. in: query
  1251. name: goodsid
  1252. type: integer
  1253. produces:
  1254. - application/json
  1255. responses:
  1256. "200":
  1257. description: OK
  1258. schema:
  1259. $ref: '#/definitions/cptrade.QueryCPTradeMyBidRsp'
  1260. "500":
  1261. description: Internal Server Error
  1262. schema:
  1263. $ref: '#/definitions/app.Response'
  1264. security:
  1265. - ApiKeyAuth: []
  1266. summary: 查询产能预售我的出价信息
  1267. tags:
  1268. - 产能预售
  1269. /CPTrade/QueryCPTradeOrderDetail:
  1270. get:
  1271. parameters:
  1272. - description: 预售商品ID
  1273. in: query
  1274. name: goodsid
  1275. type: integer
  1276. - description: 预售市场ID
  1277. in: query
  1278. name: marketid
  1279. type: integer
  1280. - description: 预售商品ID列表 - 格式:1,2,3
  1281. in: query
  1282. name: goodsids
  1283. type: string
  1284. produces:
  1285. - application/json
  1286. responses:
  1287. "200":
  1288. description: OK
  1289. schema:
  1290. $ref: '#/definitions/cptrade.QueryCPTradeOrderDetailRsq'
  1291. "500":
  1292. description: Internal Server Error
  1293. schema:
  1294. $ref: '#/definitions/app.Response'
  1295. security:
  1296. - ApiKeyAuth: []
  1297. summary: 查询产能预售委托单信息
  1298. tags:
  1299. - 产能预售
  1300. /CPTrade/QueryMyCPTradeGoods:
  1301. get:
  1302. parameters:
  1303. - description: 资金账户
  1304. in: query
  1305. name: accountid
  1306. required: true
  1307. type: integer
  1308. produces:
  1309. - application/json
  1310. responses:
  1311. "200":
  1312. description: OK
  1313. schema:
  1314. $ref: '#/definitions/cptrade.QueryMyCPTradeGoodsRsp'
  1315. "500":
  1316. description: Internal Server Error
  1317. schema:
  1318. $ref: '#/definitions/app.Response'
  1319. security:
  1320. - ApiKeyAuth: []
  1321. summary: 查询我的预售信息
  1322. tags:
  1323. - 产能预售
  1324. /CPTrade/QueryPositionCancel:
  1325. get:
  1326. parameters:
  1327. - description: 账户ID
  1328. in: query
  1329. name: userid
  1330. required: true
  1331. type: integer
  1332. - description: 注销ID
  1333. in: query
  1334. name: cancelid
  1335. type: integer
  1336. - description: 资金账户ID
  1337. in: query
  1338. name: accountid
  1339. type: integer
  1340. produces:
  1341. - application/json
  1342. responses:
  1343. "200":
  1344. description: OK
  1345. schema:
  1346. $ref: '#/definitions/cptrade.Cptradepositioncancel'
  1347. "500":
  1348. description: Internal Server Error
  1349. schema:
  1350. $ref: '#/definitions/app.Response'
  1351. security:
  1352. - ApiKeyAuth: []
  1353. summary: 查询远期订单注销申请信息
  1354. tags:
  1355. - 产能预售
  1356. /CPTrade/QueryPreasleApply:
  1357. get:
  1358. parameters:
  1359. - description: 账户ID
  1360. in: query
  1361. name: userid
  1362. required: true
  1363. type: integer
  1364. - description: 申请ID
  1365. in: query
  1366. name: applyid
  1367. type: integer
  1368. - description: 资金账户ID
  1369. in: query
  1370. name: accountid
  1371. type: integer
  1372. produces:
  1373. - application/json
  1374. responses:
  1375. "200":
  1376. description: OK
  1377. schema:
  1378. $ref: '#/definitions/cptrade.Cptradepresaleapply'
  1379. "500":
  1380. description: Internal Server Error
  1381. schema:
  1382. $ref: '#/definitions/app.Response'
  1383. security:
  1384. - ApiKeyAuth: []
  1385. summary: 查询产能预售申请信息
  1386. tags:
  1387. - 产能预售
  1388. /CPTrade/QueryPresaleGoodsEx:
  1389. get:
  1390. parameters:
  1391. - description: 预售商品ID
  1392. in: query
  1393. name: goodsid
  1394. type: integer
  1395. - description: 预售市场ID
  1396. in: query
  1397. name: marketid
  1398. type: integer
  1399. - description: 预售模式 - 1:一口价 2:大宗式竞拍
  1400. in: query
  1401. name: presalemode
  1402. type: integer
  1403. - description: 预售商品ID列表 - 格式:1,2,3
  1404. in: query
  1405. name: goodsids
  1406. type: string
  1407. - description: 预售商品代码
  1408. in: query
  1409. name: goodscode
  1410. type: string
  1411. produces:
  1412. - application/json
  1413. responses:
  1414. "200":
  1415. description: OK
  1416. schema:
  1417. $ref: '#/definitions/cptrade.QueryPresaleGoodsExRsp'
  1418. "500":
  1419. description: Internal Server Error
  1420. schema:
  1421. $ref: '#/definitions/app.Response'
  1422. security:
  1423. - ApiKeyAuth: []
  1424. summary: 查询产能预售商品扩展信息
  1425. tags:
  1426. - 产能预售
  1427. /CPTrade/QueryUserGoodsData:
  1428. get:
  1429. parameters:
  1430. - description: 资金账户ID
  1431. in: query
  1432. name: accountid
  1433. required: true
  1434. type: integer
  1435. produces:
  1436. - application/json
  1437. responses:
  1438. "200":
  1439. description: OK
  1440. schema:
  1441. $ref: '#/definitions/cptrade.Cptradeusergoodsdata'
  1442. "500":
  1443. description: Internal Server Error
  1444. schema:
  1445. $ref: '#/definitions/app.Response'
  1446. security:
  1447. - ApiKeyAuth: []
  1448. summary: 查询远期订单信息
  1449. tags:
  1450. - 产能预售
  1451. /Common/QueryTableColumnConfig:
  1452. get:
  1453. parameters:
  1454. - description: 表key
  1455. in: query
  1456. name: TableKey
  1457. type: string
  1458. produces:
  1459. - application/json
  1460. responses:
  1461. "200":
  1462. description: OK
  1463. schema:
  1464. $ref: '#/definitions/models.Tablecolumnconfig'
  1465. "500":
  1466. description: Internal Server Error
  1467. schema:
  1468. $ref: '#/definitions/app.Response'
  1469. summary: 查询交易端列表头信息
  1470. tags:
  1471. - 通用服务
  1472. /Common/QueryTraderMenu:
  1473. get:
  1474. parameters:
  1475. - description: 登录账号
  1476. in: query
  1477. name: loginid
  1478. required: true
  1479. type: integer
  1480. produces:
  1481. - application/json
  1482. responses:
  1483. "200":
  1484. description: OK
  1485. schema:
  1486. $ref: '#/definitions/common.QueryTraderMenuRsp'
  1487. "500":
  1488. description: Internal Server Error
  1489. schema:
  1490. $ref: '#/definitions/app.Response'
  1491. summary: 查询交易端菜单
  1492. tags:
  1493. - 通用服务
  1494. /Delivery/QueryDeliveryRelation:
  1495. get:
  1496. parameters:
  1497. - description: 商品ID
  1498. in: query
  1499. name: goodsid
  1500. type: integer
  1501. - description: 品种ID
  1502. in: query
  1503. name: deliverygoodsid
  1504. type: integer
  1505. - description: 市场ID
  1506. in: query
  1507. name: marketid
  1508. type: integer
  1509. produces:
  1510. - application/json
  1511. responses:
  1512. "200":
  1513. description: OK
  1514. schema:
  1515. $ref: '#/definitions/delivery.QueryDeliveryRelationRsp'
  1516. "500":
  1517. description: Internal Server Error
  1518. schema:
  1519. $ref: '#/definitions/app.Response'
  1520. security:
  1521. - ApiKeyAuth: []
  1522. summary: 查询商品交割关系表
  1523. tags:
  1524. - 交割服务
  1525. /Erms2/QueryArbitrageStrategy:
  1526. get:
  1527. parameters:
  1528. - description: 账户ID
  1529. in: query
  1530. name: userid
  1531. required: true
  1532. type: integer
  1533. - description: 商品组ID(品种ID)
  1534. in: query
  1535. name: goodsgroupid
  1536. type: string
  1537. produces:
  1538. - application/json
  1539. responses:
  1540. "200":
  1541. description: OK
  1542. schema:
  1543. $ref: '#/definitions/erms2.QueryArbitrageStrategyRsp'
  1544. "500":
  1545. description: Internal Server Error
  1546. schema:
  1547. $ref: '#/definitions/app.Response'
  1548. security:
  1549. - ApiKeyAuth: []
  1550. summary: 查询期现套利策略表信息(指定资金账户、未结束的)
  1551. tags:
  1552. - 风险管理
  1553. /Erms2/QueryInnerTradeDetail:
  1554. get:
  1555. parameters:
  1556. - description: 资金账户
  1557. in: query
  1558. name: accountid
  1559. required: true
  1560. type: integer
  1561. produces:
  1562. - application/json
  1563. responses:
  1564. "200":
  1565. description: OK
  1566. schema:
  1567. $ref: '#/definitions/erms2.QueryInnerTradeDetailRsp'
  1568. "500":
  1569. description: Internal Server Error
  1570. schema:
  1571. $ref: '#/definitions/app.Response'
  1572. security:
  1573. - ApiKeyAuth: []
  1574. summary: 查询内部成交单信息
  1575. tags:
  1576. - 风险管理
  1577. /Erms2/QuerySpotContract:
  1578. get:
  1579. parameters:
  1580. - description: 策略申请ID
  1581. in: query
  1582. name: asapplyid
  1583. required: true
  1584. type: integer
  1585. - description: 现货合同ID
  1586. in: query
  1587. name: spotcontractid
  1588. type: integer
  1589. produces:
  1590. - application/json
  1591. responses:
  1592. "200":
  1593. description: OK
  1594. schema:
  1595. $ref: '#/definitions/erms2.QuerySpotContractRsp'
  1596. "500":
  1597. description: Internal Server Error
  1598. schema:
  1599. $ref: '#/definitions/app.Response'
  1600. security:
  1601. - ApiKeyAuth: []
  1602. summary: 查询现货合同表信息(指定策略ID、未结束的)
  1603. tags:
  1604. - 风险管理
  1605. /User/GetLoginID:
  1606. get:
  1607. parameters:
  1608. - description: 登录代码
  1609. in: query
  1610. name: username
  1611. required: true
  1612. type: string
  1613. produces:
  1614. - application/json
  1615. responses:
  1616. "200":
  1617. description: OK
  1618. schema:
  1619. $ref: '#/definitions/app.Response'
  1620. "500":
  1621. description: Internal Server Error
  1622. schema:
  1623. $ref: '#/definitions/app.Response'
  1624. summary: 获取登录ID
  1625. tags:
  1626. - 用户信息
  1627. /User/QueryUserReferNum:
  1628. get:
  1629. parameters:
  1630. - description: 登录代码
  1631. in: query
  1632. name: username
  1633. required: true
  1634. type: string
  1635. produces:
  1636. - application/json
  1637. responses:
  1638. "200":
  1639. description: OK
  1640. schema:
  1641. $ref: '#/definitions/app.Response'
  1642. "500":
  1643. description: Internal Server Error
  1644. schema:
  1645. $ref: '#/definitions/app.Response'
  1646. summary: 获取用户邀请码
  1647. tags:
  1648. - 用户信息
  1649. /WRTrade/GetAllDeliveryGoods:
  1650. get:
  1651. produces:
  1652. - application/json
  1653. responses:
  1654. "200":
  1655. description: OK
  1656. schema:
  1657. $ref: '#/definitions/app.Response'
  1658. "500":
  1659. description: Internal Server Error
  1660. schema:
  1661. $ref: '#/definitions/app.Response'
  1662. security:
  1663. - ApiKeyAuth: []
  1664. summary: 获取带仓单分类的种类信息
  1665. tags:
  1666. - 仓单贸易
  1667. securityDefinitions:
  1668. ApiKeyAuth:
  1669. in: header
  1670. name: Authorization
  1671. type: apiKey
  1672. swagger: "2.0"