package cn.muchinfo.rma.global;

import retrofit2.http.PUT;

/**
 * 枚举（2。0项目copy过来）
 */
public class MTPEnums {

    /**
     * 交易模式
     */
    public final static int TRADEMODE_MARKETMAKE = 10; // 做市
    public final static int TRADEMODE_BIDDING = 13;    // 竞价
    public final static int TRADEMODE_ENTRUST = 15;  // 通道交易 资管
    public final static int TRADEMODE_ENTRUST_HEDGE = 16; // 挂牌点选
    public final static int TRADEMODE_SPOT_WRTRADE = 17;  // 仓单贸易
    public final static int TRADEMODE_OPTION = 18;        // 期权贸易

    public final static int TRADEMODE_AUCTIONCUT = 19;// 竞拍-降价式
    public final static int TRADEMODE_AUCTIONBID = 20;// 竞拍-竞价式
    public final static int TRADEMODE_AUCTIONBULK = 21;// 竞拍-大宗式
    public final static int TRADEMODE_ENTRUSTBID = 22;// 受托竞价
    public final static int TRADEMODE_PRESALE = 23;// 预售集采
    public final static int TRADEMODE_AUCTIONCUTNOWR = 24;//(竞拍-降价式无仓单)

    public final static int TRADEMODE_TRADEMODESALE = 26; //挂牌期权（定金交易）

    public final static int TRADEMODE_TRADESTOCKS = 29;  //港股交易模式

    /**
     * 期权类型
     */
    public static final int OPTION_TYPE_C = 1;// 认购
    public static final int OPTION_TYPE_P = 2;// 认沽
    public static final int OPTION_TYPE_CP = 3;// 认购+认沽

    //region 有效期类型
    public static final int TC_IOC = 1;// 立即完成，否则撤销  经服务确认：1为当日有效 2为本周有效 3为指定日期有效 4为一直有效 5为指定时间有效
    public static final int TC_GFS = 2;// 本节有效
    public static final int TC_GFD = 3;// 当日有效
    public static final int TC_GTD = 4;// 指定日期前有效
    public static final int TC_GTC = 5;// 撤销前有效
    public static final int TC_GFA = 6;// 集合竞价有效
    /**
     * 订单状态
     */
    /// 委托请求
    public static final int ORDERSTATUS_REQUEST = 1;
    /// 待冻结
    public static final int ORDERSTATUS_WAITFREEZE = 2;
    /// 委托成功
    public static final int ORDERSTATUS_SUCCEED = 3;
    /// 委托失败
    public static final int ORDERSTATUS_FAILED = 4;
    /// 配对成功
    public static final int ORDERSTATUS_MATCHED = 5;
    /// 已撤
    public static final int ORDERSTATUS_CANCELED = 6;
    /// 部成
    public static final int ORDERSTATUS_PARTIALDEAL = 7;
    /// 已成
    public static final int ORDERSTATUS_DEALED = 8;
    /// 部成部撤
    public static final int ORDERSTATUS_PARTIALCANCELED = 9;
    /// 成交失败
    public static final int ORDERSTATUS_DEALFAILED = 10;
    /// 委托拒绝
    public static final int ORDERSTATUS_DENIED = 11;
    //endregion
    /// 经过摘牌(先摘后挂专用)
    public static final int ORDERSTATUS_MATCH = 12;
    /// 冻结成功(通道交易专用)
    public static final int ORDERSTATUS_FREEZE_SUCCESS = 13;
    /// 通道已撤
    public static final int ORDERSTATUS_CHANNEL_CANCELED = 14;
    /// 通道部成部撤
    public static final int ORDERSTATUS_CHANNEL_PARTIALCANCELED = 15;


    /// 委托请求
    public static final int INNERSTATUS_ORDERREQ = 1;
    /// 冻结成功
    public static final int INNERSTATUS_FREEZESUCC = 2;
    /// 委托失败
    public static final int INNERSTATUS_ORDERFAIL = 3;
    /// 委托部成部失败
    public static final int INNERSTATUS_PARTIAL_TRADE_FAIL = 4;
    /// 委托成功
    public static final int INNERSTATUS_ORDERSUCC = 5;
    /// 全部撤销
    public static final int INNERSTATUS_ALLCANCEL = 6;
    /// 部成部撤
    public static final int INNERSTATUS_PARTIAL_TRADE_CANCELED = 7;
    /// 部成部撤部失败
    public static final int INNERSTATUS_PARTIAL_TRADE_CANCELED_FAIL = 8;
    /// 全部成交
    public static final int INNERSTATUS_ALLTRADE = 9;
    /// 部分成功
    public static final int INNERSTATUS_PARTIAL = 0;

    // 特殊 合单
    public static final int CLIENT_INNER_STATUS_SUCCESS = 1;// 委托成功
    public static final int CLIENT_INNER_STATUS_PART_DEAL = 2;// 部分成交
    public static final int CLIENT_INNER_STATUS_ALL_DEAL = 3;// 全部成交
    public static final int CLIENT_INNER_STATUS_PART_CANCEL = 4;// 部分撤单
    public static final int CLIENT_INNER_STATUS_DEAL_CANCEL = 5;// 部成部撤
    public static final int CLIENT_INNER_STATUS_ALL_CANCEL = 6;// 全部撤单
    //

    /**
     * 买卖方向
     */
    public static final int DIRECTION_BUY = 0;//买
    public static final int DIRECTION_SALE = 1;//卖
    //endregion

    //终端类型
    public static final int TRADECLIENT = 0;  //交易端
    public static final int MANAGECLIENT = 1;  //管理端
    public static final int MAINTAINCLIENT = 2;  //运维端


    /**
     * token状态
     */
    public static final int TokenStatus_TOKEN_STATUS_UNEXPIRED = 1;    // 令牌有效
    public static final int TokenStatus_TOKEN_STATUS_EXPIRED = 2;    // 令牌过期
    public static final int TokenStatus_TOKEN_STATUS_UPDATED = 3;    // 令牌已被更新
    /// <summary>
    /**
     * 订单类型
     */
    /// 市价建仓
    public static final int ORDERTYPE_OPEN_MARKET = 1;
    /// 限价建仓
    public static final int ORDERTYPE_OPEN_LIMIT = 2;
    /// 市价平仓
    public static final int ORDERTYPE_CLOSE_MARKET = 3;
    /// 限价平仓
    public static final int ORDERTYPE_CLOSE_LIMIT = 4;
    /// 先平后建
    public static final int ORDERTYPE_CLOSETHENOPEN = 5;
    /// 止盈止损
    public static final int ORDERTYPE_SPSL = 6;
    /// 交割协议转让
    public static final int ORDERTYPE_SPSL1 = 7;
    /// 交割协议平仓
    public static final int ORDERTYPE_SPSL2 = 8;
    /// 交割成交（所有权）
    public static final int ORDERTYPE_SPSL3 = 9;
    /// 受托市价
    public static final int ORDERTYPE_SPSL4 = 10;
    /// 受托限价
    public static final int ORDERTYPE_SPSL5 = 11;
    /// 管理端协议转让
    public static final int ORDERTYPE_SPSL6 = 12;
    /**
     * 有效类型
     */
    /// 当日有效
    public static final int VALIDTYPE_DR = 1;
    /// 本周有效
    public static final int VALIDTYPE_BZ = 2;
    /// 指定日期有效
    public static final int VALIDTYPE_ZDRQ = 3;
    /// 一直有效
    public static final int VALIDTYPE_YZ = 4;
    /// 指定时间有效
    public static final int VALIDTYPE_GTT = 5;
    /**
     * 挂牌点选类型
     */
    /// 挂牌
    public static final int LISTINGSELECTTYPE_LISTING = 1;
    /// 摘牌
    public static final int LISTINGSELECTTYPE_DELISTING = 2;
    /// 先摘后挂
    public static final int LISTINGSELECTTYPE_DELISTINGTHENLISTING = 3;

