swagger.yaml 69 KB

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