package com.desfate.chart.ui.old.OTC.datas;

import android.os.Parcel;
import android.os.Parcelable;

public class QuoteTikPart implements Parcelable {

	/// <summary>
	/// 无法识别
	/// </summary>
	public final static int None = 0;
	/// <summary>
	/// 单笔行情的分隔符
	/// </summary>
	public final static byte PriceSplit = '';
	/// <summary>
	/// 字段分隔符
	/// </summary>
	public final static byte FieldStart = '';
	/// <summary>
	/// 字段值分隔符
	/// </summary>
	public final static byte ValueStart = '';

	/// <summary>
	/// 名称
	/// </summary>
	public final static byte Name = 0x20;
	/// <summary>
	/// 商品代码字段
	/// </summary>
	public final static byte GoodsCode = 0x21;
	/// <summary>
	/// 结算商品组
	/// </summary>
	public final static byte SettlementGroup = 0x22;
	/// <summary>
	/// 结算Id
	/// </summary>
	public final static byte SettlementId = 0x23;
	/// <summary>
	/// 现价
	/// </summary>
	public final static byte Last = 0x24;
	/// <summary>
	/// 现量
	/// </summary>
	public final static byte LastVolume = 0x25;
	/// <summary>
	/// 现额
	/// </summary>
	public final static byte LastTurnover = 0x26;
	/// <summary>
	/// 现手
	/// </summary>
	public final static byte LastLot = 0x27;
	/// <summary>
	/// 总量
	/// </summary>
	public final static byte TotalVolume = 0x28;
	/// <summary>
	/// 总额
	/// </summary>
	public final static byte TotalTurnover = 0x29;
	/// <summary>
	/// 总手
	/// </summary>
	public final static byte TotalLot = 0x2A;

	/// <summary>
	/// 昨收
	/// </summary>
	public final static char PreClose = '+';
	/// <summary>
	/// 最高
	/// </summary>
	public final static char Highest = ',';
	/// <summary>
	/// 最低
	/// </summary>
	public final static char Lowest = '-';
	/// <summary>
	/// 开盘价
	/// </summary>
	public final static char Opened = '.';
	/// <summary>
	/// 收盘价
	/// </summary>
	public final static byte Closed = 0x2F;
	/// <summary>
	/// 历史最高
	/// </summary>
	public final static byte LifeHigh = 0x30;
	/// <summary>
	/// 历史最低
	/// </summary>
	public final static byte LifeLow = 0x31;
	/// <summary>
	/// 昨结算
	/// </summary>
	public final static byte PreSettle = 0x32;
	/// <summary>
	/// 结算价
	/// </summary>
	public final static byte Settle = 0x33;
	/// <summary>
	/// 均价
	/// </summary>
	public final static byte Average = 0x34;
	/// <summary>
	/// 涨停价
	/// </summary>
	public final static byte LimitHigh = 0x35;
	/// <summary>
	/// 跌停价
	/// </summary>
	public final static byte LimitLow = 0x36;

	/// <summary>
	/// 市盈率2
	/// </summary>
	public final static byte PE1 = 0x37;
	/// <summary>
	/// 市盈率2
	/// </summary>
	public final static byte PE2 = 0x38;
	/// <summary>
	/// 涨跌值(离上一笔)
	/// </summary>
	public final static byte Change = 0x39;
	/// <summary>
	/// 涨跌值(离开盘)
	/// </summary>
	public final static byte ChangeFromOpen = 0x3A;
	/// <summary>
	/// 涨跌幅
	/// </summary>
	public final static byte ChangePercent = 0x3B;
	/// <summary>
	/// 昨持仓
	/// </summary>
	public final static byte PreHoldVolume = 0x3C;
	/// <summary>
	/// 增仓
	/// </summary>
	public final static byte HoldIncrement = 0x3D;
	/// <summary>
	/// 昨日虚实
	/// </summary>
	public final static byte PreDelta = 0x3E;
	/// <summary>
	/// 虚实
	/// </summary>
	public final static byte Delta = 0x3F;