    /**
     * 摘牌类型
     */
    //价格最优
    public static final int DELISTINGTYPE_PRICE = 1;
    //点选成交
    public static final int DELISTINGTYPE_SELECTED = 2;

    /**
     * 成交类型
     */
    /// 正常委托成交
    public static final int TRADETYPE_NORMAL_ORDER_DEAL = 1;
    /// 定向做市成交(接单)
    public static final int TRADETYPE_DIRECTED_MM_DEAL = 2;
    /// 交割协议平仓成交
    public static final int TRADETYPE_DELIVERY_AGREECLOSE_DEAL = 3;
    /// 交割减仓成交
    public static final int TRADETYPE_DELIVERY_AGREEREDUCE_DEAL = 4;
    /// 到期强平成交
    public static final int TRADETYPE_EXPIRE_FORCE = 5;
    /// 风控斩仓成交
    public static final int TRADETYPE_RISK_FORCE = 6;
    /// 协议平仓(管理端)成交
    public static final int TRADETYPE_AGREECLOSE_MANAGE_DEAL = 7;
    /// 仓单转持仓成交
    public static final int TRADETYPE_WAREHOUSETOPOSITION = 8;
    ///  协议转让成交
    public static final int TRADETYPE_DELIVERY_TRANSFER = 9;
    /// 受托竞价成交(接单)
    public static final int TRADETYPE_ENTRUSTBID_ACCEPT = 10;
    /// 协议转让成交
    public static final int TRADETYPE_MANAGE_PROTO_TRANSFER = 11;
    /// 管理端强平成交
    public static final int TRADETYPE_MANAGE_FORCE_CLOSE = 12;
    /// 违约平仓成交
    public static final int TRADETYPE_BREACK_CLOSE = 13;

    /**
     * 下单类型
     */
    /// 建仓
    public static final int BUILDTYPE_OPEN = 1;
    /// 平仓
    public static final int BUILDTYPE_CLOSE = 2;
    /// 先平后建
    public static final int BUILDTYPE_CLOSETHENOPEN = 3;
    /**
     * 取价方式- 1:市价 2: 限价
     */
    public static final int PRICEMODE_MARKET = 1;
    public static final int PRICEMODE_LIMIT = 2;
    /**
     * 操作类型
     */
    /// 正常下单
    public static final int OPERATETYPE_NORMAL = 1;
    /// 斩仓（风控系统强制平仓）
    public static final int OPERATETYPE_STOPLOSS = 2;
    /// 转单
    public static final int OPERATETYPE_TURN = 3;
    /// 结算撤单
    public static final int ORDEROPERATETYPE_RECKON_CANCEL = 4;
    /// 系统卖出(适用于先平后建的卖出)
    public static final int ORDEROPERATETYPE_SYS_CLOSE = 5;
    /// 行情源报价
    public static final int ORDEROPERATETYPE_QUOTEPRICE = 6;
    /// （结算)到期强平
    public static final int ORDEROPERATETYPE_ONTIME_CLOSE = 7;
    /// （结算)协议转让
    public static final int ORDEROPERATETYPE_DEAL_CLOSE = 8;
    /// 系统对冲单
    public static final int ORDEROPERATETYPE_SYS_HEDGE = 9;
    /// （结算)到期无效
    public static final int ORDEROPERATETYPE_RECKON_INVALID = 10;
    /// 交割协议转让
    public static final int ORDEROPERATETYPE_DELIVERY_TRANSFER = 11;
    /// 交割协议平仓
    public static final int ORDEROPERATETYPE_DELIVERY_CLOSE = 12;
    /// 交割成交（所有权）
    public static final int ORDEROPERATETYPE_DELIVERY_TRADE = 13;
    /// 管理端强行平仓
    public static final int ORDEROPERATETYPE_MANAGEFORCE_CLOSE = 14;
    /// 管理端协议转让
    public static final int ORDEROPERATETYPE_MANAGE_TRANSFER = 15;
    /// 管理端强行平仓阶段2
    public static final int ORDEROPERATETYPE_MANAGEFORCE_CLOSE_LEVEL2 = 16;
    /// 违约平仓
    public static final int ORDEROPERATETYPE_BREACK_CLOSE = 17;
    /// 管理端强行撤单
    public static final int ORDEROPERATETYPE_MANAGEFORCE_CANCEL = 18;
    /// 预埋单委托
    public static final int ORDEROPERATETYPE_PREPOSORDER_ORDER = 19;
    /// 预埋单撤单
    public static final int ORDEROPERATETYPE_PREPOSORDER_CANCEL = 20;
    /**
     * 委托来源
     */
    /// 客户端
    public static final int ORDERSRC_CLIENT = 1;
    /// 风控服务
    public static final int SRC_RISK = 3;
    /// 管理端
    public static final int SRC_MANAGER = 2;
    /// 交割端
    public static final int SRC_DELIVERY = 4;
    /// 交易服务
    public static final int SRC_TRADE = 5;
    /// 交易日结
    public static final int ORDERSRC_DAYEND = 6;
    /// 商品强平
    public static final int ORDERSRC_EXPIREFORCECLOSE = 7;
    /// 管理端商品退市强平
    public static final int ORDERSRC_MANAGEFORCECLOSE = 8;
    /// 交易接口
    public static final int ORDERSRC_TRADEINTERFACE = 9;
    /// 交收服务商被动
    public static final int ORDERSRC_ENTRUSACCEPT = 10;
    /// 预埋触发
    public static final int ORDERSRC_PRETOUCH = 11;

