docs.go 75 KB

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