	/// <summary>
	/// 日期
	/// </summary>
	public final static byte Date = '@';
	/// <summary>
	/// 时间
	/// </summary>
	public final static byte Time = 'A';
	/// <summary>
	/// 买价
	/// </summary>
	public final static byte Bid = 'B';
	/// <summary>
	/// 买价2
	/// </summary>
	public final static byte Bid2 = 'C';
	/// <summary>
	/// 买价3
	/// </summary>
	public final static byte Bid3 = 'D';
	/// <summary>
	/// 买价4
	/// </summary>
	public final static byte Bid4 = 'E';
	/// <summary>
	/// 买价5
	/// </summary>
	public final static byte Bid5 = 'F';
	/// <summary>
	/// 买量
	/// </summary>
	public final static byte BidVolume = 'G';
	/// <summary>
	/// 买量2
	/// </summary>
	public final static byte BidVolume2 = 'H';
	/// <summary>
	/// 买量3
	/// </summary>
	public final static byte BidVolume3 = 'I';
	/// <summary>
	/// 买量4
	/// </summary>
	public final static byte BidVolume4 = 'J';
	/// <summary>
	/// 买量5
	/// </summary>
	public final static byte BidVolume5 = 'K';
	/// <summary>
	/// 卖价
	/// </summary>
	public final static byte Ask = 'L';
	/// <summary>
	/// 卖价2
	/// </summary>
	public final static byte Ask2 = 'M';
	/// <summary>
	/// 卖价3
	/// </summary>
	public final static byte Ask3 = 'N';
	/// <summary>
	/// 卖价4
	/// </summary>
	public final static byte Ask4 = 'O';
	/// <summary>
	/// 卖价5
	/// </summary>
	public final static byte Ask5 = 'P';
	/// <summary>
	/// 卖量
	/// </summary>
	public final static byte AskVolume = 'Q';
	/// <summary>
	/// 卖量2
	/// </summary>
	public final static byte AskVolume2 = 'R';
	/// <summary>
	/// 卖量3
	/// </summary>
	public final static byte AskVolume3 = 'S';
	/// <summary>
	/// 卖量4
	/// </summary>
	public final static byte AskVolume4 = 'T';
	/// <summary>
	/// 卖量5
	/// </summary>
	public final static byte AskVolume5 = 'U';
	/// <summary>
	/// 交易所代码
	/// </summary>
	public final static byte ExchangeCode = 0x56;
	/// <summary>
	/// 商品组
	/// </summary>
	public final static byte GoodsGroupCode = 0x57;
	/// <summary>
	/// 小数位
	/// </summary>
	public final static byte DecimalPlace = 0x58;
	/// <summary>
	/// 买委托队列
	/// </summary>
	public final static byte BidQueueInfo = 0x59;
	/// <summary>
	/// 卖委托队列
	/// </summary>
	///
	public final static byte AskQueueInfo = 0x5A;
	/// <summary>
	/// 持仓
	/// </summary>
	public final static byte HoldVolume = 0x5B;
	/// <summary>
	/// 行使价  行权价
	/// </summary>
	public final static byte Strike = 0x5C;
	/// <summary>
	/// 拟开盘价
	/// </summary>
	public final static byte CalcOpen = 0x5D;

