docs.go 107 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033
  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/models.Szdz3goodspickup"
  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.Szdz3goodspickup": {
  2498. "type": "object",
  2499. "required": [
  2500. "takeorderid"
  2501. ],
  2502. "properties": {
  2503. "accountid": {
  2504. "description": "账户ID",
  2505. "type": "integer"
  2506. },
  2507. "address": {
  2508. "description": "提货人详细地址",
  2509. "type": "string"
  2510. },
  2511. "auditer": {
  2512. "description": "审核人",
  2513. "type": "integer"
  2514. },
  2515. "audittime": {
  2516. "description": "审核时间",
  2517. "type": "string"
  2518. },
  2519. "cardnum": {
  2520. "description": "提货人证件号码",
  2521. "type": "string"
  2522. },
  2523. "cardtypeid": {
  2524. "description": "提货人证件类型",
  2525. "type": "integer"
  2526. },
  2527. "checkremark": {
  2528. "description": "审核备注",
  2529. "type": "string"
  2530. },
  2531. "goodsid": {
  2532. "description": "商品ID",
  2533. "type": "integer"
  2534. },
  2535. "handlestatus": {
  2536. "description": "处理状态",
  2537. "type": "integer"
  2538. },
  2539. "marketid": {
  2540. "description": "市场ID",
  2541. "type": "integer"
  2542. },
  2543. "phonenum": {
  2544. "description": "提货人联系方式",
  2545. "type": "string"
  2546. },
  2547. "qty": {
  2548. "description": "提货数量",
  2549. "type": "number"
  2550. },
  2551. "recivername": {
  2552. "description": "提货人姓名",
  2553. "type": "string"
  2554. },
  2555. "reqtime": {
  2556. "description": "更新时间",
  2557. "type": "string"
  2558. },
  2559. "takemode": {
  2560. "description": "提货方式 - 2:自提 3:配送",
  2561. "type": "integer"
  2562. },
  2563. "takeorderid": {
  2564. "description": "提货单号(905+Unix秒时间戳(10位)+xxxxxx)",
  2565. "type": "integer"
  2566. },
  2567. "takeorderstatus": {
  2568. "description": "提货状态 - 1:待发货 2:已发货 3:已收货",
  2569. "type": "integer"
  2570. },
  2571. "takeremark": {
  2572. "description": "提货备注",
  2573. "type": "string"
  2574. },
  2575. "tradedate": {
  2576. "description": "交易日(yyyyMMdd)",
  2577. "type": "string"
  2578. },
  2579. "userid": {
  2580. "description": "用户ID",
  2581. "type": "integer"
  2582. }
  2583. }
  2584. },
  2585. "models.Tablecolumnconfig": {
  2586. "type": "object",
  2587. "required": [
  2588. "autoid"
  2589. ],
  2590. "properties": {
  2591. "aligntype": {
  2592. "description": "对齐方式 - 1:居中对齐 2:左对齐 3:右对齐",
  2593. "type": "integer"
  2594. },
  2595. "autoid": {
  2596. "description": "AutoID",
  2597. "type": "integer"
  2598. },
  2599. "columnfield": {
  2600. "description": "列字段",
  2601. "type": "string"
  2602. },
  2603. "columntitle": {
  2604. "description": "列Title",
  2605. "type": "string"
  2606. },
  2607. "columnwidth": {
  2608. "description": "列宽",
  2609. "type": "string"
  2610. },
  2611. "formatterstring": {
  2612. "description": "格式化字符",
  2613. "type": "string"
  2614. },
  2615. "formattertype": {
  2616. "description": "格式化类型",
  2617. "type": "string"
  2618. },
  2619. "groupname": {
  2620. "description": "表头分组名称",
  2621. "type": "string"
  2622. },
  2623. "isshow": {
  2624. "description": "是否显示 - 0:不显示 1:显示",
  2625. "type": "integer"
  2626. },
  2627. "needsummary": {
  2628. "description": "是否需要汇总 - 0:不需要 1:需要",
  2629. "type": "integer"
  2630. },
  2631. "orderindex": {
  2632. "description": "顺序",
  2633. "type": "integer"
  2634. },
  2635. "remark": {
  2636. "description": "备注",
  2637. "type": "string"
  2638. },
  2639. "summarytype": {
  2640. "description": "汇总类型 - 1:加总 2:最后一个",
  2641. "type": "integer"
  2642. },
  2643. "tablekey": {
  2644. "description": "列表Key",
  2645. "type": "string"
  2646. }
  2647. }
  2648. },
  2649. "order.QueryTradeOrderDetailRsp": {
  2650. "type": "object",
  2651. "required": [
  2652. "accountid",
  2653. "buildtype",
  2654. "buyorsell",
  2655. "goodsid",
  2656. "marketid",
  2657. "operatetype",
  2658. "orderid",
  2659. "orderqty",
  2660. "ordertime",
  2661. "pricemode",
  2662. "tradedate",
  2663. "validtype"
  2664. ],
  2665. "properties": {
  2666. "accountid": {
  2667. "description": "账户ID[报价币种]",
  2668. "type": "integer"
  2669. },
  2670. "buildtype": {
  2671. "description": "委托单据类型 - 1:建仓 2:平仓 3:先平后建",
  2672. "type": "integer"
  2673. },
  2674. "buyorsell": {
  2675. "description": "买卖 - 0:买 1:卖",
  2676. "type": "integer"
  2677. },
  2678. "cancelorderid": {
  2679. "description": "撤单单号(撤单时填写)",
  2680. "type": "integer"
  2681. },
  2682. "cancelqty": {
  2683. "description": "撤单数量",
  2684. "type": "integer"
  2685. },
  2686. "closefreezecharge": {
  2687. "description": "平仓冻结手续费(先建后平操作,需要记录)",
  2688. "type": "number"
  2689. },
  2690. "closeqty": {
  2691. "description": "平仓数量(先建后平操作 需要记录)",
  2692. "type": "integer"
  2693. },
  2694. "closetradeqty": {
  2695. "description": "平仓成交数量(先建后平操作,需要记录)",
  2696. "type": "integer"
  2697. },
  2698. "closeunfreezecharge": {
  2699. "description": "平仓解冻手续费(先建后平操作,需要记录)",
  2700. "type": "number"
  2701. },
  2702. "delistingtype": {
  2703. "description": "摘牌类型 - 1:价格最优 2:点选成交",
  2704. "type": "integer"
  2705. },
  2706. "enableqty": {
  2707. "description": "计算字段",
  2708. "type": "integer"
  2709. },
  2710. "freezecharge": {
  2711. "description": "冻结手续费",
  2712. "type": "number"
  2713. },
  2714. "freezemargin": {
  2715. "description": "冻结保证金(冻结交易金额)",
  2716. "type": "number"
  2717. },
  2718. "goodscode": {
  2719. "description": "关联字段",
  2720. "type": "string"
  2721. },
  2722. "goodsid": {
  2723. "description": "商品ID",
  2724. "type": "integer"
  2725. },
  2726. "goodsname": {
  2727. "description": "商品名称",
  2728. "type": "string"
  2729. },
  2730. "listingselecttype": {
  2731. "description": "挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂",
  2732. "type": "integer"
  2733. },
  2734. "marketid": {
  2735. "description": "市场ID",
  2736. "type": "integer"
  2737. },
  2738. "marketname": {
  2739. "description": "市场名称",
  2740. "type": "string"
  2741. },
  2742. "openfreezecharge": {
  2743. "description": "开仓冻结手续费(先建后平操作,需要记录)",
  2744. "type": "number"
  2745. },
  2746. "openqty": {
  2747. "description": "开仓数量(先建后平操作,需要记录)",
  2748. "type": "integer"
  2749. },
  2750. "opentradeqty": {
  2751. "description": "开仓成交数量(先建后平操作,需要记录)",
  2752. "type": "integer"
  2753. },
  2754. "openunfreezecharge": {
  2755. "description": "开仓解冻手续费(先建后平操作,需要记录)",
  2756. "type": "number"
  2757. },
  2758. "operatetype": {
  2759. "description": "操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让",
  2760. "type": "integer"
  2761. },
  2762. "orderid": {
  2763. "description": "委托单字段",
  2764. "type": "integer"
  2765. },
  2766. "orderprice": {
  2767. "description": "委托价格",
  2768. "type": "number"
  2769. },
  2770. "orderqty": {
  2771. "description": "委托数量",
  2772. "type": "integer"
  2773. },
  2774. "orderstatus": {
  2775. "description": "委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)",
  2776. "type": "integer"
  2777. },
  2778. "ordertime": {
  2779. "description": "委托时间",
  2780. "type": "string"
  2781. },
  2782. "preorderid": {
  2783. "description": "关联预埋单号(止盈止损单时填写)",
  2784. "type": "integer"
  2785. },
  2786. "pricemode": {
  2787. "description": "取价方式 - 1:市价 2: 限价",
  2788. "type": "integer"
  2789. },
  2790. "relatedid": {
  2791. "description": "关联单号(交割单)",
  2792. "type": "integer"
  2793. },
  2794. "tradedate": {
  2795. "description": "交易日(yyyyMMdd)",
  2796. "type": "string"
  2797. },
  2798. "trademode": {
  2799. "description": "交易模式",
  2800. "type": "integer"
  2801. },
  2802. "tradeqty": {
  2803. "description": "成交数量",
  2804. "type": "integer"
  2805. },
  2806. "unfreezecharge": {
  2807. "description": "解冻手续费",
  2808. "type": "number"
  2809. },
  2810. "unfreezemargin": {
  2811. "description": "解冻保证金",
  2812. "type": "number"
  2813. },
  2814. "validtime": {
  2815. "description": "有效期限",
  2816. "type": "string"
  2817. },
  2818. "validtype": {
  2819. "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效",
  2820. "type": "integer"
  2821. },
  2822. "volumetype": {
  2823. "description": "当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量",
  2824. "type": "integer"
  2825. }
  2826. }
  2827. },
  2828. "order.QueryTradePositionRsp": {
  2829. "type": "object",
  2830. "properties": {
  2831. "accountid": {
  2832. "description": "资金账户",
  2833. "type": "integer"
  2834. },
  2835. "agreeunit": {
  2836. "description": "合约单位",
  2837. "type": "number"
  2838. },
  2839. "buyorsell": {
  2840. "description": "方向 - 0:买 1:卖",
  2841. "type": "integer"
  2842. },
  2843. "closetotalqty": {
  2844. "description": "平仓总数量",
  2845. "type": "integer"
  2846. },
  2847. "curholderamount": {
  2848. "description": "当前持仓总金额[商品币种]",
  2849. "type": "number"
  2850. },
  2851. "curpositionqty": {
  2852. "description": "当前持仓总数量",
  2853. "type": "integer"
  2854. },
  2855. "currencyid": {
  2856. "description": "报价货币ID",
  2857. "type": "integer"
  2858. },
  2859. "curtdposition": {
  2860. "description": "期末今日头寸",
  2861. "type": "integer"
  2862. },
  2863. "decimalplace": {
  2864. "description": "报价小数位",
  2865. "type": "integer"
  2866. },
  2867. "enableqty": {
  2868. "description": "可用量",
  2869. "type": "integer"
  2870. },
  2871. "fretdposition": {
  2872. "description": "冻结今日头寸",
  2873. "type": "integer"
  2874. },
  2875. "frozenqty": {
  2876. "description": "持仓冻结数量",
  2877. "type": "integer"
  2878. },
  2879. "goodscode": {
  2880. "description": "商品代码",
  2881. "type": "string"
  2882. },
  2883. "goodsname": {
  2884. "description": "商品名称",
  2885. "type": "string"
  2886. },
  2887. "goodunit": {
  2888. "description": "报价单位",
  2889. "type": "string"
  2890. },
  2891. "goodunitid": {
  2892. "description": "报价单位ID",
  2893. "type": "integer"
  2894. },
  2895. "holderamount": {
  2896. "description": "期初持仓总金额[商品币种]",
  2897. "type": "number"
  2898. },
  2899. "marketid": {
  2900. "description": "所属市场ID",
  2901. "type": "integer"
  2902. },
  2903. "openreqqty": {
  2904. "description": "开仓申请数量(用于比较最大持仓数量)",
  2905. "type": "integer"
  2906. },
  2907. "opentotalqty": {
  2908. "description": "开仓总数量",
  2909. "type": "integer"
  2910. },
  2911. "otherfrozenqty": {
  2912. "description": "持仓其他冻结数量(交割冻结)",
  2913. "type": "integer"
  2914. },
  2915. "positionqty": {
  2916. "description": "期初持仓数量",
  2917. "type": "integer"
  2918. },
  2919. "tnqty": {
  2920. "description": "T+N冻结总量",
  2921. "type": "integer"
  2922. },
  2923. "tnusedqty": {
  2924. "description": "T+N使用量(可以使用T+N的冻结数量)",
  2925. "type": "integer"
  2926. },
  2927. "trademode": {
  2928. "description": "交易模式",
  2929. "type": "integer"
  2930. }
  2931. }
  2932. },
  2933. "szdz.QueryRecieptOrderRsp": {
  2934. "type": "object",
  2935. "properties": {
  2936. "accountName": {
  2937. "description": "所属账号名称(已脱敏)",
  2938. "type": "string"
  2939. },
  2940. "buyorsell": {
  2941. "description": "方向 - 0:买 1:卖",
  2942. "type": "integer"
  2943. },
  2944. "enableqty": {
  2945. "description": "可摘数量",
  2946. "type": "integer"
  2947. },
  2948. "goodscode": {
  2949. "description": "商品代码",
  2950. "type": "string"
  2951. },
  2952. "goodsid": {
  2953. "description": "商品ID",
  2954. "type": "integer"
  2955. },
  2956. "goodsname": {
  2957. "description": "商品名称",
  2958. "type": "string"
  2959. },
  2960. "orderid": {
  2961. "description": "委托单号",
  2962. "type": "integer"
  2963. },
  2964. "orderprice": {
  2965. "description": "委托价格",
  2966. "type": "number"
  2967. },
  2968. "tradedate": {
  2969. "description": "交易日(yyyyMMdd)",
  2970. "type": "string"
  2971. }
  2972. }
  2973. }
  2974. },
  2975. "securityDefinitions": {
  2976. "ApiKeyAuth": {
  2977. "type": "apiKey",
  2978. "name": "Authorization",
  2979. "in": "header"
  2980. }
  2981. }
  2982. }`
  2983. type swaggerInfo struct {
  2984. Version string
  2985. Host string
  2986. BasePath string
  2987. Schemes []string
  2988. Title string
  2989. Description string
  2990. }
  2991. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2992. var SwaggerInfo = swaggerInfo{
  2993. Version: "1.0",
  2994. Host: "",
  2995. BasePath: "/api",
  2996. Schemes: []string{},
  2997. Title: "MTP2.0 查询服务 API",
  2998. Description: "新的查询服务,替代原通用查询服务。",
  2999. }
  3000. type s struct{}
  3001. func (s *s) ReadDoc() string {
  3002. sInfo := SwaggerInfo
  3003. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  3004. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  3005. "marshal": func(v interface{}) string {
  3006. a, _ := json.Marshal(v)
  3007. return string(a)
  3008. },
  3009. }).Parse(doc)
  3010. if err != nil {
  3011. return doc
  3012. }
  3013. var tpl bytes.Buffer
  3014. if err := t.Execute(&tpl, sInfo); err != nil {
  3015. return doc
  3016. }
  3017. return tpl.String()
  3018. }
  3019. func init() {
  3020. swag.Register(swag.Name, &s{})
  3021. }