Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2023 Changes in this version + const DEPTH_SNAPSHOT + const DEPTH_UPDATE + const MSG_JRPC + const MSG_NORMAL + var EVENT_TABLE = [][]interface + func CalCrc32(askDepths [][]string, bidDepths [][]string) (bytes.Buffer, int32) + type DepthData struct + Action string + Arg map[string]string + Data []DepthDetail + func (this *DepthData) CheckSum(snap *DepthDetail) (pDepData *DepthDetail, err error) + type DepthDetail struct + Asks [][]string + Bids [][]string + Checksum int32 + Ts string + func MergDepthData(snap DepthDetail, update DepthDetail, expChecksum int32) (res *DepthDetail, err error) + type ErrData struct + Code string + Event string + Msg string + type Event int + const EVENT_AMEND_BATCH_ORDERS + const EVENT_AMEND_ORDER + const EVENT_BOOKED_DATA + const EVENT_BOOK_ACCOUNT + const EVENT_BOOK_ALG_ORDER + const EVENT_BOOK_B_AND_P + const EVENT_BOOK_ESTIMATE_PRICE + const EVENT_BOOK_FUND_RATE + const EVENT_BOOK_INDEX_TICKERS + const EVENT_BOOK_INSTRUMENTS + const EVENT_BOOK_KLINE + const EVENT_BOOK_KLINE_INDEX + const EVENT_BOOK_LIMIT_PRICE + const EVENT_BOOK_MARK_PRICE + const EVENT_BOOK_MARK_PRICE_CANDLE_CHART + const EVENT_BOOK_OPEN_INTEREST + const EVENT_BOOK_OPTION_SUMMARY + const EVENT_BOOK_ORDER + const EVENT_BOOK_ORDER_BOOK + const EVENT_BOOK_ORDER_BOOK5 + const EVENT_BOOK_ORDER_BOOK50_TBT + const EVENT_BOOK_ORDER_BOOK_TBT + const EVENT_BOOK_POSTION + const EVENT_BOOK_TICKERS + const EVENT_BOOK_TRADE + const EVENT_CANCEL_BATCH_ORDERS + const EVENT_CANCEL_ORDER + const EVENT_DEPTH_DATA + const EVENT_ERROR + const EVENT_LOGIN + const EVENT_PING + const EVENT_PLACE_BATCH_ORDERS + const EVENT_PLACE_ORDER + const EVENT_STATUS + const EVENT_UNKNOWN + func GetEventId(raw string) Event + func (e Event) GetChannel(pd Period) string + func (e Event) String() string + type JRPCReq struct + Args []map[string]interface{} + Id string + Op string + func (r JRPCReq) GetType() int + func (r JRPCReq) Len() int + func (r JRPCReq) ToString() string + type JRPCRsp struct + Code string + Data []map[string]interface{} + Id string + Msg string + Op string + func (r JRPCRsp) MsgType() int + func (r JRPCRsp) String() string + type MsgData struct + Arg map[string]string + Data []interface{} + type Period string + const PERIOD_12HOUR + const PERIOD_15MIN + const PERIOD_1DAY + const PERIOD_1HOUR + const PERIOD_1MIN + const PERIOD_1Mon + const PERIOD_1WEEK + const PERIOD_1YEAR + const PERIOD_2DAY + const PERIOD_2HOUR + const PERIOD_30MIN + const PERIOD_3DAY + const PERIOD_3MIN + const PERIOD_3Mon + const PERIOD_4HOUR + const PERIOD_5DAY + const PERIOD_5MIN + const PERIOD_6HOUR + const PERIOD_6Mon + const PERIOD_NONE + type ReqData struct + Args []map[string]string + Op string + func (r ReqData) GetType() int + func (r ReqData) Len() int + func (r ReqData) ToString() string + type RspData struct + Arg map[string]string + Event string + func (r RspData) MsgType() int + func (r RspData) String() string