docs.go 128 KB

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