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");
|
|
}
|