orderModels.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. package models
  2. import "time"
  3. // Tradeposition 持仓头寸表 - 导历史
  4. type Tradeposition struct {
  5. Accountid uint64 `json:"accountid" xorm:"'ACCOUNTID'" binding:"required"` // 账号Id
  6. Goodsid uint32 `json:"goodsid" xorm:"'GOODSID'" binding:"required"` // 商品Id
  7. Holdertype uint32 `json:"holdertype" xorm:"'HOLDERTYPE'" binding:"required"` // 持仓类别 - 1:单边持仓 2:双边持仓
  8. Buypositionqty uint64 `json:"buypositionqty" xorm:"'BUYPOSITIONQTY'"` // 买期初持仓数量
  9. Buyholderamount float64 `json:"buyholderamount" xorm:"'BUYHOLDERAMOUNT'"` // 买期初持仓总金额[商品币种]
  10. Buycurpositionqty uint64 `json:"buycurpositionqty" xorm:"'BUYCURPOSITIONQTY'"` // 买当前持仓总数量
  11. Buycurholderamount float64 `json:"buycurholderamount" xorm:"'BUYCURHOLDERAMOUNT'"` // 买当前持仓总金额[商品币种]
  12. Buyfrozenqty uint64 `json:"buyfrozenqty" xorm:"'BUYFROZENQTY'"` // 买持仓冻结数量
  13. Buyotherfrozenqty uint64 `json:"buyotherfrozenqty" xorm:"'BUYOTHERFROZENQTY'"` // 买持仓其他冻结数量(交割冻结)
  14. Buyopenreqqty uint64 `json:"buyopenreqqty" xorm:"'BUYOPENREQQTY'"` // 买开仓申请数量(用于比较最大持仓数量)
  15. Buyopentotalqty uint64 `json:"buyopentotalqty" xorm:"'BUYOPENTOTALQTY'"` // 买开仓总数量
  16. Buyclosetotalqty uint64 `json:"buyclosetotalqty" xorm:"'BUYCLOSETOTALQTY'"` // 买平仓总数量
  17. Sellpositionqty uint64 `json:"sellpositionqty" xorm:"'SELLPOSITIONQTY'"` // 卖期初持仓数量
  18. Sellholderamount float64 `json:"sellholderamount" xorm:"'SELLHOLDERAMOUNT'"` // 卖期初持仓总金额[商品币种]
  19. Sellcurpositionqty uint64 `json:"sellcurpositionqty" xorm:"'SELLCURPOSITIONQTY'"` // 卖当前持仓数量
  20. Sellcurholderamount float64 `json:"sellcurholderamount" xorm:"'SELLCURHOLDERAMOUNT'"` // 卖当前持仓总金额[商品币种]
  21. Sellfrozenqty uint64 `json:"sellfrozenqty" xorm:"'SELLFROZENQTY'"` // 卖持仓冻结
  22. Sellotherfrozenqty uint64 `json:"sellotherfrozenqty" xorm:"'SELLOTHERFROZENQTY'"` // 卖持仓其他冻结(交割冻结)
  23. Sellopenreqqty uint64 `json:"sellopenreqqty" xorm:"'SELLOPENREQQTY'"` // 卖开仓申请数量(用于比较最大持仓数量)
  24. Sellopentotalqty uint64 `json:"sellopentotalqty" xorm:"'SELLOPENTOTALQTY'"` // 卖开仓总数量
  25. Sellclosetotalqty uint64 `json:"sellclosetotalqty" xorm:"'SELLCLOSETOTALQTY'"` // 卖平仓总数量
  26. Usedmargin float64 `json:"usedmargin" xorm:"'USEDMARGIN'"` // 占用保证金[商品币种]
  27. Tradeproperty uint32 `json:"tradeproperty" xorm:"'TRADEPROPERTY'"` // 交易属性
  28. Buytnqty uint64 `json:"buytnqty" xorm:"'BUYTNQTY'"` // 买T+N冻结总量
  29. Buytnusedqty uint64 `json:"buytnusedqty" xorm:"'BUYTNUSEDQTY'"` // 买T+N使用量(可以使用T+N的冻结数量)
  30. Selltnqty uint64 `json:"selltnqty" xorm:"'SELLTNQTY'"` // 卖T+N冻结总量
  31. Selltnusedqty uint64 `json:"selltnusedqty" xorm:"'SELLTNUSEDQTY'"` // 卖T+N使用量(可以使用T+N的冻结数量)
  32. Buycurtdposition uint64 `json:"buycurtdposition" xorm:"'BUYCURTDPOSITION'"` // 买期末今日头寸
  33. Buyfretdposition uint64 `json:"buyfretdposition" xorm:"'BUYFRETDPOSITION'"` // 买冻结今日头寸
  34. Sellcurtdposition uint64 `json:"sellcurtdposition" xorm:"'SELLCURTDPOSITION'"` // 卖期末今日头寸
  35. Sellfretdposition uint64 `json:"sellfretdposition" xorm:"'SELLFRETDPOSITION'"` // 卖冻结今日头寸
  36. }
  37. // TableName is TRADEPOSITION
  38. func (Tradeposition) TableName() string {
  39. return "TRADEPOSITION"
  40. }
  41. // Tradeorderdetail 交易委托单表 - 导历史
  42. type Tradeorderdetail struct {
  43. Orderid uint64 `json:"orderid" xorm:"'ORDERID'" binding:"required"` // 委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  44. Tradedate string `json:"tradedate" xorm:"'TRADEDATE'" binding:"required"` // 交易日(yyyyMMdd)
  45. Buildtype uint32 `json:"buildtype" xorm:"'BUILDTYPE'" binding:"required"` // 委托单据类型 - 1:建仓 2:平仓 3:先平后建
  46. Preorderid uint64 `json:"preorderid" xorm:"'PREORDERID'"` // 关联预埋单号(止盈止损单时填写)
  47. Cancelorderid uint64 `json:"cancelorderid" xorm:"'CANCELORDERID'"` // 撤单单号(撤单时填写)
  48. Relatedid uint64 `json:"relatedid" xorm:"'RELATEDID'"` // 关联单号(交割单)
  49. Marketid uint32 `json:"marketid" xorm:"'MARKETID'" binding:"required"` // 市场ID
  50. Goodsid uint32 `json:"goodsid" xorm:"'GOODSID'" binding:"required"` // 商品ID
  51. Accountid uint64 `json:"accountid" xorm:"'ACCOUNTID'" binding:"required"` // 账户ID[报价币种]
  52. Memberuserid uint64 `json:"memberuserid" xorm:"'MEMBERUSERID'" binding:"required"` // 所属会员UserID
  53. Buyorsell uint32 `json:"buyorsell" xorm:"'BUYORSELL'" binding:"required"` // 买卖 - 0:买 1:卖
  54. Pricemode uint32 `json:"pricemode" xorm:"'PRICEMODE'" binding:"required"` // 取价方式 - 1:市价 2: 限价
  55. Orderprice float64 `json:"orderprice" xorm:"'ORDERPRICE'"` // 委托价格
  56. Marketmaxsub float64 `json:"marketmaxsub" xorm:"'MARKETMAXSUB'"` // 市价最大偏移范围
  57. Orderqty uint64 `json:"orderqty" xorm:"'ORDERQTY'" binding:"required"` // 委托数量
  58. Tradeqty uint64 `json:"tradeqty" xorm:"'TRADEQTY'"` // 成交数量
  59. Cancelqty uint64 `json:"cancelqty" xorm:"'CANCELQTY'"` // 撤单数量
  60. Openqty uint64 `json:"openqty" xorm:"'OPENQTY'"` // 开仓数量(先建后平操作,需要记录)
  61. Closeqty uint64 `json:"closeqty" xorm:"'CLOSEQTY'"` // 平仓数量(先建后平操作 需要记录)
  62. Opentradeqty uint64 `json:"opentradeqty" xorm:"'OPENTRADEQTY'"` // 开仓成交数量(先建后平操作,需要记录)
  63. Closetradeqty uint64 `json:"closetradeqty" xorm:"'CLOSETRADEQTY'"` // 平仓成交数量(先建后平操作,需要记录)
  64. Freezemargin float64 `json:"freezemargin" xorm:"'FREEZEMARGIN'"` // 冻结保证金(冻结交易金额)
  65. Unfreezemargin float64 `json:"unfreezemargin" xorm:"'UNFREEZEMARGIN'"` // 解冻保证金
  66. Freezecharge float64 `json:"freezecharge" xorm:"'FREEZECHARGE'"` // 冻结手续费
  67. Unfreezecharge float64 `json:"unfreezecharge" xorm:"'UNFREEZECHARGE'"` // 解冻手续费
  68. Openfreezecharge float64 `json:"openfreezecharge" xorm:"'OPENFREEZECHARGE'"` // 开仓冻结手续费(先建后平操作,需要记录)
  69. Closefreezecharge float64 `json:"closefreezecharge" xorm:"'CLOSEFREEZECHARGE'"` // 平仓冻结手续费(先建后平操作,需要记录)
  70. Openunfreezecharge float64 `json:"openunfreezecharge" xorm:"'OPENUNFREEZECHARGE'"` // 开仓解冻手续费(先建后平操作,需要记录)
  71. Closeunfreezecharge float64 `json:"closeunfreezecharge" xorm:"'CLOSEUNFREEZECHARGE'"` // 平仓解冻手续费(先建后平操作,需要记录)
  72. Validtype uint32 `json:"validtype" xorm:"'VALIDTYPE'" binding:"required"` // 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效
  73. Validtime time.Time `json:"validtime" xorm:"'VALIDTIME'"` // 有效期限
  74. Volumetype uint32 `json:"volumetype" xorm:"'VOLUMETYPE'"` // 当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量
  75. Operatetype uint32 `json:"operatetype" xorm:"'OPERATETYPE'" binding:"required"` // 操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让
  76. Ordertime time.Time `json:"ordertime" xorm:"'ORDERTIME'" binding:"required"` // 委托时间
  77. Ordersrc uint32 `json:"ordersrc" xorm:"'ORDERSRC'"` // 委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发
  78. Orderstatus uint32 `json:"orderstatus" xorm:"'ORDERSTATUS'"` // 委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)
  79. Operatorid uint64 `json:"operatorid" xorm:"'OPERATORID'"` // 登录账号(LoginID)
  80. Updatetime time.Time `json:"updatetime" xorm:"'UPDATETIME'"` // 更新时间
  81. Clientordertime time.Time `json:"clientordertime" xorm:"'CLIENTORDERTIME'"` // 客户端委托时间
  82. Clientticket string `json:"clientticket" xorm:"'CLIENTTICKET'"` // 客户端流水号
  83. UUID string `json:"uuid" xorm:"'UUID'"` // 发起端唯一id
  84. Clienttype uint32 `json:"clienttype" xorm:"'CLIENTTYPE'"` // 客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)
  85. Retcode uint32 `json:"retcode" xorm:"'RETCODE'"` // 错误代码
  86. Tradeproperty uint32 `json:"tradeproperty" xorm:"'TRADEPROPERTY'"` // 交易属性
  87. Listingselecttype uint32 `json:"listingselecttype" xorm:"'LISTINGSELECTTYPE'"` // 挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂
  88. Delistingtype uint32 `json:"delistingtype" xorm:"'DELISTINGTYPE'"` // 摘牌类型 - 1:价格最优 2:点选成交
  89. Marginalgorithm uint32 `json:"marginalgorithm" xorm:"'MARGINALGORITHM'"` // 保证金收取方式 1:比率 2:固定
  90. Marginvalue float64 `json:"marginvalue" xorm:"'MARGINVALUE'"` // 即市保证金设置值
  91. Openfeealgorithm uint32 `json:"openfeealgorithm" xorm:"'OPENFEEALGORITHM'"` // 建仓手续费收取方式 1:比率 2:固定
  92. Openmemberchargevalue float64 `json:"openmemberchargevalue" xorm:"'OPENMEMBERCHARGEVALUE'"` // 建仓会员手续费设置值
  93. Openexchagechargevalue float64 `json:"openexchagechargevalue" xorm:"'OPENEXCHAGECHARGEVALUE'"` // 建仓交易所手续费设置值
  94. Closefeealgorithm uint32 `json:"closefeealgorithm" xorm:"'CLOSEFEEALGORITHM'"` // 平仓手续费收取方式 1:比率 2:固定
  95. Closememberchargevalue float64 `json:"closememberchargevalue" xorm:"'CLOSEMEMBERCHARGEVALUE'"` // 平仓会员手续费设置值
  96. Closeexchagechargevalue float64 `json:"closeexchagechargevalue" xorm:"'CLOSEEXCHAGECHARGEVALUE'"` // 平仓交易所手续费设置值
  97. Optiontype uint32 `json:"optiontype" xorm:"'OPTIONTYPE'"` // 期权类型 - 1:认购(看涨) 2:认沽(看跌)
  98. Premium float64 `json:"premium" xorm:"'PREMIUM'"` // 权利金
  99. Ispreexercise uint32 `json:"ispreexercise" xorm:"'ISPREEXERCISE'"` // 是否预申报- 0:否 1:是
  100. Preexerciseprice float64 `json:"preexerciseprice" xorm:"'PREEXERCISEPRICE'"` // 预申报价格
  101. Isconfirmexercise uint32 `json:"isconfirmexercise" xorm:"'ISCONFIRMEXERCISE'"` // 是否确认行权- 0:否 1:是
  102. Quoteid uint64 `json:"quoteid" xorm:"'QUOTEID'"` // 报价单ID
  103. Gcaccountid uint64 `json:"gcaccountid" xorm:"'GCACCOUNTID'"` // 账户ID[合约币种]
  104. Sessionid uint64 `json:"sessionid" xorm:"'SESSIONID'"` // 会话ID
  105. }
  106. // TableName is TRADE_ORDERDETAIL
  107. func (Tradeorderdetail) TableName() string {
  108. return "TRADE_ORDERDETAIL"
  109. }
  110. // Tradequotedetailnew 报价商报价表 - 导历史
  111. type Tradequotedetailnew struct {
  112. Quoterid uint64 `json:"quoterid" xorm:"'QUOTERID'" binding:"required"` // 报价商ID
  113. Goodsid uint32 `json:"goodsid" xorm:"'GOODSID'" binding:"required"` // 商品ID
  114. Buyorsell uint32 `json:"buyorsell" xorm:"'BUYORSELL'" binding:"required"` // 买卖方向 - 0:买 1:卖
  115. Tradedate string `json:"tradedate" xorm:"'TRADEDATE'"` // 交易日(yyyyMMdd)
  116. Quotetime time.Time `json:"quotetime" xorm:"'QUOTETIME'"` // 报价时间
  117. Orderid uint64 `json:"orderid" xorm:"'ORDERID'"` // 委托单ID(使用委托单规则生成)
  118. Quoteid uint64 `json:"quoteid" xorm:"'QUOTEID'"` // 报价单ID(自动报价)
  119. Price float64 `json:"price" xorm:"'PRICE'"` // 价格
  120. Qty uint64 `json:"qty" xorm:"'QTY'"` // 数量
  121. Curqty uint64 `json:"curqty" xorm:"'CURQTY'"` // 当前量
  122. Move float64 `json:"move" xorm:"'MOVE'"` // 点差 整数 可零正负
  123. Limitprice float64 `json:"limitprice" xorm:"'LIMITPRICE'"` // 最高买价/最低卖价
  124. Quotesource uint32 `json:"quotesource" xorm:"'QUOTESOURCE'"` // 报价来源 - 0:外部行情 1:管理端手动报价2:自动报价服务报价 3:交易接口
  125. Quoteeffectivesecond uint64 `json:"quoteeffectivesecond" xorm:"'QUOTEEFFECTIVESECOND'"` // 行情有效时间(秒)
  126. Expireddate time.Time `json:"expireddate" xorm:"'EXPIREDDATE'"` // 有效时间(根据秒算出实际时间)
  127. Freezeamount float64 `json:"freezeamount" xorm:"'FREEZEAMOUNT'"` // 剩余冻结资金(所有权)
  128. Freezestatus uint32 `json:"freezestatus" xorm:"'FREEZESTATUS'"` // 冻结状态(所有权) - 1:无冻结 2:已冻结 3:已解冻
  129. Pricetype uint32 `json:"pricetype" xorm:"'PRICETYPE'"` // 报价类型 - 1:不报价 2:手工报价
  130. Qtytype uint32 `json:"qtytype" xorm:"'QTYTYPE'"` // 报量类型 - 1:随机量 2:手工报量 3:延用量
  131. Isvalid uint32 `json:"isvalid" xorm:"'ISVALID'"` // 是否撤销 - 0:未撤销 1:已撤销
  132. Marketid uint32 `json:"marketid" xorm:"'MARKETID'"` // 市场ID
  133. Tradeproperty uint32 `json:"tradeproperty" xorm:"'TRADEPROPERTY'"` // 交易属性 - 1:收益权(可做空) 2:所有权(不可做空) 3:期权 4:现货 5:参考行情
  134. Freezeprice float64 `json:"freezeprice" xorm:"'FREEZEPRICE'"` // 冻结资金价格
  135. Serialnumber string `json:"serialnumber" xorm:"'SERIALNUMBER'"` // 外部流水号
  136. Accountid uint64 `json:"accountid" xorm:"'ACCOUNTID'"` // 报价资金账号
  137. }
  138. // TableName is TRADE_QUOTEDETAILNEW
  139. func (Tradequotedetailnew) TableName() string {
  140. return "TRADE_QUOTEDETAILNEW"
  141. }
  142. // Tradetradedetail 交易成交单表 - 导历史
  143. type Tradetradedetail struct {
  144. Tradeid uint64 `json:"tradeid" xorm:"'TRADEID'" binding:"required"` // 成交单号(101+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)
  145. Buyorsell uint32 `json:"buyorsell" xorm:"'BUYORSELL'" binding:"required"` // 方向 - 0:买 1:卖
  146. Orderid uint64 `json:"orderid" xorm:"'ORDERID'" binding:"required"` // 委托单号
  147. Tradedate string `json:"tradedate" xorm:"'TRADEDATE'" binding:"required"` // 交易日(yyyyMMdd)
  148. Accountid uint64 `json:"accountid" xorm:"'ACCOUNTID'" binding:"required"` // 账户ID[报价币种]
  149. Goodsid uint32 `json:"goodsid" xorm:"'GOODSID'" binding:"required"` // 商品ID
  150. Marketid uint32 `json:"marketid" xorm:"'MARKETID'" binding:"required"` // 市场ID
  151. Memberuserid uint64 `json:"memberuserid" xorm:"'MEMBERUSERID'" binding:"required"` // 会员id 个人投资者 需要填写
  152. Matchaccountid uint64 `json:"matchaccountid" xorm:"'MATCHACCOUNTID'"` // 对手账号id
  153. Tradetime time.Time `json:"tradetime" xorm:"'TRADETIME'" binding:"required"` // 成交时间
  154. Tradeprice float64 `json:"tradeprice" xorm:"'TRADEPRICE'" binding:"required"` // 成交价格
  155. Tradeqty uint64 `json:"tradeqty" xorm:"'TRADEQTY'" binding:"required"` // 成交数量
  156. Tradeamount float64 `json:"tradeamount" xorm:"'TRADEAMOUNT'" binding:"required"` // 成交金额[账户币种,用于所有权]
  157. Closepl float64 `json:"closepl" xorm:"'CLOSEPL'"` // 平仓盈亏
  158. Intclosepl uint64 `json:"intclosepl" xorm:"'INTCLOSEPL'"` // 整型盈亏(用于交易结算试算平衡-收益权)
  159. Opencharge float64 `json:"opencharge" xorm:"'OPENCHARGE'"` // 建仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
  160. Closecharge float64 `json:"closecharge" xorm:"'CLOSECHARGE'"` // 平仓手续费(支付总手续费=(交易所比率+会员比率)*成交金额)
  161. Tradetype uint32 `json:"tradetype" xorm:"'TRADETYPE'"` // 成交类别 - 1:正常委托成交 2:定向做市成交(接单) 3:交割协议平仓成交 4:交割减仓成交 5:到期强平成交 6:风控斩仓成交 7:协议平仓(管理端)成交 8:仓单转持仓成交 9: 交割协议转让成交 10:受托竞价成交(接单) 11:协议转让成交 12:系统强行平仓 13:期权违约平仓
  162. Buildtype uint32 `json:"buildtype" xorm:"'BUILDTYPE'"` // 委托单据类型 1:建仓 2:平仓 3:先平后建
  163. Openqty uint64 `json:"openqty" xorm:"'OPENQTY'"` // 开仓数量(先建后平操作 需要记录)
  164. Closeqty uint64 `json:"closeqty" xorm:"'CLOSEQTY'"` // 平仓数量(先建后平操作 需要记录)
  165. Status uint32 `json:"status" xorm:"'STATUS'"` // 处理状态 - 1:待处理 2:已处理 3:处理失败
  166. Isreckoned uint32 `json:"isreckoned" xorm:"'ISRECKONED'"` // 是否结算 - 0:未结算 1:已结算
  167. Tradeproperty uint32 `json:"tradeproperty" xorm:"'TRADEPROPERTY'"` // 交易属性
  168. Openfeealgorithm uint32 `json:"openfeealgorithm" xorm:"'OPENFEEALGORITHM'"` // 建仓手续费收取方式 1:比率 2:固定
  169. Openmemberchargevalue float64 `json:"openmemberchargevalue" xorm:"'OPENMEMBERCHARGEVALUE'"` // 建仓会员手续费设置值
  170. Openexchagechargevalue float64 `json:"openexchagechargevalue" xorm:"'OPENEXCHAGECHARGEVALUE'"` // 建仓交易所手续费设置值
  171. Closefeealgorithm uint32 `json:"closefeealgorithm" xorm:"'CLOSEFEEALGORITHM'"` // 平仓手续费收取方式 1:比率 2:固定
  172. Closememberchargevalue float64 `json:"closememberchargevalue" xorm:"'CLOSEMEMBERCHARGEVALUE'"` // 平仓会员手续费设置值
  173. Closeexchagechargevalue float64 `json:"closeexchagechargevalue" xorm:"'CLOSEEXCHAGECHARGEVALUE'"` // 平仓交易所手续费设置值
  174. Optiontype uint32 `json:"optiontype" xorm:"'OPTIONTYPE'"` // 期权类型 - 1:认购(看涨) 2:认沽(看跌)
  175. Premium float64 `json:"premium" xorm:"'PREMIUM'"` // 权利金 - [持仓单的权利金]
  176. Ispreexercise uint32 `json:"ispreexercise" xorm:"'ISPREEXERCISE'"` // 是否预申报- 0:否 1:是
  177. Preexerciseprice float64 `json:"preexerciseprice" xorm:"'PREEXERCISEPRICE'"` // 预申报价格
  178. Isconfirmexercise uint32 `json:"isconfirmexercise" xorm:"'ISCONFIRMEXERCISE'"` // 是否确认行权- 0:否 1:是
  179. Ismain uint32 `json:"ismain" xorm:"'ISMAIN'"` // 是否主单 - 0:不是 1:是
  180. Performanceplanid uint64 `json:"performanceplanid" xorm:"'PERFORMANCEPLANID'"` // 履约计划ID[期权]
  181. Performancestatus uint32 `json:"performancestatus" xorm:"'PERFORMANCESTATUS'"` // 履约状态[期权] - 0:无履约 1:未履约 2:履约中 3:履约完成
  182. Creditamount float64 `json:"creditamount" xorm:"'CREDITAMOUNT'"` // 授信金额
  183. Gcaccountid uint64 `json:"gcaccountid" xorm:"'GCACCOUNTID'"` // 账户ID[合约币种]
  184. Closepl2 float64 `json:"closepl2" xorm:"'CLOSEPL2'"` // 平仓盈亏[逐笔]
  185. Relatedouttradeid uint64 `json:"relatedouttradeid" xorm:"'RELATEDOUTTRADEID'"` // 关联外部成交单ID
  186. }
  187. // TableName is TRADE_TRADEDETAIL
  188. func (Tradetradedetail) TableName() string {
  189. return "TRADE_TRADEDETAIL"
  190. }