    /**
     * 手续费收取方式
     */
    /// 比率
    public static final int BANK_CHARGEALGORITHM_RATIO = 1;
    /// 固定
    public static final int BANK_CHARGEALGORITHM_FIXED = 2;
    /**
     * 账户服务资金操作子指令类型
     */
    /// 入金
    public static final int ACCOUNTFUNDCMDOP_DEPOSIT = 101;
    /// 入金手续费
    public static final int ACCOUNTFUNDCMDOP_DEPOSIT_FEE = 102;
    /// 出金
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW = 103;
    /// 出金冻结
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW_FREEZE = 104;
    /// 出金解冻
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW_UNFREEZE = 105;
    /// 出金手续费
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW_FEE = 106;
    /// 出金手续费冻结
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW_FEE_FREEZE = 107;
    /// 出金手续费解冻
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW_FEE_UNFREEZE = 108;
    /// 入金手续费收入
    public static final int ACCOUNTFUNDCMDOP_DEPOSIT_FEE_INCOME = 109;
    /// 出金手续费收入
    public static final int ACCOUNTFUNDCMDOP_WITHDRAW_FEE_INCOME = 110;
    /// 交易冻结
    public static final int ACCOUNTFUNDCMDOP_TRADE_FREEZE = 201;
    /// 交易解冻
    public static final int ACCOUNTFUNDCMDOP_TRADE_UNFREEZE = 202;
    /// 交易占用
    public static final int ACCOUNTFUNDCMDOP_TRADE_OCCUPY = 203;
    /// 交易解占用
    public static final int ACCOUNTFUNDCMDOP_TRADE_FREE = 204;
    /// 交易手续费冻结
    public static final int ACCOUNTFUNDCMDOP_TRADE_FEE_FREEZE = 205;
    /// 交易手续费解冻
    public static final int ACCOUNTFUNDCMDOP_TRADE_FEE_UNFREEZE = 206;
    /// 交易手续费
    public static final int ACCOUNTFUNDCMDOP_TRADE_FEE = 207;
    /// 交易货款
    public static final int ACCOUNTFUNDCMDOP_TRADE_GOODS_PAYMENT = 208;
    /// 交易盈亏
    public static final int ACCOUNTFUNDCMDOP_TRADE_PROFIT_LOSS = 209;
    /// 交割冻结
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_FREEZE = 301;
    /// 交割解冻
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_UNFREEZE = 302;
    /// 交割手续费
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_FEE = 303;
    /// 交割手续费冻结
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_FEE_FREEZE = 304;
    /// 交割手续费解冻
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_FEE_UNFREEZE = 305;
    /// 交割货款
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_GOODS_PAYMENT = 306;
    /// 交割税款
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_TAX = 307;
    /// 交割调期费
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_SWAP_FEE = 308;
    /// 交收补偿费
    public static final int ACCOUNTFUNDCMDOP_DELIVERY_COMPENSATION_FEE = 309;
    /// 结算盈亏
    public static final int ACCOUNTFUNDCMDOP_SETTLE_PROFIT_LOSS = 401;
    /// 结算递延费
    public static final int ACCOUNTFUNDCMDOP_SETTLE_DEFERRED_FEE = 402;
    /// 分润收入
    public static final int ACCOUNTFUNDCMDOP_SHARE_PROFIT = 403;
    /// 延期分润
    public static final int ACCOUNTFUNDCMDOP_STAY_SHARE_PROFIT = 404;
    /// 分润确认
    public static final int ACCOUNTFUNDCMDOP_SHARE_PROFIT_CONFIRM = 405;
    /// 结算隔夜费
    public static final int ACCOUNTFUNDCMDOP_SETTLE_OVERNIGHT_FEE = 406;
    /// 授信增加
    public static final int ACCOUNTFUNDCMDOP_CREDIT_INCREASE = 501;
    /// 授信减少
    public static final int ACCOUNTFUNDCMDOP_CREDIT_DECREASE = 502;
    /// 转积分
    public static final int ACCOUNTFUNDCMDOP_PAY_POINTS = 503;
    /// 转入
    public static final int ACCOUNTFUNDCMDOP_TRANSFER_IN = 504;
    /// 转出
    public static final int ACCOUNTFUNDCMDOP_TRANSFER_OUT = 505;
    /// 转出冻结
    public static final int ACCOUNTFUNDCMDOP_TRANSFER_OUT_FREEZE = 506;
    /// 转出解冻
    public static final int ACCOUNTFUNDCMDOP_TRANSFER_OUT_UNFREEZE = 507;
    /// 履约金额冻结
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_FREEZE = 601;
    /// 履约最大冻结
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_MAX_FREEZE = 602;
    /// 履约金额解冻
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_UNFREEZE = 603;
    /// 履约扣款
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_DEDUCT = 604;
    /// 履约收款
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_RECEIVE = 605;
    /// 履约违约手续费
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_DEFAULT_FEE = 606;
    /// 履约违约收入
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_DEFAULT_INCOME = 607;
    /// 履约最大扣款
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_MAX_DEDUCT = 608;
    /// 履约待付款
    public static final int ACCOUNTFUNDCMDOP_PERFORMANCE_STAY_PAYMENT = 609;
    /// 供应链金融冻结
    public static final int ACCOUNTFUNDCMDOP_SCF_FREEZE = 701;
    /// 供应链金融解冻
    public static final int ACCOUNTFUNDCMDOP_SCF_UNFREEZE = 702;
    /// 供应链金融最大冻结
    public static final int ACCOUNTFUNDCMDOP_SCF_MAX_FREEZE = 703;
    /// 供应链金融利息
    public static final int ACCOUNTFUNDCMDOP_SCF_INTEREST = 704;
    /// 供应链金融货款
    public static final int ACCOUNTFUNDCMDOP_SCF_GOODS_PAYMENT = 705;
    /// 供应链金融押金
    public static final int ACCOUNTFUNDCMDOP_SCF_CASH_DEPOSIT = 706;
    /// 供应链金融最大扣款
    public static final int ACCOUNTFUNDCMDOP_SCF_MAX_DEDUCT = 707;
    /// 仓单贸易冻结
    public static final int ACCOUNTFUNDCMDOP_WRTRADE_FREEZE = 801;
    /// 仓单贸易解冻
    public static final int ACCOUNTFUNDCMDOP_WRTRADE_UNFREEZE = 802;
    /// 仓单贸易首付款
    public static final int ACCOUNTFUNDCMDOP_WRTRADE_DOWNPAYMENT = 803;
    /// 仓单贸易最大扣款
    public static final int ACCOUNTFUNDCMDOP_WRTRADE_MAX_DEDUCT = 804;
    /// 商城扣款冻结
    public static final int ACCOUNTFUNDCMDOP_MALL_FREEZE = 901;
    /// 商城扣款解冻
    public static final int ACCOUNTFUNDCMDOP_MALL_UNFREEZE = 902;
    /// 商城扣款
    public static final int ACCOUNTFUNDCMDOP_MALL_DEDUCT = 903;
    /// 商城收款
    public static final int ACCOUNTFUNDCMDOP_MALL_RECEIVE = 904;
    /// 商城待付款
    public static final int ACCOUNTFUNDCMDOP_MALL_STAY_PAYMENT = 905;
    /// 期权冻结
    public static final int ACCOUNTFUNDCMDOP_OPTION_FREEZE = 1001;
    /// 期权解冻
    public static final int ACCOUNTFUNDCMDOP_OPTION_UNFREEZE = 1002;
    /// 期权权力金
    public static final int ACCOUNTFUNDCMDOP_OPTION_PREMIUM = 1003;
    /// 期权手续费冻结
    public static final int ACCOUNTFUNDCMDOP_OPTION_FEE_FREEZE = 1004;
    /// 期权手续费解冻
    public static final int ACCOUNTFUNDCMDOP_OPTION_FEE_UNFREEZE = 1005;
    /// 期权手续费
    public static final int ACCOUNTFUNDCMDOP_OPTION_FEE = 1006;
    /// 期权盈亏
    public static final int ACCOUNTFUNDCMDOP_OPTION_PROFIT_LOSS = 1007;
    /// 期权货款
    public static final int ACCOUNTFUNDCMDOP_OPTION_GOODS_PAYMENT = 1008;
    /// 扩展扣款
    public static final int ACCOUNTFUNDCMDOP_MARKETING_DEDUCT = 1101;
    /// 扩展收款
    public static final int ACCOUNTFUNDCMDOP_MARKETING_RECEIVE = 1102;
    /// 扩展扣款冻结
    public static final int ACCOUNTFUNDCMDOP_MARKETING_FREEZE = 1103;
    /// 扩展扣款解冻
    public static final int ACCOUNTFUNDCMDOP_MARKETING_UNFREEZE = 1104;
    /// 竞拍冻结保证金
    public static final int ACCOUNTFUNDCMDOP_AUCTION_FREEZE = 1201;
    /// 竞拍解冻保证金
    public static final int ACCOUNTFUNDCMDOP_AUCTION_UNFREEZE = 1202;
    /// 竞拍扣款
    public static final int ACCOUNTFUNDCMDOP_AUCTION_DEDUCT = 1203;
    /// 竞拍收款
    public static final int ACCOUNTFUNDCMDOP_AUCTION_RECEIVE = 1204;
    /// 竞拍手续费冻结
    public static final int ACCOUNTFUNDCMDOP_AUCTION_FEE_FREEZE = 1205;
    /// 竞拍手续费解冻
    public static final int ACCOUNTFUNDCMDOP_AUCTION_FEE_UNFREEZE = 1206;
    /// 竞拍手续费
    public static final int ACCOUNTFUNDCMDOP_AUCTION_FEE = 1207;
    /// 竞拍货款冻结
    public static final int ACCOUNTFUNDCMDOP_AUCTION_PAYMENT_FREEZE = 1208;
    /// 竞拍货款解冻
    public static final int ACCOUNTFUNDCMDOP_AUCTION_PAYMENT_UNFREEZE = 1209;
    /// 竞拍手续费收入
    public static final int ACCOUNTFUNDCMDOP_AUCTION_FEE_INCOME = 1210;
    /// 预售集采卖方保证金冻结
    public static final int ACCOUNTFUNDCMDOP_PRESALE_SELLER_FREEZE = 1301;
    /// 预售集采卖方保证金解冻
    public static final int ACCOUNTFUNDCMDOP_PRESALE_SELLER_UNFREEZE = 1302;
    /// 预售集采手续费冻结
    public static final int ACCOUNTFUNDCMDOP_PRESALE_FEE_FREEZE = 1303;
    /// 预售集采手续费解冻
    public static final int ACCOUNTFUNDCMDOP_PRESALE_FEE_UNFREEZE = 1304;
    /// 预售集采手续费
    public static final int ACCOUNTFUNDCMDOP_PRESALE_FEE = 1305;

