docs.go 132 KB

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