docs.go 90 KB

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