docs.go 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705
  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/QueryInnerTradeDetail": {
  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. "responses": {
  442. "200": {
  443. "description": "OK",
  444. "schema": {
  445. "$ref": "#/definitions/erms2.QueryInnerTradeDetailRsp"
  446. }
  447. },
  448. "500": {
  449. "description": "Internal Server Error",
  450. "schema": {
  451. "$ref": "#/definitions/app.Response"
  452. }
  453. }
  454. }
  455. }
  456. },
  457. "/WRTrade/GetAllDeliveryGoods": {
  458. "get": {
  459. "security": [
  460. {
  461. "ApiKeyAuth": []
  462. }
  463. ],
  464. "produces": [
  465. "application/json"
  466. ],
  467. "tags": [
  468. "仓单贸易"
  469. ],
  470. "summary": "获取带仓单分类的种类信息",
  471. "responses": {
  472. "200": {
  473. "description": "OK",
  474. "schema": {
  475. "$ref": "#/definitions/app.Response"
  476. }
  477. },
  478. "500": {
  479. "description": "Internal Server Error",
  480. "schema": {
  481. "$ref": "#/definitions/app.Response"
  482. }
  483. }
  484. }
  485. }
  486. }
  487. },
  488. "definitions": {
  489. "app.Response": {
  490. "type": "object",
  491. "properties": {
  492. "code": {
  493. "type": "integer"
  494. },
  495. "data": {
  496. "type": "object"
  497. },
  498. "msg": {
  499. "type": "string"
  500. }
  501. }
  502. },
  503. "cptrade.Cptradepositioncancel": {
  504. "type": "object",
  505. "required": [
  506. "cancelid"
  507. ],
  508. "properties": {
  509. "accountid": {
  510. "description": "申请人账户ID",
  511. "type": "integer"
  512. },
  513. "applystatus": {
  514. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  515. "type": "integer"
  516. },
  517. "applytime": {
  518. "description": "申请时间",
  519. "type": "string"
  520. },
  521. "cancelid": {
  522. "description": "注销ID(SEQ_CPTRADE_POSITIONCANCEL)",
  523. "type": "integer"
  524. },
  525. "cancelqty": {
  526. "description": "注销数量",
  527. "type": "integer"
  528. },
  529. "createtime": {
  530. "description": "创建时间",
  531. "type": "string"
  532. },
  533. "creatorid": {
  534. "description": "创建人ID",
  535. "type": "integer"
  536. },
  537. "creatorname": {
  538. "description": "创建人",
  539. "type": "string"
  540. },
  541. "goodscode": {
  542. "description": "订单商品代码",
  543. "type": "string"
  544. },
  545. "goodsid": {
  546. "description": "商品ID",
  547. "type": "integer"
  548. },
  549. "goodsname": {
  550. "description": "订单商品名称",
  551. "type": "string"
  552. },
  553. "goodunit": {
  554. "description": "报价单位",
  555. "type": "string"
  556. },
  557. "handlestatus": {
  558. "description": "处理状态",
  559. "type": "integer"
  560. },
  561. "marketid": {
  562. "description": "市场ID",
  563. "type": "integer"
  564. },
  565. "marketname": {
  566. "description": "市场名称",
  567. "type": "string"
  568. },
  569. "tradedate": {
  570. "description": "交易日(yyyyMMdd)",
  571. "type": "string"
  572. },
  573. "userid": {
  574. "description": "申请人ID",
  575. "type": "integer"
  576. }
  577. }
  578. },
  579. "cptrade.Cptradepresaleapply": {
  580. "type": "object",
  581. "required": [
  582. "applyid"
  583. ],
  584. "properties": {
  585. "accountid": {
  586. "description": "申请人账户ID",
  587. "type": "integer"
  588. },
  589. "applyid": {
  590. "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)",
  591. "type": "integer"
  592. },
  593. "applyremark": {
  594. "description": "申请备注",
  595. "type": "string"
  596. },
  597. "applystatus": {
  598. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  599. "type": "integer"
  600. },
  601. "applytime": {
  602. "description": "申请时间",
  603. "type": "string"
  604. },
  605. "attachmenturl": {
  606. "description": "附件地址",
  607. "type": "string"
  608. },
  609. "endtime": {
  610. "description": "预售结束时间",
  611. "type": "string"
  612. },
  613. "goodscode": {
  614. "description": "商品代码",
  615. "type": "string"
  616. },
  617. "goodsid": {
  618. "description": "商品ID",
  619. "type": "integer"
  620. },
  621. "goodsname": {
  622. "description": "商品名称",
  623. "type": "string"
  624. },
  625. "goodunit": {
  626. "description": "报价单位",
  627. "type": "string"
  628. },
  629. "handlestatus": {
  630. "description": "处理状态",
  631. "type": "integer"
  632. },
  633. "marketid": {
  634. "description": "预售市场ID",
  635. "type": "integer"
  636. },
  637. "marketname": {
  638. "description": "预售市场名称",
  639. "type": "string"
  640. },
  641. "presaleqty": {
  642. "description": "预售数量",
  643. "type": "integer"
  644. },
  645. "relatedgoodscode": {
  646. "description": "关联交易合约代码",
  647. "type": "string"
  648. },
  649. "relatedgoodsid": {
  650. "description": "关联交易合约ID",
  651. "type": "integer"
  652. },
  653. "relatedgoodsname": {
  654. "description": "关联交易合约名称",
  655. "type": "string"
  656. },
  657. "starttime": {
  658. "description": "预售开始时间",
  659. "type": "string"
  660. },
  661. "tradedate": {
  662. "description": "交易日(yyyyMMdd)",
  663. "type": "string"
  664. },
  665. "trademode": {
  666. "description": "交易模式 - 16:挂牌点选 21:大宗竞拍",
  667. "type": "integer"
  668. },
  669. "userid": {
  670. "description": "申请人ID",
  671. "type": "integer"
  672. }
  673. }
  674. },
  675. "cptrade.Cptradeusergoodsdata": {
  676. "type": "object",
  677. "required": [
  678. "accountid",
  679. "goodsid"
  680. ],
  681. "properties": {
  682. "EnabledQty": {
  683. "description": "可用量",
  684. "type": "integer"
  685. },
  686. "GoodsCode": {
  687. "description": "订单商品代码",
  688. "type": "string"
  689. },
  690. "GoodsName": {
  691. "description": "订单商品名称",
  692. "type": "string"
  693. },
  694. "WRStandardCode": {
  695. "description": "仓单标准代码",
  696. "type": "string"
  697. },
  698. "WRStandardName": {
  699. "description": "仓单标准名称",
  700. "type": "string"
  701. },
  702. "accountid": {
  703. "description": "账户ID",
  704. "type": "integer"
  705. },
  706. "cancelqty": {
  707. "description": "注销量",
  708. "type": "integer"
  709. },
  710. "curpresaleqty": {
  711. "description": "当前预售量",
  712. "type": "integer"
  713. },
  714. "deliveryqty": {
  715. "description": "交割量",
  716. "type": "integer"
  717. },
  718. "freezeamount": {
  719. "description": "冻结金额",
  720. "type": "number"
  721. },
  722. "goodsid": {
  723. "description": "商品ID",
  724. "type": "integer"
  725. },
  726. "goodunit": {
  727. "description": "报价单位",
  728. "type": "string"
  729. },
  730. "hasspotfreeze": {
  731. "description": "是否有现货冻结 - 0:否 1:有",
  732. "type": "integer"
  733. },
  734. "inqty": {
  735. "description": "转入量(总数量)",
  736. "type": "integer"
  737. },
  738. "marketid": {
  739. "description": "市场ID",
  740. "type": "integer"
  741. },
  742. "presaledamount": {
  743. "description": "已预售总金额",
  744. "type": "integer"
  745. },
  746. "presaledqty": {
  747. "description": "已预售量",
  748. "type": "integer"
  749. },
  750. "userid": {
  751. "description": "用户ID",
  752. "type": "integer"
  753. },
  754. "wrstandardid": {
  755. "description": "仓单标准ID",
  756. "type": "integer"
  757. }
  758. }
  759. },
  760. "cptrade.QueryCPTradeMyBidRsp": {
  761. "type": "object",
  762. "required": [
  763. "accountid",
  764. "goodsid",
  765. "marketid",
  766. "orderid",
  767. "orderqty",
  768. "ordertime",
  769. "tradeprice",
  770. "tradeqty"
  771. ],
  772. "properties": {
  773. "accountid": {
  774. "description": "账户ID[报价币种]",
  775. "type": "integer"
  776. },
  777. "goodsid": {
  778. "description": "商品ID",
  779. "type": "integer"
  780. },
  781. "goodunit": {
  782. "description": "报价单位",
  783. "type": "string"
  784. },
  785. "marketid": {
  786. "description": "市场ID",
  787. "type": "integer"
  788. },
  789. "orderid": {
  790. "description": "委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  791. "type": "integer"
  792. },
  793. "orderprice": {
  794. "description": "委托价格",
  795. "type": "number"
  796. },
  797. "orderqty": {
  798. "description": "委托数量",
  799. "type": "integer"
  800. },
  801. "ordertime": {
  802. "description": "委托时间",
  803. "type": "string"
  804. },
  805. "ordertotalprice": {
  806. "description": "货款金额(委托总价格=委托价格*委托数量*合约单位)",
  807. "type": "number"
  808. },
  809. "ordertotalweight": {
  810. "description": "竞拍总重量(委托总重量=委托数量*合约单位)",
  811. "type": "integer"
  812. },
  813. "totaltotalprice": {
  814. "description": "成交货款金额(成交总价格=成交价格*成交数量*合约单位)",
  815. "type": "number"
  816. },
  817. "tradeprice": {
  818. "description": "成交价格",
  819. "type": "number"
  820. },
  821. "tradeqty": {
  822. "description": "成交数量",
  823. "type": "integer"
  824. }
  825. }
  826. },
  827. "cptrade.QueryCPTradeOrderDetailRsq": {
  828. "type": "object",
  829. "required": [
  830. "accountid",
  831. "buildtype",
  832. "buyorsell",
  833. "goodsid",
  834. "marketid",
  835. "memberuserid",
  836. "operatetype",
  837. "orderqty",
  838. "ordertime",
  839. "pricemode",
  840. "strorderid",
  841. "tradedate",
  842. "validtype"
  843. ],
  844. "properties": {
  845. "accountid": {
  846. "description": "账户ID[报价币种]",
  847. "type": "integer"
  848. },
  849. "buildtype": {
  850. "description": "委托单据类型 - 1:建仓 2:平仓 3:先平后建",
  851. "type": "integer"
  852. },
  853. "buyorsell": {
  854. "description": "买卖 - 0:买 1:卖",
  855. "type": "integer"
  856. },
  857. "cancelorderid": {
  858. "description": "撤单单号(撤单时填写)",
  859. "type": "integer"
  860. },
  861. "cancelqty": {
  862. "description": "撤单数量",
  863. "type": "integer"
  864. },
  865. "clientordertime": {
  866. "description": "客户端委托时间",
  867. "type": "string"
  868. },
  869. "clientticket": {
  870. "description": "客户端流水号",
  871. "type": "string"
  872. },
  873. "clienttype": {
  874. "description": "客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)",
  875. "type": "integer"
  876. },
  877. "closeexchagechargevalue": {
  878. "description": "平仓交易所手续费设置值",
  879. "type": "number"
  880. },
  881. "closefeealgorithm": {
  882. "description": "平仓手续费收取方式 1:比率 2:固定",
  883. "type": "integer"
  884. },
  885. "closefreezecharge": {
  886. "description": "平仓冻结手续费(先建后平操作,需要记录)",
  887. "type": "number"
  888. },
  889. "closememberchargevalue": {
  890. "description": "平仓会员手续费设置值",
  891. "type": "number"
  892. },
  893. "closeqty": {
  894. "description": "平仓数量(先建后平操作 需要记录)",
  895. "type": "integer"
  896. },
  897. "closetradeqty": {
  898. "description": "平仓成交数量(先建后平操作,需要记录)",
  899. "type": "integer"
  900. },
  901. "closeunfreezecharge": {
  902. "description": "平仓解冻手续费(先建后平操作,需要记录)",
  903. "type": "number"
  904. },
  905. "delistingtype": {
  906. "description": "摘牌类型 - 1:价格最优 2:点选成交",
  907. "type": "integer"
  908. },
  909. "freezecharge": {
  910. "description": "冻结手续费",
  911. "type": "number"
  912. },
  913. "freezemargin": {
  914. "description": "冻结保证金(冻结交易金额)",
  915. "type": "number"
  916. },
  917. "gcaccountid": {
  918. "description": "账户ID[合约币种]",
  919. "type": "integer"
  920. },
  921. "goodsid": {
  922. "description": "商品ID",
  923. "type": "integer"
  924. },
  925. "isconfirmexercise": {
  926. "description": "是否确认行权- 0:否 1:是",
  927. "type": "integer"
  928. },
  929. "ispreexercise": {
  930. "description": "是否预申报- 0:否 1:是",
  931. "type": "integer"
  932. },
  933. "listingselecttype": {
  934. "description": "挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂",
  935. "type": "integer"
  936. },
  937. "marginalgorithm": {
  938. "description": "保证金收取方式 1:比率 2:固定",
  939. "type": "integer"
  940. },
  941. "marginvalue": {
  942. "description": "即市保证金设置值",
  943. "type": "number"
  944. },
  945. "marketid": {
  946. "description": "市场ID",
  947. "type": "integer"
  948. },
  949. "marketmaxsub": {
  950. "description": "市价最大偏移范围",
  951. "type": "number"
  952. },
  953. "memberuserid": {
  954. "description": "所属会员UserID",
  955. "type": "integer"
  956. },
  957. "openexchagechargevalue": {
  958. "description": "建仓交易所手续费设置值",
  959. "type": "number"
  960. },
  961. "openfeealgorithm": {
  962. "description": "建仓手续费收取方式 1:比率 2:固定",
  963. "type": "integer"
  964. },
  965. "openfreezecharge": {
  966. "description": "开仓冻结手续费(先建后平操作,需要记录)",
  967. "type": "number"
  968. },
  969. "openmemberchargevalue": {
  970. "description": "建仓会员手续费设置值",
  971. "type": "number"
  972. },
  973. "openqty": {
  974. "description": "开仓数量(先建后平操作,需要记录)",
  975. "type": "integer"
  976. },
  977. "opentradeqty": {
  978. "description": "开仓成交数量(先建后平操作,需要记录)",
  979. "type": "integer"
  980. },
  981. "openunfreezecharge": {
  982. "description": "开仓解冻手续费(先建后平操作,需要记录)",
  983. "type": "number"
  984. },
  985. "operatetype": {
  986. "description": "操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让",
  987. "type": "integer"
  988. },
  989. "operatorid": {
  990. "description": "登录账号(LoginID)",
  991. "type": "integer"
  992. },
  993. "optiontype": {
  994. "description": "期权类型 - 1:认购(看涨) 2:认沽(看跌)",
  995. "type": "integer"
  996. },
  997. "orderprice": {
  998. "description": "委托价格",
  999. "type": "number"
  1000. },
  1001. "orderqty": {
  1002. "description": "委托数量",
  1003. "type": "integer"
  1004. },
  1005. "ordersrc": {
  1006. "description": "委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发",
  1007. "type": "integer"
  1008. },
  1009. "orderstatus": {
  1010. "description": "委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)",
  1011. "type": "integer"
  1012. },
  1013. "ordertime": {
  1014. "description": "委托时间",
  1015. "type": "string"
  1016. },
  1017. "preexerciseprice": {
  1018. "description": "预申报价格",
  1019. "type": "number"
  1020. },
  1021. "premium": {
  1022. "description": "权利金",
  1023. "type": "number"
  1024. },
  1025. "preorderid": {
  1026. "description": "关联预埋单号(止盈止损单时填写)",
  1027. "type": "integer"
  1028. },
  1029. "pricemode": {
  1030. "description": "取价方式 - 1:市价 2: 限价",
  1031. "type": "integer"
  1032. },
  1033. "quoteid": {
  1034. "description": "报价单ID",
  1035. "type": "integer"
  1036. },
  1037. "relatedid": {
  1038. "description": "关联单号(交割单)",
  1039. "type": "integer"
  1040. },
  1041. "retcode": {
  1042. "description": "错误代码",
  1043. "type": "integer"
  1044. },
  1045. "sessionid": {
  1046. "description": "会话ID",
  1047. "type": "integer"
  1048. },
  1049. "strorderid": {
  1050. "description": "委托单号",
  1051. "type": "string"
  1052. },
  1053. "tradedate": {
  1054. "description": "交易日(yyyyMMdd)",
  1055. "type": "string"
  1056. },
  1057. "tradeproperty": {
  1058. "description": "交易属性",
  1059. "type": "integer"
  1060. },
  1061. "tradeqty": {
  1062. "description": "成交数量",
  1063. "type": "integer"
  1064. },
  1065. "unfreezecharge": {
  1066. "description": "解冻手续费",
  1067. "type": "number"
  1068. },
  1069. "unfreezemargin": {
  1070. "description": "解冻保证金",
  1071. "type": "number"
  1072. },
  1073. "updatetime": {
  1074. "description": "更新时间",
  1075. "type": "string"
  1076. },
  1077. "uuid": {
  1078. "description": "发起端唯一id",
  1079. "type": "string"
  1080. },
  1081. "validtime": {
  1082. "description": "有效期限",
  1083. "type": "string"
  1084. },
  1085. "validtype": {
  1086. "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效",
  1087. "type": "integer"
  1088. },
  1089. "volumetype": {
  1090. "description": "当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量",
  1091. "type": "integer"
  1092. }
  1093. }
  1094. },
  1095. "cptrade.QueryMyCPTradeGoodsRsp": {
  1096. "type": "object",
  1097. "required": [
  1098. "goodscode",
  1099. "goodsid",
  1100. "goodsname",
  1101. "marketid",
  1102. "relatedgoodscode",
  1103. "relatedgoodsname"
  1104. ],
  1105. "properties": {
  1106. "accountid": {
  1107. "description": "卖方账户ID",
  1108. "type": "integer"
  1109. },
  1110. "agreeunit": {
  1111. "description": "合约单位",
  1112. "type": "number"
  1113. },
  1114. "applyid": {
  1115. "description": "关联申请ID",
  1116. "type": "integer"
  1117. },
  1118. "attachmenturl": {
  1119. "description": "附件地址",
  1120. "type": "string"
  1121. },
  1122. "createtime": {
  1123. "description": "创建时间",
  1124. "type": "string"
  1125. },
  1126. "currencyid": {
  1127. "description": "报价货币ID",
  1128. "type": "integer"
  1129. },
  1130. "decimalplace": {
  1131. "description": "报价小数位",
  1132. "type": "integer"
  1133. },
  1134. "endtime": {
  1135. "description": "预售结束时间",
  1136. "type": "string"
  1137. },
  1138. "floorprice": {
  1139. "description": "底价[大宗式竞拍]",
  1140. "type": "number"
  1141. },
  1142. "goodscode": {
  1143. "description": "商品代码(预售)",
  1144. "type": "string"
  1145. },
  1146. "goodsdetail": {
  1147. "description": "详情[大宗]",
  1148. "type": "string"
  1149. },
  1150. "goodsid": {
  1151. "description": "商品ID(自增ID SEQ_GOODS)",
  1152. "type": "integer"
  1153. },
  1154. "goodsname": {
  1155. "description": "商品名称(预售)",
  1156. "type": "string"
  1157. },
  1158. "goodunit": {
  1159. "description": "报价单位",
  1160. "type": "string"
  1161. },
  1162. "goodunitid": {
  1163. "description": "报价单位ID",
  1164. "type": "integer"
  1165. },
  1166. "marketid": {
  1167. "description": "所属市场ID",
  1168. "type": "integer"
  1169. },
  1170. "marketname": {
  1171. "description": "预售市场名称",
  1172. "type": "string"
  1173. },
  1174. "presaledamount": {
  1175. "description": "已预售总金额(预售结束时更新)",
  1176. "type": "number"
  1177. },
  1178. "presaledqty": {
  1179. "description": "已预售量(预售结束时更新)",
  1180. "type": "integer"
  1181. },
  1182. "presalemode": {
  1183. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1184. "type": "integer"
  1185. },
  1186. "presaleqty": {
  1187. "description": "预售数量",
  1188. "type": "integer"
  1189. },
  1190. "refprice": {
  1191. "description": "参考价格[一口价]",
  1192. "type": "number"
  1193. },
  1194. "relatedgoodscode": {
  1195. "description": "商品代码(订单)",
  1196. "type": "string"
  1197. },
  1198. "relatedgoodsid": {
  1199. "description": "关联交易合约ID",
  1200. "type": "integer"
  1201. },
  1202. "relatedgoodsname": {
  1203. "description": "商品名称(订单)",
  1204. "type": "string"
  1205. },
  1206. "relatedmarketid": {
  1207. "description": "关联交易合约市场ID",
  1208. "type": "integer"
  1209. },
  1210. "sellstatus": {
  1211. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1212. "type": "integer"
  1213. },
  1214. "startprice": {
  1215. "description": "起拍价[大宗式竞拍]",
  1216. "type": "number"
  1217. },
  1218. "starttime": {
  1219. "description": "预售开始时间",
  1220. "type": "string"
  1221. },
  1222. "tradedate": {
  1223. "description": "交易日(yyyyMMdd)",
  1224. "type": "string"
  1225. },
  1226. "tradeprice": {
  1227. "description": "成交价[大宗]",
  1228. "type": "number"
  1229. },
  1230. "userid": {
  1231. "description": "卖方用户ID",
  1232. "type": "integer"
  1233. }
  1234. }
  1235. },
  1236. "cptrade.QueryPresaleGoodsExRsp": {
  1237. "type": "object",
  1238. "required": [
  1239. "goodsid"
  1240. ],
  1241. "properties": {
  1242. "attachmenturl": {
  1243. "description": "附件地址",
  1244. "type": "string"
  1245. },
  1246. "createtime": {
  1247. "description": "创建时间",
  1248. "type": "string"
  1249. },
  1250. "endtime": {
  1251. "description": "预售结束时间",
  1252. "type": "string"
  1253. },
  1254. "floorprice": {
  1255. "description": "底价[大宗式竞拍]",
  1256. "type": "number"
  1257. },
  1258. "goodsdetail": {
  1259. "description": "详情[大宗]",
  1260. "type": "string"
  1261. },
  1262. "goodsid": {
  1263. "description": "商品ID(预售)",
  1264. "type": "integer"
  1265. },
  1266. "goodunit": {
  1267. "description": "报价单位",
  1268. "type": "string"
  1269. },
  1270. "marketid": {
  1271. "description": "预售市场ID - 根据预售模式选择市场",
  1272. "type": "integer"
  1273. },
  1274. "presaledamount": {
  1275. "description": "已预售总金额(预售结束时更新)",
  1276. "type": "number"
  1277. },
  1278. "presaledqty": {
  1279. "description": "已预售量(预售结束时更新)",
  1280. "type": "integer"
  1281. },
  1282. "presalemode": {
  1283. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1284. "type": "integer"
  1285. },
  1286. "presaleqty": {
  1287. "description": "预售数量",
  1288. "type": "integer"
  1289. },
  1290. "refprice": {
  1291. "description": "参考价格[一口价]",
  1292. "type": "number"
  1293. },
  1294. "relatedgoodsid": {
  1295. "description": "关联交易合约ID",
  1296. "type": "integer"
  1297. },
  1298. "relatedmarketid": {
  1299. "description": "关联交易合约市场ID",
  1300. "type": "integer"
  1301. },
  1302. "sellstatus": {
  1303. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1304. "type": "integer"
  1305. },
  1306. "startprice": {
  1307. "description": "起拍价[大宗式竞拍]",
  1308. "type": "number"
  1309. },
  1310. "starttime": {
  1311. "description": "预售开始时间",
  1312. "type": "string"
  1313. },
  1314. "tradedate": {
  1315. "description": "交易日(yyyyMMdd)",
  1316. "type": "string"
  1317. },
  1318. "tradeprice": {
  1319. "description": "成交价[大宗]",
  1320. "type": "number"
  1321. }
  1322. }
  1323. },
  1324. "delivery.QueryDeliveryRelationRsp": {
  1325. "type": "object",
  1326. "required": [
  1327. "begindate",
  1328. "enddate",
  1329. "goodsid",
  1330. "mindeliveryqty",
  1331. "xdeliveryratio"
  1332. ],
  1333. "properties": {
  1334. "begindate": {
  1335. "description": "起始日期(yyyyMMdd)",
  1336. "type": "string"
  1337. },
  1338. "buytemplateid": {
  1339. "description": "买履约计划模板ID",
  1340. "type": "integer"
  1341. },
  1342. "deliverygoodscode": {
  1343. "description": "品种代码",
  1344. "type": "string"
  1345. },
  1346. "deliverygoodsid": {
  1347. "description": "交割商品",
  1348. "type": "integer"
  1349. },
  1350. "deliverygoodsname": {
  1351. "description": "品种名称",
  1352. "type": "string"
  1353. },
  1354. "deliverymode": {
  1355. "description": "交割方式 - 1:点选式 2:申报式",
  1356. "type": "integer"
  1357. },
  1358. "deliverypricerule": {
  1359. "description": "交割价规则- 1:行情价 2:建仓价",
  1360. "type": "integer"
  1361. },
  1362. "deliverytype": {
  1363. "description": "交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割",
  1364. "type": "integer"
  1365. },
  1366. "enddate": {
  1367. "description": "结束日期(yyyyMMdd)",
  1368. "type": "string"
  1369. },
  1370. "goodscode": {
  1371. "description": "商品代码",
  1372. "type": "string"
  1373. },
  1374. "goodsid": {
  1375. "description": "交易合约ID",
  1376. "type": "integer"
  1377. },
  1378. "goodsname": {
  1379. "description": "商品名称",
  1380. "type": "string"
  1381. },
  1382. "marketid": {
  1383. "description": "市场ID",
  1384. "type": "integer"
  1385. },
  1386. "mindeliveryqty": {
  1387. "description": "最小交割系数(K)",
  1388. "type": "integer"
  1389. },
  1390. "p2deliveryprice": {
  1391. "description": "P2合约价格(商品价时填写0,固定值时填写固定值)",
  1392. "type": "number"
  1393. },
  1394. "p2deliveryratio": {
  1395. "description": "P2合约系数(p)",
  1396. "type": "integer"
  1397. },
  1398. "p2goodsid": {
  1399. "description": "P2合约ID",
  1400. "type": "integer"
  1401. },
  1402. "p2pricemode": {
  1403. "description": "P2合约价格方式 - 1:商品价 2:固定值",
  1404. "type": "integer"
  1405. },
  1406. "pdeliveryprice": {
  1407. "description": "P合约价格(商品价时填写0,固定值时填写固定值)",
  1408. "type": "number"
  1409. },
  1410. "pdeliveryratio": {
  1411. "description": "P合约系数(n)",
  1412. "type": "integer"
  1413. },
  1414. "pgoodsid": {
  1415. "description": "P合约ID",
  1416. "type": "integer"
  1417. },
  1418. "ppricemode": {
  1419. "description": "P合约价格方式 - 1:商品价 2:固定值",
  1420. "type": "integer"
  1421. },
  1422. "rratio": {
  1423. "description": "兑换系数(R)",
  1424. "type": "integer"
  1425. },
  1426. "rratio1": {
  1427. "description": "兑换系数(交易合约)(R1)",
  1428. "type": "integer"
  1429. },
  1430. "rratio2": {
  1431. "description": "兑换系数(仓单标准)(R2)",
  1432. "type": "integer"
  1433. },
  1434. "selltemplateid": {
  1435. "description": "卖履约计划模板ID",
  1436. "type": "integer"
  1437. },
  1438. "wrstandardid": {
  1439. "description": "仓单标准ID",
  1440. "type": "integer"
  1441. },
  1442. "xdeliveryratio": {
  1443. "description": "交易合约系数(m)",
  1444. "type": "integer"
  1445. }
  1446. }
  1447. },
  1448. "erms2.QueryInnerTradeDetailRsp": {
  1449. "type": "object",
  1450. "required": [
  1451. "asapplyid",
  1452. "buyorsell",
  1453. "tradeid"
  1454. ],
  1455. "properties": {
  1456. "accountcurrencyid": {
  1457. "description": "账户币种ID",
  1458. "type": "integer"
  1459. },
  1460. "accountid": {
  1461. "description": "账号ID",
  1462. "type": "integer"
  1463. },
  1464. "asapplyid": {
  1465. "description": "策略申请ID",
  1466. "type": "integer"
  1467. },
  1468. "ascontractno": {
  1469. "description": "策略编号",
  1470. "type": "string"
  1471. },
  1472. "buyorsell": {
  1473. "description": "方向 - 0:买 1:卖",
  1474. "type": "integer"
  1475. },
  1476. "channelbuildtype": {
  1477. "description": "委托单据类型 0:无 1:建仓 2:平仓",
  1478. "type": "integer"
  1479. },
  1480. "closecharge": {
  1481. "description": "平仓手续费(账户)",
  1482. "type": "number"
  1483. },
  1484. "closecharge2": {
  1485. "description": "平仓手续费(商品)",
  1486. "type": "number"
  1487. },
  1488. "closechargevalue": {
  1489. "description": "平仓手续费设置值",
  1490. "type": "number"
  1491. },
  1492. "closefeealgorithm": {
  1493. "description": "平仓手续费收取方式 1:比率 2:固定",
  1494. "type": "integer"
  1495. },
  1496. "closepl": {
  1497. "description": "平仓盈亏(账户)",
  1498. "type": "number"
  1499. },
  1500. "closepl2": {
  1501. "description": "平仓盈亏(商品)",
  1502. "type": "number"
  1503. },
  1504. "closepl3": {
  1505. "description": "平仓盈亏(账户)(逐笔)",
  1506. "type": "number"
  1507. },
  1508. "closepl4": {
  1509. "description": "平仓盈亏(商品)(逐笔)",
  1510. "type": "number"
  1511. },
  1512. "closeqty": {
  1513. "description": "平仓数量(先建后平操作 需要记录)",
  1514. "type": "integer"
  1515. },
  1516. "closetype": {
  1517. "description": "平仓方式 - 0:无 1:平今 2:平昨",
  1518. "type": "integer"
  1519. },
  1520. "curexchangerate": {
  1521. "description": "当前汇率",
  1522. "type": "number"
  1523. },
  1524. "detailtype": {
  1525. "description": "明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整",
  1526. "type": "integer"
  1527. },
  1528. "extenalclosecharge": {
  1529. "description": "平仓手续费(商品)(外部)",
  1530. "type": "number"
  1531. },
  1532. "extenalclosechargevalue": {
  1533. "description": "平仓手续费设置值",
  1534. "type": "number"
  1535. },
  1536. "extenalclosefeealgorithm": {
  1537. "description": "平仓手续费收取方式 1:比率 2:固定",
  1538. "type": "integer"
  1539. },
  1540. "extenalopencharge": {
  1541. "description": "建仓手续费(商品)(外部)",
  1542. "type": "number"
  1543. },
  1544. "extenalopenchargevalue": {
  1545. "description": "建仓手续费设置值",
  1546. "type": "number"
  1547. },
  1548. "extenalopenfeealgorithm": {
  1549. "description": "建仓手续费收取方式(外部配置) 1:比率 2:固定",
  1550. "type": "integer"
  1551. },
  1552. "goodscurrencyid": {
  1553. "description": "商品币种ID",
  1554. "type": "integer"
  1555. },
  1556. "goodsid": {
  1557. "description": "商品ID",
  1558. "type": "integer"
  1559. },
  1560. "hedgeflag": {
  1561. "description": "投机套保标志 - 0:无 1:投机 2:套保 3:套利",
  1562. "type": "integer"
  1563. },
  1564. "isreckoned": {
  1565. "description": "是否结算 - 0:未结算 1:已结算",
  1566. "type": "integer"
  1567. },
  1568. "marketid": {
  1569. "description": "市场ID",
  1570. "type": "integer"
  1571. },
  1572. "opencharge": {
  1573. "description": "建仓手续费(账户)",
  1574. "type": "number"
  1575. },
  1576. "opencharge2": {
  1577. "description": "建仓手续费(商品)",
  1578. "type": "number"
  1579. },
  1580. "openchargevalue": {
  1581. "description": "建仓手续费设置值",
  1582. "type": "number"
  1583. },
  1584. "openfeealgorithm": {
  1585. "description": "建仓手续费收取方式 1:比率 2:固定",
  1586. "type": "integer"
  1587. },
  1588. "openqty": {
  1589. "description": "开仓数量(先建后平操作 需要记录)",
  1590. "type": "integer"
  1591. },
  1592. "orderid": {
  1593. "description": "委托单号",
  1594. "type": "integer"
  1595. },
  1596. "parentaccountid": {
  1597. "description": "所属母账户",
  1598. "type": "integer"
  1599. },
  1600. "relatedouttradeid": {
  1601. "description": "关联外部成交单ID",
  1602. "type": "integer"
  1603. },
  1604. "spotcontractid": {
  1605. "description": "现货合同ID [1:套利对冲 为合同ID,2:期货换月\\3:期货仓位调整时为0]",
  1606. "type": "integer"
  1607. },
  1608. "spotcontractno": {
  1609. "description": "现货合同编号",
  1610. "type": "string"
  1611. },
  1612. "status": {
  1613. "description": "处理状态 - 1:待处理 2:已处理 3:处理失败",
  1614. "type": "integer"
  1615. },
  1616. "tradeamount": {
  1617. "description": "成交金额(账户)",
  1618. "type": "number"
  1619. },
  1620. "tradedate": {
  1621. "description": "交易日(yyyyMMdd)",
  1622. "type": "string"
  1623. },
  1624. "tradeid": {
  1625. "description": "成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  1626. "type": "integer"
  1627. },
  1628. "tradeprice": {
  1629. "description": "成交价格",
  1630. "type": "number"
  1631. },
  1632. "tradeqty": {
  1633. "description": "成交数量",
  1634. "type": "integer"
  1635. },
  1636. "tradetime": {
  1637. "description": "成交时间",
  1638. "type": "string"
  1639. },
  1640. "tradetype": {
  1641. "description": "成交类别 - 1:正常委托成交 2:风控斩仓成交 3:修正持仓成交 4:管理端斩仓成交",
  1642. "type": "integer"
  1643. }
  1644. }
  1645. }
  1646. },
  1647. "securityDefinitions": {
  1648. "ApiKeyAuth": {
  1649. "type": "apiKey",
  1650. "name": "Authorization",
  1651. "in": "header"
  1652. }
  1653. }
  1654. }`
  1655. type swaggerInfo struct {
  1656. Version string
  1657. Host string
  1658. BasePath string
  1659. Schemes []string
  1660. Title string
  1661. Description string
  1662. }
  1663. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1664. var SwaggerInfo = swaggerInfo{
  1665. Version: "1.0",
  1666. Host: "",
  1667. BasePath: "/api",
  1668. Schemes: []string{},
  1669. Title: "MTP2.0 查询服务 API",
  1670. Description: "新的查询服务,替代原通用查询服务。",
  1671. }
  1672. type s struct{}
  1673. func (s *s) ReadDoc() string {
  1674. sInfo := SwaggerInfo
  1675. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  1676. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  1677. "marshal": func(v interface{}) string {
  1678. a, _ := json.Marshal(v)
  1679. return string(a)
  1680. },
  1681. }).Parse(doc)
  1682. if err != nil {
  1683. return doc
  1684. }
  1685. var tpl bytes.Buffer
  1686. if err := t.Execute(&tpl, sInfo); err != nil {
  1687. return doc
  1688. }
  1689. return tpl.String()
  1690. }
  1691. func init() {
  1692. swag.Register(swag.Name, &s{})
  1693. }