docs.go 108 KB

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