	/// <summary>
	/// 开盘买入价
	/// </summary>
	public final static byte BidOpen = 0x60;
	/// <summary>
	/// 收盘买入价
	/// </summary>
	public final static byte BidClose = 0x61;
	/// <summary>
	/// 昨日总成交额
	/// </summary>
	public final static byte PreTotalTurnover = 0x62;
	/// <summary>
	/// 交易撤出价
	/// </summary>
	public final static byte TradeCancel = 0x63;
	/// <summary>
	/// 交易撤出量
	/// </summary>
	public final static byte TradeCancelVolume = 0x64;
	/// <summary>
	/// 预计平均结算价
	/// </summary>
	public final static byte EAS = 0x65;
	/// <summary>
	/// 收盘卖出价
	/// </summary>
	public final static byte AskClose = 0x66;
	/// <summary>
	/// 最高卖出价
	/// </summary>
	public final static byte AskHigh = 0x67;
	/// <summary>
	/// 最低卖出价
	/// </summary>
	public final static byte AskLow = 0x68;
	/// <summary>
	/// 昨收卖出价
	/// </summary>
	public final static byte AskPreClose = 0x69;
	/// <summary>
	/// 开盘卖出价
	/// </summary>
	public final static byte AskOpen = 0x6A;
	/// <summary>
	/// 交易类型
	/// </summary>
	public final static byte TradeKind = 0x6B;
	/// <summary>
	/// 参考平衡价
	/// </summary>
	public final static byte IEP = 0x6C;
	/// <summary>
	/// 参考平衡量
	/// </summary>
	public final static byte IEV = 0x6D;
	/// <summary>
	/// 暗盘价
	/// </summary>
	public final static byte Grey = 0x6E;

	/// <summary>
	/// 买委单数
	/// </summary>
	public final static byte BidOrder = 0x70;
	/// <summary>
	/// 买委单数2
	/// </summary>
	public final static byte BidOrder2 = 0x71;
	/// <summary>
	/// 买委单数3
	/// </summary>
	public final static byte BidOrder3 = 0x72;
	/// <summary>
	/// 买委单数4
	/// </summary>
	public final static byte BidOrder4 = 0x73;
	/// <summary>
	/// 买委单数5
	/// </summary>
	public final static byte BidOrder5 = 0x74;
	/// <summary>
	/// 卖委单数
	/// </summary>
	public final static byte AskOrder = 0x75;
	/// <summary>
	/// 卖委单数2
	/// </summary>
	public final static byte AskOrder2 = 0x76;
	/// <summary>
	/// 卖委单数3
	/// </summary>
	public final static byte AskOrder3 = 0x77;
	/// <summary>
	/// 卖委单数4
	/// </summary>
	public final static byte AskOrder4 = 0x78;
	/// <summary>
	/// 卖委单数5
	/// </summary>
	public final static byte AskOrder5 = 0x79;
	/// <summary>
	/// 库存量
	/// </summary>
	public final static byte Inventory = 0x7a;
	/// <summary>
	/// 行情序号
	/// </summary>
	public final static byte OrderId = 0x7B;
	//当前交易日
	public final static byte ExchangeTime = 0x7c;

    /// 为了实现挂牌期权的业务，实时行情和盘面需要增加权利金字段
    // 认购期权权利金1
    public final static byte CallOptionPremiums = (byte) 0x83; // 0x83
    // 认购期权权利金2
    public final static byte CallOptionPremiums2 = (byte) 0x84; // 0x84
    // 认购期权权利金3
    public final static byte CallOptionPremiums3 = (byte) 0x85; // 0x85
    // 认购期权权利金4
    public final static byte CallOptionPremiums4 = (byte) 0x86; // 0x86
    // 认购期权权利金5
    public final static byte CallOptionPremiums5 = (byte) 0x87; // 0x87

    //认沽期权权利金1
    public final static byte PutOptionPremiums = 0x7D;
    //认沽期权权利金2
    public final static byte PutOptionPremiums2 = 0x7E;
    //认沽期权权利金3
    public final static byte PutOptionPremiums3 = (byte) 0x80; // 0x80
    //认沽期权权利金4
    public final static byte PutOptionPremiums4 = (byte) 0x81; // 0x81
    //认沽期权权利金5
    public final static byte PutOptionPremiums5 = (byte) 0x82; // 0x82

    //买订单号1
    public final static byte strBidOrder = 0x70;
    //买订单号2
    public final static byte strBidOrder2 = 0x71;
    //买订单号3
    public final static byte strBidOrder3 = 0x72;
    //买订单号4
    public final static byte strBidOrder4 = 0x73;
    //买订单号5
    public final static byte strBidOrder5 = 0x74;

