docs.go 93 KB

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