Helius
2020-07-07 fd16c28b929ba70e3fea2830ffc05561f1963a0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.xcong.excoin.modules.contract.entity;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.xcong.excoin.common.system.base.BaseEntity;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * @author wzy
 * @date 2020-05-27
 **/
@Data
@TableName("contract_entrust_order")
public class ContractEntrustOrderEntity extends BaseEntity {
 
    public static final int ENTRUST_TYPE_OPEN_MORE = 1;
 
    public static final int ENTRUST_TYPE_OPEN_LESS = 2;
 
    public static final int ENTRUST_TYPE_CLOSE_MORE = 3;
 
    public static final int ENTRUST_TYPE_CLOSE_LESS = 4;
 
    /**
     * 逐仓
     */
    public static final int POSITION_TYPE_ADD = 1;
 
    /**
     * 全仓
     */
    public static final int POSITION_TYPE_ALL = 2;
 
 
    /**
     * 会员ID
     */
    private Long memberId;
 
    /**
     * 订单编号
     */
    private String orderNo;
 
    /**
     * 仓位类型 1逐仓2全仓
     */
    private int positionType;
 
    /**
     * 委托类型 1开多,2开空,3平多,4平空
     */
    private int entrustType;
 
    /**
     * 委托价格
     */
    private BigDecimal entrustPrice;
 
    /**
     * 委托金额
     */
    private BigDecimal entrustAmount;
 
    /**
     * 币种
     */
    private String symbol;
 
    /**
     * 数量
     */
    private int symbolCnt;
 
    /**
     * 币种规格
     */
    private BigDecimal symbolSku;
 
    /**
     * 杠杆倍率
     */
    private int leverRatio;
 
    /**
     * 保证金
     */
    private BigDecimal bondAmount;
}