docs.go 52 KB

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