swagger.yaml 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105
  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.Szdz3goodspickup:
  1183. properties:
  1184. accountid:
  1185. description: 账户ID
  1186. type: integer
  1187. address:
  1188. description: 提货人详细地址
  1189. type: string
  1190. auditer:
  1191. description: 审核人
  1192. type: integer
  1193. audittime:
  1194. description: 审核时间
  1195. type: string
  1196. cardnum:
  1197. description: 提货人证件号码
  1198. type: string
  1199. cardtypeid:
  1200. description: 提货人证件类型
  1201. type: integer
  1202. checkremark:
  1203. description: 审核备注
  1204. type: string
  1205. goodsid:
  1206. description: 商品ID
  1207. type: integer
  1208. handlestatus:
  1209. description: 处理状态
  1210. type: integer
  1211. marketid:
  1212. description: 市场ID
  1213. type: integer
  1214. phonenum:
  1215. description: 提货人联系方式
  1216. type: string
  1217. qty:
  1218. description: 提货数量
  1219. type: number
  1220. recivername:
  1221. description: 提货人姓名
  1222. type: string
  1223. reqtime:
  1224. description: 更新时间
  1225. type: string
  1226. takemode:
  1227. description: 提货方式 - 2:自提 3:配送
  1228. type: integer
  1229. takeorderid:
  1230. description: 提货单号(905+Unix秒时间戳(10位)+xxxxxx)
  1231. type: integer
  1232. takeorderstatus:
  1233. description: 提货状态 - 1:待发货 2:已发货 3:已收货
  1234. type: integer
  1235. takeremark:
  1236. description: 提货备注
  1237. type: string
  1238. tradedate:
  1239. description: 交易日(yyyyMMdd)
  1240. type: string
  1241. userid:
  1242. description: 用户ID
  1243. type: integer
  1244. required:
  1245. - takeorderid
  1246. type: object
  1247. models.Tablecolumnconfig:
  1248. properties:
  1249. aligntype:
  1250. description: 对齐方式 - 1:居中对齐 2:左对齐 3:右对齐
  1251. type: integer
  1252. autoid:
  1253. description: AutoID
  1254. type: integer
  1255. columnfield:
  1256. description: 列字段
  1257. type: string
  1258. columntitle:
  1259. description: 列Title
  1260. type: string
  1261. columnwidth:
  1262. description: 列宽
  1263. type: string
  1264. formatterstring:
  1265. description: 格式化字符
  1266. type: string
  1267. formattertype:
  1268. description: 格式化类型
  1269. type: string
  1270. groupname:
  1271. description: 表头分组名称
  1272. type: string
  1273. isshow:
  1274. description: 是否显示 - 0:不显示 1:显示
  1275. type: integer
  1276. needsummary:
  1277. description: 是否需要汇总 - 0:不需要 1:需要
  1278. type: integer
  1279. orderindex:
  1280. description: 顺序
  1281. type: integer
  1282. remark:
  1283. description: 备注
  1284. type: string
  1285. summarytype:
  1286. description: 汇总类型 - 1:加总 2:最后一个
  1287. type: integer
  1288. tablekey:
  1289. description: 列表Key
  1290. type: string
  1291. required:
  1292. - autoid
  1293. type: object
  1294. order.QueryTradeOrderDetailRsp:
  1295. properties:
  1296. accountid:
  1297. description: 账户ID[报价币种]
  1298. type: integer
  1299. buildtype:
  1300. description: 委托单据类型 - 1:建仓 2:平仓 3:先平后建
  1301. type: integer
  1302. buyorsell:
  1303. description: 买卖 - 0:买 1:卖
  1304. type: integer
  1305. cancelorderid:
  1306. description: 撤单单号(撤单时填写)
  1307. type: integer
  1308. cancelqty:
  1309. description: 撤单数量
  1310. type: integer
  1311. closefreezecharge:
  1312. description: 平仓冻结手续费(先建后平操作,需要记录)
  1313. type: number
  1314. closeqty:
  1315. description: 平仓数量(先建后平操作 需要记录)
  1316. type: integer
  1317. closetradeqty:
  1318. description: 平仓成交数量(先建后平操作,需要记录)
  1319. type: integer
  1320. closeunfreezecharge:
  1321. description: 平仓解冻手续费(先建后平操作,需要记录)
  1322. type: number
  1323. delistingtype:
  1324. description: 摘牌类型 - 1:价格最优 2:点选成交
  1325. type: integer
  1326. enableqty:
  1327. description: 计算字段
  1328. type: integer
  1329. freezecharge:
  1330. description: 冻结手续费
  1331. type: number
  1332. freezemargin:
  1333. description: 冻结保证金(冻结交易金额)
  1334. type: number
  1335. goodscode:
  1336. description: 关联字段
  1337. type: string
  1338. goodsid:
  1339. description: 商品ID
  1340. type: integer
  1341. goodsname:
  1342. description: 商品名称
  1343. type: string
  1344. listingselecttype:
  1345. description: 挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  1346. type: integer
  1347. marketid:
  1348. description: 市场ID
  1349. type: integer
  1350. marketname:
  1351. description: 市场名称
  1352. type: string
  1353. openfreezecharge:
  1354. description: 开仓冻结手续费(先建后平操作,需要记录)
  1355. type: number
  1356. openqty:
  1357. description: 开仓数量(先建后平操作,需要记录)
  1358. type: integer
  1359. opentradeqty:
  1360. description: 开仓成交数量(先建后平操作,需要记录)
  1361. type: integer
  1362. openunfreezecharge:
  1363. description: 开仓解冻手续费(先建后平操作,需要记录)
  1364. type: number
  1365. operatetype:
  1366. description: 操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
  1367. type: integer
  1368. orderid:
  1369. description: 委托单字段
  1370. type: integer
  1371. orderprice:
  1372. description: 委托价格
  1373. type: number
  1374. orderqty:
  1375. description: 委托数量
  1376. type: integer
  1377. orderstatus:
  1378. description: 委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
  1379. type: integer
  1380. ordertime:
  1381. description: 委托时间
  1382. type: string
  1383. preorderid:
  1384. description: 关联预埋单号(止盈止损单时填写)
  1385. type: integer
  1386. pricemode:
  1387. description: '取价方式 - 1:市价 2: 限价'
  1388. type: integer
  1389. relatedid:
  1390. description: 关联单号(交割单)
  1391. type: integer
  1392. tradedate:
  1393. description: 交易日(yyyyMMdd)
  1394. type: string
  1395. trademode:
  1396. description: 交易模式
  1397. type: integer
  1398. tradeqty:
  1399. description: 成交数量
  1400. type: integer
  1401. unfreezecharge:
  1402. description: 解冻手续费
  1403. type: number
  1404. unfreezemargin:
  1405. description: 解冻保证金
  1406. type: number
  1407. validtime:
  1408. description: 有效期限
  1409. type: string
  1410. validtype:
  1411. description: 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
  1412. type: integer
  1413. volumetype:
  1414. description: 当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
  1415. type: integer
  1416. required:
  1417. - accountid
  1418. - buildtype
  1419. - buyorsell
  1420. - goodsid
  1421. - marketid
  1422. - operatetype
  1423. - orderid
  1424. - orderqty
  1425. - ordertime
  1426. - pricemode
  1427. - tradedate
  1428. - validtype
  1429. type: object
  1430. order.QueryTradePositionRsp:
  1431. properties:
  1432. accountid:
  1433. description: 资金账户
  1434. type: integer
  1435. agreeunit:
  1436. description: 合约单位
  1437. type: number
  1438. buyorsell:
  1439. description: 方向 - 0:买 1:卖
  1440. type: integer
  1441. closetotalqty:
  1442. description: 平仓总数量
  1443. type: integer
  1444. curholderamount:
  1445. description: 当前持仓总金额[商品币种]
  1446. type: number
  1447. curpositionqty:
  1448. description: 当前持仓总数量
  1449. type: integer
  1450. currencyid:
  1451. description: 报价货币ID
  1452. type: integer
  1453. curtdposition:
  1454. description: 期末今日头寸
  1455. type: integer
  1456. decimalplace:
  1457. description: 报价小数位
  1458. type: integer
  1459. enableqty:
  1460. description: 可用量
  1461. type: integer
  1462. fretdposition:
  1463. description: 冻结今日头寸
  1464. type: integer
  1465. frozenqty:
  1466. description: 持仓冻结数量
  1467. type: integer
  1468. goodscode:
  1469. description: 商品代码
  1470. type: string
  1471. goodsname:
  1472. description: 商品名称
  1473. type: string
  1474. goodunit:
  1475. description: 报价单位
  1476. type: string
  1477. goodunitid:
  1478. description: 报价单位ID
  1479. type: integer
  1480. holderamount:
  1481. description: 期初持仓总金额[商品币种]
  1482. type: number
  1483. marketid:
  1484. description: 所属市场ID
  1485. type: integer
  1486. openreqqty:
  1487. description: 开仓申请数量(用于比较最大持仓数量)
  1488. type: integer
  1489. opentotalqty:
  1490. description: 开仓总数量
  1491. type: integer
  1492. otherfrozenqty:
  1493. description: 持仓其他冻结数量(交割冻结)
  1494. type: integer
  1495. positionqty:
  1496. description: 期初持仓数量
  1497. type: integer
  1498. tnqty:
  1499. description: T+N冻结总量
  1500. type: integer
  1501. tnusedqty:
  1502. description: T+N使用量(可以使用T+N的冻结数量)
  1503. type: integer
  1504. trademode:
  1505. description: 交易模式
  1506. type: integer
  1507. type: object
  1508. szdz.QueryRecieptOrderRsp:
  1509. properties:
  1510. accountName:
  1511. description: 所属账号名称(已脱敏)
  1512. type: string
  1513. buyorsell:
  1514. description: 方向 - 0:买 1:卖
  1515. type: integer
  1516. enableqty:
  1517. description: 可摘数量
  1518. type: integer
  1519. goodscode:
  1520. description: 商品代码
  1521. type: string
  1522. goodsid:
  1523. description: 商品ID
  1524. type: integer
  1525. goodsname:
  1526. description: 商品名称
  1527. type: string
  1528. orderid:
  1529. description: 委托单号
  1530. type: integer
  1531. orderprice:
  1532. description: 委托价格
  1533. type: number
  1534. tradedate:
  1535. description: 交易日(yyyyMMdd)
  1536. type: string
  1537. type: object
  1538. info:
  1539. contact: {}
  1540. description: 新的查询服务,替代原通用查询服务。
  1541. license: {}
  1542. termsOfService: http://muchinfo.cn
  1543. title: MTP2.0 查询服务 API
  1544. version: "1.0"
  1545. paths:
  1546. /CPTrade/QueryCPTradeMyBidInfos:
  1547. get:
  1548. parameters:
  1549. - description: 资金账户
  1550. in: query
  1551. name: accountid
  1552. required: true
  1553. type: integer
  1554. - description: 预售市场ID
  1555. in: query
  1556. name: marketid
  1557. type: integer
  1558. - description: 预售商品ID
  1559. in: query
  1560. name: goodsid
  1561. type: integer
  1562. produces:
  1563. - application/json
  1564. responses:
  1565. "200":
  1566. description: OK
  1567. schema:
  1568. $ref: '#/definitions/cptrade.QueryCPTradeMyBidRsp'
  1569. "500":
  1570. description: Internal Server Error
  1571. schema:
  1572. $ref: '#/definitions/app.Response'
  1573. security:
  1574. - ApiKeyAuth: []
  1575. summary: 查询产能预售我的出价信息
  1576. tags:
  1577. - 产能预售
  1578. /CPTrade/QueryCPTradeOrderDetail:
  1579. get:
  1580. parameters:
  1581. - description: 预售商品ID
  1582. in: query
  1583. name: goodsid
  1584. type: integer
  1585. - description: 预售市场ID
  1586. in: query
  1587. name: marketid
  1588. type: integer
  1589. - description: 预售商品ID列表 - 格式:1,2,3
  1590. in: query
  1591. name: goodsids
  1592. type: string
  1593. produces:
  1594. - application/json
  1595. responses:
  1596. "200":
  1597. description: OK
  1598. schema:
  1599. $ref: '#/definitions/cptrade.QueryCPTradeOrderDetailRsq'
  1600. "500":
  1601. description: Internal Server Error
  1602. schema:
  1603. $ref: '#/definitions/app.Response'
  1604. security:
  1605. - ApiKeyAuth: []
  1606. summary: 查询产能预售委托单信息
  1607. tags:
  1608. - 产能预售
  1609. /CPTrade/QueryMyCPTradeGoods:
  1610. get:
  1611. parameters:
  1612. - description: 资金账户
  1613. in: query
  1614. name: accountid
  1615. required: true
  1616. type: integer
  1617. produces:
  1618. - application/json
  1619. responses:
  1620. "200":
  1621. description: OK
  1622. schema:
  1623. $ref: '#/definitions/cptrade.QueryMyCPTradeGoodsRsp'
  1624. "500":
  1625. description: Internal Server Error
  1626. schema:
  1627. $ref: '#/definitions/app.Response'
  1628. security:
  1629. - ApiKeyAuth: []
  1630. summary: 查询我的预售信息
  1631. tags:
  1632. - 产能预售
  1633. /CPTrade/QueryPositionCancel:
  1634. get:
  1635. parameters:
  1636. - description: 账户ID
  1637. in: query
  1638. name: userid
  1639. required: true
  1640. type: integer
  1641. - description: 注销ID
  1642. in: query
  1643. name: cancelid
  1644. type: integer
  1645. - description: 资金账户ID
  1646. in: query
  1647. name: accountid
  1648. type: integer
  1649. produces:
  1650. - application/json
  1651. responses:
  1652. "200":
  1653. description: OK
  1654. schema:
  1655. $ref: '#/definitions/cptrade.Cptradepositioncancel'
  1656. "500":
  1657. description: Internal Server Error
  1658. schema:
  1659. $ref: '#/definitions/app.Response'
  1660. security:
  1661. - ApiKeyAuth: []
  1662. summary: 查询远期订单注销申请信息
  1663. tags:
  1664. - 产能预售
  1665. /CPTrade/QueryPreasleApply:
  1666. get:
  1667. parameters:
  1668. - description: 账户ID
  1669. in: query
  1670. name: userid
  1671. required: true
  1672. type: integer
  1673. - description: 申请ID
  1674. in: query
  1675. name: applyid
  1676. type: integer
  1677. - description: 资金账户ID
  1678. in: query
  1679. name: accountid
  1680. type: integer
  1681. produces:
  1682. - application/json
  1683. responses:
  1684. "200":
  1685. description: OK
  1686. schema:
  1687. $ref: '#/definitions/cptrade.Cptradepresaleapply'
  1688. "500":
  1689. description: Internal Server Error
  1690. schema:
  1691. $ref: '#/definitions/app.Response'
  1692. security:
  1693. - ApiKeyAuth: []
  1694. summary: 查询产能预售申请信息
  1695. tags:
  1696. - 产能预售
  1697. /CPTrade/QueryPresaleGoodsEx:
  1698. get:
  1699. parameters:
  1700. - description: 预售商品ID
  1701. in: query
  1702. name: goodsid
  1703. type: integer
  1704. - description: 预售市场ID
  1705. in: query
  1706. name: marketid
  1707. type: integer
  1708. - description: 预售模式 - 1:一口价 2:大宗式竞拍
  1709. in: query
  1710. name: presalemode
  1711. type: integer
  1712. - description: 预售商品ID列表 - 格式:1,2,3
  1713. in: query
  1714. name: goodsids
  1715. type: string
  1716. - description: 预售商品代码
  1717. in: query
  1718. name: goodscode
  1719. type: string
  1720. produces:
  1721. - application/json
  1722. responses:
  1723. "200":
  1724. description: OK
  1725. schema:
  1726. $ref: '#/definitions/cptrade.QueryPresaleGoodsExRsp'
  1727. "500":
  1728. description: Internal Server Error
  1729. schema:
  1730. $ref: '#/definitions/app.Response'
  1731. security:
  1732. - ApiKeyAuth: []
  1733. summary: 查询产能预售商品扩展信息
  1734. tags:
  1735. - 产能预售
  1736. /CPTrade/QueryUserGoodsData:
  1737. get:
  1738. parameters:
  1739. - description: 资金账户ID
  1740. in: query
  1741. name: accountid
  1742. required: true
  1743. type: integer
  1744. produces:
  1745. - application/json
  1746. responses:
  1747. "200":
  1748. description: OK
  1749. schema:
  1750. $ref: '#/definitions/cptrade.Cptradeusergoodsdata'
  1751. "500":
  1752. description: Internal Server Error
  1753. schema:
  1754. $ref: '#/definitions/app.Response'
  1755. security:
  1756. - ApiKeyAuth: []
  1757. summary: 查询远期订单信息
  1758. tags:
  1759. - 产能预售
  1760. /Common/QueryTableDefine:
  1761. get:
  1762. parameters:
  1763. - description: 表key
  1764. in: query
  1765. name: TableKey
  1766. type: string
  1767. produces:
  1768. - application/json
  1769. responses:
  1770. "200":
  1771. description: OK
  1772. schema:
  1773. $ref: '#/definitions/models.Tablecolumnconfig'
  1774. "500":
  1775. description: Internal Server Error
  1776. schema:
  1777. $ref: '#/definitions/app.Response'
  1778. summary: 查询交易端列表头信息
  1779. tags:
  1780. - 通用服务
  1781. /Common/QueryTraderMenu:
  1782. get:
  1783. parameters:
  1784. - description: 登录账号
  1785. in: query
  1786. name: loginid
  1787. required: true
  1788. type: integer
  1789. produces:
  1790. - application/json
  1791. responses:
  1792. "200":
  1793. description: OK
  1794. schema:
  1795. $ref: '#/definitions/common.QueryTraderMenuRsp'
  1796. "500":
  1797. description: Internal Server Error
  1798. schema:
  1799. $ref: '#/definitions/app.Response'
  1800. summary: 查询交易端菜单
  1801. tags:
  1802. - 通用服务
  1803. /Delivery/QueryDeliveryRelation:
  1804. get:
  1805. parameters:
  1806. - description: 商品ID
  1807. in: query
  1808. name: goodsid
  1809. type: integer
  1810. - description: 品种ID
  1811. in: query
  1812. name: deliverygoodsid
  1813. type: integer
  1814. - description: 市场ID
  1815. in: query
  1816. name: marketid
  1817. type: integer
  1818. produces:
  1819. - application/json
  1820. responses:
  1821. "200":
  1822. description: OK
  1823. schema:
  1824. $ref: '#/definitions/delivery.QueryDeliveryRelationRsp'
  1825. "500":
  1826. description: Internal Server Error
  1827. schema:
  1828. $ref: '#/definitions/app.Response'
  1829. security:
  1830. - ApiKeyAuth: []
  1831. summary: 查询商品交割关系表
  1832. tags:
  1833. - 交割服务
  1834. /Erms2/QueryArbitrageStrategy:
  1835. get:
  1836. parameters:
  1837. - description: 账户ID
  1838. in: query
  1839. name: userid
  1840. required: true
  1841. type: integer
  1842. - description: 商品组ID(品种ID)
  1843. in: query
  1844. name: goodsgroupid
  1845. type: string
  1846. produces:
  1847. - application/json
  1848. responses:
  1849. "200":
  1850. description: OK
  1851. schema:
  1852. $ref: '#/definitions/erms2.QueryArbitrageStrategyRsp'
  1853. "500":
  1854. description: Internal Server Error
  1855. schema:
  1856. $ref: '#/definitions/app.Response'
  1857. security:
  1858. - ApiKeyAuth: []
  1859. summary: 查询期现套利策略表信息(指定资金账户、未结束的)
  1860. tags:
  1861. - 风险管理
  1862. /Erms2/QueryInnerTradeDetail:
  1863. get:
  1864. parameters:
  1865. - description: 资金账户
  1866. in: query
  1867. name: accountid
  1868. required: true
  1869. type: integer
  1870. produces:
  1871. - application/json
  1872. responses:
  1873. "200":
  1874. description: OK
  1875. schema:
  1876. $ref: '#/definitions/erms2.QueryInnerTradeDetailRsp'
  1877. "500":
  1878. description: Internal Server Error
  1879. schema:
  1880. $ref: '#/definitions/app.Response'
  1881. security:
  1882. - ApiKeyAuth: []
  1883. summary: 查询内部成交单信息
  1884. tags:
  1885. - 风险管理
  1886. /Erms2/QuerySpotContract:
  1887. get:
  1888. parameters:
  1889. - description: 策略申请ID
  1890. in: query
  1891. name: asapplyid
  1892. required: true
  1893. type: integer
  1894. - description: 现货合同ID
  1895. in: query
  1896. name: spotcontractid
  1897. type: integer
  1898. produces:
  1899. - application/json
  1900. responses:
  1901. "200":
  1902. description: OK
  1903. schema:
  1904. $ref: '#/definitions/erms2.QuerySpotContractRsp'
  1905. "500":
  1906. description: Internal Server Error
  1907. schema:
  1908. $ref: '#/definitions/app.Response'
  1909. security:
  1910. - ApiKeyAuth: []
  1911. summary: 查询现货合同表信息(指定策略ID、未结束的)
  1912. tags:
  1913. - 风险管理
  1914. /Order/QueryTradeOrderDetail:
  1915. get:
  1916. parameters:
  1917. - description: 资金账户 - 格式:1,2,3
  1918. in: query
  1919. name: accountID
  1920. required: true
  1921. type: string
  1922. - description: 交易模式 - 格式:1,2,3
  1923. in: query
  1924. name: tradeMode
  1925. type: string
  1926. - description: 委托状态 - 格式:1,2,3
  1927. in: query
  1928. name: orderStatus
  1929. type: string
  1930. - description: 委托单号
  1931. in: query
  1932. name: orderID
  1933. type: integer
  1934. produces:
  1935. - application/json
  1936. responses:
  1937. "200":
  1938. description: OK
  1939. schema:
  1940. $ref: '#/definitions/order.QueryTradeOrderDetailRsp'
  1941. "500":
  1942. description: Internal Server Error
  1943. schema:
  1944. $ref: '#/definitions/app.Response'
  1945. security:
  1946. - ApiKeyAuth: []
  1947. summary: 委托单查询请求(合约市场)
  1948. tags:
  1949. - 通用单据
  1950. /Order/QueryTradePosition:
  1951. get:
  1952. parameters:
  1953. - description: 资金账户 - 格式:1,2,3
  1954. in: query
  1955. name: accountID
  1956. required: true
  1957. type: string
  1958. - description: 交易模式 - 格式:1,2,3
  1959. in: query
  1960. name: tradeMode
  1961. type: string
  1962. produces:
  1963. - application/json
  1964. responses:
  1965. "200":
  1966. description: OK
  1967. schema:
  1968. $ref: '#/definitions/order.QueryTradePositionRsp'
  1969. "500":
  1970. description: Internal Server Error
  1971. schema:
  1972. $ref: '#/definitions/app.Response'
  1973. security:
  1974. - ApiKeyAuth: []
  1975. summary: 持仓汇总查询(合约市场)
  1976. tags:
  1977. - 通用单据
  1978. /SZDZ/QueryGoodsPickup:
  1979. get:
  1980. parameters:
  1981. - description: 资金账户 - 格式:1,2,3
  1982. in: query
  1983. name: accountID
  1984. required: true
  1985. type: string
  1986. - description: 提货状态 - 1:待发货 2:已发货 3:已收货
  1987. in: query
  1988. name: takeOrderStatus
  1989. type: integer
  1990. produces:
  1991. - application/json
  1992. responses:
  1993. "200":
  1994. description: OK
  1995. schema:
  1996. $ref: '#/definitions/models.Szdz3goodspickup'
  1997. "500":
  1998. description: Internal Server Error
  1999. schema:
  2000. $ref: '#/definitions/app.Response'
  2001. security:
  2002. - ApiKeyAuth: []
  2003. summary: 商品提货单查询
  2004. tags:
  2005. - 尚志大宗
  2006. /SZDZ/QueryRecieptOrder:
  2007. get:
  2008. parameters:
  2009. - description: 商品ID
  2010. in: query
  2011. name: goodsID
  2012. required: true
  2013. type: integer
  2014. - description: 所属账户名称
  2015. in: query
  2016. name: accountName
  2017. type: string
  2018. - description: 市场ID
  2019. in: query
  2020. name: marketID
  2021. type: integer
  2022. produces:
  2023. - application/json
  2024. responses:
  2025. "200":
  2026. description: OK
  2027. schema:
  2028. $ref: '#/definitions/szdz.QueryRecieptOrderRsp'
  2029. "500":
  2030. description: Internal Server Error
  2031. schema:
  2032. $ref: '#/definitions/app.Response'
  2033. security:
  2034. - ApiKeyAuth: []
  2035. summary: 点选挂牌委托单据查询(摘牌大厅)
  2036. tags:
  2037. - 尚志大宗
  2038. /User/GetLoginID:
  2039. get:
  2040. parameters:
  2041. - description: 登录代码
  2042. in: query
  2043. name: username
  2044. required: true
  2045. type: string
  2046. produces:
  2047. - application/json
  2048. responses:
  2049. "200":
  2050. description: OK
  2051. schema:
  2052. $ref: '#/definitions/app.Response'
  2053. "500":
  2054. description: Internal Server Error
  2055. schema:
  2056. $ref: '#/definitions/app.Response'
  2057. summary: 获取登录ID
  2058. tags:
  2059. - 用户信息
  2060. /User/QueryUserReferNum:
  2061. get:
  2062. parameters:
  2063. - description: 用户ID
  2064. in: query
  2065. name: userID
  2066. required: true
  2067. type: string
  2068. produces:
  2069. - application/json
  2070. responses:
  2071. "200":
  2072. description: OK
  2073. schema:
  2074. $ref: '#/definitions/app.Response'
  2075. "500":
  2076. description: Internal Server Error
  2077. schema:
  2078. $ref: '#/definitions/app.Response'
  2079. summary: 获取用户邀请码
  2080. tags:
  2081. - 用户信息
  2082. /WRTrade/GetAllDeliveryGoods:
  2083. get:
  2084. produces:
  2085. - application/json
  2086. responses:
  2087. "200":
  2088. description: OK
  2089. schema:
  2090. $ref: '#/definitions/app.Response'
  2091. "500":
  2092. description: Internal Server Error
  2093. schema:
  2094. $ref: '#/definitions/app.Response'
  2095. security:
  2096. - ApiKeyAuth: []
  2097. summary: 获取带仓单分类的种类信息
  2098. tags:
  2099. - 仓单贸易
  2100. securityDefinitions:
  2101. ApiKeyAuth:
  2102. in: header
  2103. name: Authorization
  2104. type: apiKey
  2105. swagger: "2.0"