    /**
     * 签约状态
     */
    /// 未签约
    public static final int SIGNSTATUS_UNSIGN = 1;
    /// 签约待审核
    public static final int SIGNSTATUS_SIGNFORAUDIT = 2;
    /// 签约中
    public static final int SIGNSTATUS_SIGNING = 3;
    /// 已签约
    public static final int SIGNSTATUS_SIGNED = 4;
    /// 解约待审核
    public static final int SIGNSTATUS_CANCELFORAUDIT = 5;
    /// 解约中
    public static final int SIGNSTATUS_CANCELLING = 6;
    /// 已解约
    public static final int SIGNSTATUS_CANCELLED = 7;
    /// 已解绑
    public static final int SIGNSTATUS_BINDED = 8;
    /// 绑卡中
    public static final int SIGNSTATUS_BINDING = 9;
    /// 审核拒绝
    public static final int SIGNSTATUS_REJECT = 10;
    /**
     * 申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金;
     */
    //出金
    public static final int EXECUTETYPE_OUT = 1;
    //入金
    public static final int EXECUTETYPE_IN = 2;
    //单边账调整:入金
    public static final int EXECUTETYPE_SIGNIN = 3;
    //单边账调整:出金
    public static final int EXECUTETYPE_SIGNOUT = 4;
    /**
     * "申请状态 - 1:待审核 2:审核通过 3:审核拒绝 4:交易冻结中 5:交易解冻中 6:交易解冻扣款中 7:交易入金中
     * 8:交易冻结/解冻/扣款中(银行发起出金时用) 9:银行出金中 10:银行入金中 11:成功 12:失败 13:银行审核中
     * 14:账户服务入金失败； 15:账户服务解冻失败； 16:账户服务解冻扣款失败； 17:账户服务出金失败
     */

    //待审核
    public static final int APPLYSTATUS_AUDIT = 1;
    //审核通过
    public static final int APPLYSTATUS_APPROVED = 2;
    //审核拒绝
    public static final int APPLYSTATUS_REFUES = 3;
    //交易冻结中
    public static final int APPLYSTATUS_TRADING_FROZEN = 4;
    //交易解冻中
    public static final int APPLYSTATUS_TRADEING_UNFROZE = 5;
    //交易解冻扣款中
    public static final int APPLYSTATUS_TRADDING_UNFROZE_DEDUCTIONS = 6;
    //交易入金中
    public static final int APPLYSTATUS_TRADING_INMONEY = 7;
    //交易冻结/解冻/扣款中(银行发起出金时用)
    public static final int APPLYSTATUS_TRADEINGFROZE_UNFROZE_DEDUCTION = 8;
    //银行出金中
    public static final int APPLYSTATUS_BANK_OUTMONEY = 9;
    //银行入金中
    public static final int APPLYSTATUS_BANK_INMONEY = 10;
    //成功
    public static final int APPLYSTATUS_SUCCESS = 11;
    //失败
    public static final int APPLYSTATUS_FAILED = 12;
    //银行审核中
    public static final int APPLYSTATUS_BANK_AUDITING = 13;
    //账户服务入金失败
    public static final int APPLYSTATUS_ACCOUNT_INMONEY_FAILED = 14;
    //账户服务解冻失败
    public static final int APPLYSTATUS_ACCOUNT_UNFROZE_FAILED = 15;
    //账户服务解冻扣款失败
    public static final int APPLYSTATUS_ACCOUNT_DEDUTION_FAILED = 16;
    //账户服务出金失败
    public static final int APPLYSTATUS_ACCOUNT_OUTMONEY_FAILED = 17;
    //region 交易规则、费用规则、保证金枚举
    public static final int RETVALUEMAXTOTALBUYHOLDERQTY = 101;//最大买持仓量 101
    public static final int MAXTOTALSELLHOLDERQTY = 102;//最大卖持仓量 102
    public static final int MINOPENTRADEQTY = 103;//单笔最小建仓数量 103
    public static final int MAXOPENTRADEQTY = 104;//单笔最大建仓数量 104
    public static final int TRADECHARGERULES = 105;//手续费收费规则 105
    public static final int TRADETNNUMBER = 106;//交易T+N  106
    public static final int FIRSTLIMITHIGH = 107;//上市首日涨停（%）107
    public static final int FIRSTLIMITLOW = 108;// 上市首日跌停（%）108
    public static final int FIRSTLIMITPRICE = 109;// 上市首日参考价 109
    public static final int LIMITHIGH = 110;// 涨停（%）110
    public static final int LIMITLOW = 111;// 跌停（%）111
    public static final int ALLOWPIPS = 112;// 允许最大偏移点差 112
    public static final int LIMITSLPT = 113;// 止损点差 113
    public static final int LIMITSPPT = 114;// 止盈点差 114
    public static final int MINDELIVERYQTY = 115;//单笔最小交割数量 115
    public static final int MAXDELIVERYQTY = 116;//单笔最大交割数量 116
    public static final int OpenCharge = 101;//收益权建仓手续费 101
    public static final int CloseCharge = 102;//收益权平仓手续费 102
    public static final int BuyInterest = 103;//收益权买递延费 103
    public static final int SellInterest = 104;//收益权卖递延费 104
    public static final int BuyCharge = 101;//所有权买手续费 101
    public static final int SellCharge = 102;//所有权卖手续费 102
    public static final int StoreCharge = 103;//所有权仓储费 103
    public static final int BuyDeliveryCharge = 105;//买交割手续费 105
    public static final int OpenChargeType = 101;//收益权建仓手续费类型
    public static final int CloseChargeType = 102;//收益权平仓手续费类型
    public static final int BuyInterestType = 103;//收益权买递延费类型
    public static final int SellInterestType = 104;//收益权卖递延费类型
    public static final int BuyChargeType = 101;//所有权买手续费类型
    public static final int SellChargeType = 102;//所有权卖手续费类型
    public static final int StoreChargeType = 102;//所有权仓储费类型
    public static final int BuyDeliveryChargeType = 105;//买交割手续费类型
    /**
     * 性别
     */
    public static final int SEX_FEMALE = 0;//女
    public static final int SEX_MALE = 1;//男
    /**
     * 交易属性
     */
    /// 收益权(可做空)
    public static final int TRADEPROPERTY_CANSHORT = 1;
    /// 所有权(不可做空)
    public static final int TRADEPROPERTY_NOSHORT = 2;
    /// 期权
    public static final int TRADEPROPERTY_OPTION = 3;
    /**
     * 秒
     */
    public static final int HistoryData_Second = 0;
    /**
     * 1分钟
     */
    public static final int HistoryData_Minute = 1;
    /**
     * 5分钟
     */
    public static final int HistoryData_Minute5 = 2;
    /**
     * 15分钟
     */
    public static final int HistoryData_Minute15 = 22;
    /**
     * 30分钟
     */
    public static final int HistoryData_Minute30 = 3;
    /**
     * 60分钟
     */
    public static final int HistoryData_Minute60 = 4;
    /**
     * 2小时
     */
    public static final int HistoryData_Minute120 = 5;
    /**
     * 日
     */
    public static final int HistoryData_Day = 11;
    /**
     * 周
     */
    public static final int HistoryData_Week = 13;
    /**
     * 月
     */
    public static final int HistoryData_Month = 14;
    /**
     * 240分钟
     */
    public static final int HistoryData_Minute240 = 240;


