interface.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. /**
  2. * 查询现货商品
  3. */
  4. export interface ErmcpDeliveryGoodsReq {
  5. excludecfg?: number; // 排除已配置的现货商品 1-排除
  6. }
  7. /**
  8. * 现货商品返回
  9. */
  10. export interface ErmcpDeliveryGoodsRsp {
  11. agreeunit: number;//合约单位[散货时默认为1, 整装时默认为标准数量]
  12. areauserid: number;//所属机构
  13. auditflag: number;//交割是否需要审核 - number;
  14. //:不需要 1:需要审核 默认为number;//
  15. categoryid: number;//类别ID(SEQ_WRCATEGORY)
  16. deliverygoodscode: string;//现货品种代码
  17. deliverygoodsid: number;//现货品种ID(SEQ_DELIVERYGOODS)
  18. deliverygoodsname: string;//现货品种名称
  19. deliverygoodstype: number;//现货品种类型: 1-整装不拆分 2-散装记录明细 3:整装拆分 4:散装不记录明细
  20. dgstatus: number;//品种状态 - 作废 - number;
  21. //:未激活 1:正常
  22. enumdicname: string;//现货品种单位名称
  23. goodsunitid: number;//现货品种单位ID
  24. isvalid: number;//是否有效 - number;
  25. //:无效 1:有效
  26. qtydecimalplace: number;//成交量小数位
  27. remark: string;//备注
  28. standardqty: number;//标准数量(库位数量) [标准品特有]
  29. standardqtyrange: number;//标准数量偏差范围 [标准品特有]
  30. }
  31. /**
  32. * 现货商品品类
  33. */
  34. export interface Ermcp3Wrstandard {
  35. areauserid: number;//所属机构
  36. convertfactor: number;//标仓系数
  37. createtime: string;//创建时间
  38. creatorid: number;//创建人
  39. deliverygoodsid: number;//现货品种ID
  40. enumdicname: string;//品类单位名称
  41. isvalid: number;//是否有效 number;
  42. //-无效(停用) 1-有效(正常)
  43. minivalue: number;//最小变动值
  44. minivaluedp: number;//最小变动值小数位
  45. realminivalue: number;//实际最小变动值
  46. realminivaluedp: number;//实际最小变动值小数位
  47. remark: string;//备注
  48. unitid: number;//品类单位ID
  49. updatetime: string;//更新时间
  50. wrstandardcode: string;//品类代码
  51. wrstandardid: number;//品类ID(SEQ_WRSTANDARD)
  52. wrstandardname: string;//品类名称
  53. }
  54. /**
  55. * 现货商品品牌
  56. */
  57. export interface Ermcp3Brand {
  58. areauserid: number;//用户id
  59. brandid: number;//品牌id
  60. brandname: string;//品牌名称
  61. deliverygoodsid: number;//品种ID
  62. }
  63. /**
  64. * 查询现货商品请求
  65. */
  66. export interface DeliveryGoodsDetailReq {
  67. userid: number; // 用户id
  68. usertype?: number; // 用户类型 2-机构 7-企业成员
  69. deliverygoodsid?: number; // 现货商品id
  70. }
  71. /**
  72. * 查询新货商品详情
  73. */
  74. export interface ErmcpDeliveryGoodsDetailEx {
  75. data: ErmcpDeliveryGoods; // 现货商品信息
  76. gblist: Ermcp3Brand[]; // 品牌
  77. gmlist: Ermcp3Wrstandard[]; // 品类列表
  78. mgList: Ermcp3MiddleGoodsDetail2[]; // 套保列表
  79. }
  80. /**
  81. * 现货商品信息
  82. */
  83. export interface ErmcpDeliveryGoods {
  84. agreeunit: number;//合约单位[散货时默认为1, 整装时默认为标准数量]
  85. areauserid: number;//所属机构
  86. auditflag: number;//交割是否需要审核 - number;
  87. //:不需要 1:需要审核 默认为number;//
  88. categoryid: number;//类别ID(SEQ_WRCATEGORY)
  89. deliverygoodscode: string;//现货品种代码
  90. deliverygoodsid: number;//现货品种ID(SEQ_DELIVERYGOODS)
  91. deliverygoodsname: string;//现货品种名称
  92. deliverygoodstype: number;//现货品种类型: 1-整装不拆分 2-散装记录明细 3:整装拆分 4:散装不记录明细
  93. dgstatus: number;//品种状态 - 作废 - number;
  94. //:未激活 1:正常
  95. enumdicname: string;//现货品种单位名称
  96. goodsunitid: number;//现货品种单位ID
  97. isvalid: number;//是否有效 - number;
  98. //:无效 1:有效
  99. qtydecimalplace: number;//成交量小数位
  100. remark: string;//备注
  101. standardqty: number;//标准数量(库位数量) [标准品特有]
  102. standardqtyrange: number;//标准数量偏差范围 [标准品特有]
  103. }
  104. export interface Ermcp3MiddleGoodsDetail2 {
  105. convertratio: number // 套保系数(折算系数)
  106. gplist: Ermcp3GoodsGroupEx[] // 关联商品组列表
  107. mg: ErmcpMiddleGoodsModel // 套保品种
  108. }
  109. /**
  110. * 套保品种
  111. */
  112. export interface ErmcpMiddleGoodsModel {
  113. areauserid: number;//机构用户ID
  114. createtime: string;//修改时间
  115. enumdicname: string;//单位名称
  116. evaluateratio: number;//估价系数
  117. goodsgroupid: number;//关联期货品种ID
  118. goodsunitid: number;//单位ID
  119. isvalid: number;//状态 number;
  120. //-无效(停用) 1-有效(正常)
  121. middlegoodscode: string;//套保品种代码
  122. middlegoodsid: number;//套保品种ID(SEQ_ERMS_MIDDLEGOODS)
  123. middlegoodsname: string;//套保品种名称
  124. modifytime: string;//修改时间
  125. needhedgeratio: number;//套保比率
  126. qtydecimalplace: number;//数量小数位
  127. relatedgoodsid: number;//关联交易商品ID
  128. relatedgoodstype: number;//关联商品类型 - 1:期货合约 2:现货品种
  129. remark: string;//备注
  130. }
  131. /**
  132. * 期货商品信息
  133. */
  134. export interface Ermcp3Goods {
  135. agreeunit: number;//合约单位(合约乘数)
  136. enumdicname: string;//单位名称
  137. exexchangecode: string;//交易所代码
  138. goodscode: string;//期货商品代码
  139. goodsid: number;//期货商品id
  140. goodsname: string;//期货商品名称
  141. }
  142. /**
  143. * 商品组信息
  144. */
  145. export interface Ermcp3GoodsGroupEx {
  146. convertratio: number;//折算系数(品种系数)
  147. enumdicname: string;//单位名称
  148. exexchangecode: string;//交易所代码
  149. glist: Ermcp3Goods[]
  150. goodsgroupid: number;//商品组id
  151. goodsgroupname: string;//商品组名称
  152. goodsunitid: number;//单位id
  153. middlegoodsid: number;//套保商品id
  154. }
  155. /**
  156. * 期货商品组
  157. */
  158. export interface Ermcp3GoodsGroup {
  159. agreeunit: number;//合约单位
  160. areauserid: number;//所属机构id(套保品是有areauserid的,当要排除已配置商品组时需要areauserid过滤)
  161. canshort: number;//是否允许做空[通道交易] - number;
  162. //:不能做空 1:可以做空
  163. closepricemode: number;//强平价格方式 - 1:市价 2:最新价 3:涨跌停(未实现)
  164. createtime: string;//创建时间
  165. creatorid: number;//创建人
  166. currencyid: number;//报价货币ID
  167. decimalplace: number;//报价小数位
  168. enumdicname: string;//单位名称
  169. excludecfg: number;//排除套保品已配置期货分类下的商品组(但显示已配置商品组) 1-排除
  170. exexchangeid: number;//外部交易所ID[通道交易]
  171. goodsgroupid: number;//商品组ID(自增ID)
  172. goodsgroupname: string;//商品组名称
  173. goodsgroupstatus: number;//商品组状态 - 1:正常 2:注销
  174. goodunitid: number;//报价单位ID
  175. groupcategroyid: number;//品种分类ID
  176. innerdealmode: number;//内部成交方式[通道交易] - 1:净头寸 2:开平 3:平今
  177. marketid: number;//所属市场ID
  178. modifierid: number;//修改人
  179. modifytime: string;//修改时间
  180. outerdealmode: number;//外部成交方式[通道交易]- 1:净头寸 2:开平 3:平今
  181. outergroupcode: string;//外部商品组代码[通道交易]
  182. quoteminunit: number;//行情最小变动单位 [整数,报价小数位一起使用]
  183. quotesourcegroupid: number;//所属行情源分组ID[参考行情市场用\通道交易]
  184. syncgoodsqty: number;//同步合约数[通道交易-投资管理用] - number;
  185. //表示不限
  186. }
  187. /**
  188. * 套保品种
  189. */
  190. export interface ErmcpMiddleGoodsModel {
  191. areauserid: number;//机构用户ID
  192. createtime: string;//修改时间
  193. enumdicname: string;//单位名称
  194. evaluateratio: number;//估价系数
  195. goodsgroupid: number;//关联期货品种ID
  196. goodsunitid: number;//单位ID
  197. isvalid: number;//状态 number;
  198. //-无效(停用) 1-有效(正常)
  199. middlegoodscode: string;//套保品种代码
  200. middlegoodsid: number;//套保品种ID(SEQ_ERMS_MIDDLEGOODS)
  201. middlegoodsname: string;//套保品种名称
  202. modifytime: string;//修改时间
  203. needhedgeratio: number;//套保比率
  204. qtydecimalplace: number;//数量小数位
  205. relatedgoodsid: number;//关联交易商品ID
  206. relatedgoodstype: number;//关联商品类型 - 1:期货合约 2:现货品种
  207. remark: string;//备注
  208. }
  209. /**
  210. * 查询套保品种详情
  211. */
  212. export interface Ermcp3MiddleGoodsDetailEx {
  213. dglist: ErmcpDeliveryGoodsDetail2[] // 关联的现货品种列表
  214. gplist: Ermcp3GoodsGroupEx[] // 关联商品组列表
  215. mg: ErmcpMiddleGoodsModel //
  216. }
  217. /**
  218. * 关联的现货品种列表
  219. */
  220. export interface ErmcpDeliveryGoodsDetail2 {
  221. convertratio: number // 套保系数(折算系数)
  222. data: ErmcpDeliveryGoods
  223. gblist: Ermcp3Brand[] // 品牌列表
  224. gmlist: Ermcp3Wrstandard[] // 品类列表(仓单标准)
  225. }
  226. /**
  227. * 期货商品信息
  228. */
  229. export interface Goods {
  230. agreeunit: number;//合约单位
  231. auditaccountid: number;//审核操作员账号
  232. audittime: string;//审核时间
  233. cancelaccountid: number;//注销操作员账号
  234. canceltime: string;//注销时间
  235. closepricemode: number;//强平价格方式 - 1:市价 2:最新价 3:涨跌停(未实现)
  236. closepriceparam: number;//强平最新价浮动比例 - 方式为2时使用 (<1)买 上浮 (1+x)最新价卖 下浮 (1-x)最新价
  237. createtime: string;//创建时间
  238. creatorid: number;//创建人
  239. currencyid: number;//报价货币ID
  240. cutmode: number;//斩仓方式 - 1:不斩仓 2:自动斩仓 3:半自动斩仓
  241. decimalplace: number;//报价小数位
  242. delistingdate: string;//商品退市时间(状态:退市) – 已作废
  243. delistingmode: number;//退市方式 - 1:退市平仓 2:退市交收 3:不处理(仅期权\币币兑换)
  244. deliveryflag: number;//交割标志 - number;
  245. //:不可交割 1:可交割
  246. forceclosemode: number;//定期强平方式 - 1:无 2:每日 3:每周 4:每月[收益权]
  247. forceclosevalue: number;//定期强平参数 [收益权]
  248. goodscode: string;//商品代码(内部)
  249. goodscurrencyid: number;//合约货币ID
  250. goodsgroupid: number;//所属商品组ID
  251. goodsid: number;//商品ID(自增ID SEQ_GOODS)
  252. goodsname: string;//商品名称
  253. goodsquotetype: number;//合约报价类型: 1-直接报价 2-间接报价
  254. goodsstatus: number;//商品状态- 1:待审核 2:未上市 3:上市 4:已注销 5:审核拒绝 6:退市 7:待退市
  255. goodstradetype: number;//商品交易权限类型 - 1:可建可平 3:不可建可平
  256. goodunitid: number;//报价单位ID
  257. hasquoter: number;//是否有报价商 - number;
  258. //:无报价商 1:有报价商
  259. hqprotecttime: number;//行情保护时间(秒)
  260. innerdealmode: number;//内部成交方式[通道交易] - 1:净头寸 2:开平 3:平今
  261. isbuylimited: number;//是否限制建仓量 - number;
  262. //:不限制 1:限制
  263. lasttradedate: string;//最后交易日期(状态:待退市)
  264. listingdate: string;//交易开始日期
  265. marketid: number;//所属市场ID
  266. modifierid: number;//修改人
  267. modifystatus: number;//变更状态 - 1:未变更 2:变更中 3:待审核 4:已审核
  268. modifytime: string;//修改时间
  269. outerdealmode: number;//外部成交方式[通道交易]- 1:净头寸 2:开平 3:平今
  270. outgoodscode: string;//商品代码(外部)
  271. qtydecimalplace: number;//成交量小数位
  272. quotegear: number;//行情档位(1-1number;
  273. //)
  274. quoteminunit: number;//行情最小变动单位 [整数,报价小数位一起使用]
  275. quoteshowtype: number;//行情报价类型: 1:成交价 2:买卖中间价 3:含买价 4:含卖价做市模式固定为3:含买价
  276. quoteshowtypeinterval: number;//行情报价间隔时间(秒)(成交价时为number;
  277. //)
  278. remark: string;//备注
  279. }
  280. interface MenuItem {
  281. key: string;
  282. title: string;
  283. }
  284. export interface MenuList extends MenuItem {
  285. children?: MenuItem[]
  286. }
  287. export interface ErmcpMiddleGoodsChangeLog{
  288. aftervalue :number;//变更后
  289. applyid :number;//操作人
  290. applyname :string;//操作人名称
  291. applysrc :number;//操作来源 - 1:管理端 2:终端
  292. beforevalue :number;//变更前
  293. changelogtype :number;//变更流水类型 - 1:套保比率变更
  294. handlestatus :number;//处理状态
  295. logdatetime :string;//流水日期
  296. logid :number;//流水ID
  297. logremark :string;//流水备注
  298. middlegoodsid :number;//套保品种ID
  299. tradedate :string;//交易日(yyyyMMdd)
  300. updatetime :string;//更新时间
  301. }