swagger.json 126 KB

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