    public static final int HistoryData_Year = 15;// 年K线

    public static final int HistoryData_Quarter = 16;// 季K线

    /**
     * 老的分笔
     */
//    public static final int HistoryData_Tik = 10;
    /**
     * 分笔
     */
    public static final int HistoryData_Tik = 12;
    /**
     * 分时数据
     */
    public final static int TIME = 0;
    /**
     * k线1分钟
     */
    public final static int K_1 = 1;
    /**
     * k线5分钟
     */
    public final static int K_5 = 5;
    /**
     * k线30分钟
     */
    public final static int K_30 = 30;
    /**
     * k线60分钟
     */
    public final static int K_60 = 60;
    /**
     * k线2小时
     */
    public final static int K_120 = 120;
    /**
     * k线240分钟
     */
    public final static int K_240 = 240;
    /**
     * k线日线
     */
    public final static int K_DAY = 1440;

    //endregion


    /**
     * 图表周期数据
     */
    public final static int TIK = 999;
    /**
     * 请求5分钟线的分时图
     */
    public static final int R_TIME_5 = 1;
    public static final int R_K_1 = 2;
    public static final int R_K_5 = 3;
    public static final int R_K_30 = 4;
    public static final int R_K_60 = 5;
    public static final int R_K_120 = 51;
    public static final int R_K_240 = 6;
    public static final int R_K_DAY = 7;
    public static final int R_K_WEEK = 13;
    public static final int R_K_MONTH = 14;
    public static final int R_K_YEAR = 15;
    public static final int R_K_QUARTER = 16;


    // 表示当前的界面状态
    public static final int R_TIK = 8;
    //销户处理状态
    public static final int REMOVE_PENDING = 0;
    public static final int REMOVE_PASS = 1;
    public static final int REMOVE_REFUSED = 2;
    public static final int REMOVE_HANDLING = 3;
    //销户申请状态
    public static final int REMOVE_APPLY = 0;
    public static final int REMOVE_FINISH = 1;
    /**
     * 登录查询项
     */
    public static int QUERYITEM_ACCOUNT_INFORMATION = 1;//账号信息
    public static int QUERYITEM_CAPITAL_ACCOUNT_LIST = 2;//资金账户列表


    /*****************  图表相关 ******************/
    public static int QUERYITEM_RULES = 3;//交易规则和费用规则
    public static int QUERYITEM_MAXIMUM_NOTICE = 4;//最大通知id
    public static int QUERYITEM_UPDATE_TIMESTAMP = 5;//更新时间戳
    /**
     * 更新时间戳枚举
     */

    public static int DIRCTIONARYUTIME = 20;//枚举常量字典最后更新时间
    public static int ERRORCODEUTIME = 21;    //错误码字典最后更新时间
    public static int MARKETSUTIME = 22;//市场更新时间
    public static int GOODSUTIME = 23;    //商品更新时间
    public static int CONFIGUTIME = 24;    //终端配置参数更新时间
    public static int RISKMSGUTIME = 25;//风险协议书更新时间
    public static int TRADEDATE = 26;    //交易日
    public static int MENUUTIME = 27;    //菜单更新时间
    public static int DVGOODSUTIME = 28;    //交割商品更新时间
    /**
     * 交易通道编号
     */
    public static int CHANNELIDTYPE_CTP = 1;// 综合交易平台
    public static int CHANNELIDTYPE_ATP = 2;// 安粮期货
    public static int CHANNELIDTYPE_IB = 3;// 盈透

    /**
     * 仓单类型
     */
    /// 注册仓单
    public static int WRTYPE_STANDARD = 1;
    /// 信用仓单
    public static int WRTYPE_CREDIT = 2;

    /**
     * 仓单申请状态
     */

    /// 待初审
    public static final int WR_AUDITSTATUS_PENDINGAUDIT = 1;
    /// 待复审
    public static final int WR_AUDITSTATUS_PENDINGREAUDIT = 2;
    /// 审核通过
    public static final int WR_AUDITSTATUS_PASS = 3;
    /// 审核拒绝
    public static final int WR_AUDITSTATUS_REJECT = 4;
    /// 注册成功
    public static final int WR_AUDITSTATUS_SUCCESS = 5;
    /// 注册失败
    public static final int WR_AUDITSTATUS_FAILED = 6;

    /**
     * 质押状态
     */
    /// 未质押
    public static final int PLEDGESTATUS_NO = 1;
    /// 已质押
    public static final int PLEDGESTATUS_YES = 2;

    /**
     * 提货状态对应表
     */
    /// 待审核
    public static final int LADING_PENDING = 1;
    /// 审核通过
    public static final int LADING_PASS = 2;
    /// 审核拒绝
    public static final int LADING_REFUSE = 3;
    /// 已撤消
    public static final int LADING_CANCEL = 4;
    /// 失败
    public static final int LADING_FAILED = 5;
    /// 提货完成
    public static final int LADING_OK = 6;

    /**
     * 提货方式
     */
    ///买方自提
    public static final int BUYERS_PICK_UP = 1;
    ///卖方发货
    public static final int SELLER_SEND = 2;

    /**
     * 账户仓单头寸指令类型
     */
    /// 冻结
    public static final int ACCOUNTWRPOSITIONCMDOP_FREEZE = 101;
    /// 最大冻结
    public static final int ACCOUNTWRPOSITIONCMDOP_MAX_FREEZE = 102;
    /// 解冻
    public static final int ACCOUNTWRPOSITIONCMDOP_UNFREEZE = 103;
    /// 增加
    public static final int ACCOUNTWRPOSITIONCMDOP_INCREASE = 104;
    /// 减少
    public static final int ACCOUNTWRPOSITIONCMDOP_DECREASE = 105;
    /**
     * 账户仓单订单头寸指令类型
     */
    /// 冻结
    public static final int ACCOUNTWRTRADEPSCMDOP_FREEZE = 101;
    /// 最大冻结
    public static final int ACCOUNTWRTRADEPSCMDOP_MAX_FREEZE = 102;
    /// 解冻
    public static final int ACCOUNTWRTRADEPSCMDOP_UNFREEZE = 103;
    /// 增加
    public static final int ACCOUNTWRTRADEPSCMDOP_INCREASE = 104;
    /// 减少
    public static final int ACCOUNTWRTRADEPSCMDOP_DECREASE = 105;
    /// 查询可用
    public static final int ACCOUNTWRTRADEPSCMDOP_QUERY_AVAILABLE = 106;
    /// 查询合约商品所有订单头寸
    public static final int ACCOUNTWRTRADEPSCMDOP_QUERY_GOODSID_ALL = 107;

    /**
     * 证件类型
     */
    public static final int CARDTYPE_IDCARD = 0; // 身份证

    public static final int CARDTYPE_HMPASSPORT = 1; // 港澳通行证

    public static final int CARDTYPE_ORGANIZATION = 2; // 组织机构代码证

    public static final int CARDTYPE_DRIVERLICENCE = 3; // 驾驶证

    public static final int CARDTYPE_BUSINESSLICENSE = 4; //营业执照

    public static final int CARDTYPE_OFFICERCERTIFICATE = 5; //军官证

    public static final int CARDTYPE_ARMYCIVIL_IANCADRES = 6; //解放军文职干部证

    public static final int CARDTYPE_POLICEID = 7; //警官证

    public static final int CARDTYPE_ARMYSOLDIERSCERTIFICATE = 8; // 解放军士兵证

    public static final int CARDTYPE_RESIDENCEBOOKLET = 9; //户口簿

    public static final int CARDTYPE_TEMPORARYIDCARD = 10; //临时身份证

    public static final int CARDTYPE_FOREIGNPASSPORT = 11; //外国）护照

