docs.go 133 KB

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