swagger.json 72 KB

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