docs.go 128 KB

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