docs.go 93 KB

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