swagger.json 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "新的查询服务,替代原通用查询服务。",
  5. "title": "MTP2.0 查询服务 API",
  6. "termsOfService": "http://muchinfo.cn",
  7. "contact": {},
  8. "license": {},
  9. "version": "1.0"
  10. },
  11. "basePath": "/api",
  12. "paths": {
  13. "/CPTrade/QueryCPTradeMyBidInfos": {
  14. "get": {
  15. "security": [
  16. {
  17. "ApiKeyAuth": []
  18. }
  19. ],
  20. "produces": [
  21. "application/json"
  22. ],
  23. "tags": [
  24. "产能预售"
  25. ],
  26. "summary": "查询产能预售我的出价信息",
  27. "parameters": [
  28. {
  29. "type": "integer",
  30. "description": "资金账户",
  31. "name": "accountid",
  32. "in": "query",
  33. "required": true
  34. },
  35. {
  36. "type": "integer",
  37. "description": "预售市场ID",
  38. "name": "marketid",
  39. "in": "query"
  40. },
  41. {
  42. "type": "integer",
  43. "description": "预售商品ID",
  44. "name": "goodsid",
  45. "in": "query"
  46. }
  47. ],
  48. "responses": {
  49. "200": {
  50. "description": "OK",
  51. "schema": {
  52. "$ref": "#/definitions/cptrade.QueryCPTradeMyBidRsp"
  53. }
  54. },
  55. "500": {
  56. "description": "Internal Server Error",
  57. "schema": {
  58. "$ref": "#/definitions/app.Response"
  59. }
  60. }
  61. }
  62. }
  63. },
  64. "/CPTrade/QueryCPTradeOrderDetail": {
  65. "get": {
  66. "security": [
  67. {
  68. "ApiKeyAuth": []
  69. }
  70. ],
  71. "produces": [
  72. "application/json"
  73. ],
  74. "tags": [
  75. "产能预售"
  76. ],
  77. "summary": "查询产能预售委托单信息",
  78. "parameters": [
  79. {
  80. "type": "integer",
  81. "description": "预售商品ID",
  82. "name": "goodsid",
  83. "in": "query"
  84. },
  85. {
  86. "type": "integer",
  87. "description": "预售市场ID",
  88. "name": "marketid",
  89. "in": "query"
  90. },
  91. {
  92. "type": "string",
  93. "description": "预售商品ID列表 - 格式:1,2,3",
  94. "name": "goodsids",
  95. "in": "query"
  96. }
  97. ],
  98. "responses": {
  99. "200": {
  100. "description": "OK",
  101. "schema": {
  102. "$ref": "#/definitions/cptrade.QueryCPTradeOrderDetailRsq"
  103. }
  104. },
  105. "500": {
  106. "description": "Internal Server Error",
  107. "schema": {
  108. "$ref": "#/definitions/app.Response"
  109. }
  110. }
  111. }
  112. }
  113. },
  114. "/CPTrade/QueryMyCPTradeGoods": {
  115. "get": {
  116. "security": [
  117. {
  118. "ApiKeyAuth": []
  119. }
  120. ],
  121. "produces": [
  122. "application/json"
  123. ],
  124. "tags": [
  125. "产能预售"
  126. ],
  127. "summary": "查询我的预售信息",
  128. "parameters": [
  129. {
  130. "type": "integer",
  131. "description": "资金账户",
  132. "name": "accountid",
  133. "in": "query",
  134. "required": true
  135. }
  136. ],
  137. "responses": {
  138. "200": {
  139. "description": "OK",
  140. "schema": {
  141. "$ref": "#/definitions/cptrade.QueryMyCPTradeGoodsRsp"
  142. }
  143. },
  144. "500": {
  145. "description": "Internal Server Error",
  146. "schema": {
  147. "$ref": "#/definitions/app.Response"
  148. }
  149. }
  150. }
  151. }
  152. },
  153. "/CPTrade/QueryPositionCancel": {
  154. "get": {
  155. "security": [
  156. {
  157. "ApiKeyAuth": []
  158. }
  159. ],
  160. "produces": [
  161. "application/json"
  162. ],
  163. "tags": [
  164. "产能预售"
  165. ],
  166. "summary": "查询远期订单注销申请信息",
  167. "parameters": [
  168. {
  169. "type": "integer",
  170. "description": "账户ID",
  171. "name": "userid",
  172. "in": "query",
  173. "required": true
  174. },
  175. {
  176. "type": "integer",
  177. "description": "注销ID",
  178. "name": "cancelid",
  179. "in": "query"
  180. },
  181. {
  182. "type": "integer",
  183. "description": "资金账户ID",
  184. "name": "accountid",
  185. "in": "query"
  186. }
  187. ],
  188. "responses": {
  189. "200": {
  190. "description": "OK",
  191. "schema": {
  192. "$ref": "#/definitions/cptrade.Cptradepositioncancel"
  193. }
  194. },
  195. "500": {
  196. "description": "Internal Server Error",
  197. "schema": {
  198. "$ref": "#/definitions/app.Response"
  199. }
  200. }
  201. }
  202. }
  203. },
  204. "/CPTrade/QueryPreasleApply": {
  205. "get": {
  206. "security": [
  207. {
  208. "ApiKeyAuth": []
  209. }
  210. ],
  211. "produces": [
  212. "application/json"
  213. ],
  214. "tags": [
  215. "产能预售"
  216. ],
  217. "summary": "查询产能预售申请信息",
  218. "parameters": [
  219. {
  220. "type": "integer",
  221. "description": "账户ID",
  222. "name": "userid",
  223. "in": "query",
  224. "required": true
  225. },
  226. {
  227. "type": "integer",
  228. "description": "申请ID",
  229. "name": "applyid",
  230. "in": "query"
  231. },
  232. {
  233. "type": "integer",
  234. "description": "资金账户ID",
  235. "name": "accountid",
  236. "in": "query"
  237. }
  238. ],
  239. "responses": {
  240. "200": {
  241. "description": "OK",
  242. "schema": {
  243. "$ref": "#/definitions/cptrade.Cptradepresaleapply"
  244. }
  245. },
  246. "500": {
  247. "description": "Internal Server Error",
  248. "schema": {
  249. "$ref": "#/definitions/app.Response"
  250. }
  251. }
  252. }
  253. }
  254. },
  255. "/CPTrade/QueryPresaleGoodsEx": {
  256. "get": {
  257. "security": [
  258. {
  259. "ApiKeyAuth": []
  260. }
  261. ],
  262. "produces": [
  263. "application/json"
  264. ],
  265. "tags": [
  266. "产能预售"
  267. ],
  268. "summary": "查询产能预售商品扩展信息",
  269. "parameters": [
  270. {
  271. "type": "integer",
  272. "description": "预售商品ID",
  273. "name": "goodsid",
  274. "in": "query"
  275. },
  276. {
  277. "type": "integer",
  278. "description": "预售市场ID",
  279. "name": "marketid",
  280. "in": "query"
  281. },
  282. {
  283. "type": "integer",
  284. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  285. "name": "presalemode",
  286. "in": "query"
  287. },
  288. {
  289. "type": "string",
  290. "description": "预售商品ID列表 - 格式:1,2,3",
  291. "name": "goodsids",
  292. "in": "query"
  293. },
  294. {
  295. "type": "string",
  296. "description": "预售商品代码",
  297. "name": "goodscode",
  298. "in": "query"
  299. }
  300. ],
  301. "responses": {
  302. "200": {
  303. "description": "OK",
  304. "schema": {
  305. "$ref": "#/definitions/cptrade.QueryPresaleGoodsExRsp"
  306. }
  307. },
  308. "500": {
  309. "description": "Internal Server Error",
  310. "schema": {
  311. "$ref": "#/definitions/app.Response"
  312. }
  313. }
  314. }
  315. }
  316. },
  317. "/CPTrade/QueryUserGoodsData": {
  318. "get": {
  319. "security": [
  320. {
  321. "ApiKeyAuth": []
  322. }
  323. ],
  324. "produces": [
  325. "application/json"
  326. ],
  327. "tags": [
  328. "产能预售"
  329. ],
  330. "summary": "查询远期订单信息",
  331. "parameters": [
  332. {
  333. "type": "integer",
  334. "description": "资金账户ID",
  335. "name": "accountid",
  336. "in": "query",
  337. "required": true
  338. }
  339. ],
  340. "responses": {
  341. "200": {
  342. "description": "OK",
  343. "schema": {
  344. "$ref": "#/definitions/cptrade.Cptradeusergoodsdata"
  345. }
  346. },
  347. "500": {
  348. "description": "Internal Server Error",
  349. "schema": {
  350. "$ref": "#/definitions/app.Response"
  351. }
  352. }
  353. }
  354. }
  355. },
  356. "/Common/QueryTableDefine": {
  357. "get": {
  358. "produces": [
  359. "application/json"
  360. ],
  361. "tags": [
  362. "通用服务"
  363. ],
  364. "summary": "查询交易端列表头信息",
  365. "parameters": [
  366. {
  367. "type": "string",
  368. "description": "表key",
  369. "name": "TableKey",
  370. "in": "query"
  371. }
  372. ],
  373. "responses": {
  374. "200": {
  375. "description": "OK",
  376. "schema": {
  377. "$ref": "#/definitions/models.Tablecolumnconfig"
  378. }
  379. },
  380. "500": {
  381. "description": "Internal Server Error",
  382. "schema": {
  383. "$ref": "#/definitions/app.Response"
  384. }
  385. }
  386. }
  387. }
  388. },
  389. "/Common/QueryTraderMenu": {
  390. "get": {
  391. "produces": [
  392. "application/json"
  393. ],
  394. "tags": [
  395. "通用服务"
  396. ],
  397. "summary": "查询交易端菜单",
  398. "parameters": [
  399. {
  400. "type": "integer",
  401. "description": "登录账号",
  402. "name": "loginid",
  403. "in": "query",
  404. "required": true
  405. }
  406. ],
  407. "responses": {
  408. "200": {
  409. "description": "OK",
  410. "schema": {
  411. "$ref": "#/definitions/common.QueryTraderMenuRsp"
  412. }
  413. },
  414. "500": {
  415. "description": "Internal Server Error",
  416. "schema": {
  417. "$ref": "#/definitions/app.Response"
  418. }
  419. }
  420. }
  421. }
  422. },
  423. "/Delivery/QueryDeliveryRelation": {
  424. "get": {
  425. "security": [
  426. {
  427. "ApiKeyAuth": []
  428. }
  429. ],
  430. "produces": [
  431. "application/json"
  432. ],
  433. "tags": [
  434. "交割服务"
  435. ],
  436. "summary": "查询商品交割关系表",
  437. "parameters": [
  438. {
  439. "type": "integer",
  440. "description": "商品ID",
  441. "name": "goodsid",
  442. "in": "query"
  443. },
  444. {
  445. "type": "integer",
  446. "description": "品种ID",
  447. "name": "deliverygoodsid",
  448. "in": "query"
  449. },
  450. {
  451. "type": "integer",
  452. "description": "市场ID",
  453. "name": "marketid",
  454. "in": "query"
  455. }
  456. ],
  457. "responses": {
  458. "200": {
  459. "description": "OK",
  460. "schema": {
  461. "$ref": "#/definitions/delivery.QueryDeliveryRelationRsp"
  462. }
  463. },
  464. "500": {
  465. "description": "Internal Server Error",
  466. "schema": {
  467. "$ref": "#/definitions/app.Response"
  468. }
  469. }
  470. }
  471. }
  472. },
  473. "/Erms2/QueryArbitrageStrategy": {
  474. "get": {
  475. "security": [
  476. {
  477. "ApiKeyAuth": []
  478. }
  479. ],
  480. "produces": [
  481. "application/json"
  482. ],
  483. "tags": [
  484. "风险管理"
  485. ],
  486. "summary": "查询期现套利策略表信息(指定资金账户、未结束的)",
  487. "parameters": [
  488. {
  489. "type": "integer",
  490. "description": "账户ID",
  491. "name": "userid",
  492. "in": "query",
  493. "required": true
  494. },
  495. {
  496. "type": "string",
  497. "description": "商品组ID(品种ID)",
  498. "name": "goodsgroupid",
  499. "in": "query"
  500. }
  501. ],
  502. "responses": {
  503. "200": {
  504. "description": "OK",
  505. "schema": {
  506. "$ref": "#/definitions/erms2.QueryArbitrageStrategyRsp"
  507. }
  508. },
  509. "500": {
  510. "description": "Internal Server Error",
  511. "schema": {
  512. "$ref": "#/definitions/app.Response"
  513. }
  514. }
  515. }
  516. }
  517. },
  518. "/Erms2/QueryInnerTradeDetail": {
  519. "get": {
  520. "security": [
  521. {
  522. "ApiKeyAuth": []
  523. }
  524. ],
  525. "produces": [
  526. "application/json"
  527. ],
  528. "tags": [
  529. "风险管理"
  530. ],
  531. "summary": "查询内部成交单信息",
  532. "parameters": [
  533. {
  534. "type": "integer",
  535. "description": "资金账户",
  536. "name": "accountid",
  537. "in": "query",
  538. "required": true
  539. }
  540. ],
  541. "responses": {
  542. "200": {
  543. "description": "OK",
  544. "schema": {
  545. "$ref": "#/definitions/erms2.QueryInnerTradeDetailRsp"
  546. }
  547. },
  548. "500": {
  549. "description": "Internal Server Error",
  550. "schema": {
  551. "$ref": "#/definitions/app.Response"
  552. }
  553. }
  554. }
  555. }
  556. },
  557. "/Erms2/QuerySpotContract": {
  558. "get": {
  559. "security": [
  560. {
  561. "ApiKeyAuth": []
  562. }
  563. ],
  564. "produces": [
  565. "application/json"
  566. ],
  567. "tags": [
  568. "风险管理"
  569. ],
  570. "summary": "查询现货合同表信息(指定策略ID、未结束的)",
  571. "parameters": [
  572. {
  573. "type": "integer",
  574. "description": "策略申请ID",
  575. "name": "asapplyid",
  576. "in": "query",
  577. "required": true
  578. },
  579. {
  580. "type": "integer",
  581. "description": "现货合同ID",
  582. "name": "spotcontractid",
  583. "in": "query"
  584. }
  585. ],
  586. "responses": {
  587. "200": {
  588. "description": "OK",
  589. "schema": {
  590. "$ref": "#/definitions/erms2.QuerySpotContractRsp"
  591. }
  592. },
  593. "500": {
  594. "description": "Internal Server Error",
  595. "schema": {
  596. "$ref": "#/definitions/app.Response"
  597. }
  598. }
  599. }
  600. }
  601. },
  602. "/Order/QueryTradePosition": {
  603. "get": {
  604. "security": [
  605. {
  606. "ApiKeyAuth": []
  607. }
  608. ],
  609. "produces": [
  610. "application/json"
  611. ],
  612. "tags": [
  613. "通用单据"
  614. ],
  615. "summary": "持仓汇总查询(合约市场)",
  616. "parameters": [
  617. {
  618. "type": "integer",
  619. "description": "资金账户",
  620. "name": "accountID",
  621. "in": "query",
  622. "required": true
  623. },
  624. {
  625. "type": "integer",
  626. "description": "交易模式",
  627. "name": "tradeMode",
  628. "in": "query"
  629. }
  630. ],
  631. "responses": {
  632. "200": {
  633. "description": "OK",
  634. "schema": {
  635. "$ref": "#/definitions/order.QueryTradePositionRsp"
  636. }
  637. },
  638. "500": {
  639. "description": "Internal Server Error",
  640. "schema": {
  641. "$ref": "#/definitions/app.Response"
  642. }
  643. }
  644. }
  645. }
  646. },
  647. "/User/GetLoginID": {
  648. "get": {
  649. "produces": [
  650. "application/json"
  651. ],
  652. "tags": [
  653. "用户信息"
  654. ],
  655. "summary": "获取登录ID",
  656. "parameters": [
  657. {
  658. "type": "string",
  659. "description": "登录代码",
  660. "name": "username",
  661. "in": "query",
  662. "required": true
  663. }
  664. ],
  665. "responses": {
  666. "200": {
  667. "description": "OK",
  668. "schema": {
  669. "$ref": "#/definitions/app.Response"
  670. }
  671. },
  672. "500": {
  673. "description": "Internal Server Error",
  674. "schema": {
  675. "$ref": "#/definitions/app.Response"
  676. }
  677. }
  678. }
  679. }
  680. },
  681. "/User/QueryUserReferNum": {
  682. "get": {
  683. "security": [
  684. {
  685. "ApiKeyAuth": []
  686. }
  687. ],
  688. "produces": [
  689. "application/json"
  690. ],
  691. "tags": [
  692. "用户信息"
  693. ],
  694. "summary": "获取用户邀请码",
  695. "parameters": [
  696. {
  697. "type": "string",
  698. "description": "登录代码",
  699. "name": "username",
  700. "in": "query",
  701. "required": true
  702. }
  703. ],
  704. "responses": {
  705. "200": {
  706. "description": "OK",
  707. "schema": {
  708. "$ref": "#/definitions/app.Response"
  709. }
  710. },
  711. "500": {
  712. "description": "Internal Server Error",
  713. "schema": {
  714. "$ref": "#/definitions/app.Response"
  715. }
  716. }
  717. }
  718. }
  719. },
  720. "/WRTrade/GetAllDeliveryGoods": {
  721. "get": {
  722. "security": [
  723. {
  724. "ApiKeyAuth": []
  725. }
  726. ],
  727. "produces": [
  728. "application/json"
  729. ],
  730. "tags": [
  731. "仓单贸易"
  732. ],
  733. "summary": "获取带仓单分类的种类信息",
  734. "responses": {
  735. "200": {
  736. "description": "OK",
  737. "schema": {
  738. "$ref": "#/definitions/app.Response"
  739. }
  740. },
  741. "500": {
  742. "description": "Internal Server Error",
  743. "schema": {
  744. "$ref": "#/definitions/app.Response"
  745. }
  746. }
  747. }
  748. }
  749. }
  750. },
  751. "definitions": {
  752. "app.Response": {
  753. "type": "object",
  754. "properties": {
  755. "code": {
  756. "type": "integer"
  757. },
  758. "data": {
  759. "type": "object"
  760. },
  761. "msg": {
  762. "type": "string"
  763. }
  764. }
  765. },
  766. "common.OperationPrimaryMenu": {
  767. "type": "object",
  768. "properties": {
  769. "Children": {
  770. "description": "二级功能菜单",
  771. "type": "array",
  772. "items": {
  773. "$ref": "#/definitions/common.OperationSecondaryMenu"
  774. }
  775. },
  776. "Key": {
  777. "description": "菜单KEY",
  778. "type": "string"
  779. },
  780. "Label": {
  781. "description": "菜单标题",
  782. "type": "string"
  783. }
  784. }
  785. },
  786. "common.OperationSecondaryMenu": {
  787. "type": "object",
  788. "properties": {
  789. "Key": {
  790. "description": "菜单KEY",
  791. "type": "string"
  792. },
  793. "Label": {
  794. "description": "菜单标题",
  795. "type": "string"
  796. },
  797. "TabList": {
  798. "description": "三级功能菜单",
  799. "type": "array",
  800. "items": {
  801. "$ref": "#/definitions/common.OperationTabMenu"
  802. }
  803. }
  804. }
  805. },
  806. "common.OperationTabMenu": {
  807. "type": "object",
  808. "properties": {
  809. "Key": {
  810. "description": "菜单KEY",
  811. "type": "string"
  812. },
  813. "Label": {
  814. "description": "菜单标题",
  815. "type": "string"
  816. }
  817. }
  818. },
  819. "common.QueryTraderMenuRsp": {
  820. "type": "object",
  821. "properties": {
  822. "OperationMenu": {
  823. "description": "功能菜单",
  824. "type": "array",
  825. "items": {
  826. "$ref": "#/definitions/common.OperationPrimaryMenu"
  827. }
  828. },
  829. "QuoteMenu": {
  830. "description": "报价牌分类菜单",
  831. "type": "array",
  832. "items": {
  833. "$ref": "#/definitions/common.QuotePrimaryMenu"
  834. }
  835. }
  836. }
  837. },
  838. "common.QuotePrimaryMenu": {
  839. "type": "object",
  840. "properties": {
  841. "Index": {
  842. "description": "序号",
  843. "type": "integer"
  844. },
  845. "Key": {
  846. "description": "键名",
  847. "type": "string"
  848. },
  849. "Name": {
  850. "description": "菜单名称",
  851. "type": "string"
  852. },
  853. "SubMenus": {
  854. "description": "子菜单",
  855. "type": "array",
  856. "items": {
  857. "$ref": "#/definitions/common.QuoteSecondaryMenu"
  858. }
  859. },
  860. "SubTitleType": {
  861. "description": "子菜单标题模式:0-市场名称;1-外部交易所名称",
  862. "type": "integer"
  863. },
  864. "TradeModes": {
  865. "description": "包含市场交易类型",
  866. "type": "string"
  867. }
  868. }
  869. },
  870. "common.QuoteSecondaryMenu": {
  871. "type": "object",
  872. "properties": {
  873. "ExExchangeCode": {
  874. "description": "外部交易所代码",
  875. "type": "string"
  876. },
  877. "ExExchangeID": {
  878. "description": "外部交易所ID",
  879. "type": "integer"
  880. },
  881. "GoodsGroupIDs": {
  882. "description": "商品组ID列表",
  883. "type": "array",
  884. "items": {
  885. "type": "integer"
  886. }
  887. },
  888. "Index": {
  889. "description": "序号",
  890. "type": "integer"
  891. },
  892. "MarketID": {
  893. "description": "市场ID",
  894. "type": "integer"
  895. },
  896. "MenuTitle": {
  897. "description": "菜单标题(市场名称或外部交易所名称)",
  898. "type": "string"
  899. },
  900. "TradeMode": {
  901. "description": "交易模式",
  902. "type": "integer"
  903. }
  904. }
  905. },
  906. "cptrade.Cptradepositioncancel": {
  907. "type": "object",
  908. "required": [
  909. "cancelid"
  910. ],
  911. "properties": {
  912. "accountid": {
  913. "description": "申请人账户ID",
  914. "type": "integer"
  915. },
  916. "applystatus": {
  917. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  918. "type": "integer"
  919. },
  920. "applytime": {
  921. "description": "申请时间",
  922. "type": "string"
  923. },
  924. "cancelid": {
  925. "description": "注销ID(SEQ_CPTRADE_POSITIONCANCEL)",
  926. "type": "integer"
  927. },
  928. "cancelqty": {
  929. "description": "注销数量",
  930. "type": "integer"
  931. },
  932. "createtime": {
  933. "description": "创建时间",
  934. "type": "string"
  935. },
  936. "creatorid": {
  937. "description": "创建人ID",
  938. "type": "integer"
  939. },
  940. "creatorname": {
  941. "description": "创建人",
  942. "type": "string"
  943. },
  944. "goodscode": {
  945. "description": "订单商品代码",
  946. "type": "string"
  947. },
  948. "goodsid": {
  949. "description": "商品ID",
  950. "type": "integer"
  951. },
  952. "goodsname": {
  953. "description": "订单商品名称",
  954. "type": "string"
  955. },
  956. "goodunit": {
  957. "description": "报价单位",
  958. "type": "string"
  959. },
  960. "handlestatus": {
  961. "description": "处理状态",
  962. "type": "integer"
  963. },
  964. "marketid": {
  965. "description": "市场ID",
  966. "type": "integer"
  967. },
  968. "marketname": {
  969. "description": "市场名称",
  970. "type": "string"
  971. },
  972. "tradedate": {
  973. "description": "交易日(yyyyMMdd)",
  974. "type": "string"
  975. },
  976. "userid": {
  977. "description": "申请人ID",
  978. "type": "integer"
  979. }
  980. }
  981. },
  982. "cptrade.Cptradepresaleapply": {
  983. "type": "object",
  984. "required": [
  985. "applyid"
  986. ],
  987. "properties": {
  988. "accountid": {
  989. "description": "申请人账户ID",
  990. "type": "integer"
  991. },
  992. "applyid": {
  993. "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)",
  994. "type": "integer"
  995. },
  996. "applyremark": {
  997. "description": "申请备注",
  998. "type": "string"
  999. },
  1000. "applystatus": {
  1001. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  1002. "type": "integer"
  1003. },
  1004. "applytime": {
  1005. "description": "申请时间",
  1006. "type": "string"
  1007. },
  1008. "attachmenturl": {
  1009. "description": "附件地址",
  1010. "type": "string"
  1011. },
  1012. "endtime": {
  1013. "description": "预售结束时间",
  1014. "type": "string"
  1015. },
  1016. "goodscode": {
  1017. "description": "商品代码",
  1018. "type": "string"
  1019. },
  1020. "goodsid": {
  1021. "description": "商品ID",
  1022. "type": "integer"
  1023. },
  1024. "goodsname": {
  1025. "description": "商品名称",
  1026. "type": "string"
  1027. },
  1028. "goodunit": {
  1029. "description": "报价单位",
  1030. "type": "string"
  1031. },
  1032. "handlestatus": {
  1033. "description": "处理状态",
  1034. "type": "integer"
  1035. },
  1036. "marketid": {
  1037. "description": "预售市场ID",
  1038. "type": "integer"
  1039. },
  1040. "marketname": {
  1041. "description": "预售市场名称",
  1042. "type": "string"
  1043. },
  1044. "presaleqty": {
  1045. "description": "预售数量",
  1046. "type": "integer"
  1047. },
  1048. "relatedgoodscode": {
  1049. "description": "关联交易合约代码",
  1050. "type": "string"
  1051. },
  1052. "relatedgoodsid": {
  1053. "description": "关联交易合约ID",
  1054. "type": "integer"
  1055. },
  1056. "relatedgoodsname": {
  1057. "description": "关联交易合约名称",
  1058. "type": "string"
  1059. },
  1060. "starttime": {
  1061. "description": "预售开始时间",
  1062. "type": "string"
  1063. },
  1064. "tradedate": {
  1065. "description": "交易日(yyyyMMdd)",
  1066. "type": "string"
  1067. },
  1068. "trademode": {
  1069. "description": "交易模式 - 16:挂牌点选 21:大宗竞拍",
  1070. "type": "integer"
  1071. },
  1072. "userid": {
  1073. "description": "申请人ID",
  1074. "type": "integer"
  1075. }
  1076. }
  1077. },
  1078. "cptrade.Cptradeusergoodsdata": {
  1079. "type": "object",
  1080. "required": [
  1081. "accountid",
  1082. "goodsid"
  1083. ],
  1084. "properties": {
  1085. "EnabledQty": {
  1086. "description": "可用量",
  1087. "type": "integer"
  1088. },
  1089. "GoodsCode": {
  1090. "description": "订单商品代码",
  1091. "type": "string"
  1092. },
  1093. "GoodsName": {
  1094. "description": "订单商品名称",
  1095. "type": "string"
  1096. },
  1097. "WRStandardCode": {
  1098. "description": "仓单标准代码",
  1099. "type": "string"
  1100. },
  1101. "WRStandardName": {
  1102. "description": "仓单标准名称",
  1103. "type": "string"
  1104. },
  1105. "accountid": {
  1106. "description": "账户ID",
  1107. "type": "integer"
  1108. },
  1109. "cancelqty": {
  1110. "description": "注销量",
  1111. "type": "integer"
  1112. },
  1113. "curpresaleqty": {
  1114. "description": "当前预售量",
  1115. "type": "integer"
  1116. },
  1117. "deliveryqty": {
  1118. "description": "交割量",
  1119. "type": "integer"
  1120. },
  1121. "freezeamount": {
  1122. "description": "冻结金额",
  1123. "type": "number"
  1124. },
  1125. "goodsid": {
  1126. "description": "商品ID",
  1127. "type": "integer"
  1128. },
  1129. "goodunit": {
  1130. "description": "报价单位",
  1131. "type": "string"
  1132. },
  1133. "hasspotfreeze": {
  1134. "description": "是否有现货冻结 - 0:否 1:有",
  1135. "type": "integer"
  1136. },
  1137. "inqty": {
  1138. "description": "转入量(总数量)",
  1139. "type": "integer"
  1140. },
  1141. "marketid": {
  1142. "description": "市场ID",
  1143. "type": "integer"
  1144. },
  1145. "presaledamount": {
  1146. "description": "已预售总金额",
  1147. "type": "integer"
  1148. },
  1149. "presaledqty": {
  1150. "description": "已预售量",
  1151. "type": "integer"
  1152. },
  1153. "userid": {
  1154. "description": "用户ID",
  1155. "type": "integer"
  1156. },
  1157. "wrstandardid": {
  1158. "description": "仓单标准ID",
  1159. "type": "integer"
  1160. }
  1161. }
  1162. },
  1163. "cptrade.QueryCPTradeMyBidRsp": {
  1164. "type": "object",
  1165. "required": [
  1166. "accountid",
  1167. "goodsid",
  1168. "marketid",
  1169. "orderid",
  1170. "orderqty",
  1171. "ordertime",
  1172. "tradeprice",
  1173. "tradeqty"
  1174. ],
  1175. "properties": {
  1176. "accountid": {
  1177. "description": "账户ID[报价币种]",
  1178. "type": "integer"
  1179. },
  1180. "goodsid": {
  1181. "description": "商品ID",
  1182. "type": "integer"
  1183. },
  1184. "goodunit": {
  1185. "description": "报价单位",
  1186. "type": "string"
  1187. },
  1188. "marketid": {
  1189. "description": "市场ID",
  1190. "type": "integer"
  1191. },
  1192. "orderid": {
  1193. "description": "委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  1194. "type": "integer"
  1195. },
  1196. "orderprice": {
  1197. "description": "委托价格",
  1198. "type": "number"
  1199. },
  1200. "orderqty": {
  1201. "description": "委托数量",
  1202. "type": "integer"
  1203. },
  1204. "ordertime": {
  1205. "description": "委托时间",
  1206. "type": "string"
  1207. },
  1208. "ordertotalprice": {
  1209. "description": "货款金额(委托总价格=委托价格*委托数量*合约单位)",
  1210. "type": "number"
  1211. },
  1212. "ordertotalweight": {
  1213. "description": "竞拍总重量(委托总重量=委托数量*合约单位)",
  1214. "type": "integer"
  1215. },
  1216. "totaltotalprice": {
  1217. "description": "成交货款金额(成交总价格=成交价格*成交数量*合约单位)",
  1218. "type": "number"
  1219. },
  1220. "tradeprice": {
  1221. "description": "成交价格",
  1222. "type": "number"
  1223. },
  1224. "tradeqty": {
  1225. "description": "成交数量",
  1226. "type": "integer"
  1227. }
  1228. }
  1229. },
  1230. "cptrade.QueryCPTradeOrderDetailRsq": {
  1231. "type": "object",
  1232. "required": [
  1233. "accountid",
  1234. "buildtype",
  1235. "buyorsell",
  1236. "goodsid",
  1237. "marketid",
  1238. "memberuserid",
  1239. "operatetype",
  1240. "orderqty",
  1241. "ordertime",
  1242. "pricemode",
  1243. "strorderid",
  1244. "tradedate",
  1245. "validtype"
  1246. ],
  1247. "properties": {
  1248. "accountid": {
  1249. "description": "账户ID[报价币种]",
  1250. "type": "integer"
  1251. },
  1252. "buildtype": {
  1253. "description": "委托单据类型 - 1:建仓 2:平仓 3:先平后建",
  1254. "type": "integer"
  1255. },
  1256. "buyorsell": {
  1257. "description": "买卖 - 0:买 1:卖",
  1258. "type": "integer"
  1259. },
  1260. "cancelorderid": {
  1261. "description": "撤单单号(撤单时填写)",
  1262. "type": "integer"
  1263. },
  1264. "cancelqty": {
  1265. "description": "撤单数量",
  1266. "type": "integer"
  1267. },
  1268. "clientordertime": {
  1269. "description": "客户端委托时间",
  1270. "type": "string"
  1271. },
  1272. "clientticket": {
  1273. "description": "客户端流水号",
  1274. "type": "string"
  1275. },
  1276. "clienttype": {
  1277. "description": "客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)",
  1278. "type": "integer"
  1279. },
  1280. "closeexchagechargevalue": {
  1281. "description": "平仓交易所手续费设置值",
  1282. "type": "number"
  1283. },
  1284. "closefeealgorithm": {
  1285. "description": "平仓手续费收取方式 1:比率 2:固定",
  1286. "type": "integer"
  1287. },
  1288. "closefreezecharge": {
  1289. "description": "平仓冻结手续费(先建后平操作,需要记录)",
  1290. "type": "number"
  1291. },
  1292. "closememberchargevalue": {
  1293. "description": "平仓会员手续费设置值",
  1294. "type": "number"
  1295. },
  1296. "closeqty": {
  1297. "description": "平仓数量(先建后平操作 需要记录)",
  1298. "type": "integer"
  1299. },
  1300. "closetradeqty": {
  1301. "description": "平仓成交数量(先建后平操作,需要记录)",
  1302. "type": "integer"
  1303. },
  1304. "closeunfreezecharge": {
  1305. "description": "平仓解冻手续费(先建后平操作,需要记录)",
  1306. "type": "number"
  1307. },
  1308. "delistingtype": {
  1309. "description": "摘牌类型 - 1:价格最优 2:点选成交",
  1310. "type": "integer"
  1311. },
  1312. "freezecharge": {
  1313. "description": "冻结手续费",
  1314. "type": "number"
  1315. },
  1316. "freezemargin": {
  1317. "description": "冻结保证金(冻结交易金额)",
  1318. "type": "number"
  1319. },
  1320. "gcaccountid": {
  1321. "description": "账户ID[合约币种]",
  1322. "type": "integer"
  1323. },
  1324. "goodsid": {
  1325. "description": "商品ID",
  1326. "type": "integer"
  1327. },
  1328. "isconfirmexercise": {
  1329. "description": "是否确认行权- 0:否 1:是",
  1330. "type": "integer"
  1331. },
  1332. "ispreexercise": {
  1333. "description": "是否预申报- 0:否 1:是",
  1334. "type": "integer"
  1335. },
  1336. "listingselecttype": {
  1337. "description": "挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂",
  1338. "type": "integer"
  1339. },
  1340. "marginalgorithm": {
  1341. "description": "保证金收取方式 1:比率 2:固定",
  1342. "type": "integer"
  1343. },
  1344. "marginvalue": {
  1345. "description": "即市保证金设置值",
  1346. "type": "number"
  1347. },
  1348. "marketid": {
  1349. "description": "市场ID",
  1350. "type": "integer"
  1351. },
  1352. "marketmaxsub": {
  1353. "description": "市价最大偏移范围",
  1354. "type": "number"
  1355. },
  1356. "memberuserid": {
  1357. "description": "所属会员UserID",
  1358. "type": "integer"
  1359. },
  1360. "openexchagechargevalue": {
  1361. "description": "建仓交易所手续费设置值",
  1362. "type": "number"
  1363. },
  1364. "openfeealgorithm": {
  1365. "description": "建仓手续费收取方式 1:比率 2:固定",
  1366. "type": "integer"
  1367. },
  1368. "openfreezecharge": {
  1369. "description": "开仓冻结手续费(先建后平操作,需要记录)",
  1370. "type": "number"
  1371. },
  1372. "openmemberchargevalue": {
  1373. "description": "建仓会员手续费设置值",
  1374. "type": "number"
  1375. },
  1376. "openqty": {
  1377. "description": "开仓数量(先建后平操作,需要记录)",
  1378. "type": "integer"
  1379. },
  1380. "opentradeqty": {
  1381. "description": "开仓成交数量(先建后平操作,需要记录)",
  1382. "type": "integer"
  1383. },
  1384. "openunfreezecharge": {
  1385. "description": "开仓解冻手续费(先建后平操作,需要记录)",
  1386. "type": "number"
  1387. },
  1388. "operatetype": {
  1389. "description": "操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让",
  1390. "type": "integer"
  1391. },
  1392. "operatorid": {
  1393. "description": "登录账号(LoginID)",
  1394. "type": "integer"
  1395. },
  1396. "optiontype": {
  1397. "description": "期权类型 - 1:认购(看涨) 2:认沽(看跌)",
  1398. "type": "integer"
  1399. },
  1400. "orderprice": {
  1401. "description": "委托价格",
  1402. "type": "number"
  1403. },
  1404. "orderqty": {
  1405. "description": "委托数量",
  1406. "type": "integer"
  1407. },
  1408. "ordersrc": {
  1409. "description": "委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发",
  1410. "type": "integer"
  1411. },
  1412. "orderstatus": {
  1413. "description": "委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)",
  1414. "type": "integer"
  1415. },
  1416. "ordertime": {
  1417. "description": "委托时间",
  1418. "type": "string"
  1419. },
  1420. "preexerciseprice": {
  1421. "description": "预申报价格",
  1422. "type": "number"
  1423. },
  1424. "premium": {
  1425. "description": "权利金",
  1426. "type": "number"
  1427. },
  1428. "preorderid": {
  1429. "description": "关联预埋单号(止盈止损单时填写)",
  1430. "type": "integer"
  1431. },
  1432. "pricemode": {
  1433. "description": "取价方式 - 1:市价 2: 限价",
  1434. "type": "integer"
  1435. },
  1436. "quoteid": {
  1437. "description": "报价单ID",
  1438. "type": "integer"
  1439. },
  1440. "relatedid": {
  1441. "description": "关联单号(交割单)",
  1442. "type": "integer"
  1443. },
  1444. "retcode": {
  1445. "description": "错误代码",
  1446. "type": "integer"
  1447. },
  1448. "sessionid": {
  1449. "description": "会话ID",
  1450. "type": "integer"
  1451. },
  1452. "strorderid": {
  1453. "description": "委托单号",
  1454. "type": "string"
  1455. },
  1456. "tradedate": {
  1457. "description": "交易日(yyyyMMdd)",
  1458. "type": "string"
  1459. },
  1460. "tradeproperty": {
  1461. "description": "交易属性",
  1462. "type": "integer"
  1463. },
  1464. "tradeqty": {
  1465. "description": "成交数量",
  1466. "type": "integer"
  1467. },
  1468. "unfreezecharge": {
  1469. "description": "解冻手续费",
  1470. "type": "number"
  1471. },
  1472. "unfreezemargin": {
  1473. "description": "解冻保证金",
  1474. "type": "number"
  1475. },
  1476. "updatetime": {
  1477. "description": "更新时间",
  1478. "type": "string"
  1479. },
  1480. "uuid": {
  1481. "description": "发起端唯一id",
  1482. "type": "string"
  1483. },
  1484. "validtime": {
  1485. "description": "有效期限",
  1486. "type": "string"
  1487. },
  1488. "validtype": {
  1489. "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效",
  1490. "type": "integer"
  1491. },
  1492. "volumetype": {
  1493. "description": "当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量",
  1494. "type": "integer"
  1495. }
  1496. }
  1497. },
  1498. "cptrade.QueryMyCPTradeGoodsRsp": {
  1499. "type": "object",
  1500. "required": [
  1501. "goodscode",
  1502. "goodsid",
  1503. "goodsname",
  1504. "marketid",
  1505. "relatedgoodscode",
  1506. "relatedgoodsname"
  1507. ],
  1508. "properties": {
  1509. "accountid": {
  1510. "description": "卖方账户ID",
  1511. "type": "integer"
  1512. },
  1513. "agreeunit": {
  1514. "description": "合约单位",
  1515. "type": "number"
  1516. },
  1517. "applyid": {
  1518. "description": "关联申请ID",
  1519. "type": "integer"
  1520. },
  1521. "attachmenturl": {
  1522. "description": "附件地址",
  1523. "type": "string"
  1524. },
  1525. "createtime": {
  1526. "description": "创建时间",
  1527. "type": "string"
  1528. },
  1529. "currencyid": {
  1530. "description": "报价货币ID",
  1531. "type": "integer"
  1532. },
  1533. "decimalplace": {
  1534. "description": "报价小数位",
  1535. "type": "integer"
  1536. },
  1537. "endtime": {
  1538. "description": "预售结束时间",
  1539. "type": "string"
  1540. },
  1541. "floorprice": {
  1542. "description": "底价[大宗式竞拍]",
  1543. "type": "number"
  1544. },
  1545. "goodscode": {
  1546. "description": "商品代码(预售)",
  1547. "type": "string"
  1548. },
  1549. "goodsdetail": {
  1550. "description": "详情[大宗]",
  1551. "type": "string"
  1552. },
  1553. "goodsid": {
  1554. "description": "商品ID(自增ID SEQ_GOODS)",
  1555. "type": "integer"
  1556. },
  1557. "goodsname": {
  1558. "description": "商品名称(预售)",
  1559. "type": "string"
  1560. },
  1561. "goodunit": {
  1562. "description": "报价单位",
  1563. "type": "string"
  1564. },
  1565. "goodunitid": {
  1566. "description": "报价单位ID",
  1567. "type": "integer"
  1568. },
  1569. "marketid": {
  1570. "description": "所属市场ID",
  1571. "type": "integer"
  1572. },
  1573. "marketname": {
  1574. "description": "预售市场名称",
  1575. "type": "string"
  1576. },
  1577. "presaledamount": {
  1578. "description": "已预售总金额(预售结束时更新)",
  1579. "type": "number"
  1580. },
  1581. "presaledqty": {
  1582. "description": "已预售量(预售结束时更新)",
  1583. "type": "integer"
  1584. },
  1585. "presalemode": {
  1586. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1587. "type": "integer"
  1588. },
  1589. "presaleqty": {
  1590. "description": "预售数量",
  1591. "type": "integer"
  1592. },
  1593. "refprice": {
  1594. "description": "参考价格[一口价]",
  1595. "type": "number"
  1596. },
  1597. "relatedgoodscode": {
  1598. "description": "商品代码(订单)",
  1599. "type": "string"
  1600. },
  1601. "relatedgoodsid": {
  1602. "description": "关联交易合约ID",
  1603. "type": "integer"
  1604. },
  1605. "relatedgoodsname": {
  1606. "description": "商品名称(订单)",
  1607. "type": "string"
  1608. },
  1609. "relatedmarketid": {
  1610. "description": "关联交易合约市场ID",
  1611. "type": "integer"
  1612. },
  1613. "sellstatus": {
  1614. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1615. "type": "integer"
  1616. },
  1617. "startprice": {
  1618. "description": "起拍价[大宗式竞拍]",
  1619. "type": "number"
  1620. },
  1621. "starttime": {
  1622. "description": "预售开始时间",
  1623. "type": "string"
  1624. },
  1625. "tradedate": {
  1626. "description": "交易日(yyyyMMdd)",
  1627. "type": "string"
  1628. },
  1629. "tradeprice": {
  1630. "description": "成交价[大宗]",
  1631. "type": "number"
  1632. },
  1633. "userid": {
  1634. "description": "卖方用户ID",
  1635. "type": "integer"
  1636. }
  1637. }
  1638. },
  1639. "cptrade.QueryPresaleGoodsExRsp": {
  1640. "type": "object",
  1641. "required": [
  1642. "goodsid"
  1643. ],
  1644. "properties": {
  1645. "attachmenturl": {
  1646. "description": "附件地址",
  1647. "type": "string"
  1648. },
  1649. "createtime": {
  1650. "description": "创建时间",
  1651. "type": "string"
  1652. },
  1653. "endtime": {
  1654. "description": "预售结束时间",
  1655. "type": "string"
  1656. },
  1657. "floorprice": {
  1658. "description": "底价[大宗式竞拍]",
  1659. "type": "number"
  1660. },
  1661. "goodsdetail": {
  1662. "description": "详情[大宗]",
  1663. "type": "string"
  1664. },
  1665. "goodsid": {
  1666. "description": "商品ID(预售)",
  1667. "type": "integer"
  1668. },
  1669. "goodunit": {
  1670. "description": "报价单位",
  1671. "type": "string"
  1672. },
  1673. "marketid": {
  1674. "description": "预售市场ID - 根据预售模式选择市场",
  1675. "type": "integer"
  1676. },
  1677. "presaledamount": {
  1678. "description": "已预售总金额(预售结束时更新)",
  1679. "type": "number"
  1680. },
  1681. "presaledqty": {
  1682. "description": "已预售量(预售结束时更新)",
  1683. "type": "integer"
  1684. },
  1685. "presalemode": {
  1686. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1687. "type": "integer"
  1688. },
  1689. "presaleqty": {
  1690. "description": "预售数量",
  1691. "type": "integer"
  1692. },
  1693. "refprice": {
  1694. "description": "参考价格[一口价]",
  1695. "type": "number"
  1696. },
  1697. "relatedgoodsid": {
  1698. "description": "关联交易合约ID",
  1699. "type": "integer"
  1700. },
  1701. "relatedmarketid": {
  1702. "description": "关联交易合约市场ID",
  1703. "type": "integer"
  1704. },
  1705. "sellstatus": {
  1706. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1707. "type": "integer"
  1708. },
  1709. "startprice": {
  1710. "description": "起拍价[大宗式竞拍]",
  1711. "type": "number"
  1712. },
  1713. "starttime": {
  1714. "description": "预售开始时间",
  1715. "type": "string"
  1716. },
  1717. "tradedate": {
  1718. "description": "交易日(yyyyMMdd)",
  1719. "type": "string"
  1720. },
  1721. "tradeprice": {
  1722. "description": "成交价[大宗]",
  1723. "type": "number"
  1724. }
  1725. }
  1726. },
  1727. "delivery.QueryDeliveryRelationRsp": {
  1728. "type": "object",
  1729. "required": [
  1730. "begindate",
  1731. "enddate",
  1732. "goodsid",
  1733. "mindeliveryqty",
  1734. "xdeliveryratio"
  1735. ],
  1736. "properties": {
  1737. "begindate": {
  1738. "description": "起始日期(yyyyMMdd)",
  1739. "type": "string"
  1740. },
  1741. "buytemplateid": {
  1742. "description": "买履约计划模板ID",
  1743. "type": "integer"
  1744. },
  1745. "deliverygoodscode": {
  1746. "description": "品种代码",
  1747. "type": "string"
  1748. },
  1749. "deliverygoodsid": {
  1750. "description": "交割商品",
  1751. "type": "integer"
  1752. },
  1753. "deliverygoodsname": {
  1754. "description": "品种名称",
  1755. "type": "string"
  1756. },
  1757. "deliverymode": {
  1758. "description": "交割方式 - 1:点选式 2:申报式",
  1759. "type": "integer"
  1760. },
  1761. "deliverypricerule": {
  1762. "description": "交割价规则- 1:行情价 2:建仓价",
  1763. "type": "integer"
  1764. },
  1765. "deliverytype": {
  1766. "description": "交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割",
  1767. "type": "integer"
  1768. },
  1769. "enddate": {
  1770. "description": "结束日期(yyyyMMdd)",
  1771. "type": "string"
  1772. },
  1773. "goodscode": {
  1774. "description": "商品代码",
  1775. "type": "string"
  1776. },
  1777. "goodsid": {
  1778. "description": "交易合约ID",
  1779. "type": "integer"
  1780. },
  1781. "goodsname": {
  1782. "description": "商品名称",
  1783. "type": "string"
  1784. },
  1785. "marketid": {
  1786. "description": "市场ID",
  1787. "type": "integer"
  1788. },
  1789. "mindeliveryqty": {
  1790. "description": "最小交割系数(K)",
  1791. "type": "integer"
  1792. },
  1793. "p2deliveryprice": {
  1794. "description": "P2合约价格(商品价时填写0,固定值时填写固定值)",
  1795. "type": "number"
  1796. },
  1797. "p2deliveryratio": {
  1798. "description": "P2合约系数(p)",
  1799. "type": "integer"
  1800. },
  1801. "p2goodsid": {
  1802. "description": "P2合约ID",
  1803. "type": "integer"
  1804. },
  1805. "p2pricemode": {
  1806. "description": "P2合约价格方式 - 1:商品价 2:固定值",
  1807. "type": "integer"
  1808. },
  1809. "pdeliveryprice": {
  1810. "description": "P合约价格(商品价时填写0,固定值时填写固定值)",
  1811. "type": "number"
  1812. },
  1813. "pdeliveryratio": {
  1814. "description": "P合约系数(n)",
  1815. "type": "integer"
  1816. },
  1817. "pgoodsid": {
  1818. "description": "P合约ID",
  1819. "type": "integer"
  1820. },
  1821. "ppricemode": {
  1822. "description": "P合约价格方式 - 1:商品价 2:固定值",
  1823. "type": "integer"
  1824. },
  1825. "rratio": {
  1826. "description": "兑换系数(R)",
  1827. "type": "integer"
  1828. },
  1829. "rratio1": {
  1830. "description": "兑换系数(交易合约)(R1)",
  1831. "type": "integer"
  1832. },
  1833. "rratio2": {
  1834. "description": "兑换系数(仓单标准)(R2)",
  1835. "type": "integer"
  1836. },
  1837. "selltemplateid": {
  1838. "description": "卖履约计划模板ID",
  1839. "type": "integer"
  1840. },
  1841. "wrstandardid": {
  1842. "description": "仓单标准ID",
  1843. "type": "integer"
  1844. },
  1845. "xdeliveryratio": {
  1846. "description": "交易合约系数(m)",
  1847. "type": "integer"
  1848. }
  1849. }
  1850. },
  1851. "erms2.QueryArbitrageStrategyRsp": {
  1852. "type": "object",
  1853. "required": [
  1854. "asapplyid"
  1855. ],
  1856. "properties": {
  1857. "applybasis": {
  1858. "description": "申请基差",
  1859. "type": "number"
  1860. },
  1861. "asapplyid": {
  1862. "description": "策略申请ID(702+Unix秒时间戳(10位)+xxxxxx)",
  1863. "type": "string"
  1864. },
  1865. "asname": {
  1866. "description": "策略名称",
  1867. "type": "string"
  1868. },
  1869. "asno": {
  1870. "description": "策略编号",
  1871. "type": "string"
  1872. },
  1873. "basischangepl": {
  1874. "description": "基差变动损益[结算更新]",
  1875. "type": "number"
  1876. },
  1877. "biztype": {
  1878. "description": "业务类型 - 1:正向套利 -1:反向套利",
  1879. "type": "integer"
  1880. },
  1881. "closetradedate": {
  1882. "description": "完结交易日(yyyyMMdd)",
  1883. "type": "string"
  1884. },
  1885. "curbasis": {
  1886. "description": "当前基差[结算更新]",
  1887. "type": "number"
  1888. },
  1889. "deliverygoodsid": {
  1890. "description": "现货品种ID",
  1891. "type": "integer"
  1892. },
  1893. "futureavgprice": {
  1894. "description": "期货建仓均价",
  1895. "type": "number"
  1896. },
  1897. "futurecloseamount": {
  1898. "description": "期货平仓金额",
  1899. "type": "number"
  1900. },
  1901. "futurecloseqty": {
  1902. "description": "期货平仓数量",
  1903. "type": "number"
  1904. },
  1905. "futureopenamount": {
  1906. "description": "期货开仓金额",
  1907. "type": "number"
  1908. },
  1909. "futureopenqty": {
  1910. "description": "期货开仓数量",
  1911. "type": "number"
  1912. },
  1913. "futurepl": {
  1914. "description": "期货总盈亏[结算更新]",
  1915. "type": "number"
  1916. },
  1917. "futureqty": {
  1918. "description": "期货持仓数量",
  1919. "type": "number"
  1920. },
  1921. "futurequote": {
  1922. "description": "期货额度",
  1923. "type": "number"
  1924. },
  1925. "goodsgroupid": {
  1926. "description": "期货品种ID",
  1927. "type": "integer"
  1928. },
  1929. "marketid": {
  1930. "description": "市场ID",
  1931. "type": "integer"
  1932. },
  1933. "netexposure": {
  1934. "description": "单笔业务头寸净敞口 = 期货持仓数量 + 已定价现货不含税数量",
  1935. "type": "number"
  1936. },
  1937. "netexposurepl": {
  1938. "description": "净敞口损益 = TotalPL - BasisChangePL[结算更新]",
  1939. "type": "number"
  1940. },
  1941. "netexposurerate": {
  1942. "description": "净敞口比例 - 0:未结束 = (NetExposure/PriceSpotQtyNoTax) ; 已结束为0",
  1943. "type": "number"
  1944. },
  1945. "openbasis": {
  1946. "description": "建仓基差",
  1947. "type": "number"
  1948. },
  1949. "pricedspotqty": {
  1950. "description": "已定价现货数量",
  1951. "type": "number"
  1952. },
  1953. "pricedspotqtynotax": {
  1954. "description": "已定价现货不含税数量",
  1955. "type": "number"
  1956. },
  1957. "remark": {
  1958. "description": "备注",
  1959. "type": "string"
  1960. },
  1961. "spotavgprice": {
  1962. "description": "现货均价",
  1963. "type": "number"
  1964. },
  1965. "spotbuyamount": {
  1966. "description": "现货采购金额",
  1967. "type": "number"
  1968. },
  1969. "spotbuyqty": {
  1970. "description": "现货采购数量",
  1971. "type": "number"
  1972. },
  1973. "spotpl": {
  1974. "description": "现货总盈亏[结算更新]",
  1975. "type": "number"
  1976. },
  1977. "spotquota": {
  1978. "description": "现货额度",
  1979. "type": "number"
  1980. },
  1981. "spotsellamount": {
  1982. "description": "现货销售金额",
  1983. "type": "number"
  1984. },
  1985. "spotsellqty": {
  1986. "description": "现货销售数量",
  1987. "type": "number"
  1988. },
  1989. "spotusedquota": {
  1990. "description": "现货占用资金",
  1991. "type": "number"
  1992. },
  1993. "strategystatus": {
  1994. "description": "策略状态 - 0:未结束 1:已结束",
  1995. "type": "integer"
  1996. },
  1997. "totalpl": {
  1998. "description": "业务合计损益 = FuturePL + SpotPL [结算更新]",
  1999. "type": "number"
  2000. },
  2001. "tradedate": {
  2002. "description": "交易日(yyyyMMdd)",
  2003. "type": "string"
  2004. },
  2005. "updatetime": {
  2006. "description": "更新时间",
  2007. "type": "string"
  2008. },
  2009. "usedquota": {
  2010. "description": "已占用资金",
  2011. "type": "number"
  2012. },
  2013. "userid": {
  2014. "description": "所属机构",
  2015. "type": "integer"
  2016. }
  2017. }
  2018. },
  2019. "erms2.QueryInnerTradeDetailRsp": {
  2020. "type": "object",
  2021. "required": [
  2022. "asapplyid",
  2023. "buyorsell",
  2024. "goodscode",
  2025. "goodsgroupid",
  2026. "goodsgroupname",
  2027. "goodsname",
  2028. "tradeid"
  2029. ],
  2030. "properties": {
  2031. "accountid": {
  2032. "description": "账号ID",
  2033. "type": "integer"
  2034. },
  2035. "agreeunit": {
  2036. "description": "合约单位",
  2037. "type": "number"
  2038. },
  2039. "asapplyid": {
  2040. "description": "策略申请ID",
  2041. "type": "integer"
  2042. },
  2043. "asname": {
  2044. "description": "策略名称",
  2045. "type": "string"
  2046. },
  2047. "asno": {
  2048. "description": "策略编号",
  2049. "type": "string"
  2050. },
  2051. "buyorsell": {
  2052. "description": "方向 - 0:买 1:卖",
  2053. "type": "integer"
  2054. },
  2055. "channelbuildtype": {
  2056. "description": "委托单据类型 0:无 1:建仓 2:平仓",
  2057. "type": "integer"
  2058. },
  2059. "closetype": {
  2060. "description": "平仓方式 - 0:无 1:平今 2:平昨",
  2061. "type": "integer"
  2062. },
  2063. "decimalplace": {
  2064. "description": "报价小数位",
  2065. "type": "integer"
  2066. },
  2067. "detailtype": {
  2068. "description": "明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整",
  2069. "type": "integer"
  2070. },
  2071. "exexchangecode": {
  2072. "description": "外部交易所代码",
  2073. "type": "string"
  2074. },
  2075. "exexchangename": {
  2076. "description": "外部交易所名称",
  2077. "type": "string"
  2078. },
  2079. "goodscode": {
  2080. "description": "商品代码(合约)",
  2081. "type": "string"
  2082. },
  2083. "goodsgroupid": {
  2084. "description": "商品组ID(品种ID)",
  2085. "type": "integer"
  2086. },
  2087. "goodsgroupname": {
  2088. "description": "商品组名称(品种)",
  2089. "type": "string"
  2090. },
  2091. "goodsid": {
  2092. "description": "商品ID",
  2093. "type": "integer"
  2094. },
  2095. "goodsname": {
  2096. "description": "商品名称(合约)",
  2097. "type": "string"
  2098. },
  2099. "goodunit": {
  2100. "description": "报价单位",
  2101. "type": "string"
  2102. },
  2103. "marketid": {
  2104. "description": "市场ID",
  2105. "type": "integer"
  2106. },
  2107. "orderid": {
  2108. "description": "委托单号",
  2109. "type": "string"
  2110. },
  2111. "outgoodscode": {
  2112. "description": "商品代码(外部)",
  2113. "type": "string"
  2114. },
  2115. "relatedouttradeid": {
  2116. "description": "关联外部成交单ID",
  2117. "type": "string"
  2118. },
  2119. "remark": {
  2120. "description": "备注",
  2121. "type": "string"
  2122. },
  2123. "spotcontractid": {
  2124. "description": "现货合同ID [1:套利对冲 为合同ID,2:期货换月\\3:期货仓位调整时为0]",
  2125. "type": "integer"
  2126. },
  2127. "spotcontractno": {
  2128. "description": "现货合同编号",
  2129. "type": "string"
  2130. },
  2131. "tradeid": {
  2132. "description": "成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  2133. "type": "string"
  2134. },
  2135. "tradeprice": {
  2136. "description": "成交价格",
  2137. "type": "number"
  2138. },
  2139. "tradeqty": {
  2140. "description": "成交数量",
  2141. "type": "integer"
  2142. },
  2143. "tradetime": {
  2144. "description": "成交时间",
  2145. "type": "string"
  2146. },
  2147. "updatetime": {
  2148. "description": "更新时间",
  2149. "type": "string"
  2150. }
  2151. }
  2152. },
  2153. "erms2.QuerySpotContractRsp": {
  2154. "type": "object",
  2155. "required": [
  2156. "spotcontractid"
  2157. ],
  2158. "properties": {
  2159. "accountid": {
  2160. "description": "资金账户ID",
  2161. "type": "integer"
  2162. },
  2163. "areauserid": {
  2164. "description": "所属机构",
  2165. "type": "integer"
  2166. },
  2167. "closedate": {
  2168. "description": "终止日期",
  2169. "type": "string"
  2170. },
  2171. "closeremark": {
  2172. "description": "结束备注",
  2173. "type": "string"
  2174. },
  2175. "closetradedate": {
  2176. "description": "完结交易日(yyyyMMdd)",
  2177. "type": "string"
  2178. },
  2179. "closetype": {
  2180. "description": "终止类型 - 1:违约 2:提前终止",
  2181. "type": "integer"
  2182. },
  2183. "contractamount": {
  2184. "description": "合同金额",
  2185. "type": "number"
  2186. },
  2187. "contractattachment": {
  2188. "description": "合同附件",
  2189. "type": "string"
  2190. },
  2191. "contractno": {
  2192. "description": "现货合同编号",
  2193. "type": "string"
  2194. },
  2195. "contractqty": {
  2196. "description": "合同数量(数值) (用于计算)",
  2197. "type": "number"
  2198. },
  2199. "contractqtychar": {
  2200. "description": "合同数量\\已订价数量 (用于显示)",
  2201. "type": "string"
  2202. },
  2203. "contractstatus": {
  2204. "description": "合同状态 - 0:未结束 1:已结束",
  2205. "type": "integer"
  2206. },
  2207. "contracttype": {
  2208. "description": "现货合同类型 - 1:采购合同 -1:销售合同",
  2209. "type": "integer"
  2210. },
  2211. "customeraccountid": {
  2212. "description": "客户资金账户ID",
  2213. "type": "integer"
  2214. },
  2215. "customeruserid": {
  2216. "description": "客户ID",
  2217. "type": "integer"
  2218. },
  2219. "deliverygoodsdesc": {
  2220. "description": "品种说明",
  2221. "type": "string"
  2222. },
  2223. "deliverygoodsid": {
  2224. "description": "现货品种ID",
  2225. "type": "integer"
  2226. },
  2227. "handlestatus": {
  2228. "description": "处理状态",
  2229. "type": "integer"
  2230. },
  2231. "invoiceatt": {
  2232. "description": "发票附件",
  2233. "type": "string"
  2234. },
  2235. "invoicedatetime": {
  2236. "description": "开收票更新时间",
  2237. "type": "string"
  2238. },
  2239. "invoiceopentime": {
  2240. "description": "开票时间",
  2241. "type": "string"
  2242. },
  2243. "invoiceremark": {
  2244. "description": "发票备注",
  2245. "type": "string"
  2246. },
  2247. "invoicestatus": {
  2248. "description": "开收票状态 - 0:未开票 1:已开票",
  2249. "type": "integer"
  2250. },
  2251. "lastdate": {
  2252. "description": "交货时间",
  2253. "type": "string"
  2254. },
  2255. "marketid": {
  2256. "description": "市场ID",
  2257. "type": "integer"
  2258. },
  2259. "paydatetime": {
  2260. "description": "收付款更新时间",
  2261. "type": "string"
  2262. },
  2263. "payremark": {
  2264. "description": "收付款备注",
  2265. "type": "string"
  2266. },
  2267. "paystatus": {
  2268. "description": "收付款状态 - 0:未支付 1:已收款 2:已付款",
  2269. "type": "integer"
  2270. },
  2271. "positionqty": {
  2272. "description": "头寸数量 - 合同数量去小数部分",
  2273. "type": "integer"
  2274. },
  2275. "producttype": {
  2276. "description": "产品类型 - 1:标准仓单 2:等标 3:非标",
  2277. "type": "integer"
  2278. },
  2279. "relatedqty": {
  2280. "description": "已关联数量",
  2281. "type": "number"
  2282. },
  2283. "relatedstatus": {
  2284. "description": "关联完结状态 - 0:未结束 1:已结束",
  2285. "type": "integer"
  2286. },
  2287. "remark": {
  2288. "description": "备注",
  2289. "type": "string"
  2290. },
  2291. "signdate": {
  2292. "description": "签订日期",
  2293. "type": "string"
  2294. },
  2295. "spotcontractid": {
  2296. "description": "现货合同ID(701+Unix秒时间戳(10位)+xxxxxx)",
  2297. "type": "string"
  2298. },
  2299. "spotdatetime": {
  2300. "description": "收发货更新时间",
  2301. "type": "string"
  2302. },
  2303. "spotprice": {
  2304. "description": "价格",
  2305. "type": "number"
  2306. },
  2307. "spotremark": {
  2308. "description": "收发货备注",
  2309. "type": "string"
  2310. },
  2311. "spotstatus": {
  2312. "description": "收发货状态 - 0:未交收 1:已发货 2:已发货",
  2313. "type": "integer"
  2314. },
  2315. "tradedate": {
  2316. "description": "交易日(yyyyMMdd)",
  2317. "type": "string"
  2318. },
  2319. "userid": {
  2320. "description": "业务员用户ID",
  2321. "type": "integer"
  2322. },
  2323. "warehouseid": {
  2324. "description": "仓库ID",
  2325. "type": "integer"
  2326. },
  2327. "wrfactortypeid": {
  2328. "description": "仓单要素类型ID",
  2329. "type": "integer"
  2330. },
  2331. "wrstandardid": {
  2332. "description": "仓单标准ID(SEQ_WRSTANDARD)",
  2333. "type": "integer"
  2334. }
  2335. }
  2336. },
  2337. "models.Tablecolumnconfig": {
  2338. "type": "object",
  2339. "required": [
  2340. "autoid"
  2341. ],
  2342. "properties": {
  2343. "aligntype": {
  2344. "description": "对齐方式 - 1:居中对齐 2:左对齐 3:右对齐",
  2345. "type": "integer"
  2346. },
  2347. "autoid": {
  2348. "description": "AutoID",
  2349. "type": "integer"
  2350. },
  2351. "columnfield": {
  2352. "description": "列字段",
  2353. "type": "string"
  2354. },
  2355. "columntitle": {
  2356. "description": "列Title",
  2357. "type": "string"
  2358. },
  2359. "columnwidth": {
  2360. "description": "列宽",
  2361. "type": "string"
  2362. },
  2363. "formatterstring": {
  2364. "description": "格式化字符",
  2365. "type": "string"
  2366. },
  2367. "formattertype": {
  2368. "description": "格式化类型",
  2369. "type": "string"
  2370. },
  2371. "groupname": {
  2372. "description": "表头分组名称",
  2373. "type": "string"
  2374. },
  2375. "isshow": {
  2376. "description": "是否显示 - 0:不显示 1:显示",
  2377. "type": "integer"
  2378. },
  2379. "needsummary": {
  2380. "description": "是否需要汇总 - 0:不需要 1:需要",
  2381. "type": "integer"
  2382. },
  2383. "orderindex": {
  2384. "description": "顺序",
  2385. "type": "integer"
  2386. },
  2387. "remark": {
  2388. "description": "备注",
  2389. "type": "string"
  2390. },
  2391. "summarytype": {
  2392. "description": "汇总类型 - 1:加总 2:最后一个",
  2393. "type": "integer"
  2394. },
  2395. "tablekey": {
  2396. "description": "列表Key",
  2397. "type": "string"
  2398. }
  2399. }
  2400. },
  2401. "order.QueryTradePositionRsp": {
  2402. "type": "object",
  2403. "properties": {
  2404. "agreeunit": {
  2405. "description": "合约单位",
  2406. "type": "number"
  2407. },
  2408. "buyorsell": {
  2409. "description": "方向 - 0:买 1:卖",
  2410. "type": "integer"
  2411. },
  2412. "closetotalqty": {
  2413. "description": "平仓总数量",
  2414. "type": "integer"
  2415. },
  2416. "curholderamount": {
  2417. "description": "当前持仓总金额[商品币种]",
  2418. "type": "number"
  2419. },
  2420. "curpositionqty": {
  2421. "description": "当前持仓总数量",
  2422. "type": "integer"
  2423. },
  2424. "currencyid": {
  2425. "description": "报价货币ID",
  2426. "type": "integer"
  2427. },
  2428. "curtdposition": {
  2429. "description": "期末今日头寸",
  2430. "type": "integer"
  2431. },
  2432. "decimalplace": {
  2433. "description": "报价小数位",
  2434. "type": "integer"
  2435. },
  2436. "enableqty": {
  2437. "description": "可用量",
  2438. "type": "integer"
  2439. },
  2440. "fretdposition": {
  2441. "description": "冻结今日头寸",
  2442. "type": "integer"
  2443. },
  2444. "frozenqty": {
  2445. "description": "持仓冻结数量",
  2446. "type": "integer"
  2447. },
  2448. "goodscode": {
  2449. "description": "商品代码",
  2450. "type": "string"
  2451. },
  2452. "goodsname": {
  2453. "description": "商品名称",
  2454. "type": "string"
  2455. },
  2456. "goodunit": {
  2457. "description": "报价单位",
  2458. "type": "string"
  2459. },
  2460. "goodunitid": {
  2461. "description": "报价单位ID",
  2462. "type": "integer"
  2463. },
  2464. "holderamount": {
  2465. "description": "期初持仓总金额[商品币种]",
  2466. "type": "number"
  2467. },
  2468. "marketid": {
  2469. "description": "所属市场ID",
  2470. "type": "integer"
  2471. },
  2472. "openreqqty": {
  2473. "description": "开仓申请数量(用于比较最大持仓数量)",
  2474. "type": "integer"
  2475. },
  2476. "opentotalqty": {
  2477. "description": "开仓总数量",
  2478. "type": "integer"
  2479. },
  2480. "otherfrozenqty": {
  2481. "description": "持仓其他冻结数量(交割冻结)",
  2482. "type": "integer"
  2483. },
  2484. "positionqty": {
  2485. "description": "期初持仓数量",
  2486. "type": "integer"
  2487. },
  2488. "tnqty": {
  2489. "description": "T+N冻结总量",
  2490. "type": "integer"
  2491. },
  2492. "tnusedqty": {
  2493. "description": "T+N使用量(可以使用T+N的冻结数量)",
  2494. "type": "integer"
  2495. },
  2496. "trademode": {
  2497. "description": "交易模式",
  2498. "type": "integer"
  2499. }
  2500. }
  2501. }
  2502. },
  2503. "securityDefinitions": {
  2504. "ApiKeyAuth": {
  2505. "type": "apiKey",
  2506. "name": "Authorization",
  2507. "in": "header"
  2508. }
  2509. }
  2510. }