Versions in this module Expand all Collapse all v1 v1.2.3 Jan 17, 2024 v1.2.2 Apr 22, 2020 Changes in this version + type AccountEvent struct + Balances []EventAssetBalance + EventTime int64 + EventType string + type BlockHeightEvent struct + BlockHeight int64 + type EventAssetBalance struct + Asset string + Free types.Fixed8 + Frozen types.Fixed8 + Locked types.Fixed8 + type KlineEvent struct + EventTime int64 + EventType string + Kline KlineRecordEvent + Symbol string + type KlineInterval string + const EightHoursInterval + const FifteenMinuteInterval + const FiveMinutesInterval + const FourHoursInterval + const OneDayInterval + const OneHourInterval + const OneMinuteInterval + const OneMonthInterval + const OneWeekInterval + const SixHoursInterval + const ThirtMinutesInterval + const ThreeDaysInterval + const TwelveHoursInterval + const TwoHoursInterval + type KlineRecordEvent struct + ClosePrice types.Fixed8 + CloseTime int64 + Closed bool + FirstTradeID string + HighPrice types.Fixed8 + Interval string + LastTradeID string + LowPrice types.Fixed8 + NumberOfTrades int64 + OpenPrice types.Fixed8 + OpenTime int64 + QuoteAssetVolume types.Double + Symbol string + Timestamp int64 + Volume types.Double + type MarketDeltaEvent struct + Asks [][]types.Fixed8 + Bids [][]types.Fixed8 + EventTime int64 + EventType string + Symbol string + type MarketDepthEvent struct + Asks [][]types.Fixed8 + Bids [][]types.Fixed8 + LastUpdateID int64 + Symbol string + type MiniTickerEvent struct + EventTime int64 + EventType string + HighPrice types.Fixed8 + LastPrice types.Fixed8 + LowPrice types.Fixed8 + OpenPrice types.Fixed8 + QuoteVolume types.Double + Symbol string + Volume types.Double + type OrderEvent struct + CommissionAmount string + CommulativeFilledQty types.Fixed8 + CurrentExecutionType string + CurrentOrderStatus string + EventTime int64 + EventType string + LastExecutedPrice types.Fixed8 + LastExecutedQty types.Fixed8 + OrderCreationTime int64 + OrderID string + OrderPrice types.Fixed8 + OrderQty types.Fixed8 + OrderType int8 + Side int8 + Symbol string + TimeInForce int8 + TradeID string + TransactionTime int64 + type TickerEvent struct + AskPrice types.Fixed8 + AskQuantity types.Fixed8 + BidPrice types.Fixed8 + BidQuantity types.Fixed8 + CloseTime int64 + Count int64 + EventTime int64 + EventType string + FirstID string + HighPrice types.Fixed8 + LastID string + LastPrice types.Fixed8 + LastQuantity types.Fixed8 + LowPrice types.Fixed8 + OpenPrice types.Fixed8 + OpenTime int64 + PrevClosePrice types.Fixed8 + PriceChange types.Fixed8 + PriceChangePercent types.Fixed8 + QuoteVolume types.Double + Symbol string + Volume types.Double + WeightedAvgPrice types.Fixed8 + type TradeEvent struct + BuyerAddress string + BuyerOrderID string + EventTime int64 + EventType string + Price types.Fixed8 + Qty types.Fixed8 + SellerAddress string + SellerOrderID string + Symbol string + TradeID string + TradeTime int64 + type WSClient interface + SubscribeAccountEvent func(userAddr string, quit chan struct{}, onReceive func(event *AccountEvent), ...) error + SubscribeAllMiniTickersEvent func(quit chan struct{}, onReceive func(events []*MiniTickerEvent), ...) error + SubscribeAllTickerEvent func(quit chan struct{}, onReceive func(event []*TickerEvent), ...) error + SubscribeBlockHeightEvent func(quit chan struct{}, onReceive func(event *BlockHeightEvent), ...) error + SubscribeKlineEvent func(baseAssetSymbol, quoteAssetSymbol string, interval KlineInterval, ...) error + SubscribeMarketDepthEvent func(baseAssetSymbol, quoteAssetSymbol string, quit chan struct{}, ...) error + SubscribeMarketDiffEvent func(baseAssetSymbol, quoteAssetSymbol string, quit chan struct{}, ...) error + SubscribeMiniTickerEvent func(baseAssetSymbol, quoteAssetSymbol string, quit chan struct{}, ...) error + SubscribeOrderEvent func(userAddr string, quit chan struct{}, onReceive func(event []*OrderEvent), ...) error + SubscribeTickerEvent func(baseAssetSymbol, quoteAssetSymbol string, quit chan struct{}, ...) error + SubscribeTradeEvent func(baseAssetSymbol, quoteAssetSymbol string, quit chan struct{}, ...) error + func NewClient(c basic.BasicClient) WSClient