    //卖订单号1
    public final static byte strAskOrder = 0x75;
    //卖订单号2
    public final static byte strAskOrder2 = 0x76;
    //卖订单号3
    public final static byte strAskOrder3 = 0x77;
    //卖订单号4
    public final static byte strAskOrder4 = 0x78;
    //卖订单号5
    public final static byte strAskOrder5 = 0x79;
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDER6      =   (byte) 0xA2;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDER7      =   (byte) 0xA3;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDER8      =   (byte) 0xA4;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDER9      =   (byte) 0xA5;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDER10     =   (byte) 0xA6;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDER6      =   (byte) 0xA7;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDER7      =   (byte) 0xA8;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDER8      =   (byte) 0xA9;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDER9      =   (byte) 0xAA;                    //买卖单号
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDER10     =   (byte) 0xAB;                    //买卖单号

    public final static byte MI_QUOTE_FIELD_CODE_INVENTORY             = 0x7A;                    //�ܿ����
	public final static byte MI_QUOTE_FIELD_CODE_ORDERID               = 0x7B;
	public final static byte MI_QUOTE_FIELD_CODE_TRADEDATE             = 0x7C;
	public final static byte MI_QUOTE_FIELD_CODE_PUTOPTIONPREMIUMS     = 0x7D;                    //认沽期权权利金1
	public final static byte MI_QUOTE_FIELD_CODE_PUTOPTIONPREMIUMS2    = 0x7E;                    //认沽期权权利金2
	public final static byte MI_QUOTE_FIELD_CODE_PUTOPTIONPREMIUMS3    = (byte) 0x80;                    //认沽期权权利金3
	public final static byte MI_QUOTE_FIELD_CODE_PUTOPTIONPREMIUMS4    = (byte) 0x81;                    //认沽期权权利金4
	public final static byte MI_QUOTE_FIELD_CODE_PUTOPTIONPREMIUMS5    = (byte) 0x82;                    //认沽期权权利金5
	public final static byte MI_QUOTE_FIELD_CODE_CALLOPTIONPREMIUMS    = (byte) 0x83;                    //认购期权权利金1
	public final static byte MI_QUOTE_FIELD_CODE_CALLOPTIONPREMIUMS2   = (byte) 0x84;                    //认购期权权利金2
	public final static byte MI_QUOTE_FIELD_CODE_CALLOPTIONPREMIUMS3   = (byte) 0x85;                    //认购期权权利金3
	public final static byte MI_QUOTE_FIELD_CODE_CALLOPTIONPREMIUMS4   = (byte) 0x86;                    //认购期权权利金4
	public final static byte MI_QUOTE_FIELD_CODE_CALLOPTIONPREMIUMS5   = (byte) 0x87;                    //认购期权权利金5
	public final static byte MI_QUOTE_FIELD_CODE_NONTOTALVOLUME        = (byte) 0x88;                    //非交易成交总量
	public final static byte MI_QUOTE_FIELD_CODE_NONTOTALHOLDERVOLUME  = (byte) 0x89;                    //非交易总持仓量
	public final static byte MI_QUOTE_FIELD_CODE_NONTOTALTURNOVER      = (byte) 0x8A;                    //非交易成交总金额
	public final static byte MI_QUOTE_FIELD_CODE_NONTOTALLOT           = (byte) 0x8B;                    //非交易成交总数
	public final static byte MI_QUOTE_FIELD_CODE_MARKPRICE             = (byte) 0x8C;                    //MARKPRICE
	public final static byte MI_QUOTE_FIELD_CODE_FUNDSRATE             = (byte) 0x8D;                    //FUNDSRATE