    public static final int CARDTYPE_CHINESEPASSPORT = 12; //（中国）护照

    public static final int CARDTYPE_ARMEDPOLICECIVILIANCADRES = 13; //武警文职干部证

    public static final int CARDTYPE_ARMEDPOLICECERTIFICATE = 14; //武警士兵证

    public static final int CARDTYPE_OVERSEASCUSTOMERNUMBER = 15; //海外客户编号

    public static final int CARDTYPE_STUDENTCARD = 16; //学员证

    public static final int CARDTYPE_RETIREMENTCERTIFICATE = 17; //退休证

    public static final int CARDTYPE_BUSINESSLICENSETOPUBLIC = 18; //对公营业执照号码

    public static final int CARDTYPE_TAIWANGPASSPORT = 19; //台湾通行证

    public static final int CARDTYPE_UNIFIEDSOCIALCREDITCODE = 21; //统一社会信用代码

    public static final int CARDTYPE_OTHER_PERSON = 20; //个人其他类证件

    public static final int CARDTYPE_OTHER_ORG = 22; // 非个人其他类证件

    /**
     * 交割申报状态
     */
    /// 待审核
    public static final int DELIVERYORDERSTATUS_PENDING = 1;
    /// 审核通过
    public static final int DELIVERYORDERSTATUS_AUDITED = 2;
    /// 审核拒绝
    public static final int DELIVERYORDERSTATUS_REJECTED = 3;
    /// 已撤销
    public static final int DELIVERYORDERSTATUS_CANCELLED = 4;
    /// 失败
    public static final int DELIVERYORDERSTATUS_FAILED = 5;

    /**
     * 交割价格方式
     */
    /// 商品价
    public static final int DELIVERYPRICEMODE_GOODS = 1;
    /// 固定值
    public static final int DELIVERYPRICEMODE_FIXEDVALUE = 2;


    /**
     * 交割商品的相关属性PriceMoveType
     */
    public static final int PriceMoveType_Store = 4;// 仓库
    public static final int PriceMoveType_Spec = 3;// 规格
    public static final int PriceMoveType_Quality = 2;// 品质
    public static final int PriceMoveType_Brand = 1;// 品牌


    /**
     * 交割状态
     */
    /// 待成交
    public static final int DELIVERYSTATUS_PENDING = 1;
    /// 已成交
    public static final int DELIVERYSTATUS_TRADED = 2;
    /// 成交失败
    public static final int DELIVERYSTATUS_FAILED = 3;
    /// 履约完成
    public static final int DELIVERYSTATUS_PERFORMANCEFINISHED = 4;

    /********************************履约********************************/
    /**
     * 履约步骤类型
     */
    /// 买方支付
    public static final int PERFORMANCE_STEPTYPE_BUYER_PAYMENT = 1;
    ///  卖方收款
    public static final int PERFORMANCE_STEPTYPE_SELLER_RECEIVE = 2;
    ///  买方自提
    public static final int PERFORMANCE_STEPTYPE_BUYER_PICKUP = 3;
    ///  卖方发货
    public static final int PERFORMANCE_STEPTYPE_SELLER_SENDGOODS = 4;
    ///  买方确认货
    public static final int PERFORMANCE_STEPTYPE_BUYER_CONFIRMGOODS = 5;
    ///  卖方发票
    public static final int PERFORMANCE_STEPTYPE_SELLER_SENDINVOICE = 6;
    ///  买方确认票
    public static final int PERFORMANCE_STEPTYPE_BUYER_CONFIRMINVOICE = 7;
    ///  仓单转移
    public static final int PERFORMANCE_STEPTYPE_WRMOVE = 8;
    ///  释放卖方履约前剩余保证金
    public static final int PERFORMANCE_STEPTYPE_SELLER_UNFREEZE = 9;
    ///  溢短
    public static final int PERFORMANCE_STEPTYPE_OVER_SHORT = 10;
    /// 生成合同
    public static final int PERFORMANCE_STEPTYPE_BUILD_AGREEMENT = 11;

    /**
     * 履约步骤是否可自动确认
     */
    /// 不可自动确认
    public static final int PERFORMANCE_CANAUTO_NO = 0;
    /// 可自动确认
    public static final int PERFORMANCE_CANAUTO_YES = 1;

    /**
     * 履约支付方式
     */
    /// 冻结
    public static final int PERFORMANCE_PAYMENTTYPE_FREEZE = 1;
    /// 扣款
    public static final int PERFORMANCE_PAYMENTTYPE_DEDUCT = 2;

    /**
     * 履约步骤是否自动
     */
    /// 不自动
    public static final int PERFORMANCE_ISAUTO_NO = 0;
    /// 自动
    public static final int PERFORMANCE_ISAUTO_YES = 1;

    /**
     * 是否最后收款步骤
     */
    /// 不是
    public static final int PERFORMANCE_ISLASTRECEIVESTEP_NO = 0;
    /// 是
    public static final int PERFORMANCE_ISLASTRECEIVESTEP_YES = 1;

    /**
     * 履约仓单划转处理状态
     */
    /// 未划转
    public static final int PERFORMANCE_WR_HANDLESTATUS_NOT = 1;
    /// 已划转
    public static final int PERFORMANCE_WR_HANDLESTATUS_TRANSFERRED = 2;

    /**
     * 履约计划状态
     */
    /// 初始化
    public static final int PERFORMANCESTATUS_INI = 1;
    /// 正常
    public static final int PERFORMANCESTATUS_NORMAL = 2;
    /// 处理错误
    public static final int PERFORMANCESTATUS_ERROR = 3;
    /// 违约待确认
    public static final int PERFORMANCESTATUS_BREACHING = 4;
    /// 违约
    public static final int PERFORMANCESTATUS_BREACHED = 5;
    /// 完成
    public static final int PERFORMANCESTATUS_FINISHED = 6;
    /// 违约已完成
    public static final int PERFORMANCESTATUS_BREACHE_FINISHED = 7;

    /**
     * 履约步骤状态
     */
    /// 待开始
    public static final int PERFORMANCE_STEPSTATUS_PENDING = 1;
    /// 进行中
    public static final int PERFORMANCE_STEPSTATUS_EXECUTING = 2;
    /// 已完成
    public static final int PERFORMANCE_STEPSTATUS_FINISHED = 3;
    /// 延期(进行中)
    public static final int PERFORMANCE_STEPSTATUS_EXECUTING_DELAY = 4;
    /// 失败
    public static final int PERFORMANCE_STEPSTATUS_FAILED = 5;
    /// 自动完成
    public static final int PERFORMANCE_STEPSTATUS_FINISHED_AUTO = 6;

    /**
     * 履约违约状态
     */
    ///  待审核
    public static final int PERFORMANCE_BREACHSTATUS_PENDING = 1;
    /// 审核通过
    public static final int PERFORMANCE_BREACHSTATUS_PASS = 2;
    /// 审核拒绝
    public static final int PERFORMANCE_BREACHSTATUS_REJECT = 3;
    /// 已完成
    public static final int PERFORMANCE_BREACHSTATUS_FINISHED = 4;

    /**
     * 履约延期状态
     */
    /// 待审核
    public static final int PERFORMANCE_DELAYSTATUS_PENDING = 1;
    /// 审核通过
    public static final int PERFORMANCE_DELAYSTATUS_PASS = 2;
    /// 审核拒绝
    public static final int PERFORMANCE_DELAYSTATUS_REJECT = 3;
    /// 已撤销
    public static final int PERFORMANCE_DELAYSTATUS_CANCELLED = 4;
    /// 系统撤销
    public static final int PERFORMANCE_DELAYSTATUS_CANCELLEDBYSYS = 5;

