Administrator
2025-12-15 2e6cbd3ee1c2d7e1aa73f4392c79bfbfacbcb67d
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
package com.xcong.excoin.modules.okxNewPrice.okxpi.verify.enums;
 
import java.math.BigDecimal;
 
public class PublicStatusEnum {
 
    /**
     * API验证返回状态
     */
    public static final int API_MESSAGE_STATUS_SUCCESS = 1;
    public static final int API_MESSAGE_STATUS_FAIL = 0;
 
    /**
     * 货币对监控状态
     */
    //货币对监控状态开启
    public static final int CURRENCY_MONITOR_OPEN = 1;
 
    //货币对监控状态开启
    public static final int CURRENCY_ONLYSELL_OPEN = 1;
    //货币对监控状态关闭
 
    public static final int CURRENCY_MONITOR_CLOSE = 0;
    //是否开启过监听
    public static final int CURRENCY_MONITORED_OPEN = 1;
    //订单未完成
    public static final int ORDER_FINISH_STATUS_NO = 1;
    //订单已完成
    public static final int ORDER_FINISH_STATUS_YES = 2;
    //订单取消
    public static final int ORDER_FINISH_STATUS_CANEL = 3;
    //订单已卖出(针对买单)
    public static final int ORDER_FINISH_STATUS_SELL = 4;
    //订单下单失败
    public static final int ORDER_FINISH_STATUS_FAIL = 5;
 
    //其他方式卖出
    public static final int ORDER_FINISH_STATUS_OTHERSELL = 6;
 
    //买单
    public static final int ORDER_STATUS_BUY = 1;
 
    public static final BigDecimal ORDER_DOWN_RATIO= new BigDecimal("0.01");
    //买单
 
    public static final int ORDER_STATUS_SELL = 2;
 
//    public static final boolean AccountType = false;
 
    public static final int ORDER_FINISH_STATUS = 2;
 
    //订单卖出未锁定
    public static final int ORDER_SELL_LOCK_STATUS_NO = 0;
    //订单卖出已锁定
    public static final int ORDER_SELL_LOCK_STATUS_YES = 1;
 
    //定义超过开仓均价时需向下调整卖价的比率
    public static final BigDecimal HIGH_SELL_RATIO= new BigDecimal("1.1");
 
    //定义需要调整后的比率
    public static final BigDecimal HIGH_ADJUST_RATIO= new BigDecimal("1.03");
 
}