docs.go 127 KB

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