zj
2025-06-10 879a75e26e94d766e893e47d65a0b239e04ce94a
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
package project.exchange;
 
import java.io.Serializable;
import java.util.Date;
 
import javax.persistence.Column;
import javax.persistence.Table;
 
import kernel.bo.EntityObject;
 
/**
 * 委托单
 */
@Table(name="T_EXCHANGE_APPLY_ORDER")
public class ExchangeApplyOrder extends EntityObject {
 
    private static final long serialVersionUID = -7263336511778693149L;
    public final static String STATE_SUBMITTED = "submitted";
    public final static String STATE_CREATED = "created";
    public final static String STATE_CANCELED = "canceled";
 
    /**
     * 开仓
     */
    public final static String OFFSET_OPEN = "open";
 
    /**
     * 平仓
     */
    public final static String OFFSET_CLOSE = "close";
 
    /**
     * 限价单
     */
    public final static String ORDER_PRICE_TYPE_LIMIT = "limit";
 
    /**
     * 对手价(市价)
     */
    public final static String ORDER_PRICE_TYPE_OPPONENT = "opponent";
 
    @Column(name="PARTY_ID")
    private Serializable partyId;
    
    /**
     * 关联订单号
     */
    @Column(name="RELATION_ORDER_NO")
    private String relation_order_no;
 
    /**
     * 订单 号
     */
    @Column(name="ORDER_NO")
    private String order_no;
 
    @Column(name="SYMBOL")
    private String symbol;
    
    /**
     * 币种数量
     */
    @Column(name="SYMBOL_VALUE")
    private Double symbol_value;
 
    /**
     * "open":买入 "close":卖出
     */
    @Column(name="OFFSET")
    private String offset;
    
    /**
     * 委托数量
     */
    @Column(name="VOLUME")
    private Double volume;
 
    /**
     * 手续费
     */
    @Column(name="FEE")
    private double fee;
 
    /**
     * 金额(USDT计价)
     */
    @Column(name="AMOUNT")
    private Double amount;
 
    /**
     * 手续费(USDT计价)
     */
    @Column(name="WALLET_FEE")
    private Double wallet_fee;
 
    /**
     * limit order的交易价格
     */
    @Column(name="PRICE")
    private Double price;
 
    /**
     * 订单报价类型。 "limit":限价 "opponent":对手价(市价)
     */
    @Column(name="ORDER_PRICE_TYPE")
    private String order_price_type;
    
    /**
     * 状态。submitted 已提交,canceled 已撤销, created 委托完成
     */
    @Column(name="STATE")
    private String state = "submitted";
    
    /**
     * 创建时间
     */
    @Column(name="CREATE_TIME")
    private Date create_time;
    
    /**
     * 成交时行情点位
     */
    @Column(name="CLOSE_PRICE")
    private Double close_price;
    
    /**
     * 成交时间
     */
    @Column(name="CLOSE_TIME")
    private Date close_time;
    
    /**
     * 是否计划委托
     */
    @Column(name="IS_TRIGGER_ORDER")
    private boolean is_trigger_order = false;
    
    /**
     * 计划委托的触发价
     */
    @Column(name="TRIGGER_PRICE")
    private Double trigger_price;
 
    public Serializable getPartyId() {
        return partyId;
    }
 
    public void setPartyId(Serializable partyId) {
        this.partyId = partyId;
    }
 
    public String getOrder_no() {
        return order_no;
    }
 
    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }
 
    public String getSymbol() {
        return symbol;
    }
 
    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }
 
    public String getOffset() {
        return offset;
    }
 
    public void setOffset(String offset) {
        this.offset = offset;
    }
 
    public Double getVolume() {
        return volume;
    }
 
    public void setVolume(Double volume) {
        this.volume = volume;
    }
 
    public Double getPrice() {
        return price;
    }
 
    public void setPrice(Double price) {
        this.price = price;
    }
 
    public String getOrder_price_type() {
        return order_price_type;
    }
 
    public void setOrder_price_type(String order_price_type) {
        this.order_price_type = order_price_type;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public Date getCreate_time() {
        return create_time;
    }
 
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
 
    public double getFee() {
        return fee;
    }
 
    public void setFee(double fee) {
        this.fee = fee;
    }
 
    public Double getAmount() {
        return amount;
    }
 
    public void setAmount(Double amount) {
        this.amount = amount;
    }
 
    public Double getWallet_fee() {
        return wallet_fee;
    }
 
    public void setWallet_fee(Double wallet_fee) {
        this.wallet_fee = wallet_fee;
    }
 
    public Double getClose_price() {
        return close_price;
    }
 
    public void setClose_price(Double close_price) {
        this.close_price = close_price;
    }
 
    public Date getClose_time() {
        return close_time;
    }
 
    public void setClose_time(Date close_time) {
        this.close_time = close_time;
    }
 
    public boolean isIs_trigger_order() {
        return is_trigger_order;
    }
 
    public void setIs_trigger_order(boolean is_trigger_order) {
        this.is_trigger_order = is_trigger_order;
    }
 
    public Double getTrigger_price() {
        return trigger_price;
    }
 
    public void setTrigger_price(Double trigger_price) {
        this.trigger_price = trigger_price;
    }
    
    public String getRelation_order_no() {
        return relation_order_no;
    }
 
    public void setRelation_order_no(String relation_order_no) {
        this.relation_order_no = relation_order_no;
    }
 
    public Double getSymbol_value() {
        return symbol_value;
    }
 
    public void setSymbol_value(Double symbol_value) {
        this.symbol_value = symbol_value;
    }
 
}