swagger.yaml 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515
  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. page:
  12. description: 页码
  13. type: integer
  14. pagesize:
  15. description: 每页条数
  16. type: integer
  17. total:
  18. description: 总条数
  19. type: integer
  20. type: object
  21. common.OperationPrimaryMenu:
  22. properties:
  23. Children:
  24. description: 二级功能菜单
  25. items:
  26. $ref: '#/definitions/common.OperationSecondaryMenu'
  27. type: array
  28. Key:
  29. description: 菜单KEY
  30. type: string
  31. Label:
  32. description: 菜单标题
  33. type: string
  34. type: object
  35. common.OperationSecondaryMenu:
  36. properties:
  37. Key:
  38. description: 菜单KEY
  39. type: string
  40. Label:
  41. description: 菜单标题
  42. type: string
  43. TabList:
  44. description: 三级功能菜单
  45. items:
  46. $ref: '#/definitions/common.OperationTabMenu'
  47. type: array
  48. type: object
  49. common.OperationTabMenu:
  50. properties:
  51. Key:
  52. description: 菜单KEY
  53. type: string
  54. Label:
  55. description: 菜单标题
  56. type: string
  57. type: object
  58. common.QueryTraderMenuRsp:
  59. properties:
  60. OperationMenu:
  61. description: 功能菜单
  62. items:
  63. $ref: '#/definitions/common.OperationPrimaryMenu'
  64. type: array
  65. QuoteMenu:
  66. description: 报价牌分类菜单
  67. items:
  68. $ref: '#/definitions/common.QuotePrimaryMenu'
  69. type: array
  70. type: object
  71. common.QuotePrimaryMenu:
  72. properties:
  73. Index:
  74. description: 序号
  75. type: integer
  76. Key:
  77. description: 键名
  78. type: string
  79. Name:
  80. description: 菜单名称
  81. type: string
  82. SubMenus:
  83. description: 子菜单
  84. items:
  85. $ref: '#/definitions/common.QuoteSecondaryMenu'
  86. type: array
  87. SubTitleType:
  88. description: 子菜单标题模式:0-市场名称;1-外部交易所名称
  89. type: integer
  90. TradeModes:
  91. description: 包含市场交易类型
  92. type: string
  93. type: object
  94. common.QuoteSecondaryMenu:
  95. properties:
  96. ExExchangeCode:
  97. description: 外部交易所代码
  98. type: string
  99. ExExchangeID:
  100. description: 外部交易所ID
  101. type: integer
  102. GoodsGroupIDs:
  103. description: 商品组ID列表
  104. items:
  105. type: integer
  106. type: array
  107. Index:
  108. description: 序号
  109. type: integer
  110. MarketID:
  111. description: 市场ID
  112. type: integer
  113. MenuTitle:
  114. description: 菜单标题(市场名称或外部交易所名称)
  115. type: string
  116. TradeMode:
  117. description: 交易模式
  118. type: integer
  119. type: object
  120. cptrade.Cptradepositioncancel:
  121. properties:
  122. accountid:
  123. description: 申请人账户ID
  124. type: integer
  125. applystatus:
  126. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  127. type: integer
  128. applytime:
  129. description: 申请时间
  130. type: string
  131. cancelid:
  132. description: 注销ID(SEQ_CPTRADE_POSITIONCANCEL)
  133. type: integer
  134. cancelqty:
  135. description: 注销数量
  136. type: integer
  137. createtime:
  138. description: 创建时间
  139. type: string
  140. creatorid:
  141. description: 创建人ID
  142. type: integer
  143. creatorname:
  144. description: 创建人
  145. type: string
  146. goodscode:
  147. description: 订单商品代码
  148. type: string
  149. goodsid:
  150. description: 商品ID
  151. type: integer
  152. goodsname:
  153. description: 订单商品名称
  154. type: string
  155. goodunit:
  156. description: 报价单位
  157. type: string
  158. handlestatus:
  159. description: 处理状态
  160. type: integer
  161. marketid:
  162. description: 市场ID
  163. type: integer
  164. marketname:
  165. description: 市场名称
  166. type: string
  167. tradedate:
  168. description: 交易日(yyyyMMdd)
  169. type: string
  170. userid:
  171. description: 申请人ID
  172. type: integer
  173. required:
  174. - cancelid
  175. type: object
  176. cptrade.Cptradepresaleapply:
  177. properties:
  178. accountid:
  179. description: 申请人账户ID
  180. type: integer
  181. applyid:
  182. description: 申请ID(181+Unix秒时间戳(10位)+xxxxxx)
  183. type: integer
  184. applyremark:
  185. description: 申请备注
  186. type: string
  187. applystatus:
  188. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  189. type: integer
  190. applytime:
  191. description: 申请时间
  192. type: string
  193. attachmenturl:
  194. description: 附件地址
  195. type: string
  196. endtime:
  197. description: 预售结束时间
  198. type: string
  199. goodscode:
  200. description: 商品代码
  201. type: string
  202. goodsid:
  203. description: 商品ID
  204. type: integer
  205. goodsname:
  206. description: 商品名称
  207. type: string
  208. goodunit:
  209. description: 报价单位
  210. type: string
  211. handlestatus:
  212. description: 处理状态
  213. type: integer
  214. marketid:
  215. description: 预售市场ID
  216. type: integer
  217. marketname:
  218. description: 预售市场名称
  219. type: string
  220. presaleqty:
  221. description: 预售数量
  222. type: integer
  223. relatedgoodscode:
  224. description: 关联交易合约代码
  225. type: string
  226. relatedgoodsid:
  227. description: 关联交易合约ID
  228. type: integer
  229. relatedgoodsname:
  230. description: 关联交易合约名称
  231. type: string
  232. starttime:
  233. description: 预售开始时间
  234. type: string
  235. tradedate:
  236. description: 交易日(yyyyMMdd)
  237. type: string
  238. trademode:
  239. description: 交易模式 - 16:挂牌点选 21:大宗竞拍
  240. type: integer
  241. userid:
  242. description: 申请人ID
  243. type: integer
  244. required:
  245. - applyid
  246. type: object
  247. cptrade.Cptradeusergoodsdata:
  248. properties:
  249. EnabledQty:
  250. description: 可用量
  251. type: integer
  252. GoodsCode:
  253. description: 订单商品代码
  254. type: string
  255. GoodsName:
  256. description: 订单商品名称
  257. type: string
  258. WRStandardCode:
  259. description: 仓单标准代码
  260. type: string
  261. WRStandardName:
  262. description: 仓单标准名称
  263. type: string
  264. accountid:
  265. description: 账户ID
  266. type: integer
  267. cancelqty:
  268. description: 注销量
  269. type: integer
  270. curpresaleqty:
  271. description: 当前预售量
  272. type: integer
  273. deliveryqty:
  274. description: 交割量
  275. type: integer
  276. freezeamount:
  277. description: 冻结金额
  278. type: number
  279. goodsid:
  280. description: 商品ID
  281. type: integer
  282. goodunit:
  283. description: 报价单位
  284. type: string
  285. hasspotfreeze:
  286. description: 是否有现货冻结 - 0:否 1:有
  287. type: integer
  288. inqty:
  289. description: 转入量(总数量)
  290. type: integer
  291. marketid:
  292. description: 市场ID
  293. type: integer
  294. presaledamount:
  295. description: 已预售总金额
  296. type: integer
  297. presaledqty:
  298. description: 已预售量
  299. type: integer
  300. userid:
  301. description: 用户ID
  302. type: integer
  303. wrstandardid:
  304. description: 仓单标准ID
  305. type: integer
  306. required:
  307. - accountid
  308. - goodsid
  309. type: object
  310. cptrade.QueryCPTradeMyBidRsp:
  311. properties:
  312. accountid:
  313. description: 账户ID[报价币种]
  314. type: integer
  315. goodsid:
  316. description: 商品ID
  317. type: integer
  318. goodunit:
  319. description: 报价单位
  320. type: string
  321. marketid:
  322. description: 市场ID
  323. type: integer
  324. orderid:
  325. description: 委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  326. type: integer
  327. orderprice:
  328. description: 委托价格
  329. type: number
  330. orderqty:
  331. description: 委托数量
  332. type: integer
  333. ordertime:
  334. description: 委托时间
  335. type: string
  336. ordertotalprice:
  337. description: 货款金额(委托总价格=委托价格*委托数量*合约单位)
  338. type: number
  339. ordertotalweight:
  340. description: 竞拍总重量(委托总重量=委托数量*合约单位)
  341. type: integer
  342. totaltotalprice:
  343. description: 成交货款金额(成交总价格=成交价格*成交数量*合约单位)
  344. type: number
  345. tradeprice:
  346. description: 成交价格
  347. type: number
  348. tradeqty:
  349. description: 成交数量
  350. type: integer
  351. required:
  352. - accountid
  353. - goodsid
  354. - marketid
  355. - orderid
  356. - orderqty
  357. - ordertime
  358. - tradeprice
  359. - tradeqty
  360. type: object
  361. cptrade.QueryCPTradeOrderDetailRsq:
  362. properties:
  363. accountid:
  364. description: 账户ID[报价币种]
  365. type: integer
  366. buildtype:
  367. description: 委托单据类型 - 1:建仓 2:平仓 3:先平后建
  368. type: integer
  369. buyorsell:
  370. description: 买卖 - 0:买 1:卖
  371. type: integer
  372. cancelorderid:
  373. description: 撤单单号(撤单时填写)
  374. type: integer
  375. cancelqty:
  376. description: 撤单数量
  377. type: integer
  378. clientordertime:
  379. description: 客户端委托时间
  380. type: string
  381. clientticket:
  382. description: 客户端流水号
  383. type: string
  384. clienttype:
  385. description: 客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
  386. type: integer
  387. closeexchagechargevalue:
  388. description: 平仓交易所手续费设置值
  389. type: number
  390. closefeealgorithm:
  391. description: 平仓手续费收取方式 1:比率 2:固定
  392. type: integer
  393. closefreezecharge:
  394. description: 平仓冻结手续费(先建后平操作,需要记录)
  395. type: number
  396. closememberchargevalue:
  397. description: 平仓会员手续费设置值
  398. type: number
  399. closeqty:
  400. description: 平仓数量(先建后平操作 需要记录)
  401. type: integer
  402. closetradeqty:
  403. description: 平仓成交数量(先建后平操作,需要记录)
  404. type: integer
  405. closeunfreezecharge:
  406. description: 平仓解冻手续费(先建后平操作,需要记录)
  407. type: number
  408. delistingtype:
  409. description: 摘牌类型 - 1:价格最优 2:点选成交
  410. type: integer
  411. freezecharge:
  412. description: 冻结手续费
  413. type: number
  414. freezemargin:
  415. description: 冻结保证金(冻结交易金额)
  416. type: number
  417. gcaccountid:
  418. description: 账户ID[合约币种]
  419. type: integer
  420. goodsid:
  421. description: 商品ID
  422. type: integer
  423. isconfirmexercise:
  424. description: 是否确认行权- 0:否 1:是
  425. type: integer
  426. ispreexercise:
  427. description: 是否预申报- 0:否 1:是
  428. type: integer
  429. listingselecttype:
  430. description: 挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  431. type: integer
  432. marginalgorithm:
  433. description: 保证金收取方式 1:比率 2:固定
  434. type: integer
  435. marginvalue:
  436. description: 即市保证金设置值
  437. type: number
  438. marketid:
  439. description: 市场ID
  440. type: integer
  441. marketmaxsub:
  442. description: 市价最大偏移范围
  443. type: number
  444. memberuserid:
  445. description: 所属会员UserID
  446. type: integer
  447. openexchagechargevalue:
  448. description: 建仓交易所手续费设置值
  449. type: number
  450. openfeealgorithm:
  451. description: 建仓手续费收取方式 1:比率 2:固定
  452. type: integer
  453. openfreezecharge:
  454. description: 开仓冻结手续费(先建后平操作,需要记录)
  455. type: number
  456. openmemberchargevalue:
  457. description: 建仓会员手续费设置值
  458. type: number
  459. openqty:
  460. description: 开仓数量(先建后平操作,需要记录)
  461. type: integer
  462. opentradeqty:
  463. description: 开仓成交数量(先建后平操作,需要记录)
  464. type: integer
  465. openunfreezecharge:
  466. description: 开仓解冻手续费(先建后平操作,需要记录)
  467. type: number
  468. operatetype:
  469. description: 操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
  470. type: integer
  471. operatorid:
  472. description: 登录账号(LoginID)
  473. type: integer
  474. optiontype:
  475. description: 期权类型 - 1:认购(看涨) 2:认沽(看跌)
  476. type: integer
  477. orderprice:
  478. description: 委托价格
  479. type: number
  480. orderqty:
  481. description: 委托数量
  482. type: integer
  483. ordersrc:
  484. description: 委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发
  485. type: integer
  486. orderstatus:
  487. description: 委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
  488. type: integer
  489. ordertime:
  490. description: 委托时间
  491. type: string
  492. preexerciseprice:
  493. description: 预申报价格
  494. type: number
  495. premium:
  496. description: 权利金
  497. type: number
  498. preorderid:
  499. description: 关联预埋单号(止盈止损单时填写)
  500. type: integer
  501. pricemode:
  502. description: '取价方式 - 1:市价 2: 限价'
  503. type: integer
  504. quoteid:
  505. description: 报价单ID
  506. type: integer
  507. relatedid:
  508. description: 关联单号(交割单)
  509. type: integer
  510. retcode:
  511. description: 错误代码
  512. type: integer
  513. sessionid:
  514. description: 会话ID
  515. type: integer
  516. strorderid:
  517. description: 委托单号
  518. type: string
  519. tradedate:
  520. description: 交易日(yyyyMMdd)
  521. type: string
  522. tradeproperty:
  523. description: 交易属性
  524. type: integer
  525. tradeqty:
  526. description: 成交数量
  527. type: integer
  528. unfreezecharge:
  529. description: 解冻手续费
  530. type: number
  531. unfreezemargin:
  532. description: 解冻保证金
  533. type: number
  534. updatetime:
  535. description: 更新时间
  536. type: string
  537. uuid:
  538. description: 发起端唯一id
  539. type: string
  540. validtime:
  541. description: 有效期限
  542. type: string
  543. validtype:
  544. description: 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
  545. type: integer
  546. volumetype:
  547. description: 当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
  548. type: integer
  549. required:
  550. - accountid
  551. - buildtype
  552. - buyorsell
  553. - goodsid
  554. - marketid
  555. - memberuserid
  556. - operatetype
  557. - orderqty
  558. - ordertime
  559. - pricemode
  560. - strorderid
  561. - tradedate
  562. - validtype
  563. type: object
  564. cptrade.QueryMyCPTradeGoodsRsp:
  565. properties:
  566. accountid:
  567. description: 卖方账户ID
  568. type: integer
  569. agreeunit:
  570. description: 合约单位
  571. type: number
  572. applyid:
  573. description: 关联申请ID
  574. type: integer
  575. attachmenturl:
  576. description: 附件地址
  577. type: string
  578. createtime:
  579. description: 创建时间
  580. type: string
  581. currencyid:
  582. description: 报价货币ID
  583. type: integer
  584. decimalplace:
  585. description: 报价小数位
  586. type: integer
  587. endtime:
  588. description: 预售结束时间
  589. type: string
  590. floorprice:
  591. description: 底价[大宗式竞拍]
  592. type: number
  593. goodscode:
  594. description: 商品代码(预售)
  595. type: string
  596. goodsdetail:
  597. description: 详情[大宗]
  598. type: string
  599. goodsid:
  600. description: 商品ID(自增ID SEQ_GOODS)
  601. type: integer
  602. goodsname:
  603. description: 商品名称(预售)
  604. type: string
  605. goodunit:
  606. description: 报价单位
  607. type: string
  608. goodunitid:
  609. description: 报价单位ID
  610. type: integer
  611. marketid:
  612. description: 所属市场ID
  613. type: integer
  614. marketname:
  615. description: 预售市场名称
  616. type: string
  617. presaledamount:
  618. description: 已预售总金额(预售结束时更新)
  619. type: number
  620. presaledqty:
  621. description: 已预售量(预售结束时更新)
  622. type: integer
  623. presalemode:
  624. description: 预售模式 - 1:一口价 2:大宗式竞拍
  625. type: integer
  626. presaleqty:
  627. description: 预售数量
  628. type: integer
  629. refprice:
  630. description: 参考价格[一口价]
  631. type: number
  632. relatedgoodscode:
  633. description: 商品代码(订单)
  634. type: string
  635. relatedgoodsid:
  636. description: 关联交易合约ID
  637. type: integer
  638. relatedgoodsname:
  639. description: 商品名称(订单)
  640. type: string
  641. relatedmarketid:
  642. description: 关联交易合约市场ID
  643. type: integer
  644. sellstatus:
  645. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  646. type: integer
  647. startprice:
  648. description: 起拍价[大宗式竞拍]
  649. type: number
  650. starttime:
  651. description: 预售开始时间
  652. type: string
  653. tradedate:
  654. description: 交易日(yyyyMMdd)
  655. type: string
  656. tradeprice:
  657. description: 成交价[大宗]
  658. type: number
  659. userid:
  660. description: 卖方用户ID
  661. type: integer
  662. required:
  663. - goodscode
  664. - goodsid
  665. - goodsname
  666. - marketid
  667. - relatedgoodscode
  668. - relatedgoodsname
  669. type: object
  670. cptrade.QueryPresaleGoodsExRsp:
  671. properties:
  672. attachmenturl:
  673. description: 附件地址
  674. type: string
  675. createtime:
  676. description: 创建时间
  677. type: string
  678. endtime:
  679. description: 预售结束时间
  680. type: string
  681. floorprice:
  682. description: 底价[大宗式竞拍]
  683. type: number
  684. goodsdetail:
  685. description: 详情[大宗]
  686. type: string
  687. goodsid:
  688. description: 商品ID(预售)
  689. type: integer
  690. goodunit:
  691. description: 报价单位
  692. type: string
  693. marketid:
  694. description: 预售市场ID - 根据预售模式选择市场
  695. type: integer
  696. presaledamount:
  697. description: 已预售总金额(预售结束时更新)
  698. type: number
  699. presaledqty:
  700. description: 已预售量(预售结束时更新)
  701. type: integer
  702. presalemode:
  703. description: 预售模式 - 1:一口价 2:大宗式竞拍
  704. type: integer
  705. presaleqty:
  706. description: 预售数量
  707. type: integer
  708. refprice:
  709. description: 参考价格[一口价]
  710. type: number
  711. relatedgoodsid:
  712. description: 关联交易合约ID
  713. type: integer
  714. relatedmarketid:
  715. description: 关联交易合约市场ID
  716. type: integer
  717. sellstatus:
  718. description: 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  719. type: integer
  720. startprice:
  721. description: 起拍价[大宗式竞拍]
  722. type: number
  723. starttime:
  724. description: 预售开始时间
  725. type: string
  726. tradedate:
  727. description: 交易日(yyyyMMdd)
  728. type: string
  729. tradeprice:
  730. description: 成交价[大宗]
  731. type: number
  732. required:
  733. - goodsid
  734. type: object
  735. delivery.QueryDeliveryRelationRsp:
  736. properties:
  737. begindate:
  738. description: 起始日期(yyyyMMdd)
  739. type: string
  740. buytemplateid:
  741. description: 买履约计划模板ID
  742. type: integer
  743. deliverygoodscode:
  744. description: 品种代码
  745. type: string
  746. deliverygoodsid:
  747. description: 交割商品
  748. type: integer
  749. deliverygoodsname:
  750. description: 品种名称
  751. type: string
  752. deliverymode:
  753. description: 交割方式 - 1:点选式 2:申报式
  754. type: integer
  755. deliverypricerule:
  756. description: 交割价规则- 1:行情价 2:建仓价
  757. type: integer
  758. deliverytype:
  759. description: 交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割
  760. type: integer
  761. enddate:
  762. description: 结束日期(yyyyMMdd)
  763. type: string
  764. goodscode:
  765. description: 商品代码
  766. type: string
  767. goodsid:
  768. description: 交易合约ID
  769. type: integer
  770. goodsname:
  771. description: 商品名称
  772. type: string
  773. marketid:
  774. description: 市场ID
  775. type: integer
  776. mindeliveryqty:
  777. description: 最小交割系数(K)
  778. type: integer
  779. p2deliveryprice:
  780. description: P2合约价格(商品价时填写0,固定值时填写固定值)
  781. type: number
  782. p2deliveryratio:
  783. description: P2合约系数(p)
  784. type: integer
  785. p2goodsid:
  786. description: P2合约ID
  787. type: integer
  788. p2pricemode:
  789. description: P2合约价格方式 - 1:商品价 2:固定值
  790. type: integer
  791. pdeliveryprice:
  792. description: P合约价格(商品价时填写0,固定值时填写固定值)
  793. type: number
  794. pdeliveryratio:
  795. description: P合约系数(n)
  796. type: integer
  797. pgoodsid:
  798. description: P合约ID
  799. type: integer
  800. ppricemode:
  801. description: P合约价格方式 - 1:商品价 2:固定值
  802. type: integer
  803. rratio:
  804. description: 兑换系数(R)
  805. type: integer
  806. rratio1:
  807. description: 兑换系数(交易合约)(R1)
  808. type: integer
  809. rratio2:
  810. description: 兑换系数(仓单标准)(R2)
  811. type: integer
  812. selltemplateid:
  813. description: 卖履约计划模板ID
  814. type: integer
  815. wrstandardid:
  816. description: 仓单标准ID
  817. type: integer
  818. xdeliveryratio:
  819. description: 交易合约系数(m)
  820. type: integer
  821. required:
  822. - begindate
  823. - enddate
  824. - goodsid
  825. - mindeliveryqty
  826. - xdeliveryratio
  827. type: object
  828. erms2.QueryArbitrageStrategyRsp:
  829. properties:
  830. applybasis:
  831. description: 申请基差
  832. type: number
  833. asapplyid:
  834. description: 策略申请ID(702+Unix秒时间戳(10位)+xxxxxx)
  835. type: string
  836. asname:
  837. description: 策略名称
  838. type: string
  839. asno:
  840. description: 策略编号
  841. type: string
  842. basischangepl:
  843. description: 基差变动损益[结算更新]
  844. type: number
  845. biztype:
  846. description: 业务类型 - 1:正向套利 -1:反向套利
  847. type: integer
  848. closetradedate:
  849. description: 完结交易日(yyyyMMdd)
  850. type: string
  851. curbasis:
  852. description: 当前基差[结算更新]
  853. type: number
  854. deliverygoodsid:
  855. description: 现货品种ID
  856. type: integer
  857. futureavgprice:
  858. description: 期货建仓均价
  859. type: number
  860. futurecloseamount:
  861. description: 期货平仓金额
  862. type: number
  863. futurecloseqty:
  864. description: 期货平仓数量
  865. type: number
  866. futureopenamount:
  867. description: 期货开仓金额
  868. type: number
  869. futureopenqty:
  870. description: 期货开仓数量
  871. type: number
  872. futurepl:
  873. description: 期货总盈亏[结算更新]
  874. type: number
  875. futureqty:
  876. description: 期货持仓数量
  877. type: number
  878. futurequote:
  879. description: 期货额度
  880. type: number
  881. goodsgroupid:
  882. description: 期货品种ID
  883. type: integer
  884. marketid:
  885. description: 市场ID
  886. type: integer
  887. netexposure:
  888. description: 单笔业务头寸净敞口 = 期货持仓数量 + 已定价现货不含税数量
  889. type: number
  890. netexposurepl:
  891. description: 净敞口损益 = TotalPL - BasisChangePL[结算更新]
  892. type: number
  893. netexposurerate:
  894. description: 净敞口比例 - 0:未结束 = (NetExposure/PriceSpotQtyNoTax) ; 已结束为0
  895. type: number
  896. openbasis:
  897. description: 建仓基差
  898. type: number
  899. pricedspotqty:
  900. description: 已定价现货数量
  901. type: number
  902. pricedspotqtynotax:
  903. description: 已定价现货不含税数量
  904. type: number
  905. remark:
  906. description: 备注
  907. type: string
  908. spotavgprice:
  909. description: 现货均价
  910. type: number
  911. spotbuyamount:
  912. description: 现货采购金额
  913. type: number
  914. spotbuyqty:
  915. description: 现货采购数量
  916. type: number
  917. spotpl:
  918. description: 现货总盈亏[结算更新]
  919. type: number
  920. spotquota:
  921. description: 现货额度
  922. type: number
  923. spotsellamount:
  924. description: 现货销售金额
  925. type: number
  926. spotsellqty:
  927. description: 现货销售数量
  928. type: number
  929. spotusedquota:
  930. description: 现货占用资金
  931. type: number
  932. strategystatus:
  933. description: 策略状态 - 0:未结束 1:已结束
  934. type: integer
  935. totalpl:
  936. description: 业务合计损益 = FuturePL + SpotPL [结算更新]
  937. type: number
  938. tradedate:
  939. description: 交易日(yyyyMMdd)
  940. type: string
  941. updatetime:
  942. description: 更新时间
  943. type: string
  944. usedquota:
  945. description: 已占用资金
  946. type: number
  947. userid:
  948. description: 所属机构
  949. type: integer
  950. required:
  951. - asapplyid
  952. type: object
  953. erms2.QueryInnerTradeDetailRsp:
  954. properties:
  955. accountid:
  956. description: 账号ID
  957. type: integer
  958. agreeunit:
  959. description: 合约单位
  960. type: number
  961. asapplyid:
  962. description: 策略申请ID
  963. type: integer
  964. asname:
  965. description: 策略名称
  966. type: string
  967. asno:
  968. description: 策略编号
  969. type: string
  970. buyorsell:
  971. description: 方向 - 0:买 1:卖
  972. type: integer
  973. channelbuildtype:
  974. description: 委托单据类型 0:无 1:建仓 2:平仓
  975. type: integer
  976. closetype:
  977. description: 平仓方式 - 0:无 1:平今 2:平昨
  978. type: integer
  979. decimalplace:
  980. description: 报价小数位
  981. type: integer
  982. detailtype:
  983. description: 明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整
  984. type: integer
  985. exexchangecode:
  986. description: 外部交易所代码
  987. type: string
  988. exexchangename:
  989. description: 外部交易所名称
  990. type: string
  991. goodscode:
  992. description: 商品代码(合约)
  993. type: string
  994. goodsgroupid:
  995. description: 商品组ID(品种ID)
  996. type: integer
  997. goodsgroupname:
  998. description: 商品组名称(品种)
  999. type: string
  1000. goodsid:
  1001. description: 商品ID
  1002. type: integer
  1003. goodsname:
  1004. description: 商品名称(合约)
  1005. type: string
  1006. goodunit:
  1007. description: 报价单位
  1008. type: string
  1009. marketid:
  1010. description: 市场ID
  1011. type: integer
  1012. orderid:
  1013. description: 委托单号
  1014. type: string
  1015. outgoodscode:
  1016. description: 商品代码(外部)
  1017. type: string
  1018. relatedouttradeid:
  1019. description: 关联外部成交单ID
  1020. type: string
  1021. remark:
  1022. description: 备注
  1023. type: string
  1024. spotcontractid:
  1025. description: 现货合同ID [1:套利对冲 为合同ID,2:期货换月\3:期货仓位调整时为0]
  1026. type: integer
  1027. spotcontractno:
  1028. description: 现货合同编号
  1029. type: string
  1030. tradeid:
  1031. description: 成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  1032. type: string
  1033. tradeprice:
  1034. description: 成交价格
  1035. type: number
  1036. tradeqty:
  1037. description: 成交数量
  1038. type: integer
  1039. tradetime:
  1040. description: 成交时间
  1041. type: string
  1042. updatetime:
  1043. description: 更新时间
  1044. type: string
  1045. required:
  1046. - asapplyid
  1047. - buyorsell
  1048. - goodscode
  1049. - goodsgroupid
  1050. - goodsgroupname
  1051. - goodsname
  1052. - tradeid
  1053. type: object
  1054. erms2.QuerySpotContractRsp:
  1055. properties:
  1056. accountid:
  1057. description: 资金账户ID
  1058. type: integer
  1059. areauserid:
  1060. description: 所属机构
  1061. type: integer
  1062. closedate:
  1063. description: 终止日期
  1064. type: string
  1065. closeremark:
  1066. description: 结束备注
  1067. type: string
  1068. closetradedate:
  1069. description: 完结交易日(yyyyMMdd)
  1070. type: string
  1071. closetype:
  1072. description: 终止类型 - 1:违约 2:提前终止
  1073. type: integer
  1074. contractamount:
  1075. description: 合同金额
  1076. type: number
  1077. contractattachment:
  1078. description: 合同附件
  1079. type: string
  1080. contractno:
  1081. description: 现货合同编号
  1082. type: string
  1083. contractqty:
  1084. description: 合同数量(数值) (用于计算)
  1085. type: number
  1086. contractqtychar:
  1087. description: 合同数量\已订价数量 (用于显示)
  1088. type: string
  1089. contractstatus:
  1090. description: 合同状态 - 0:未结束 1:已结束
  1091. type: integer
  1092. contracttype:
  1093. description: 现货合同类型 - 1:采购合同 -1:销售合同
  1094. type: integer
  1095. customeraccountid:
  1096. description: 客户资金账户ID
  1097. type: integer
  1098. customeruserid:
  1099. description: 客户ID
  1100. type: integer
  1101. deliverygoodsdesc:
  1102. description: 品种说明
  1103. type: string
  1104. deliverygoodsid:
  1105. description: 现货品种ID
  1106. type: integer
  1107. handlestatus:
  1108. description: 处理状态
  1109. type: integer
  1110. invoiceatt:
  1111. description: 发票附件
  1112. type: string
  1113. invoicedatetime:
  1114. description: 开收票更新时间
  1115. type: string
  1116. invoiceopentime:
  1117. description: 开票时间
  1118. type: string
  1119. invoiceremark:
  1120. description: 发票备注
  1121. type: string
  1122. invoicestatus:
  1123. description: 开收票状态 - 0:未开票 1:已开票
  1124. type: integer
  1125. lastdate:
  1126. description: 交货时间
  1127. type: string
  1128. marketid:
  1129. description: 市场ID
  1130. type: integer
  1131. paydatetime:
  1132. description: 收付款更新时间
  1133. type: string
  1134. payremark:
  1135. description: 收付款备注
  1136. type: string
  1137. paystatus:
  1138. description: 收付款状态 - 0:未支付 1:已收款 2:已付款
  1139. type: integer
  1140. positionqty:
  1141. description: 头寸数量 - 合同数量去小数部分
  1142. type: integer
  1143. producttype:
  1144. description: 产品类型 - 1:标准仓单 2:等标 3:非标
  1145. type: integer
  1146. relatedqty:
  1147. description: 已关联数量
  1148. type: number
  1149. relatedstatus:
  1150. description: 关联完结状态 - 0:未结束 1:已结束
  1151. type: integer
  1152. remark:
  1153. description: 备注
  1154. type: string
  1155. signdate:
  1156. description: 签订日期
  1157. type: string
  1158. spotcontractid:
  1159. description: 现货合同ID(701+Unix秒时间戳(10位)+xxxxxx)
  1160. type: string
  1161. spotdatetime:
  1162. description: 收发货更新时间
  1163. type: string
  1164. spotprice:
  1165. description: 价格
  1166. type: number
  1167. spotremark:
  1168. description: 收发货备注
  1169. type: string
  1170. spotstatus:
  1171. description: 收发货状态 - 0:未交收 1:已发货 2:已发货
  1172. type: integer
  1173. tradedate:
  1174. description: 交易日(yyyyMMdd)
  1175. type: string
  1176. userid:
  1177. description: 业务员用户ID
  1178. type: integer
  1179. warehouseid:
  1180. description: 仓库ID
  1181. type: integer
  1182. wrfactortypeid:
  1183. description: 仓单要素类型ID
  1184. type: integer
  1185. wrstandardid:
  1186. description: 仓单标准ID(SEQ_WRSTANDARD)
  1187. type: integer
  1188. required:
  1189. - spotcontractid
  1190. type: object
  1191. models.Szdz3searchwhitelist:
  1192. properties:
  1193. createtime:
  1194. description: 创建时间
  1195. type: string
  1196. creatorid:
  1197. description: 创建人
  1198. type: integer
  1199. modifierid:
  1200. description: 修改人
  1201. type: integer
  1202. modifytime:
  1203. description: 修改时间
  1204. type: string
  1205. userid:
  1206. description: 用户ID
  1207. type: integer
  1208. required:
  1209. - userid
  1210. type: object
  1211. models.Tablecolumnconfig:
  1212. properties:
  1213. aligntype:
  1214. description: 对齐方式 - 1:居中对齐 2:左对齐 3:右对齐
  1215. type: integer
  1216. autoid:
  1217. description: AutoID
  1218. type: integer
  1219. columnfield:
  1220. description: 列字段
  1221. type: string
  1222. columntitle:
  1223. description: 列Title
  1224. type: string
  1225. columnwidth:
  1226. description: 列宽
  1227. type: string
  1228. formatterstring:
  1229. description: 格式化字符
  1230. type: string
  1231. formattertype:
  1232. description: 格式化类型
  1233. type: string
  1234. groupname:
  1235. description: 表头分组名称
  1236. type: string
  1237. isshow:
  1238. description: 是否显示 - 0:不显示 1:显示
  1239. type: integer
  1240. needsummary:
  1241. description: 是否需要汇总 - 0:不需要 1:需要
  1242. type: integer
  1243. orderindex:
  1244. description: 顺序
  1245. type: integer
  1246. remark:
  1247. description: 备注
  1248. type: string
  1249. summarytype:
  1250. description: 汇总类型 - 1:加总 2:最后一个
  1251. type: integer
  1252. tablekey:
  1253. description: 列表Key
  1254. type: string
  1255. required:
  1256. - autoid
  1257. type: object
  1258. order.QueryTradeDetailRsp:
  1259. properties:
  1260. accountid:
  1261. description: 账户ID[报价币种]
  1262. type: integer
  1263. buildtype:
  1264. description: 委托单据类型 1:建仓 2:平仓 3:先平后建
  1265. type: integer
  1266. buyorsell:
  1267. description: 方向 - 0:买 1:卖
  1268. type: integer
  1269. charge:
  1270. description: 手续费
  1271. type: number
  1272. closecharge:
  1273. description: 平仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
  1274. type: number
  1275. closeexchagechargevalue:
  1276. description: 平仓交易所手续费设置值
  1277. type: number
  1278. closefeealgorithm:
  1279. description: 平仓手续费收取方式 1:比率 2:固定
  1280. type: integer
  1281. closememberchargevalue:
  1282. description: 平仓会员手续费设置值
  1283. type: number
  1284. closepl:
  1285. description: 平仓盈亏
  1286. type: number
  1287. closepl2:
  1288. description: 平仓盈亏[逐笔]
  1289. type: number
  1290. closeqty:
  1291. description: 平仓数量(先建后平操作 需要记录)
  1292. type: integer
  1293. creditamount:
  1294. description: 授信金额
  1295. type: number
  1296. gcaccountid:
  1297. description: 账户ID[合约币种]
  1298. type: integer
  1299. goodscode:
  1300. description: 商品代码
  1301. type: string
  1302. goodsid:
  1303. description: 商品ID
  1304. type: integer
  1305. goodsname:
  1306. description: 商品名称
  1307. type: string
  1308. intclosepl:
  1309. description: 整型盈亏(用于交易结算试算平衡-收益权)
  1310. type: integer
  1311. isconfirmexercise:
  1312. description: 是否确认行权- 0:否 1:是
  1313. type: integer
  1314. ismain:
  1315. description: 是否主单 - 0:不是 1:是
  1316. type: integer
  1317. ispreexercise:
  1318. description: 是否预申报- 0:否 1:是
  1319. type: integer
  1320. isreckoned:
  1321. description: 是否结算 - 0:未结算 1:已结算
  1322. type: integer
  1323. listingselecttype:
  1324. description: 关联委托单挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  1325. type: integer
  1326. marketid:
  1327. description: 市场ID
  1328. type: integer
  1329. marketname:
  1330. description: 市场名称
  1331. type: string
  1332. matchaccountid:
  1333. description: 对手账号id
  1334. type: integer
  1335. memberuserid:
  1336. description: 会员id 个人投资者 需要填写
  1337. type: integer
  1338. opencharge:
  1339. description: 建仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
  1340. type: number
  1341. openexchagechargevalue:
  1342. description: 建仓交易所手续费设置值
  1343. type: number
  1344. openfeealgorithm:
  1345. description: 建仓手续费收取方式 1:比率 2:固定
  1346. type: integer
  1347. openmemberchargevalue:
  1348. description: 建仓会员手续费设置值
  1349. type: number
  1350. openqty:
  1351. description: 开仓数量(先建后平操作 需要记录)
  1352. type: integer
  1353. optiontype:
  1354. description: 期权类型 - 1:认购(看涨) 2:认沽(看跌)
  1355. type: integer
  1356. orderid:
  1357. description: 委托单号
  1358. type: string
  1359. performanceplanid:
  1360. description: 履约计划ID[期权]
  1361. type: integer
  1362. performancestatus:
  1363. description: 履约状态[期权] - 0:无履约 1:未履约 2:履约中 3:履约完成
  1364. type: integer
  1365. preexerciseprice:
  1366. description: 预申报价格
  1367. type: number
  1368. premium:
  1369. description: 权利金 - [持仓单的权利金]
  1370. type: number
  1371. relatedouttradeid:
  1372. description: 关联外部成交单ID
  1373. type: integer
  1374. status:
  1375. description: 处理状态 - 1:待处理 2:已处理 3:处理失败
  1376. type: integer
  1377. tradeamount:
  1378. description: 成交金额[账户币种,用于所有权]
  1379. type: number
  1380. tradedate:
  1381. description: 交易日(yyyyMMdd)
  1382. type: string
  1383. tradeid:
  1384. description: 成交单号(101+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  1385. type: string
  1386. trademode:
  1387. description: 交易模式
  1388. type: integer
  1389. tradeprice:
  1390. description: 成交价格
  1391. type: number
  1392. tradeproperty:
  1393. description: 交易属性
  1394. type: integer
  1395. tradeqty:
  1396. description: 成交数量
  1397. type: integer
  1398. tradetime:
  1399. description: 成交时间
  1400. type: string
  1401. tradetype:
  1402. description: '成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 10:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓'
  1403. type: integer
  1404. required:
  1405. - accountid
  1406. - buyorsell
  1407. - goodsid
  1408. - marketid
  1409. - memberuserid
  1410. - orderid
  1411. - tradeamount
  1412. - tradedate
  1413. - tradeid
  1414. - tradeprice
  1415. - tradeqty
  1416. - tradetime
  1417. type: object
  1418. order.QueryTradeOrderDetailRsp:
  1419. properties:
  1420. accountid:
  1421. description: 账户ID[报价币种]
  1422. type: integer
  1423. buildtype:
  1424. description: 委托单据类型 - 1:建仓 2:平仓 3:先平后建
  1425. type: integer
  1426. buyorsell:
  1427. description: 买卖 - 0:买 1:卖
  1428. type: integer
  1429. cancelorderid:
  1430. description: 撤单单号(撤单时填写)
  1431. type: string
  1432. cancelqty:
  1433. description: 撤单数量
  1434. type: integer
  1435. clienttype:
  1436. description: 客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
  1437. type: integer
  1438. closefreezecharge:
  1439. description: 平仓冻结手续费(先建后平操作,需要记录)
  1440. type: number
  1441. closeqty:
  1442. description: 平仓数量(先建后平操作 需要记录)
  1443. type: integer
  1444. closetradeqty:
  1445. description: 平仓成交数量(先建后平操作,需要记录)
  1446. type: integer
  1447. closeunfreezecharge:
  1448. description: 平仓解冻手续费(先建后平操作,需要记录)
  1449. type: number
  1450. delistingtype:
  1451. description: 摘牌类型 - 1:价格最优 2:点选成交
  1452. type: integer
  1453. enableqty:
  1454. description: 可用数量 = 委托数量 - 成交数量 - 撤单数量
  1455. type: integer
  1456. freezecharge:
  1457. description: 冻结手续费
  1458. type: number
  1459. freezemargin:
  1460. description: 冻结保证金(冻结交易金额)
  1461. type: number
  1462. goodscode:
  1463. description: 商品代码
  1464. type: string
  1465. goodsid:
  1466. description: 商品ID
  1467. type: integer
  1468. goodsname:
  1469. description: 商品名称
  1470. type: string
  1471. listingselecttype:
  1472. description: 挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  1473. type: integer
  1474. marketid:
  1475. description: 市场ID
  1476. type: integer
  1477. marketname:
  1478. description: 市场名称
  1479. type: string
  1480. openfreezecharge:
  1481. description: 开仓冻结手续费(先建后平操作,需要记录)
  1482. type: number
  1483. openqty:
  1484. description: 开仓数量(先建后平操作,需要记录)
  1485. type: integer
  1486. opentradeqty:
  1487. description: 开仓成交数量(先建后平操作,需要记录)
  1488. type: integer
  1489. openunfreezecharge:
  1490. description: 开仓解冻手续费(先建后平操作,需要记录)
  1491. type: number
  1492. operatetype:
  1493. description: 操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
  1494. type: integer
  1495. operatorid:
  1496. description: 登录账号(LoginID)
  1497. type: integer
  1498. orderid:
  1499. description: 委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  1500. type: string
  1501. orderprice:
  1502. description: 委托价格
  1503. type: number
  1504. orderqty:
  1505. description: 委托数量
  1506. type: integer
  1507. ordersrc:
  1508. description: 委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发
  1509. type: integer
  1510. orderstatus:
  1511. description: 委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
  1512. type: integer
  1513. ordertime:
  1514. description: 委托时间
  1515. type: string
  1516. preorderid:
  1517. description: 关联预埋单号(止盈止损单时填写)
  1518. type: string
  1519. pricemode:
  1520. description: '取价方式 - 1:市价 2: 限价'
  1521. type: integer
  1522. relatedid:
  1523. description: 关联单号(交割单)
  1524. type: string
  1525. tradedate:
  1526. description: 交易日(yyyyMMdd)
  1527. type: string
  1528. trademode:
  1529. description: 交易模式
  1530. type: integer
  1531. tradeqty:
  1532. description: 成交数量
  1533. type: integer
  1534. unfreezecharge:
  1535. description: 解冻手续费
  1536. type: number
  1537. unfreezemargin:
  1538. description: 解冻保证金
  1539. type: number
  1540. validtime:
  1541. description: 有效期限
  1542. type: string
  1543. validtype:
  1544. description: 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
  1545. type: integer
  1546. volumetype:
  1547. description: 当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
  1548. type: integer
  1549. required:
  1550. - accountid
  1551. - buildtype
  1552. - buyorsell
  1553. - goodsid
  1554. - marketid
  1555. - operatetype
  1556. - orderqty
  1557. - ordertime
  1558. - pricemode
  1559. - tradedate
  1560. - validtype
  1561. type: object
  1562. order.QueryTradePositionRsp:
  1563. properties:
  1564. accountid:
  1565. description: 资金账户
  1566. type: integer
  1567. agreeunit:
  1568. description: 合约单位
  1569. type: number
  1570. averageprice:
  1571. description: 持仓均价
  1572. type: number
  1573. buyorsell:
  1574. description: 方向 - 0:买 1:卖
  1575. type: integer
  1576. closetotalqty:
  1577. description: 平仓总数量
  1578. type: integer
  1579. curholderamount:
  1580. description: 当前持仓总金额[商品币种]
  1581. type: number
  1582. curpositionqty:
  1583. description: 当前持仓总数量
  1584. type: integer
  1585. currencyid:
  1586. description: 报价货币ID
  1587. type: integer
  1588. curtdposition:
  1589. description: 期末今日头寸
  1590. type: integer
  1591. decimalplace:
  1592. description: 报价小数位
  1593. type: integer
  1594. enableqty:
  1595. description: 可用量
  1596. type: integer
  1597. fretdposition:
  1598. description: 冻结今日头寸
  1599. type: integer
  1600. frozenqty:
  1601. description: 持仓冻结数量
  1602. type: integer
  1603. goodscode:
  1604. description: 商品代码
  1605. type: string
  1606. goodsid:
  1607. description: 商品Id
  1608. type: integer
  1609. goodsname:
  1610. description: 商品名称
  1611. type: string
  1612. goodunit:
  1613. description: 报价单位
  1614. type: string
  1615. goodunitid:
  1616. description: 报价单位ID
  1617. type: integer
  1618. holderamount:
  1619. description: 期初持仓总金额[商品币种]
  1620. type: number
  1621. marketid:
  1622. description: 所属市场ID
  1623. type: integer
  1624. openreqqty:
  1625. description: 开仓申请数量(用于比较最大持仓数量)
  1626. type: integer
  1627. opentotalqty:
  1628. description: 开仓总数量
  1629. type: integer
  1630. otherfrozenqty:
  1631. description: 持仓其他冻结数量(交割冻结)
  1632. type: integer
  1633. positionqty:
  1634. description: 期初持仓数量
  1635. type: integer
  1636. tnqty:
  1637. description: T+N冻结总量
  1638. type: integer
  1639. tnusedqty:
  1640. description: T+N使用量(可以使用T+N的冻结数量)
  1641. type: integer
  1642. trademode:
  1643. description: 交易模式
  1644. type: integer
  1645. required:
  1646. - goodsid
  1647. type: object
  1648. szdz.QueryConvertLogRsp:
  1649. properties:
  1650. accountid:
  1651. description: 资金账户ID
  1652. type: integer
  1653. clientticket:
  1654. description: 客户端流水号
  1655. type: string
  1656. converttype:
  1657. description: 转换类型 - 1:金点赞转交易 2:金点拍转交易 3:交易转金点赞 4:交易转金点拍
  1658. type: integer
  1659. createtime:
  1660. description: 记账时间
  1661. type: string
  1662. daymaxvalue:
  1663. description: 配置当日最大转入限制
  1664. type: number
  1665. daymaxvalue2:
  1666. description: 配置当日最大转入限制(转入)
  1667. type: number
  1668. goodscode:
  1669. description: 商品代码
  1670. type: string
  1671. goodsname:
  1672. description: 商品名称
  1673. type: string
  1674. handlestatus:
  1675. description: 处理状态
  1676. type: integer
  1677. innergoodsid:
  1678. description: 内部商品ID
  1679. type: integer
  1680. inratio:
  1681. description: 配置转入比值
  1682. type: integer
  1683. invalue:
  1684. description: 目标值
  1685. type: number
  1686. logid:
  1687. description: LogID(901+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  1688. type: integer
  1689. mobile:
  1690. description: 手机号码(加密存储)
  1691. type: string
  1692. outergoodscode:
  1693. description: 外部商品代码[JD\PD]
  1694. type: string
  1695. outratio:
  1696. description: 配置转出比值
  1697. type: integer
  1698. outvalue:
  1699. description: 源值
  1700. type: number
  1701. pddecimalplace:
  1702. description: PD小数位
  1703. type: integer
  1704. qty:
  1705. description: 数量
  1706. type: string
  1707. remark:
  1708. description: 备注
  1709. type: string
  1710. sessionid:
  1711. description: 会话ID
  1712. type: integer
  1713. timemaxvalue:
  1714. description: 配置单次最大转入限制
  1715. type: number
  1716. timemaxvalue2:
  1717. description: 配置单次最大转入限制(转入)
  1718. type: number
  1719. timeminvalue:
  1720. description: 配置单次最小数量限制
  1721. type: number
  1722. timeminvalue2:
  1723. description: 配置单次最小数量限制(转入)
  1724. type: number
  1725. tradedate:
  1726. description: 交易日(yyyyMMdd)
  1727. type: string
  1728. userid:
  1729. description: 用户ID
  1730. type: integer
  1731. required:
  1732. - logid
  1733. type: object
  1734. szdz.QueryGoodsPickupRsp:
  1735. properties:
  1736. accountid:
  1737. description: 账户ID
  1738. type: integer
  1739. address:
  1740. description: 提货人详细地址
  1741. type: string
  1742. auditer:
  1743. description: 审核人
  1744. type: integer
  1745. audittime:
  1746. description: 审核时间
  1747. type: string
  1748. cardnum:
  1749. description: 提货人证件号码
  1750. type: string
  1751. cardtypeid:
  1752. description: 提货人证件类型
  1753. type: integer
  1754. checkremark:
  1755. description: 审核备注
  1756. type: string
  1757. goodscode:
  1758. description: 商品代码
  1759. type: string
  1760. goodsid:
  1761. description: 商品ID
  1762. type: integer
  1763. goodsname:
  1764. description: 商品名称
  1765. type: string
  1766. handlestatus:
  1767. description: 处理状态
  1768. type: integer
  1769. marketid:
  1770. description: 市场ID
  1771. type: integer
  1772. phonenum:
  1773. description: 提货人联系方式
  1774. type: string
  1775. qty:
  1776. description: 提货数量
  1777. type: number
  1778. recivername:
  1779. description: 提货人姓名
  1780. type: string
  1781. reqtime:
  1782. description: 更新时间
  1783. type: string
  1784. takemode:
  1785. description: 提货方式 - 2:自提 3:配送
  1786. type: integer
  1787. takeorderid:
  1788. description: 提货单号(905+Unix秒时间戳(10位)+xxxxxx)
  1789. type: integer
  1790. takeorderstatus:
  1791. description: 提货状态 - 1:待发货 2:已发货 3:已收货
  1792. type: integer
  1793. takeremark:
  1794. description: 提货备注
  1795. type: string
  1796. tradedate:
  1797. description: 交易日(yyyyMMdd)
  1798. type: string
  1799. userid:
  1800. description: 用户ID
  1801. type: integer
  1802. required:
  1803. - takeorderid
  1804. type: object
  1805. szdz.QueryRecieptOrderRsp:
  1806. properties:
  1807. accountName:
  1808. description: 所属账号名称(已脱敏)
  1809. type: string
  1810. buyorsell:
  1811. description: 方向 - 0:买 1:卖
  1812. type: integer
  1813. enableqty:
  1814. description: 可摘数量
  1815. type: integer
  1816. goodscode:
  1817. description: 商品代码
  1818. type: string
  1819. goodsid:
  1820. description: 商品ID
  1821. type: integer
  1822. goodsname:
  1823. description: 商品名称
  1824. type: string
  1825. orderid:
  1826. description: 委托单号
  1827. type: string
  1828. orderprice:
  1829. description: 委托价格
  1830. type: number
  1831. tradedate:
  1832. description: 交易日(yyyyMMdd)
  1833. type: string
  1834. type: object
  1835. info:
  1836. contact: {}
  1837. description: 新的查询服务,替代原通用查询服务。
  1838. license: {}
  1839. termsOfService: http://muchinfo.cn
  1840. title: MTP2.0 查询服务 API
  1841. version: "1.0"
  1842. paths:
  1843. /CPTrade/QueryCPTradeMyBidInfos:
  1844. get:
  1845. parameters:
  1846. - description: 资金账户
  1847. in: query
  1848. name: accountid
  1849. required: true
  1850. type: integer
  1851. - description: 预售市场ID
  1852. in: query
  1853. name: marketid
  1854. type: integer
  1855. - description: 预售商品ID
  1856. in: query
  1857. name: goodsid
  1858. type: integer
  1859. produces:
  1860. - application/json
  1861. responses:
  1862. "200":
  1863. description: OK
  1864. schema:
  1865. $ref: '#/definitions/cptrade.QueryCPTradeMyBidRsp'
  1866. "500":
  1867. description: Internal Server Error
  1868. schema:
  1869. $ref: '#/definitions/app.Response'
  1870. security:
  1871. - ApiKeyAuth: []
  1872. summary: 查询产能预售我的出价信息
  1873. tags:
  1874. - 产能预售
  1875. /CPTrade/QueryCPTradeOrderDetail:
  1876. get:
  1877. parameters:
  1878. - description: 预售商品ID
  1879. in: query
  1880. name: goodsid
  1881. type: integer
  1882. - description: 预售市场ID
  1883. in: query
  1884. name: marketid
  1885. type: integer
  1886. - description: 预售商品ID列表 - 格式:1,2,3
  1887. in: query
  1888. name: goodsids
  1889. type: string
  1890. produces:
  1891. - application/json
  1892. responses:
  1893. "200":
  1894. description: OK
  1895. schema:
  1896. $ref: '#/definitions/cptrade.QueryCPTradeOrderDetailRsq'
  1897. "500":
  1898. description: Internal Server Error
  1899. schema:
  1900. $ref: '#/definitions/app.Response'
  1901. security:
  1902. - ApiKeyAuth: []
  1903. summary: 查询产能预售委托单信息
  1904. tags:
  1905. - 产能预售
  1906. /CPTrade/QueryMyCPTradeGoods:
  1907. get:
  1908. parameters:
  1909. - description: 资金账户
  1910. in: query
  1911. name: accountid
  1912. required: true
  1913. type: integer
  1914. produces:
  1915. - application/json
  1916. responses:
  1917. "200":
  1918. description: OK
  1919. schema:
  1920. $ref: '#/definitions/cptrade.QueryMyCPTradeGoodsRsp'
  1921. "500":
  1922. description: Internal Server Error
  1923. schema:
  1924. $ref: '#/definitions/app.Response'
  1925. security:
  1926. - ApiKeyAuth: []
  1927. summary: 查询我的预售信息
  1928. tags:
  1929. - 产能预售
  1930. /CPTrade/QueryPositionCancel:
  1931. get:
  1932. parameters:
  1933. - description: 账户ID
  1934. in: query
  1935. name: userid
  1936. required: true
  1937. type: integer
  1938. - description: 注销ID
  1939. in: query
  1940. name: cancelid
  1941. type: integer
  1942. - description: 资金账户ID
  1943. in: query
  1944. name: accountid
  1945. type: integer
  1946. produces:
  1947. - application/json
  1948. responses:
  1949. "200":
  1950. description: OK
  1951. schema:
  1952. $ref: '#/definitions/cptrade.Cptradepositioncancel'
  1953. "500":
  1954. description: Internal Server Error
  1955. schema:
  1956. $ref: '#/definitions/app.Response'
  1957. security:
  1958. - ApiKeyAuth: []
  1959. summary: 查询远期订单注销申请信息
  1960. tags:
  1961. - 产能预售
  1962. /CPTrade/QueryPreasleApply:
  1963. get:
  1964. parameters:
  1965. - description: 账户ID
  1966. in: query
  1967. name: userid
  1968. required: true
  1969. type: integer
  1970. - description: 申请ID
  1971. in: query
  1972. name: applyid
  1973. type: integer
  1974. - description: 资金账户ID
  1975. in: query
  1976. name: accountid
  1977. type: integer
  1978. produces:
  1979. - application/json
  1980. responses:
  1981. "200":
  1982. description: OK
  1983. schema:
  1984. $ref: '#/definitions/cptrade.Cptradepresaleapply'
  1985. "500":
  1986. description: Internal Server Error
  1987. schema:
  1988. $ref: '#/definitions/app.Response'
  1989. security:
  1990. - ApiKeyAuth: []
  1991. summary: 查询产能预售申请信息
  1992. tags:
  1993. - 产能预售
  1994. /CPTrade/QueryPresaleGoodsEx:
  1995. get:
  1996. parameters:
  1997. - description: 预售商品ID
  1998. in: query
  1999. name: goodsid
  2000. type: integer
  2001. - description: 预售市场ID
  2002. in: query
  2003. name: marketid
  2004. type: integer
  2005. - description: 预售模式 - 1:一口价 2:大宗式竞拍
  2006. in: query
  2007. name: presalemode
  2008. type: integer
  2009. - description: 预售商品ID列表 - 格式:1,2,3
  2010. in: query
  2011. name: goodsids
  2012. type: string
  2013. - description: 预售商品代码
  2014. in: query
  2015. name: goodscode
  2016. type: string
  2017. produces:
  2018. - application/json
  2019. responses:
  2020. "200":
  2021. description: OK
  2022. schema:
  2023. $ref: '#/definitions/cptrade.QueryPresaleGoodsExRsp'
  2024. "500":
  2025. description: Internal Server Error
  2026. schema:
  2027. $ref: '#/definitions/app.Response'
  2028. security:
  2029. - ApiKeyAuth: []
  2030. summary: 查询产能预售商品扩展信息
  2031. tags:
  2032. - 产能预售
  2033. /CPTrade/QueryUserGoodsData:
  2034. get:
  2035. parameters:
  2036. - description: 资金账户ID
  2037. in: query
  2038. name: accountid
  2039. required: true
  2040. type: integer
  2041. produces:
  2042. - application/json
  2043. responses:
  2044. "200":
  2045. description: OK
  2046. schema:
  2047. $ref: '#/definitions/cptrade.Cptradeusergoodsdata'
  2048. "500":
  2049. description: Internal Server Error
  2050. schema:
  2051. $ref: '#/definitions/app.Response'
  2052. security:
  2053. - ApiKeyAuth: []
  2054. summary: 查询远期订单信息
  2055. tags:
  2056. - 产能预售
  2057. /Common/QueryTableDefine:
  2058. get:
  2059. parameters:
  2060. - description: 表key
  2061. in: query
  2062. name: TableKey
  2063. type: string
  2064. produces:
  2065. - application/json
  2066. responses:
  2067. "200":
  2068. description: OK
  2069. schema:
  2070. $ref: '#/definitions/models.Tablecolumnconfig'
  2071. "500":
  2072. description: Internal Server Error
  2073. schema:
  2074. $ref: '#/definitions/app.Response'
  2075. summary: 查询交易端列表头信息
  2076. tags:
  2077. - 通用服务
  2078. /Common/QueryTraderMenu:
  2079. get:
  2080. parameters:
  2081. - description: 登录账号
  2082. in: query
  2083. name: loginid
  2084. required: true
  2085. type: integer
  2086. produces:
  2087. - application/json
  2088. responses:
  2089. "200":
  2090. description: OK
  2091. schema:
  2092. $ref: '#/definitions/common.QueryTraderMenuRsp'
  2093. "500":
  2094. description: Internal Server Error
  2095. schema:
  2096. $ref: '#/definitions/app.Response'
  2097. summary: 查询交易端菜单
  2098. tags:
  2099. - 通用服务
  2100. /Delivery/QueryDeliveryRelation:
  2101. get:
  2102. parameters:
  2103. - description: 商品ID
  2104. in: query
  2105. name: goodsid
  2106. type: integer
  2107. - description: 品种ID
  2108. in: query
  2109. name: deliverygoodsid
  2110. type: integer
  2111. - description: 市场ID
  2112. in: query
  2113. name: marketid
  2114. type: integer
  2115. produces:
  2116. - application/json
  2117. responses:
  2118. "200":
  2119. description: OK
  2120. schema:
  2121. $ref: '#/definitions/delivery.QueryDeliveryRelationRsp'
  2122. "500":
  2123. description: Internal Server Error
  2124. schema:
  2125. $ref: '#/definitions/app.Response'
  2126. security:
  2127. - ApiKeyAuth: []
  2128. summary: 查询商品交割关系表
  2129. tags:
  2130. - 交割服务
  2131. /Erms2/QueryArbitrageStrategy:
  2132. get:
  2133. parameters:
  2134. - description: 账户ID
  2135. in: query
  2136. name: userid
  2137. required: true
  2138. type: integer
  2139. - description: 商品组ID(品种ID)
  2140. in: query
  2141. name: goodsgroupid
  2142. type: string
  2143. produces:
  2144. - application/json
  2145. responses:
  2146. "200":
  2147. description: OK
  2148. schema:
  2149. $ref: '#/definitions/erms2.QueryArbitrageStrategyRsp'
  2150. "500":
  2151. description: Internal Server Error
  2152. schema:
  2153. $ref: '#/definitions/app.Response'
  2154. security:
  2155. - ApiKeyAuth: []
  2156. summary: 查询期现套利策略表信息(指定资金账户、未结束的)
  2157. tags:
  2158. - 风险管理
  2159. /Erms2/QueryInnerTradeDetail:
  2160. get:
  2161. parameters:
  2162. - description: 资金账户
  2163. in: query
  2164. name: accountid
  2165. required: true
  2166. type: integer
  2167. produces:
  2168. - application/json
  2169. responses:
  2170. "200":
  2171. description: OK
  2172. schema:
  2173. $ref: '#/definitions/erms2.QueryInnerTradeDetailRsp'
  2174. "500":
  2175. description: Internal Server Error
  2176. schema:
  2177. $ref: '#/definitions/app.Response'
  2178. security:
  2179. - ApiKeyAuth: []
  2180. summary: 查询内部成交单信息
  2181. tags:
  2182. - 风险管理
  2183. /Erms2/QuerySpotContract:
  2184. get:
  2185. parameters:
  2186. - description: 策略申请ID
  2187. in: query
  2188. name: asapplyid
  2189. required: true
  2190. type: integer
  2191. - description: 现货合同ID
  2192. in: query
  2193. name: spotcontractid
  2194. type: integer
  2195. produces:
  2196. - application/json
  2197. responses:
  2198. "200":
  2199. description: OK
  2200. schema:
  2201. $ref: '#/definitions/erms2.QuerySpotContractRsp'
  2202. "500":
  2203. description: Internal Server Error
  2204. schema:
  2205. $ref: '#/definitions/app.Response'
  2206. security:
  2207. - ApiKeyAuth: []
  2208. summary: 查询现货合同表信息(指定策略ID、未结束的)
  2209. tags:
  2210. - 风险管理
  2211. /Order/QueryTradeDetail:
  2212. get:
  2213. parameters:
  2214. - description: 资金账户 - 格式:1,2,3
  2215. in: query
  2216. name: accountID
  2217. required: true
  2218. type: string
  2219. - description: 成交单号
  2220. in: query
  2221. name: tradeID
  2222. type: integer
  2223. - description: 委托单号
  2224. in: query
  2225. name: orderID
  2226. type: integer
  2227. - description: 交易模式 - 格式:1,2,3
  2228. in: query
  2229. name: tradeMode
  2230. type: string
  2231. - description: 委托单据类型
  2232. in: query
  2233. name: buildType
  2234. type: integer
  2235. - description: 成交类别 - 格式:1,2,3
  2236. in: query
  2237. name: tradeType
  2238. type: string
  2239. produces:
  2240. - application/json
  2241. responses:
  2242. "200":
  2243. description: OK
  2244. schema:
  2245. $ref: '#/definitions/order.QueryTradeDetailRsp'
  2246. "500":
  2247. description: Internal Server Error
  2248. schema:
  2249. $ref: '#/definitions/app.Response'
  2250. security:
  2251. - ApiKeyAuth: []
  2252. summary: 成交单查询(合约市场)
  2253. tags:
  2254. - 通用单据
  2255. /Order/QueryTradeOrderDetail:
  2256. get:
  2257. parameters:
  2258. - description: 资金账户 - 格式:1,2,3
  2259. in: query
  2260. name: accountID
  2261. required: true
  2262. type: string
  2263. - description: 交易模式 - 格式:1,2,3
  2264. in: query
  2265. name: tradeMode
  2266. type: string
  2267. - description: 委托状态 - 格式:1,2,3
  2268. in: query
  2269. name: orderStatus
  2270. type: string
  2271. - description: 委托单号
  2272. in: query
  2273. name: orderID
  2274. type: integer
  2275. produces:
  2276. - application/json
  2277. responses:
  2278. "200":
  2279. description: OK
  2280. schema:
  2281. $ref: '#/definitions/order.QueryTradeOrderDetailRsp'
  2282. "500":
  2283. description: Internal Server Error
  2284. schema:
  2285. $ref: '#/definitions/app.Response'
  2286. security:
  2287. - ApiKeyAuth: []
  2288. summary: 委托单查询请求(合约市场)
  2289. tags:
  2290. - 通用单据
  2291. /Order/QueryTradePosition:
  2292. get:
  2293. parameters:
  2294. - description: 资金账户 - 格式:1,2,3
  2295. in: query
  2296. name: accountID
  2297. required: true
  2298. type: string
  2299. - description: 交易模式 - 格式:1,2,3
  2300. in: query
  2301. name: tradeMode
  2302. type: string
  2303. produces:
  2304. - application/json
  2305. responses:
  2306. "200":
  2307. description: OK
  2308. schema:
  2309. $ref: '#/definitions/order.QueryTradePositionRsp'
  2310. "500":
  2311. description: Internal Server Error
  2312. schema:
  2313. $ref: '#/definitions/app.Response'
  2314. security:
  2315. - ApiKeyAuth: []
  2316. summary: 持仓汇总查询(合约市场)
  2317. tags:
  2318. - 通用单据
  2319. /SZDZ/QueryConvertLog:
  2320. get:
  2321. parameters:
  2322. - description: 资金账户 - 格式:1,2,3
  2323. in: query
  2324. name: accountID
  2325. required: true
  2326. type: string
  2327. - description: 开始时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss
  2328. in: query
  2329. name: startDate
  2330. type: string
  2331. - description: 结束时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss
  2332. in: query
  2333. name: endDate
  2334. type: string
  2335. produces:
  2336. - application/json
  2337. responses:
  2338. "200":
  2339. description: OK
  2340. schema:
  2341. $ref: '#/definitions/szdz.QueryConvertLogRsp'
  2342. "500":
  2343. description: Internal Server Error
  2344. schema:
  2345. $ref: '#/definitions/app.Response'
  2346. security:
  2347. - ApiKeyAuth: []
  2348. summary: 交易系统转换流水查询
  2349. tags:
  2350. - 定制【尚志大宗】
  2351. /SZDZ/QueryGoodsPickup:
  2352. get:
  2353. parameters:
  2354. - description: 资金账户 - 格式:1,2,3
  2355. in: query
  2356. name: accountID
  2357. required: true
  2358. type: string
  2359. - description: 提货状态 - 1:待发货 2:已发货 3:已收货
  2360. in: query
  2361. name: takeOrderStatus
  2362. type: integer
  2363. produces:
  2364. - application/json
  2365. responses:
  2366. "200":
  2367. description: OK
  2368. schema:
  2369. $ref: '#/definitions/szdz.QueryGoodsPickupRsp'
  2370. "500":
  2371. description: Internal Server Error
  2372. schema:
  2373. $ref: '#/definitions/app.Response'
  2374. security:
  2375. - ApiKeyAuth: []
  2376. summary: 商品提货单查询
  2377. tags:
  2378. - 定制【尚志大宗】
  2379. /SZDZ/QueryRecieptOrder:
  2380. get:
  2381. description: 说明:pagesize参数赋值不为0时表示需要分页;page参数从0开始计算
  2382. parameters:
  2383. - description: 页码
  2384. in: query
  2385. name: page
  2386. type: integer
  2387. - description: 每页条数
  2388. in: query
  2389. name: pagesize
  2390. type: integer
  2391. - description: 商品ID
  2392. in: query
  2393. name: goodsID
  2394. required: true
  2395. type: integer
  2396. - description: 所属账户名称
  2397. in: query
  2398. name: accountName
  2399. type: string
  2400. - description: 市场ID
  2401. in: query
  2402. name: marketID
  2403. type: integer
  2404. - description: 方向 - 0:买 1:卖
  2405. in: query
  2406. name: buyorsell
  2407. type: integer
  2408. produces:
  2409. - application/json
  2410. responses:
  2411. "200":
  2412. description: OK
  2413. schema:
  2414. $ref: '#/definitions/szdz.QueryRecieptOrderRsp'
  2415. "500":
  2416. description: Internal Server Error
  2417. schema:
  2418. $ref: '#/definitions/app.Response'
  2419. security:
  2420. - ApiKeyAuth: []
  2421. summary: 点选挂牌委托单据查询(摘牌大厅)
  2422. tags:
  2423. - 定制【尚志大宗】
  2424. /SZDZ/SearchWhite:
  2425. get:
  2426. parameters:
  2427. - description: 用户ID
  2428. in: query
  2429. name: userID
  2430. required: true
  2431. type: integer
  2432. produces:
  2433. - application/json
  2434. responses:
  2435. "200":
  2436. description: OK
  2437. schema:
  2438. $ref: '#/definitions/models.Szdz3searchwhitelist'
  2439. "500":
  2440. description: Internal Server Error
  2441. schema:
  2442. $ref: '#/definitions/app.Response'
  2443. security:
  2444. - ApiKeyAuth: []
  2445. summary: 搜索白名单
  2446. tags:
  2447. - 定制【尚志大宗】
  2448. /User/GetLoginID:
  2449. get:
  2450. parameters:
  2451. - description: 登录代码
  2452. in: query
  2453. name: username
  2454. required: true
  2455. type: string
  2456. produces:
  2457. - application/json
  2458. responses:
  2459. "200":
  2460. description: OK
  2461. schema:
  2462. $ref: '#/definitions/app.Response'
  2463. "500":
  2464. description: Internal Server Error
  2465. schema:
  2466. $ref: '#/definitions/app.Response'
  2467. summary: 获取登录ID
  2468. tags:
  2469. - 用户信息
  2470. /User/QueryUserReferNum:
  2471. get:
  2472. parameters:
  2473. - description: 用户ID
  2474. in: query
  2475. name: userID
  2476. required: true
  2477. type: string
  2478. produces:
  2479. - application/json
  2480. responses:
  2481. "200":
  2482. description: OK
  2483. schema:
  2484. $ref: '#/definitions/app.Response'
  2485. "500":
  2486. description: Internal Server Error
  2487. schema:
  2488. $ref: '#/definitions/app.Response'
  2489. summary: 获取用户邀请码
  2490. tags:
  2491. - 用户信息
  2492. /WRTrade/GetAllDeliveryGoods:
  2493. get:
  2494. produces:
  2495. - application/json
  2496. responses:
  2497. "200":
  2498. description: OK
  2499. schema:
  2500. $ref: '#/definitions/app.Response'
  2501. "500":
  2502. description: Internal Server Error
  2503. schema:
  2504. $ref: '#/definitions/app.Response'
  2505. security:
  2506. - ApiKeyAuth: []
  2507. summary: 获取带仓单分类的种类信息
  2508. tags:
  2509. - 仓单贸易
  2510. securityDefinitions:
  2511. ApiKeyAuth:
  2512. in: header
  2513. name: Authorization
  2514. type: apiKey
  2515. swagger: "2.0"