    /**
     * 履约类型
     */
    /// 交割
    public static final int PERFORMANCETYPE_DELIVERY = 1;
    /// 仓单贸易
    public static final int PERFORMANCETYPE_WRTRADE = 2;
    /// 预售采集
    public static final int PERFORMANCETYPE_PRESALE = 3;
    /// 竞拍-降价式 (无仓单)
    public static final int PERFORMANCETYPE_AUCTIONCUT = 4;
    /// 挂牌期权
    public static final int PERFORMANCETYPE_BIDDINGOPTION = 5;


    /**
     * 履约步骤启动类型
     */
    /// 系统自动
    public static final int PERFORMANCE_STEPLANCHTYPE_SYSTEM = 1;
    /// 手动
    public static final int PERFORMANCE_STEPLANCHTYPE_MANUAL = 2;

    /************** 竞拍相关枚举 ****************/
    //竞拍未开始
    public static final int ACUTIONSTATUS_NOTBEGIN = 1;
    //竞拍中
    public static final int ACUTIONSTATUS_BIDING = 2;
    //竞拍结束（成功）
    public static final int ACUTIONSTATUS_FINISHED_TRADE = 3;
    //竞拍结束（流拍）
    public static final int ACUTIONSTATUS_FINISHED_UNSOLD = 4;
    //竞拍结束（部分成交）
    public static final int ACUTIONSTATUS_FINISHED_PART_TRADE = 5;


    //region 交割申报处理状态 eDeliveryOrderHandleStatus
    public static final int DELIVERYORDERHANDLESTATUS_VERIFY = 1;// 交割申报验证
    public static final int DELIVERYORDERHANDLESTATUS_VERIFY_FAILED = 2;// 交割申报验证失败
    public static final int DELIVERYORDERHANDLESTATUS_FREEZEWR = 3;// 冻结仓单
    public static final int DELIVERYORDERHANDLESTATUS_FREEZEWR_FAILED = 4;// 冻结仓单失败
    public static final int DELIVERYORDERHANDLESTATUS_FREEZE_X = 5;// 冻结X商品头寸
    public static final int DELIVERYORDERHANDLESTATUS_FREEZE_X_FAILED = 6;// 冻结X商品失败
    public static final int DELIVERYORDERHANDLESTATUS_FREEZE_P = 7;// 冻结P商品头寸
    public static final int DELIVERYORDERHANDLESTATUS_FREEZE_P_FAILED = 8;// 冻结P商品头寸失败
    public static final int DELIVERYORDERHANDLESTATUS_UNFREEZE_P = 9;// 解冻P商品头寸
    public static final int DELIVERYORDERHANDLESTATUS_UNFREEZE_XANDWR = 10;// 解冻X商品头寸及仓单头寸
    public static final int DELIVERYORDERHANDLESTATUS_SUCCESS = 11;// 交割申报成功
    public static final int DELIVERYORDERHANDLESTATUS_FREEZE_AMOUNT = 12;// 冻结交收货款
    public static final int DELIVERYORDERHANDLESTATUS_FREEZE_AMOUNT_FAILED = 13;// 冻结交收货款失败
    public static final int DELIVERYORDERHANDLESTATUS_TRADE_FAILD = 14;// 成交失败
    public static final int DELIVERYORDERHANDLESTATUS_PARTTRADE_CANCELED = 15;// 部成部撤
    public static final int DELIVERYORDERHANDLESTATUS_ALLTRADE = 16;// 全部成交
    public static final int DELIVERYORDERHANDLESTATUS_CANCELED = 17;// 撤销
    public static final int DELIVERYORDERHANDLESTATUS_PARTTRADE = 18;// 部分成交
    public static final int DELIVERYORDERHANDLESTATUS_INSUFFICIENT_FUNDS = 19;// 资金不足
    public static final int DELIVERYORDERHANDLESTATUS_SELECTABLE = 20;// 无仓单交割待点选

    //endregion
    public static final int FIXED = 1; //比率
    public static final int RATE = 2; //固定

    public static final int AUCTION_LOADING = 1; //竞拍中
    public static final int AUCTION_NOSTART = 2; //未开始
    public static final int AUCTION_SUCCESSEND = 3; //竞拍结束（成交）
    public static final int AUCTION_NOSUCCESSEND = 4; //竞拍结束（流拍）
    public static final int AUCTION_SUCCESSUNEND = 5; //竞拍结束（待履约）
    public static final int AUCTION_SUCCESS = 6; //履约完成
    public static final int AUCTION_REMOVE = 7; //已经注销
    public static final int AUCTION_NEWGOODS = 8; //新增拍品

    //预售状态 1：预售中 2：未开始 3：预售成功 4：预售失败 5：处理失败
    public static final int PRESELL_LOADINGS = 1;  //预售中
    public static final int PRESELL_NOSTART = 2;  //未开始
    public static final int PRESELL_SUCCESSEND = 3; //预售成功
    public static final int PRESELL_NOSUCCESSEND = 4; //预售失败
    public static final int PRESELL_FAIL = 5; //处理失败

    public static final int APPLY_BACK = 0; //已撤回
    public static final int APPLY_WAITING = 1; //待审核
    public static final int APPLY_LOADING = 2; //审核中
    public static final int APPLY_SUCCESS = 3; //审核成功
    public static final int APPLY_NO = 4; //审核拒绝
    public static final int APPLY_ERROR = 5; //审核失败
    public static final int APPLY_BACK_OLD = 6; //已撤回

    public static final int NOW_DO = 1; //立即执行
    public static final int DEMO_DO = 2; //履约模板执行

    //委托状态
    public static final int AUCTION_APPLYREQUEST = 1; //委托请求
    public static final int AUCTION_FREEZE = 2;  //待冻结
    public static final int AUCTION_APPLYSUCCESS = 3; //委托成功
    public static final int AUCTION_APPLYFAIL = 4; //委托失败
    public static final int AUCTION_PAIRSUCCESS = 5;//配对成功
    public static final int AUCTION_UNDO = 6;//已撤销
    public static final int AUCTION_LITTERSUCESS = 7;//部分成交
    public static final int AUCTION_SUCCESSED = 8;//已成交
    public static final int AUCTION_LITTERUNDO = 9;//部分成交部分撤销
    public static final int AUCTION_FAILED = 10;//成交失败
    public static final int AUCTION_REFUSED = 11;//已拒绝


    //预售集采委托状态
    public static final int PRESELL_CALLBACK = 0; //已撤回
    public static final int PRESELL_WILL = 1; //待审核
    public static final int PRESELL_LOADING = 2; //审核中
    public static final int PRESELL_SUCCESS = 3; //审核成功
    public static final int PRESELL_DEFAULT = 4; //审核拒绝
    public static final int PRESELL_FALSE = 5; //审核失败
    public static final int PRESELL_CALLDOWN = 6; //已撤销


    /****************************************************************/
    /****************************供应链金融************************************/
    /**
     * 风控模式
     */
    /// 比率
    public static final int SCF_SCFRISKMODE_RATIO = 1;
    /// 固定
    public static final int SCF_SCFRISKMODE_FIXED = 2;

    /**
     * 供应链金融合同状态
     */
    /// 新建
    public static final int SCF_CONTRACTSTATUS_NEW = 1;
    /// 已确认
    public static final int SCF_CONTRACTSTATUS_CONFIRMED = 2;
    /// 确认拒绝
    public static final int SCF_CONTRACTSTATUS_CONFIRMED_REJECTION = 3;
    /// 已支付保证金
    public static final int SCF_CONTRACTSTATUS_PAID_DEPOSIT = 4;
    /// 已激活
    public static final int SCF_CONTRACTSTATUS_ALREADY_ACTIVATED = 5;
    /// 已违约
    public static final int SCF_CONTRACTSTATUS_DEFAULTING = 6;
    /// 到期结束
    public static final int SCF_CONTRACTSTATUS_MATURITY_END = 7;
    /// 延期结束
    public static final int SCF_CONTRACTSTATUS_DEFERRED_END = 8;
    /// 违约结束
    public static final int SCF_CONTRACTSTATUS_DEFAULT_END = 9;
    /// 已注销
    public static final int SCF_CONTRACTSTATUS_LOGOUT = 10;
    /// 已关闭
    public static final int SCF_CONTRACTSTATUS_CLOSE = 11;

