swagger.yaml 55 KB

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