	public final static byte MI_QUOTE_FIELD_CODE_BID6            =   (byte) 0xAC;                    //买档6
	public final static byte MI_QUOTE_FIELD_CODE_BID7            =   (byte) 0xAD;                    //买档7
	public final static byte MI_QUOTE_FIELD_CODE_BID8            =   (byte) 0x8E;                    //买档8
	public final static byte MI_QUOTE_FIELD_CODE_BID9            =   (byte) 0x90;                    //买档9
	public final static byte MI_QUOTE_FIELD_CODE_BID10           =   (byte) 0x91;                    //买档10
	public final static byte MI_QUOTE_FIELD_CODE_BID_VOLUME6     =   (byte) 0x92;                    //买档量6
	public final static byte MI_QUOTE_FIELD_CODE_BID_VOLUME7     =   (byte) 0x93;                    //买档量7
	public final static byte MI_QUOTE_FIELD_CODE_BID_VOLUME8     =   (byte) 0x94;                    //买档量8
	public final static byte MI_QUOTE_FIELD_CODE_BID_VOLUME9     =   (byte) 0x95;                    //买档量9
	public final static byte MI_QUOTE_FIELD_CODE_BID_VOLUME10    =   (byte) 0x96;                    //买档量10
	public final static byte MI_QUOTE_FIELD_CODE_ASK6            =   (byte) 0x97;                    //卖档6
	public final static byte MI_QUOTE_FIELD_CODE_ASK7            =   (byte) 0x98;                    //卖档7
	public final static byte MI_QUOTE_FIELD_CODE_ASK8            =   (byte) 0x99;                    //卖档8
	public final static byte MI_QUOTE_FIELD_CODE_ASK9            =   (byte) 0x9A;                    //卖档9
	public final static byte MI_QUOTE_FIELD_CODE_ASK10           =   (byte) 0x9B;                    //卖档10
	public final static byte MI_QUOTE_FIELD_CODE_ASK_VOLUME6     =   (byte) 0x9C;                    //卖档量6
	public final static byte MI_QUOTE_FIELD_CODE_ASK_VOLUME7     =   (byte) 0x9D;                    //卖档量7
	public final static byte MI_QUOTE_FIELD_CODE_ASK_VOLUME8     =   (byte) 0x9E;                    //卖档量8
	public final static byte MI_QUOTE_FIELD_CODE_ASK_VOLUME9     =   (byte) 0xA0;                    //卖档量9
	public final static byte MI_QUOTE_FIELD_CODE_ASK_VOLUME10    =   (byte) 0xA1;                    //卖档量10

	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL	 = (byte) 0xAE;				//买1的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL2	 = (byte) 0xAF;				//买2的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL3	 = (byte) 0xB0;				//买3的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL4	 = (byte) 0xB1;				//买4的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL5	 = (byte) 0xB2;				//买5的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL6   =   (byte) 0xB3;                    //买6的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL7   =   (byte) 0xB4;                    //买7的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL8   =   (byte) 0xB5;                    //买8的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL9   =   (byte) 0xB6;                    //买9的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_BID_ORDERVOL10  =   (byte) 0xB7;                    //买10的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL	 = (byte) 0xB8;				//卖1的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL2	 = (byte) 0xB9;				//卖2的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL3	 = (byte) 0xBA;				//卖3的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL4	 = (byte) 0xBB;				//卖4的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL5	 = (byte) 0xBC;				//卖5的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL6   =   (byte) 0xBD;                    //卖6的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL7   =   (byte) 0xBE;                    //卖7的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL8   =   (byte) 0xBF;                    //卖8的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL9   =   (byte) 0xC0;                    //卖9的订单数量
	public final static byte MI_QUOTE_FIELD_CODE_ASK_ORDERVOL10  =   (byte) 0xC1;                    //卖10的订单数量

    protected QuoteTikPart(Parcel in) {
    }

    public static final Creator<QuoteTikPart> CREATOR = new Creator<QuoteTikPart>() {
        @Override
        public QuoteTikPart createFromParcel(Parcel in) {
            return new QuoteTikPart(in);
        }

        @Override
        public QuoteTikPart[] newArray(int size) {
            return new QuoteTikPart[size];
        }
    };

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel arg0, int arg1) {
		// TODO Auto-generated method stub

	}
}