    /**
     * 供应链金融是否自动放款
     */
    /// 手动
    public static final int SCF_ISAUTOLOAN_MANUAL = 0;
    /// 自动
    public static final int SCF_ISAUTOLOAN_AUTO = 1;

    /**
     * 利率方式
     */
    ///年利率
    public static final int INTEREST_RATE_MODE_YEAR = 1;
    ///日利率
    public static final int INTEREST_RATE_MODE_DAY = 2;

    /**
     * 供应链金融计息标志
     */
    /// 停止计息
    public static final int SCF_INTERESTFLAG_STOP = 0;
    /// 启动计息
    public static final int SCF_INTERESTFLAG_START = 1;

    /**
     * 供应链金融结息方式
     */
    /// 按日结息
    public static final int SCF_INTERESTSETTLEMODE_DAY = 1;
    /// 按周结息
    public static final int SCF_INTERESTSETTLEMODE_WEEK = 2;
    /// 按月结息
    public static final int SCF_INTERESTSETTLEMODE_MONTH = 3;
    /****************************************************************/

    /**
     * 仓单贸易类型
     */
    /// 挂牌
    public static final int WRTRADEORDERTYPE_LISTING = 1;
    /// 摘牌
    public static final int WRTRADEORDERTYPE_DELISTING = 2;

    /**
     * 客户端类型
     */

    public static final int CLIENTTYPE_CLIENTTYPE_NONE = 0;    // 保留为未填终端类型
    public static final int CLIENTTYPE_CLIENTTYPE_PC_MANAGER_CLIENT = 1;    // PC管理端
    public static final int CLIENTTYPE_CLIENTTYPE_PC_TRADE_CLIENT = 2;    // PC交易端
    public static final int CLIENTTYPE_CLIENTTYPE_MOBILE_CLIENT_ANDROID = 3;    // 手机客户端_安卓
    public static final int CLIENTTYPE_CLIENTTYPE_WEBPAGE_CLIENT = 4;    // 网页客户端
    public static final int CLIENTTYPE_CLIENTTYPE_WECHAT_CLIENT = 5;    // 微信客户端
    public static final int CLIENTTYPE_CLIENTTYPE_MOBILE_CLIENT_IOS = 6;    // 手机客户端_苹果
    public static final int CLIENTTYPE_CLIENTTYPE_USERACCOUNT_ONLINE = 7;    // 网上开户客户端
    public static final int CLIENTTYPE_CLIENTTYPE_INVALID = 8;    // 无效终端编号

    /**
     * 仓单挂摘牌类型
     */
    public static final int WRLISTINGSELECTTYPE_LISTING = 1; // 挂牌
    public static final int WRLISTINGSELECTTYPE_DELISTING = 2; // 摘牌

    /**
     * 仓单贸易价格方式
     */
    /// 固定价
    public static final int WRTRADEPRICETYPE_FIXED_PRICE = 1;
    /// 浮动价
    public static final int WRTRADEPRICETYPE_FLOAT_PRICE = 2;

    /**
     * 仓单贸易委托状态
     */
    /// 委托请求
    public static final int WRTRADEORDERSTATUS_REQUEST = 1;
    /// 待冻结
    public static final int WRTRADEORDERSTATUS_WAITFREEZE = 2;
    /// 委托成功
    public static final int WRTRADEORDERSTATUS_SUCCEED = 3;
    /// 委托失败
    public static final int WRTRADEORDERSTATUS_FAILED = 4;
    /// 配对成功
    public static final int WRTRADEORDERSTATUS_MATCHED = 5;
    /// 已撤
    public static final int WRTRADEORDERSTATUS_CANCELED = 6;
    /// 已成
    public static final int WRTRADEORDERSTATUS_DEALED = 7;
    /// 成交失败
    public static final int WRTRADEORDERSTATUS_DEALFAILED = 8;
    /// 委托拒绝
    public static final int WRTRADEORDERSTATUS_DENIED = 9;
    /// 挂牌部分成交
    public static final int WRTRADEORDERSTATUS_LISTING_PARTTRADE = 10;
    /// 仓单生成失败
    public static final int WRTRADEORDERSTATUS_WR_FAILED = 11;
    /// 首付扣款失败
    public static final int WRTRADEORDERSTATUS_FIRSTPAYMENT_DEDUCT_FAILED = 12;
    /// 履约失败
    public static final int WRTRADEORDERSTATUS_PERFORMANCE_FAILED = 13;
    /// 撤单解冻贷款失败
    public static final int WRTRADEORDERSTATUS_CANCELE_UNFREZZE_FAILED = 14;
    /// 部成部撤
    public static final int WRTRADEORDERSTATUS_PARTIALCANCELED = 15;

    /**
     * 获取仓单贸易成交单状态
     */
    public static final int WRDEALSTATUS_NOHANDLE = 1;       //待处理
    public static final int WRDEALSTATUS_HANDLED = 2;        //已处理
    public static final int WRDEALSTATUS_NOHANDLEFAIL = 3;   //处理失败
    public static final int WRDEALSTATUS_FINISH = 4;         //履约完成

    //1-整装 2-散货
    public static final int DELIVERYGOODSTYPE_READY = 1;
    public static final int DELIVERYGOODSTYPE_BULK = 2;

    //0:不拆分 1:拆分 [整装]
    public static final int DELIVERYGOODSTYPE_NOBREAKUP = 0;
    public static final int DELIVERYGOODSTYPE_BREAKUP = 1;

    //登陆返回 已修改密码标志
    public static final int HASUPDATEPWD_NO = 0;  //未修改
    public static final int HASUPDATEPWD_YES = 1; //已修改

    // 资金调整类型
    /// 系统
    public static final int AMOUNTADJUSTTYPE_SYSTEM = 0;
    /// 单边账调整
    public static final int AMOUNTADJUSTTYPE_UNILATERAL = 1;
    /// 人工调整
    public static final int AMOUNTADJUSTTYPE_MANUAL = 2;

    // 权利金报价方式-挂牌期权

    public static final int PREMIUMQUOTEMODE_AUTO = 1; /// 自动

    public static final int PREMIUMQUOTEMODE_MANUAL = 2; /// 手动

    // 触发条件
    /// 大于等于
    public static final int TRIGGEROPERATOR_GREATEROREQUAL = 1;
    /// 小于等于
    public static final int TRIGGEROPERATOR_LESSOREQUAL = 2;

    // 预埋单状态
    /// 待激活
    public static final int PREORDERSTATUS_INACTIVE = 1;
    /// 已激活
    public static final int PREORDERSTATUS_ACTIVE = 2;
    /// 已撤销
    public static final int PREORDERSTATUS_CANCELLED = 3;

    //期货做空委托类型
    public static final int CHANNELOPERATETYPE_ORDER = 1;//正常下单

    public static final int CHANNELOPERATETYPE_RISK = 2;//斩仓下单

    public static final int CHANNELOPERATETYPE_TRADE = 3;//交易下单

    public static final int CHANNELOPERATETYPE_SPSLOrder = 5;//止盈止损触发


    /**
     * 合同类型
     */
    public static final int CONTRACT_TYPE_BUY = 1;//采购

    public static final int CONTRACT_TYPE_SELL = -1;//销售

    /**
     * 产品类型
     */
    public static final int STANDARD_OF_THE_WAREHOUSE = 1;//标准仓单

    public static final int SUCH_AS_THS = 2;//等标

    public static final int NON_STANDARD = 3;//非标

    /**
     * 定价类型
     */
    public static final int PRICE = 1;//一口价

    public static final int SOME_PRICE = 2;//点价

    public static final int TEMPORARY_PRICE = 3;//暂定价

}
