declare namespace Proto {
    /** 行情推送 */
    interface Quote {
        ask?: number;
        ask2?: number;
        ask3?: number;
        ask4?: number;
        ask5?: number;
        askvolume?: number;
        askvolume2?: number;
        askvolume3?: number;
        askvolume4?: number;
        askvolume5?: number;
        bid?: number;
        bid2?: number;
        bid3?: number;
        bid4?: number;
        bid5?: number;
        bidvolume?: number;
        bidvolume2?: number;
        bidvolume3?: number;
        bidvolume4?: number;
        bidvolume5?: number;
        date?: string;
        exchangecode?: number;
        exchangedate?: number;
        goodscode?: string;
        highest?: number;
        holdvolume?: number;
        last?: number;
        limithigh?: number;
        limitlow?: number;
        lowest?: number;
        opened?: number;
        preclose?: number;
        presettle?: number;
        settle?: number;
        time?: string;
        totalturnover?: number;
        totalvolume?: number;
        lastvolume?: number;
        preholdvolume?: number;
        exerciseprice?: number;
        inventory?: number;
        strbidorder?: string;
        strbidorder2?: string;
        strbidorder3?: string;
        strbidorder4?: string;
        strbidorder5?: string;
        straskorder?: string;
        straskorder2?: string;
        straskorder3?: string;
        straskorder4?: string;
        straskorder5?: string;
        putoptionpremiums?: number;
        putoptionpremiums2?: number;
        putoptionpremiums3?: number;
        putoptionpremiums4?: number;
        putoptionpremiums5?: number;
        calloptionpremiums?: number;
        calloptionpremiums2?: number;
        calloptionpremiums3?: number;
        calloptionpremiums4?: number;
        calloptionpremiums5?: number;
    }

    /** 行情订阅请求 */
    interface QuoteReq {
        exchangeCode: number; // 交易所代码, 1 Byte MTP 2.0 由于交易所代码服务端未下发，暂时写死250
        goodsCode: string; // 商品代码，64 Byte，不足位使用'\0'补齐
        subState: number; // 订阅成功标志；1为成功，0为失败，订阅的时候填0, 1 Byte
    }

    /** 行情订阅响应 */
    interface QuoteRsp {
        exchangeCode: number;
        goodsCode: string;
        subState: number;
    }
}