|  |  | 
 |  |  | public class ContractHoldOrderEntity extends BaseEntity { | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否可平仓 1-是 | 
 |  |  |      */ | 
 |  |  |     public static final int ORDER_CAN_CLOSING_Y = 1; | 
 |  |  |     /** | 
 |  |  |      * 是否可平仓 0-否 | 
 |  |  |      */ | 
 |  |  |     public static final int ORDER_CAN_CLOSING_N = 0; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 开多 | 
 |  |  |      */ | 
 |  |  |     public static final int OPENING_TYPE_MORE = 1; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 开空 | 
 |  |  |      */ | 
 |  |  |     public static final int OPENING_TYPE_LESS = 2; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 交易类型 市价 | 
 |  |  |      */ | 
 |  |  |     public static final int TRADE_TYPE_MARK = 1; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 交易类型 限价 | 
 |  |  |      */ | 
 |  |  |     public static final int TRADE_TYPE_LIMIT = 2; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 会员Id | 
 |  |  |      */ | 
 |  |  |     private Long memberId; | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 仓位类型 1-逐仓 2-全仓 | 
 |  |  |      */ | 
 |  |  |     private int potionType; | 
 |  |  |     private int positionType; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 交易类型 1-市价 2-限价 | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 币种规格 | 
 |  |  |      */ | 
 |  |  |     private Long symbolSku; | 
 |  |  |     private BigDecimal symbolSku; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 开仓价 | 
 |  |  | 
 |  |  |     private BigDecimal openingPrice; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 开仓类型 1-开多 2-开多 | 
 |  |  |      * 开仓类型 1-开多 2-开空 | 
 |  |  |      */ | 
 |  |  |     private int openingType; | 
 |  |  |  | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 保证金 | 
 |  |  |      */ | 
 |  |  |     private BigDecimal bondPrice; | 
 |  |  |     private BigDecimal bondAmount; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 杠杆倍率 | 
 |  |  | 
 |  |  |      * 是否可平仓 0-否 1-是 | 
 |  |  |      */ | 
 |  |  |     private int isCanClosing; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 批次号 队列平仓时使用,避免重复 | 
 |  |  |      */ | 
 |  |  |     public String batchNo; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 持仓费 | 
 |  |  |      */ | 
 |  |  |     private BigDecimal holdAmount; | 
 |  |  | } |