docs.go 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296
  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. "/Common/QueryTraderMenu": {
  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": "登录账号",
  386. "name": "loginid",
  387. "in": "query",
  388. "required": true
  389. }
  390. ],
  391. "responses": {
  392. "200": {
  393. "description": "OK",
  394. "schema": {
  395. "$ref": "#/definitions/common.QueryTraderMenuRsp"
  396. }
  397. },
  398. "500": {
  399. "description": "Internal Server Error",
  400. "schema": {
  401. "$ref": "#/definitions/app.Response"
  402. }
  403. }
  404. }
  405. }
  406. },
  407. "/Delivery/QueryDeliveryRelation": {
  408. "get": {
  409. "security": [
  410. {
  411. "ApiKeyAuth": []
  412. }
  413. ],
  414. "produces": [
  415. "application/json"
  416. ],
  417. "tags": [
  418. "交割服务"
  419. ],
  420. "summary": "查询商品交割关系表",
  421. "parameters": [
  422. {
  423. "type": "integer",
  424. "description": "商品ID",
  425. "name": "goodsid",
  426. "in": "query"
  427. },
  428. {
  429. "type": "integer",
  430. "description": "品种ID",
  431. "name": "deliverygoodsid",
  432. "in": "query"
  433. },
  434. {
  435. "type": "integer",
  436. "description": "市场ID",
  437. "name": "marketid",
  438. "in": "query"
  439. }
  440. ],
  441. "responses": {
  442. "200": {
  443. "description": "OK",
  444. "schema": {
  445. "$ref": "#/definitions/delivery.QueryDeliveryRelationRsp"
  446. }
  447. },
  448. "500": {
  449. "description": "Internal Server Error",
  450. "schema": {
  451. "$ref": "#/definitions/app.Response"
  452. }
  453. }
  454. }
  455. }
  456. },
  457. "/Erms2/QueryArbitrageStrategy": {
  458. "get": {
  459. "security": [
  460. {
  461. "ApiKeyAuth": []
  462. }
  463. ],
  464. "produces": [
  465. "application/json"
  466. ],
  467. "tags": [
  468. "风险管理"
  469. ],
  470. "summary": "查询期现套利策略表信息(指定资金账户、未结束的)",
  471. "parameters": [
  472. {
  473. "type": "integer",
  474. "description": "账户ID",
  475. "name": "userid",
  476. "in": "query",
  477. "required": true
  478. },
  479. {
  480. "type": "string",
  481. "description": "商品组ID(品种ID)",
  482. "name": "goodsgroupid",
  483. "in": "query"
  484. }
  485. ],
  486. "responses": {
  487. "200": {
  488. "description": "OK",
  489. "schema": {
  490. "$ref": "#/definitions/erms2.QueryArbitrageStrategyRsp"
  491. }
  492. },
  493. "500": {
  494. "description": "Internal Server Error",
  495. "schema": {
  496. "$ref": "#/definitions/app.Response"
  497. }
  498. }
  499. }
  500. }
  501. },
  502. "/Erms2/QueryInnerTradeDetail": {
  503. "get": {
  504. "security": [
  505. {
  506. "ApiKeyAuth": []
  507. }
  508. ],
  509. "produces": [
  510. "application/json"
  511. ],
  512. "tags": [
  513. "风险管理"
  514. ],
  515. "summary": "查询内部成交单信息",
  516. "parameters": [
  517. {
  518. "type": "integer",
  519. "description": "资金账户",
  520. "name": "accountid",
  521. "in": "query",
  522. "required": true
  523. }
  524. ],
  525. "responses": {
  526. "200": {
  527. "description": "OK",
  528. "schema": {
  529. "$ref": "#/definitions/erms2.QueryInnerTradeDetailRsp"
  530. }
  531. },
  532. "500": {
  533. "description": "Internal Server Error",
  534. "schema": {
  535. "$ref": "#/definitions/app.Response"
  536. }
  537. }
  538. }
  539. }
  540. },
  541. "/Erms2/QuerySpotContract": {
  542. "get": {
  543. "security": [
  544. {
  545. "ApiKeyAuth": []
  546. }
  547. ],
  548. "produces": [
  549. "application/json"
  550. ],
  551. "tags": [
  552. "风险管理"
  553. ],
  554. "summary": "查询现货合同表信息(指定策略ID、未结束的)",
  555. "parameters": [
  556. {
  557. "type": "integer",
  558. "description": "策略申请ID",
  559. "name": "asapplyid",
  560. "in": "query",
  561. "required": true
  562. },
  563. {
  564. "type": "integer",
  565. "description": "现货合同ID",
  566. "name": "spotcontractid",
  567. "in": "query"
  568. }
  569. ],
  570. "responses": {
  571. "200": {
  572. "description": "OK",
  573. "schema": {
  574. "$ref": "#/definitions/erms2.QuerySpotContractRsp"
  575. }
  576. },
  577. "500": {
  578. "description": "Internal Server Error",
  579. "schema": {
  580. "$ref": "#/definitions/app.Response"
  581. }
  582. }
  583. }
  584. }
  585. },
  586. "/Login/GetLoginID": {
  587. "get": {
  588. "produces": [
  589. "application/json"
  590. ],
  591. "tags": [
  592. "登录"
  593. ],
  594. "summary": "获取登录ID",
  595. "parameters": [
  596. {
  597. "type": "string",
  598. "description": "登录代码",
  599. "name": "username",
  600. "in": "query",
  601. "required": true
  602. }
  603. ],
  604. "responses": {
  605. "200": {
  606. "description": "OK",
  607. "schema": {
  608. "$ref": "#/definitions/app.Response"
  609. }
  610. },
  611. "500": {
  612. "description": "Internal Server Error",
  613. "schema": {
  614. "$ref": "#/definitions/app.Response"
  615. }
  616. }
  617. }
  618. }
  619. },
  620. "/WRTrade/GetAllDeliveryGoods": {
  621. "get": {
  622. "security": [
  623. {
  624. "ApiKeyAuth": []
  625. }
  626. ],
  627. "produces": [
  628. "application/json"
  629. ],
  630. "tags": [
  631. "仓单贸易"
  632. ],
  633. "summary": "获取带仓单分类的种类信息",
  634. "responses": {
  635. "200": {
  636. "description": "OK",
  637. "schema": {
  638. "$ref": "#/definitions/app.Response"
  639. }
  640. },
  641. "500": {
  642. "description": "Internal Server Error",
  643. "schema": {
  644. "$ref": "#/definitions/app.Response"
  645. }
  646. }
  647. }
  648. }
  649. }
  650. },
  651. "definitions": {
  652. "app.Response": {
  653. "type": "object",
  654. "properties": {
  655. "code": {
  656. "type": "integer"
  657. },
  658. "data": {
  659. "type": "object"
  660. },
  661. "msg": {
  662. "type": "string"
  663. }
  664. }
  665. },
  666. "common.OperationPrimaryMenu": {
  667. "type": "object",
  668. "properties": {
  669. "Children": {
  670. "description": "二级功能菜单",
  671. "type": "array",
  672. "items": {
  673. "$ref": "#/definitions/common.OperationSecondaryMenu"
  674. }
  675. },
  676. "Key": {
  677. "description": "菜单KEY",
  678. "type": "string"
  679. },
  680. "Label": {
  681. "description": "菜单标题",
  682. "type": "string"
  683. }
  684. }
  685. },
  686. "common.OperationSecondaryMenu": {
  687. "type": "object",
  688. "properties": {
  689. "Key": {
  690. "description": "菜单KEY",
  691. "type": "string"
  692. },
  693. "Label": {
  694. "description": "菜单标题",
  695. "type": "string"
  696. },
  697. "TabList": {
  698. "description": "三级功能菜单",
  699. "type": "array",
  700. "items": {
  701. "$ref": "#/definitions/common.OperationTabMenu"
  702. }
  703. }
  704. }
  705. },
  706. "common.OperationTabMenu": {
  707. "type": "object",
  708. "properties": {
  709. "Key": {
  710. "description": "菜单KEY",
  711. "type": "string"
  712. },
  713. "Label": {
  714. "description": "菜单标题",
  715. "type": "string"
  716. }
  717. }
  718. },
  719. "common.QueryTraderMenuRsp": {
  720. "type": "object",
  721. "properties": {
  722. "OperationMenu": {
  723. "description": "功能菜单",
  724. "type": "array",
  725. "items": {
  726. "$ref": "#/definitions/common.OperationPrimaryMenu"
  727. }
  728. },
  729. "QuoteMenu": {
  730. "description": "报价牌分类菜单",
  731. "type": "array",
  732. "items": {
  733. "$ref": "#/definitions/common.QuotePrimaryMenu"
  734. }
  735. }
  736. }
  737. },
  738. "common.QuotePrimaryMenu": {
  739. "type": "object",
  740. "properties": {
  741. "Index": {
  742. "description": "序号",
  743. "type": "integer"
  744. },
  745. "Key": {
  746. "description": "键名",
  747. "type": "string"
  748. },
  749. "Name": {
  750. "description": "菜单名称",
  751. "type": "string"
  752. },
  753. "SubMenus": {
  754. "description": "子菜单",
  755. "type": "array",
  756. "items": {
  757. "$ref": "#/definitions/common.QuoteSecondaryMenu"
  758. }
  759. },
  760. "SubTitleType": {
  761. "description": "子菜单标题模式:0-市场名称;1-外部交易所名称",
  762. "type": "integer"
  763. },
  764. "TradeModes": {
  765. "description": "包含市场交易类型",
  766. "type": "string"
  767. }
  768. }
  769. },
  770. "common.QuoteSecondaryMenu": {
  771. "type": "object",
  772. "properties": {
  773. "ExExchangeCode": {
  774. "description": "外部交易所代码",
  775. "type": "string"
  776. },
  777. "ExExchangeID": {
  778. "description": "外部交易所ID",
  779. "type": "integer"
  780. },
  781. "GoodsGroupIDs": {
  782. "description": "商品组ID列表",
  783. "type": "array",
  784. "items": {
  785. "type": "integer"
  786. }
  787. },
  788. "Index": {
  789. "description": "序号",
  790. "type": "integer"
  791. },
  792. "MarketID": {
  793. "description": "市场ID",
  794. "type": "integer"
  795. },
  796. "MenuTitle": {
  797. "description": "菜单标题(市场名称或外部交易所名称)",
  798. "type": "string"
  799. },
  800. "TradeMode": {
  801. "description": "交易模式",
  802. "type": "integer"
  803. }
  804. }
  805. },
  806. "cptrade.Cptradepositioncancel": {
  807. "type": "object",
  808. "required": [
  809. "cancelid"
  810. ],
  811. "properties": {
  812. "accountid": {
  813. "description": "申请人账户ID",
  814. "type": "integer"
  815. },
  816. "applystatus": {
  817. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  818. "type": "integer"
  819. },
  820. "applytime": {
  821. "description": "申请时间",
  822. "type": "string"
  823. },
  824. "cancelid": {
  825. "description": "注销ID(SEQ_CPTRADE_POSITIONCANCEL)",
  826. "type": "integer"
  827. },
  828. "cancelqty": {
  829. "description": "注销数量",
  830. "type": "integer"
  831. },
  832. "createtime": {
  833. "description": "创建时间",
  834. "type": "string"
  835. },
  836. "creatorid": {
  837. "description": "创建人ID",
  838. "type": "integer"
  839. },
  840. "creatorname": {
  841. "description": "创建人",
  842. "type": "string"
  843. },
  844. "goodscode": {
  845. "description": "订单商品代码",
  846. "type": "string"
  847. },
  848. "goodsid": {
  849. "description": "商品ID",
  850. "type": "integer"
  851. },
  852. "goodsname": {
  853. "description": "订单商品名称",
  854. "type": "string"
  855. },
  856. "goodunit": {
  857. "description": "报价单位",
  858. "type": "string"
  859. },
  860. "handlestatus": {
  861. "description": "处理状态",
  862. "type": "integer"
  863. },
  864. "marketid": {
  865. "description": "市场ID",
  866. "type": "integer"
  867. },
  868. "marketname": {
  869. "description": "市场名称",
  870. "type": "string"
  871. },
  872. "tradedate": {
  873. "description": "交易日(yyyyMMdd)",
  874. "type": "string"
  875. },
  876. "userid": {
  877. "description": "申请人ID",
  878. "type": "integer"
  879. }
  880. }
  881. },
  882. "cptrade.Cptradepresaleapply": {
  883. "type": "object",
  884. "required": [
  885. "applyid"
  886. ],
  887. "properties": {
  888. "accountid": {
  889. "description": "申请人账户ID",
  890. "type": "integer"
  891. },
  892. "applyid": {
  893. "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)",
  894. "type": "integer"
  895. },
  896. "applyremark": {
  897. "description": "申请备注",
  898. "type": "string"
  899. },
  900. "applystatus": {
  901. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  902. "type": "integer"
  903. },
  904. "applytime": {
  905. "description": "申请时间",
  906. "type": "string"
  907. },
  908. "attachmenturl": {
  909. "description": "附件地址",
  910. "type": "string"
  911. },
  912. "endtime": {
  913. "description": "预售结束时间",
  914. "type": "string"
  915. },
  916. "goodscode": {
  917. "description": "商品代码",
  918. "type": "string"
  919. },
  920. "goodsid": {
  921. "description": "商品ID",
  922. "type": "integer"
  923. },
  924. "goodsname": {
  925. "description": "商品名称",
  926. "type": "string"
  927. },
  928. "goodunit": {
  929. "description": "报价单位",
  930. "type": "string"
  931. },
  932. "handlestatus": {
  933. "description": "处理状态",
  934. "type": "integer"
  935. },
  936. "marketid": {
  937. "description": "预售市场ID",
  938. "type": "integer"
  939. },
  940. "marketname": {
  941. "description": "预售市场名称",
  942. "type": "string"
  943. },
  944. "presaleqty": {
  945. "description": "预售数量",
  946. "type": "integer"
  947. },
  948. "relatedgoodscode": {
  949. "description": "关联交易合约代码",
  950. "type": "string"
  951. },
  952. "relatedgoodsid": {
  953. "description": "关联交易合约ID",
  954. "type": "integer"
  955. },
  956. "relatedgoodsname": {
  957. "description": "关联交易合约名称",
  958. "type": "string"
  959. },
  960. "starttime": {
  961. "description": "预售开始时间",
  962. "type": "string"
  963. },
  964. "tradedate": {
  965. "description": "交易日(yyyyMMdd)",
  966. "type": "string"
  967. },
  968. "trademode": {
  969. "description": "交易模式 - 16:挂牌点选 21:大宗竞拍",
  970. "type": "integer"
  971. },
  972. "userid": {
  973. "description": "申请人ID",
  974. "type": "integer"
  975. }
  976. }
  977. },
  978. "cptrade.Cptradeusergoodsdata": {
  979. "type": "object",
  980. "required": [
  981. "accountid",
  982. "goodsid"
  983. ],
  984. "properties": {
  985. "EnabledQty": {
  986. "description": "可用量",
  987. "type": "integer"
  988. },
  989. "GoodsCode": {
  990. "description": "订单商品代码",
  991. "type": "string"
  992. },
  993. "GoodsName": {
  994. "description": "订单商品名称",
  995. "type": "string"
  996. },
  997. "WRStandardCode": {
  998. "description": "仓单标准代码",
  999. "type": "string"
  1000. },
  1001. "WRStandardName": {
  1002. "description": "仓单标准名称",
  1003. "type": "string"
  1004. },
  1005. "accountid": {
  1006. "description": "账户ID",
  1007. "type": "integer"
  1008. },
  1009. "cancelqty": {
  1010. "description": "注销量",
  1011. "type": "integer"
  1012. },
  1013. "curpresaleqty": {
  1014. "description": "当前预售量",
  1015. "type": "integer"
  1016. },
  1017. "deliveryqty": {
  1018. "description": "交割量",
  1019. "type": "integer"
  1020. },
  1021. "freezeamount": {
  1022. "description": "冻结金额",
  1023. "type": "number"
  1024. },
  1025. "goodsid": {
  1026. "description": "商品ID",
  1027. "type": "integer"
  1028. },
  1029. "goodunit": {
  1030. "description": "报价单位",
  1031. "type": "string"
  1032. },
  1033. "hasspotfreeze": {
  1034. "description": "是否有现货冻结 - 0:否 1:有",
  1035. "type": "integer"
  1036. },
  1037. "inqty": {
  1038. "description": "转入量(总数量)",
  1039. "type": "integer"
  1040. },
  1041. "marketid": {
  1042. "description": "市场ID",
  1043. "type": "integer"
  1044. },
  1045. "presaledamount": {
  1046. "description": "已预售总金额",
  1047. "type": "integer"
  1048. },
  1049. "presaledqty": {
  1050. "description": "已预售量",
  1051. "type": "integer"
  1052. },
  1053. "userid": {
  1054. "description": "用户ID",
  1055. "type": "integer"
  1056. },
  1057. "wrstandardid": {
  1058. "description": "仓单标准ID",
  1059. "type": "integer"
  1060. }
  1061. }
  1062. },
  1063. "cptrade.QueryCPTradeMyBidRsp": {
  1064. "type": "object",
  1065. "required": [
  1066. "accountid",
  1067. "goodsid",
  1068. "marketid",
  1069. "orderid",
  1070. "orderqty",
  1071. "ordertime",
  1072. "tradeprice",
  1073. "tradeqty"
  1074. ],
  1075. "properties": {
  1076. "accountid": {
  1077. "description": "账户ID[报价币种]",
  1078. "type": "integer"
  1079. },
  1080. "goodsid": {
  1081. "description": "商品ID",
  1082. "type": "integer"
  1083. },
  1084. "goodunit": {
  1085. "description": "报价单位",
  1086. "type": "string"
  1087. },
  1088. "marketid": {
  1089. "description": "市场ID",
  1090. "type": "integer"
  1091. },
  1092. "orderid": {
  1093. "description": "委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  1094. "type": "integer"
  1095. },
  1096. "orderprice": {
  1097. "description": "委托价格",
  1098. "type": "number"
  1099. },
  1100. "orderqty": {
  1101. "description": "委托数量",
  1102. "type": "integer"
  1103. },
  1104. "ordertime": {
  1105. "description": "委托时间",
  1106. "type": "string"
  1107. },
  1108. "ordertotalprice": {
  1109. "description": "货款金额(委托总价格=委托价格*委托数量*合约单位)",
  1110. "type": "number"
  1111. },
  1112. "ordertotalweight": {
  1113. "description": "竞拍总重量(委托总重量=委托数量*合约单位)",
  1114. "type": "integer"
  1115. },
  1116. "totaltotalprice": {
  1117. "description": "成交货款金额(成交总价格=成交价格*成交数量*合约单位)",
  1118. "type": "number"
  1119. },
  1120. "tradeprice": {
  1121. "description": "成交价格",
  1122. "type": "number"
  1123. },
  1124. "tradeqty": {
  1125. "description": "成交数量",
  1126. "type": "integer"
  1127. }
  1128. }
  1129. },
  1130. "cptrade.QueryCPTradeOrderDetailRsq": {
  1131. "type": "object",
  1132. "required": [
  1133. "accountid",
  1134. "buildtype",
  1135. "buyorsell",
  1136. "goodsid",
  1137. "marketid",
  1138. "memberuserid",
  1139. "operatetype",
  1140. "orderqty",
  1141. "ordertime",
  1142. "pricemode",
  1143. "strorderid",
  1144. "tradedate",
  1145. "validtype"
  1146. ],
  1147. "properties": {
  1148. "accountid": {
  1149. "description": "账户ID[报价币种]",
  1150. "type": "integer"
  1151. },
  1152. "buildtype": {
  1153. "description": "委托单据类型 - 1:建仓 2:平仓 3:先平后建",
  1154. "type": "integer"
  1155. },
  1156. "buyorsell": {
  1157. "description": "买卖 - 0:买 1:卖",
  1158. "type": "integer"
  1159. },
  1160. "cancelorderid": {
  1161. "description": "撤单单号(撤单时填写)",
  1162. "type": "integer"
  1163. },
  1164. "cancelqty": {
  1165. "description": "撤单数量",
  1166. "type": "integer"
  1167. },
  1168. "clientordertime": {
  1169. "description": "客户端委托时间",
  1170. "type": "string"
  1171. },
  1172. "clientticket": {
  1173. "description": "客户端流水号",
  1174. "type": "string"
  1175. },
  1176. "clienttype": {
  1177. "description": "客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)",
  1178. "type": "integer"
  1179. },
  1180. "closeexchagechargevalue": {
  1181. "description": "平仓交易所手续费设置值",
  1182. "type": "number"
  1183. },
  1184. "closefeealgorithm": {
  1185. "description": "平仓手续费收取方式 1:比率 2:固定",
  1186. "type": "integer"
  1187. },
  1188. "closefreezecharge": {
  1189. "description": "平仓冻结手续费(先建后平操作,需要记录)",
  1190. "type": "number"
  1191. },
  1192. "closememberchargevalue": {
  1193. "description": "平仓会员手续费设置值",
  1194. "type": "number"
  1195. },
  1196. "closeqty": {
  1197. "description": "平仓数量(先建后平操作 需要记录)",
  1198. "type": "integer"
  1199. },
  1200. "closetradeqty": {
  1201. "description": "平仓成交数量(先建后平操作,需要记录)",
  1202. "type": "integer"
  1203. },
  1204. "closeunfreezecharge": {
  1205. "description": "平仓解冻手续费(先建后平操作,需要记录)",
  1206. "type": "number"
  1207. },
  1208. "delistingtype": {
  1209. "description": "摘牌类型 - 1:价格最优 2:点选成交",
  1210. "type": "integer"
  1211. },
  1212. "freezecharge": {
  1213. "description": "冻结手续费",
  1214. "type": "number"
  1215. },
  1216. "freezemargin": {
  1217. "description": "冻结保证金(冻结交易金额)",
  1218. "type": "number"
  1219. },
  1220. "gcaccountid": {
  1221. "description": "账户ID[合约币种]",
  1222. "type": "integer"
  1223. },
  1224. "goodsid": {
  1225. "description": "商品ID",
  1226. "type": "integer"
  1227. },
  1228. "isconfirmexercise": {
  1229. "description": "是否确认行权- 0:否 1:是",
  1230. "type": "integer"
  1231. },
  1232. "ispreexercise": {
  1233. "description": "是否预申报- 0:否 1:是",
  1234. "type": "integer"
  1235. },
  1236. "listingselecttype": {
  1237. "description": "挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂",
  1238. "type": "integer"
  1239. },
  1240. "marginalgorithm": {
  1241. "description": "保证金收取方式 1:比率 2:固定",
  1242. "type": "integer"
  1243. },
  1244. "marginvalue": {
  1245. "description": "即市保证金设置值",
  1246. "type": "number"
  1247. },
  1248. "marketid": {
  1249. "description": "市场ID",
  1250. "type": "integer"
  1251. },
  1252. "marketmaxsub": {
  1253. "description": "市价最大偏移范围",
  1254. "type": "number"
  1255. },
  1256. "memberuserid": {
  1257. "description": "所属会员UserID",
  1258. "type": "integer"
  1259. },
  1260. "openexchagechargevalue": {
  1261. "description": "建仓交易所手续费设置值",
  1262. "type": "number"
  1263. },
  1264. "openfeealgorithm": {
  1265. "description": "建仓手续费收取方式 1:比率 2:固定",
  1266. "type": "integer"
  1267. },
  1268. "openfreezecharge": {
  1269. "description": "开仓冻结手续费(先建后平操作,需要记录)",
  1270. "type": "number"
  1271. },
  1272. "openmemberchargevalue": {
  1273. "description": "建仓会员手续费设置值",
  1274. "type": "number"
  1275. },
  1276. "openqty": {
  1277. "description": "开仓数量(先建后平操作,需要记录)",
  1278. "type": "integer"
  1279. },
  1280. "opentradeqty": {
  1281. "description": "开仓成交数量(先建后平操作,需要记录)",
  1282. "type": "integer"
  1283. },
  1284. "openunfreezecharge": {
  1285. "description": "开仓解冻手续费(先建后平操作,需要记录)",
  1286. "type": "number"
  1287. },
  1288. "operatetype": {
  1289. "description": "操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让",
  1290. "type": "integer"
  1291. },
  1292. "operatorid": {
  1293. "description": "登录账号(LoginID)",
  1294. "type": "integer"
  1295. },
  1296. "optiontype": {
  1297. "description": "期权类型 - 1:认购(看涨) 2:认沽(看跌)",
  1298. "type": "integer"
  1299. },
  1300. "orderprice": {
  1301. "description": "委托价格",
  1302. "type": "number"
  1303. },
  1304. "orderqty": {
  1305. "description": "委托数量",
  1306. "type": "integer"
  1307. },
  1308. "ordersrc": {
  1309. "description": "委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发",
  1310. "type": "integer"
  1311. },
  1312. "orderstatus": {
  1313. "description": "委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)",
  1314. "type": "integer"
  1315. },
  1316. "ordertime": {
  1317. "description": "委托时间",
  1318. "type": "string"
  1319. },
  1320. "preexerciseprice": {
  1321. "description": "预申报价格",
  1322. "type": "number"
  1323. },
  1324. "premium": {
  1325. "description": "权利金",
  1326. "type": "number"
  1327. },
  1328. "preorderid": {
  1329. "description": "关联预埋单号(止盈止损单时填写)",
  1330. "type": "integer"
  1331. },
  1332. "pricemode": {
  1333. "description": "取价方式 - 1:市价 2: 限价",
  1334. "type": "integer"
  1335. },
  1336. "quoteid": {
  1337. "description": "报价单ID",
  1338. "type": "integer"
  1339. },
  1340. "relatedid": {
  1341. "description": "关联单号(交割单)",
  1342. "type": "integer"
  1343. },
  1344. "retcode": {
  1345. "description": "错误代码",
  1346. "type": "integer"
  1347. },
  1348. "sessionid": {
  1349. "description": "会话ID",
  1350. "type": "integer"
  1351. },
  1352. "strorderid": {
  1353. "description": "委托单号",
  1354. "type": "string"
  1355. },
  1356. "tradedate": {
  1357. "description": "交易日(yyyyMMdd)",
  1358. "type": "string"
  1359. },
  1360. "tradeproperty": {
  1361. "description": "交易属性",
  1362. "type": "integer"
  1363. },
  1364. "tradeqty": {
  1365. "description": "成交数量",
  1366. "type": "integer"
  1367. },
  1368. "unfreezecharge": {
  1369. "description": "解冻手续费",
  1370. "type": "number"
  1371. },
  1372. "unfreezemargin": {
  1373. "description": "解冻保证金",
  1374. "type": "number"
  1375. },
  1376. "updatetime": {
  1377. "description": "更新时间",
  1378. "type": "string"
  1379. },
  1380. "uuid": {
  1381. "description": "发起端唯一id",
  1382. "type": "string"
  1383. },
  1384. "validtime": {
  1385. "description": "有效期限",
  1386. "type": "string"
  1387. },
  1388. "validtype": {
  1389. "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效",
  1390. "type": "integer"
  1391. },
  1392. "volumetype": {
  1393. "description": "当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量",
  1394. "type": "integer"
  1395. }
  1396. }
  1397. },
  1398. "cptrade.QueryMyCPTradeGoodsRsp": {
  1399. "type": "object",
  1400. "required": [
  1401. "goodscode",
  1402. "goodsid",
  1403. "goodsname",
  1404. "marketid",
  1405. "relatedgoodscode",
  1406. "relatedgoodsname"
  1407. ],
  1408. "properties": {
  1409. "accountid": {
  1410. "description": "卖方账户ID",
  1411. "type": "integer"
  1412. },
  1413. "agreeunit": {
  1414. "description": "合约单位",
  1415. "type": "number"
  1416. },
  1417. "applyid": {
  1418. "description": "关联申请ID",
  1419. "type": "integer"
  1420. },
  1421. "attachmenturl": {
  1422. "description": "附件地址",
  1423. "type": "string"
  1424. },
  1425. "createtime": {
  1426. "description": "创建时间",
  1427. "type": "string"
  1428. },
  1429. "currencyid": {
  1430. "description": "报价货币ID",
  1431. "type": "integer"
  1432. },
  1433. "decimalplace": {
  1434. "description": "报价小数位",
  1435. "type": "integer"
  1436. },
  1437. "endtime": {
  1438. "description": "预售结束时间",
  1439. "type": "string"
  1440. },
  1441. "floorprice": {
  1442. "description": "底价[大宗式竞拍]",
  1443. "type": "number"
  1444. },
  1445. "goodscode": {
  1446. "description": "商品代码(预售)",
  1447. "type": "string"
  1448. },
  1449. "goodsdetail": {
  1450. "description": "详情[大宗]",
  1451. "type": "string"
  1452. },
  1453. "goodsid": {
  1454. "description": "商品ID(自增ID SEQ_GOODS)",
  1455. "type": "integer"
  1456. },
  1457. "goodsname": {
  1458. "description": "商品名称(预售)",
  1459. "type": "string"
  1460. },
  1461. "goodunit": {
  1462. "description": "报价单位",
  1463. "type": "string"
  1464. },
  1465. "goodunitid": {
  1466. "description": "报价单位ID",
  1467. "type": "integer"
  1468. },
  1469. "marketid": {
  1470. "description": "所属市场ID",
  1471. "type": "integer"
  1472. },
  1473. "marketname": {
  1474. "description": "预售市场名称",
  1475. "type": "string"
  1476. },
  1477. "presaledamount": {
  1478. "description": "已预售总金额(预售结束时更新)",
  1479. "type": "number"
  1480. },
  1481. "presaledqty": {
  1482. "description": "已预售量(预售结束时更新)",
  1483. "type": "integer"
  1484. },
  1485. "presalemode": {
  1486. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1487. "type": "integer"
  1488. },
  1489. "presaleqty": {
  1490. "description": "预售数量",
  1491. "type": "integer"
  1492. },
  1493. "refprice": {
  1494. "description": "参考价格[一口价]",
  1495. "type": "number"
  1496. },
  1497. "relatedgoodscode": {
  1498. "description": "商品代码(订单)",
  1499. "type": "string"
  1500. },
  1501. "relatedgoodsid": {
  1502. "description": "关联交易合约ID",
  1503. "type": "integer"
  1504. },
  1505. "relatedgoodsname": {
  1506. "description": "商品名称(订单)",
  1507. "type": "string"
  1508. },
  1509. "relatedmarketid": {
  1510. "description": "关联交易合约市场ID",
  1511. "type": "integer"
  1512. },
  1513. "sellstatus": {
  1514. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1515. "type": "integer"
  1516. },
  1517. "startprice": {
  1518. "description": "起拍价[大宗式竞拍]",
  1519. "type": "number"
  1520. },
  1521. "starttime": {
  1522. "description": "预售开始时间",
  1523. "type": "string"
  1524. },
  1525. "tradedate": {
  1526. "description": "交易日(yyyyMMdd)",
  1527. "type": "string"
  1528. },
  1529. "tradeprice": {
  1530. "description": "成交价[大宗]",
  1531. "type": "number"
  1532. },
  1533. "userid": {
  1534. "description": "卖方用户ID",
  1535. "type": "integer"
  1536. }
  1537. }
  1538. },
  1539. "cptrade.QueryPresaleGoodsExRsp": {
  1540. "type": "object",
  1541. "required": [
  1542. "goodsid"
  1543. ],
  1544. "properties": {
  1545. "attachmenturl": {
  1546. "description": "附件地址",
  1547. "type": "string"
  1548. },
  1549. "createtime": {
  1550. "description": "创建时间",
  1551. "type": "string"
  1552. },
  1553. "endtime": {
  1554. "description": "预售结束时间",
  1555. "type": "string"
  1556. },
  1557. "floorprice": {
  1558. "description": "底价[大宗式竞拍]",
  1559. "type": "number"
  1560. },
  1561. "goodsdetail": {
  1562. "description": "详情[大宗]",
  1563. "type": "string"
  1564. },
  1565. "goodsid": {
  1566. "description": "商品ID(预售)",
  1567. "type": "integer"
  1568. },
  1569. "goodunit": {
  1570. "description": "报价单位",
  1571. "type": "string"
  1572. },
  1573. "marketid": {
  1574. "description": "预售市场ID - 根据预售模式选择市场",
  1575. "type": "integer"
  1576. },
  1577. "presaledamount": {
  1578. "description": "已预售总金额(预售结束时更新)",
  1579. "type": "number"
  1580. },
  1581. "presaledqty": {
  1582. "description": "已预售量(预售结束时更新)",
  1583. "type": "integer"
  1584. },
  1585. "presalemode": {
  1586. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1587. "type": "integer"
  1588. },
  1589. "presaleqty": {
  1590. "description": "预售数量",
  1591. "type": "integer"
  1592. },
  1593. "refprice": {
  1594. "description": "参考价格[一口价]",
  1595. "type": "number"
  1596. },
  1597. "relatedgoodsid": {
  1598. "description": "关联交易合约ID",
  1599. "type": "integer"
  1600. },
  1601. "relatedmarketid": {
  1602. "description": "关联交易合约市场ID",
  1603. "type": "integer"
  1604. },
  1605. "sellstatus": {
  1606. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1607. "type": "integer"
  1608. },
  1609. "startprice": {
  1610. "description": "起拍价[大宗式竞拍]",
  1611. "type": "number"
  1612. },
  1613. "starttime": {
  1614. "description": "预售开始时间",
  1615. "type": "string"
  1616. },
  1617. "tradedate": {
  1618. "description": "交易日(yyyyMMdd)",
  1619. "type": "string"
  1620. },
  1621. "tradeprice": {
  1622. "description": "成交价[大宗]",
  1623. "type": "number"
  1624. }
  1625. }
  1626. },
  1627. "delivery.QueryDeliveryRelationRsp": {
  1628. "type": "object",
  1629. "required": [
  1630. "begindate",
  1631. "enddate",
  1632. "goodsid",
  1633. "mindeliveryqty",
  1634. "xdeliveryratio"
  1635. ],
  1636. "properties": {
  1637. "begindate": {
  1638. "description": "起始日期(yyyyMMdd)",
  1639. "type": "string"
  1640. },
  1641. "buytemplateid": {
  1642. "description": "买履约计划模板ID",
  1643. "type": "integer"
  1644. },
  1645. "deliverygoodscode": {
  1646. "description": "品种代码",
  1647. "type": "string"
  1648. },
  1649. "deliverygoodsid": {
  1650. "description": "交割商品",
  1651. "type": "integer"
  1652. },
  1653. "deliverygoodsname": {
  1654. "description": "品种名称",
  1655. "type": "string"
  1656. },
  1657. "deliverymode": {
  1658. "description": "交割方式 - 1:点选式 2:申报式",
  1659. "type": "integer"
  1660. },
  1661. "deliverypricerule": {
  1662. "description": "交割价规则- 1:行情价 2:建仓价",
  1663. "type": "integer"
  1664. },
  1665. "deliverytype": {
  1666. "description": "交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割",
  1667. "type": "integer"
  1668. },
  1669. "enddate": {
  1670. "description": "结束日期(yyyyMMdd)",
  1671. "type": "string"
  1672. },
  1673. "goodscode": {
  1674. "description": "商品代码",
  1675. "type": "string"
  1676. },
  1677. "goodsid": {
  1678. "description": "交易合约ID",
  1679. "type": "integer"
  1680. },
  1681. "goodsname": {
  1682. "description": "商品名称",
  1683. "type": "string"
  1684. },
  1685. "marketid": {
  1686. "description": "市场ID",
  1687. "type": "integer"
  1688. },
  1689. "mindeliveryqty": {
  1690. "description": "最小交割系数(K)",
  1691. "type": "integer"
  1692. },
  1693. "p2deliveryprice": {
  1694. "description": "P2合约价格(商品价时填写0,固定值时填写固定值)",
  1695. "type": "number"
  1696. },
  1697. "p2deliveryratio": {
  1698. "description": "P2合约系数(p)",
  1699. "type": "integer"
  1700. },
  1701. "p2goodsid": {
  1702. "description": "P2合约ID",
  1703. "type": "integer"
  1704. },
  1705. "p2pricemode": {
  1706. "description": "P2合约价格方式 - 1:商品价 2:固定值",
  1707. "type": "integer"
  1708. },
  1709. "pdeliveryprice": {
  1710. "description": "P合约价格(商品价时填写0,固定值时填写固定值)",
  1711. "type": "number"
  1712. },
  1713. "pdeliveryratio": {
  1714. "description": "P合约系数(n)",
  1715. "type": "integer"
  1716. },
  1717. "pgoodsid": {
  1718. "description": "P合约ID",
  1719. "type": "integer"
  1720. },
  1721. "ppricemode": {
  1722. "description": "P合约价格方式 - 1:商品价 2:固定值",
  1723. "type": "integer"
  1724. },
  1725. "rratio": {
  1726. "description": "兑换系数(R)",
  1727. "type": "integer"
  1728. },
  1729. "rratio1": {
  1730. "description": "兑换系数(交易合约)(R1)",
  1731. "type": "integer"
  1732. },
  1733. "rratio2": {
  1734. "description": "兑换系数(仓单标准)(R2)",
  1735. "type": "integer"
  1736. },
  1737. "selltemplateid": {
  1738. "description": "卖履约计划模板ID",
  1739. "type": "integer"
  1740. },
  1741. "wrstandardid": {
  1742. "description": "仓单标准ID",
  1743. "type": "integer"
  1744. },
  1745. "xdeliveryratio": {
  1746. "description": "交易合约系数(m)",
  1747. "type": "integer"
  1748. }
  1749. }
  1750. },
  1751. "erms2.QueryArbitrageStrategyRsp": {
  1752. "type": "object",
  1753. "required": [
  1754. "asapplyid"
  1755. ],
  1756. "properties": {
  1757. "applybasis": {
  1758. "description": "申请基差",
  1759. "type": "number"
  1760. },
  1761. "asapplyid": {
  1762. "description": "策略申请ID(702+Unix秒时间戳(10位)+xxxxxx)",
  1763. "type": "string"
  1764. },
  1765. "asname": {
  1766. "description": "策略名称",
  1767. "type": "string"
  1768. },
  1769. "asno": {
  1770. "description": "策略编号",
  1771. "type": "string"
  1772. },
  1773. "basischangepl": {
  1774. "description": "基差变动损益[结算更新]",
  1775. "type": "number"
  1776. },
  1777. "biztype": {
  1778. "description": "业务类型 - 1:正向套利 -1:反向套利",
  1779. "type": "integer"
  1780. },
  1781. "closetradedate": {
  1782. "description": "完结交易日(yyyyMMdd)",
  1783. "type": "string"
  1784. },
  1785. "curbasis": {
  1786. "description": "当前基差[结算更新]",
  1787. "type": "number"
  1788. },
  1789. "deliverygoodsid": {
  1790. "description": "现货品种ID",
  1791. "type": "integer"
  1792. },
  1793. "futureavgprice": {
  1794. "description": "期货建仓均价",
  1795. "type": "number"
  1796. },
  1797. "futurecloseamount": {
  1798. "description": "期货平仓金额",
  1799. "type": "number"
  1800. },
  1801. "futurecloseqty": {
  1802. "description": "期货平仓数量",
  1803. "type": "number"
  1804. },
  1805. "futureopenamount": {
  1806. "description": "期货开仓金额",
  1807. "type": "number"
  1808. },
  1809. "futureopenqty": {
  1810. "description": "期货开仓数量",
  1811. "type": "number"
  1812. },
  1813. "futurepl": {
  1814. "description": "期货总盈亏[结算更新]",
  1815. "type": "number"
  1816. },
  1817. "futureqty": {
  1818. "description": "期货持仓数量",
  1819. "type": "number"
  1820. },
  1821. "futurequote": {
  1822. "description": "期货额度",
  1823. "type": "number"
  1824. },
  1825. "goodsgroupid": {
  1826. "description": "期货品种ID",
  1827. "type": "integer"
  1828. },
  1829. "marketid": {
  1830. "description": "市场ID",
  1831. "type": "integer"
  1832. },
  1833. "netexposure": {
  1834. "description": "单笔业务头寸净敞口 = 期货持仓数量 + 已定价现货不含税数量",
  1835. "type": "number"
  1836. },
  1837. "netexposurepl": {
  1838. "description": "净敞口损益 = TotalPL - BasisChangePL[结算更新]",
  1839. "type": "number"
  1840. },
  1841. "netexposurerate": {
  1842. "description": "净敞口比例 - 0:未结束 = (NetExposure/PriceSpotQtyNoTax) ; 已结束为0",
  1843. "type": "number"
  1844. },
  1845. "openbasis": {
  1846. "description": "建仓基差",
  1847. "type": "number"
  1848. },
  1849. "pricedspotqty": {
  1850. "description": "已定价现货数量",
  1851. "type": "number"
  1852. },
  1853. "pricedspotqtynotax": {
  1854. "description": "已定价现货不含税数量",
  1855. "type": "number"
  1856. },
  1857. "remark": {
  1858. "description": "备注",
  1859. "type": "string"
  1860. },
  1861. "spotavgprice": {
  1862. "description": "现货均价",
  1863. "type": "number"
  1864. },
  1865. "spotbuyamount": {
  1866. "description": "现货采购金额",
  1867. "type": "number"
  1868. },
  1869. "spotbuyqty": {
  1870. "description": "现货采购数量",
  1871. "type": "number"
  1872. },
  1873. "spotpl": {
  1874. "description": "现货总盈亏[结算更新]",
  1875. "type": "number"
  1876. },
  1877. "spotquota": {
  1878. "description": "现货额度",
  1879. "type": "number"
  1880. },
  1881. "spotsellamount": {
  1882. "description": "现货销售金额",
  1883. "type": "number"
  1884. },
  1885. "spotsellqty": {
  1886. "description": "现货销售数量",
  1887. "type": "number"
  1888. },
  1889. "spotusedquota": {
  1890. "description": "现货占用资金",
  1891. "type": "number"
  1892. },
  1893. "strategystatus": {
  1894. "description": "策略状态 - 0:未结束 1:已结束",
  1895. "type": "integer"
  1896. },
  1897. "totalpl": {
  1898. "description": "业务合计损益 = FuturePL + SpotPL [结算更新]",
  1899. "type": "number"
  1900. },
  1901. "tradedate": {
  1902. "description": "交易日(yyyyMMdd)",
  1903. "type": "string"
  1904. },
  1905. "updatetime": {
  1906. "description": "更新时间",
  1907. "type": "string"
  1908. },
  1909. "usedquota": {
  1910. "description": "已占用资金",
  1911. "type": "number"
  1912. },
  1913. "userid": {
  1914. "description": "所属机构",
  1915. "type": "integer"
  1916. }
  1917. }
  1918. },
  1919. "erms2.QueryInnerTradeDetailRsp": {
  1920. "type": "object",
  1921. "required": [
  1922. "asapplyid",
  1923. "buyorsell",
  1924. "goodscode",
  1925. "goodsgroupid",
  1926. "goodsgroupname",
  1927. "goodsname",
  1928. "tradeid"
  1929. ],
  1930. "properties": {
  1931. "accountid": {
  1932. "description": "账号ID",
  1933. "type": "integer"
  1934. },
  1935. "agreeunit": {
  1936. "description": "合约单位",
  1937. "type": "number"
  1938. },
  1939. "asapplyid": {
  1940. "description": "策略申请ID",
  1941. "type": "integer"
  1942. },
  1943. "asname": {
  1944. "description": "策略名称",
  1945. "type": "string"
  1946. },
  1947. "asno": {
  1948. "description": "策略编号",
  1949. "type": "string"
  1950. },
  1951. "buyorsell": {
  1952. "description": "方向 - 0:买 1:卖",
  1953. "type": "integer"
  1954. },
  1955. "channelbuildtype": {
  1956. "description": "委托单据类型 0:无 1:建仓 2:平仓",
  1957. "type": "integer"
  1958. },
  1959. "closetype": {
  1960. "description": "平仓方式 - 0:无 1:平今 2:平昨",
  1961. "type": "integer"
  1962. },
  1963. "decimalplace": {
  1964. "description": "报价小数位",
  1965. "type": "integer"
  1966. },
  1967. "detailtype": {
  1968. "description": "明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整",
  1969. "type": "integer"
  1970. },
  1971. "exexchangecode": {
  1972. "description": "外部交易所代码",
  1973. "type": "string"
  1974. },
  1975. "exexchangename": {
  1976. "description": "外部交易所名称",
  1977. "type": "string"
  1978. },
  1979. "goodscode": {
  1980. "description": "商品代码(合约)",
  1981. "type": "string"
  1982. },
  1983. "goodsgroupid": {
  1984. "description": "商品组ID(品种ID)",
  1985. "type": "integer"
  1986. },
  1987. "goodsgroupname": {
  1988. "description": "商品组名称(品种)",
  1989. "type": "string"
  1990. },
  1991. "goodsid": {
  1992. "description": "商品ID",
  1993. "type": "integer"
  1994. },
  1995. "goodsname": {
  1996. "description": "商品名称(合约)",
  1997. "type": "string"
  1998. },
  1999. "goodunit": {
  2000. "description": "报价单位",
  2001. "type": "string"
  2002. },
  2003. "marketid": {
  2004. "description": "市场ID",
  2005. "type": "integer"
  2006. },
  2007. "orderid": {
  2008. "description": "委托单号",
  2009. "type": "string"
  2010. },
  2011. "outgoodscode": {
  2012. "description": "商品代码(外部)",
  2013. "type": "string"
  2014. },
  2015. "relatedouttradeid": {
  2016. "description": "关联外部成交单ID",
  2017. "type": "string"
  2018. },
  2019. "remark": {
  2020. "description": "备注",
  2021. "type": "string"
  2022. },
  2023. "spotcontractid": {
  2024. "description": "现货合同ID [1:套利对冲 为合同ID,2:期货换月\\3:期货仓位调整时为0]",
  2025. "type": "integer"
  2026. },
  2027. "spotcontractno": {
  2028. "description": "现货合同编号",
  2029. "type": "string"
  2030. },
  2031. "tradeid": {
  2032. "description": "成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  2033. "type": "string"
  2034. },
  2035. "tradeprice": {
  2036. "description": "成交价格",
  2037. "type": "number"
  2038. },
  2039. "tradeqty": {
  2040. "description": "成交数量",
  2041. "type": "integer"
  2042. },
  2043. "tradetime": {
  2044. "description": "成交时间",
  2045. "type": "string"
  2046. },
  2047. "updatetime": {
  2048. "description": "更新时间",
  2049. "type": "string"
  2050. }
  2051. }
  2052. },
  2053. "erms2.QuerySpotContractRsp": {
  2054. "type": "object",
  2055. "required": [
  2056. "spotcontractid"
  2057. ],
  2058. "properties": {
  2059. "accountid": {
  2060. "description": "资金账户ID",
  2061. "type": "integer"
  2062. },
  2063. "areauserid": {
  2064. "description": "所属机构",
  2065. "type": "integer"
  2066. },
  2067. "closedate": {
  2068. "description": "终止日期",
  2069. "type": "string"
  2070. },
  2071. "closeremark": {
  2072. "description": "结束备注",
  2073. "type": "string"
  2074. },
  2075. "closetradedate": {
  2076. "description": "完结交易日(yyyyMMdd)",
  2077. "type": "string"
  2078. },
  2079. "closetype": {
  2080. "description": "终止类型 - 1:违约 2:提前终止",
  2081. "type": "integer"
  2082. },
  2083. "contractamount": {
  2084. "description": "合同金额",
  2085. "type": "number"
  2086. },
  2087. "contractattachment": {
  2088. "description": "合同附件",
  2089. "type": "string"
  2090. },
  2091. "contractno": {
  2092. "description": "现货合同编号",
  2093. "type": "string"
  2094. },
  2095. "contractqty": {
  2096. "description": "合同数量(数值) (用于计算)",
  2097. "type": "number"
  2098. },
  2099. "contractqtychar": {
  2100. "description": "合同数量\\已订价数量 (用于显示)",
  2101. "type": "string"
  2102. },
  2103. "contractstatus": {
  2104. "description": "合同状态 - 0:未结束 1:已结束",
  2105. "type": "integer"
  2106. },
  2107. "contracttype": {
  2108. "description": "现货合同类型 - 1:采购合同 -1:销售合同",
  2109. "type": "integer"
  2110. },
  2111. "customeraccountid": {
  2112. "description": "客户资金账户ID",
  2113. "type": "integer"
  2114. },
  2115. "customeruserid": {
  2116. "description": "客户ID",
  2117. "type": "integer"
  2118. },
  2119. "deliverygoodsdesc": {
  2120. "description": "品种说明",
  2121. "type": "string"
  2122. },
  2123. "deliverygoodsid": {
  2124. "description": "现货品种ID",
  2125. "type": "integer"
  2126. },
  2127. "handlestatus": {
  2128. "description": "处理状态",
  2129. "type": "integer"
  2130. },
  2131. "invoiceatt": {
  2132. "description": "发票附件",
  2133. "type": "string"
  2134. },
  2135. "invoicedatetime": {
  2136. "description": "开收票更新时间",
  2137. "type": "string"
  2138. },
  2139. "invoiceopentime": {
  2140. "description": "开票时间",
  2141. "type": "string"
  2142. },
  2143. "invoiceremark": {
  2144. "description": "发票备注",
  2145. "type": "string"
  2146. },
  2147. "invoicestatus": {
  2148. "description": "开收票状态 - 0:未开票 1:已开票",
  2149. "type": "integer"
  2150. },
  2151. "lastdate": {
  2152. "description": "交货时间",
  2153. "type": "string"
  2154. },
  2155. "marketid": {
  2156. "description": "市场ID",
  2157. "type": "integer"
  2158. },
  2159. "paydatetime": {
  2160. "description": "收付款更新时间",
  2161. "type": "string"
  2162. },
  2163. "payremark": {
  2164. "description": "收付款备注",
  2165. "type": "string"
  2166. },
  2167. "paystatus": {
  2168. "description": "收付款状态 - 0:未支付 1:已收款 2:已付款",
  2169. "type": "integer"
  2170. },
  2171. "positionqty": {
  2172. "description": "头寸数量 - 合同数量去小数部分",
  2173. "type": "integer"
  2174. },
  2175. "producttype": {
  2176. "description": "产品类型 - 1:标准仓单 2:等标 3:非标",
  2177. "type": "integer"
  2178. },
  2179. "relatedqty": {
  2180. "description": "已关联数量",
  2181. "type": "number"
  2182. },
  2183. "relatedstatus": {
  2184. "description": "关联完结状态 - 0:未结束 1:已结束",
  2185. "type": "integer"
  2186. },
  2187. "remark": {
  2188. "description": "备注",
  2189. "type": "string"
  2190. },
  2191. "signdate": {
  2192. "description": "签订日期",
  2193. "type": "string"
  2194. },
  2195. "spotcontractid": {
  2196. "description": "现货合同ID(701+Unix秒时间戳(10位)+xxxxxx)",
  2197. "type": "string"
  2198. },
  2199. "spotdatetime": {
  2200. "description": "收发货更新时间",
  2201. "type": "string"
  2202. },
  2203. "spotprice": {
  2204. "description": "价格",
  2205. "type": "number"
  2206. },
  2207. "spotremark": {
  2208. "description": "收发货备注",
  2209. "type": "string"
  2210. },
  2211. "spotstatus": {
  2212. "description": "收发货状态 - 0:未交收 1:已发货 2:已发货",
  2213. "type": "integer"
  2214. },
  2215. "tradedate": {
  2216. "description": "交易日(yyyyMMdd)",
  2217. "type": "string"
  2218. },
  2219. "userid": {
  2220. "description": "业务员用户ID",
  2221. "type": "integer"
  2222. },
  2223. "warehouseid": {
  2224. "description": "仓库ID",
  2225. "type": "integer"
  2226. },
  2227. "wrfactortypeid": {
  2228. "description": "仓单要素类型ID",
  2229. "type": "integer"
  2230. },
  2231. "wrstandardid": {
  2232. "description": "仓单标准ID(SEQ_WRSTANDARD)",
  2233. "type": "integer"
  2234. }
  2235. }
  2236. }
  2237. },
  2238. "securityDefinitions": {
  2239. "ApiKeyAuth": {
  2240. "type": "apiKey",
  2241. "name": "Authorization",
  2242. "in": "header"
  2243. }
  2244. }
  2245. }`
  2246. type swaggerInfo struct {
  2247. Version string
  2248. Host string
  2249. BasePath string
  2250. Schemes []string
  2251. Title string
  2252. Description string
  2253. }
  2254. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2255. var SwaggerInfo = swaggerInfo{
  2256. Version: "1.0",
  2257. Host: "",
  2258. BasePath: "/api",
  2259. Schemes: []string{},
  2260. Title: "MTP2.0 查询服务 API",
  2261. Description: "新的查询服务,替代原通用查询服务。",
  2262. }
  2263. type s struct{}
  2264. func (s *s) ReadDoc() string {
  2265. sInfo := SwaggerInfo
  2266. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  2267. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  2268. "marshal": func(v interface{}) string {
  2269. a, _ := json.Marshal(v)
  2270. return string(a)
  2271. },
  2272. }).Parse(doc)
  2273. if err != nil {
  2274. return doc
  2275. }
  2276. var tpl bytes.Buffer
  2277. if err := t.Execute(&tpl, sInfo); err != nil {
  2278. return doc
  2279. }
  2280. return tpl.String()
  2281. }
  2282. func init() {
  2283. swag.Register(swag.Name, &s{})
  2284. }