docs.go 73 KB

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