Versions in this module Expand all Collapse all v1 v1.2.2 Nov 5, 2021 Changes in this version + const BaseWS + const Frequency1000ms + const Frequency100ms + var ErrIncorrectEventType = errors.New("cant unmarshal event type") + type AccountInfo struct + func (i *AccountInfo) Read() (UpdateType, interface{}, error) + func (w *AccountInfo) Close() error + type AccountInfoUpdate struct + Balances []... + BuyerCommission int + CanDeposit bool + CanTrade bool + CanWithdraw bool + EventType UpdateType + MakerCommission int + SellerCommission int + TakerCommission int + Time uint64 + type AccountUpdate struct + Balances []... + EventType UpdateType + LastUpdate uint64 + Time uint64 + type AggTradeUpdate struct + EventType UpdateType + FirstBreakDownTradeID uint64 + LastBreakDownTradeID uint64 + Maker bool + Price string + Quantity string + Symbol string + Time uint64 + TradeID uint64 + TradeTime uint64 + type AggTrades struct + func (t *AggTrades) Read() (*AggTradeUpdate, error) + func (t *AggTrades) Stream() <-chan AggTradeUpdate + func (w *AggTrades) Close() error + type AllBookTicker struct + func (t *AllBookTicker) Read() (*AllBookTickerUpdate, error) + func (t *AllBookTicker) Stream() <-chan AllBookTickerUpdate + func (w *AllBookTicker) Close() error + type AllBookTickerUpdate IndivBookTickerUpdate + type AllMarketMiniTicker struct + func (t *AllMarketMiniTicker) Read() (*AllMarketMiniTickerUpdate, error) + func (t *AllMarketMiniTicker) Stream() <-chan AllMarketMiniTickerUpdate + func (w *AllMarketMiniTicker) Close() error + type AllMarketMiniTickerUpdate []IndivMiniTickerUpdate + type AllMarketTicker struct + func (t *AllMarketTicker) Read() (*AllMarketTickerUpdate, error) + func (t *AllMarketTicker) Stream() <-chan AllMarketTickerUpdate + func (w *AllMarketTicker) Close() error + type AllMarketTickerUpdate []IndivTickerUpdate + type BalanceUpdate struct + Asset string + BalanceDelta string + ClearTime uint64 + EventType UpdateType + Time uint64 + type Client struct + func NewClient() *Client + func NewCustomClient(baseWS string) *Client + func (c *Client) AccountInfo(listenKey string) (*AccountInfo, error) + func (c *Client) AggTrades(symbol string) (*AggTrades, error) + func (c *Client) AllBookTickers() (*AllBookTicker, error) + func (c *Client) AllMarketMiniTickers() (*AllMarketMiniTicker, error) + func (c *Client) AllMarketTickers() (*AllMarketTicker, error) + func (c *Client) Depth(symbol string, frequency FrequencyType) (*Depth, error) + func (c *Client) DepthLevel(symbol, level string, frequency FrequencyType) (*DepthLevel, error) + func (c *Client) IndivBookTicker(symbol string) (*IndivBookTicker, error) + func (c *Client) IndivMiniTicker(symbol string) (*IndivMiniTicker, error) + func (c *Client) IndivTicker(symbol string) (*IndivTicker, error) + func (c *Client) Klines(symbol string, interval binance.KlineInterval) (*Klines, error) + func (c *Client) Trades(symbol string) (*Trades, error) + type Depth struct + func (d *Depth) Read() (*DepthUpdate, error) + func (d *Depth) Stream() <-chan DepthUpdate + func (w *Depth) Close() error + type DepthLevel struct + func (d *DepthLevel) Read() (*DepthLevelUpdate, error) + func (d *DepthLevel) Stream() <-chan DepthLevelUpdate + func (w *DepthLevel) Close() error + type DepthLevelUpdate struct + Asks []binance.DepthElem + Bids []binance.DepthElem + LastUpdateID uint64 + type DepthUpdate struct + Asks []binance.DepthElem + Bids []binance.DepthElem + EventType UpdateType + FinalUpdateID uint64 + FirstUpdateID uint64 + Symbol string + Time uint64 + type EventTypeUpdate struct + EventType UpdateType + func (e *EventTypeUpdate) UnmarshalJSON(buf []byte) error + type FrequencyType string + type IndivBookTicker struct + func (t *IndivBookTicker) Read() (*IndivBookTickerUpdate, error) + func (t *IndivBookTicker) Stream() <-chan IndivBookTickerUpdate + func (w *IndivBookTicker) Close() error + type IndivBookTickerUpdate struct + AskPrice string + AskQty string + BidPrice string + BidQty string + Symbol string + UpdateID int + type IndivMiniTicker struct + func (t *IndivMiniTicker) Read() (*IndivMiniTickerUpdate, error) + func (t *IndivMiniTicker) Stream() <-chan IndivMiniTickerUpdate + func (w *IndivMiniTicker) Close() error + type IndivMiniTickerUpdate struct + EventType UpdateType + HighPrice string + LastPrice string + LowPrice string + OpenPrice string + Symbol string + Time uint64 + VolumeBase string + VolumeQuote string + type IndivTicker struct + func (t *IndivTicker) Read() (*IndivTickerUpdate, error) + func (t *IndivTicker) Stream() <-chan IndivTickerUpdate + func (w *IndivTicker) Close() error + type IndivTickerUpdate struct + BestAskPrice string + BestAskQty string + BestBidPrice string + BestBidQty string + EventType UpdateType + FirstTrade string + FirstTradeID uint64 + HighPrice string + LastPrice string + LastQty string + LastTradeID uint64 + LowPrice string + OpenPrice string + Price string + PricePercent string + StatisticOT uint64 + StatisticsCT uint64 + Symbol string + Time uint64 + TotalTrades int + VolumeBase string + VolumeQuote string + WeightedPrice string + type Klines struct + func (k *Klines) Read() (*KlinesUpdate, error) + func (k *Klines) Stream() <-chan KlinesUpdate + func (w *Klines) Close() error + type KlinesUpdate struct + EventType UpdateType + Kline struct{ ... } + Symbol string + Time uint64 + type OrderUpdate struct + Commission string + CommissionAsset string + Error binance.OrderFailure + EventType UpdateType + ExecutionType binance.OrderStatus + FilledPrice string + FilledQty string + IcebergQty string + Maker bool + NewClientOrderID string + OrderCreatedTime uint64 + OrderID uint64 + OrderListId int64 + OrderType binance.OrderType + OrigClientOrderId string + OrigQty string + Price string + QuoteFilledQty string + QuoteQty string + QuoteTotalFilledQty string + Side binance.OrderSide + Status binance.OrderStatus + StopPrice string + Symbol string + Time uint64 + TimeInForce binance.TimeInForce + TotalFilledQty string + TradeID uint64 + TradeTime uint64 + type TradeUpdate struct + BuyerID int + EventType UpdateType + Maker bool + Price string + Quantity string + SellerID int + Symbol string + Time uint64 + TradeID uint64 + TradeTime uint64 + type Trades struct + func (t *Trades) Read() (*TradeUpdate, error) + func (t *Trades) Stream() <-chan TradeUpdate + func (w *Trades) Close() error + type UpdateType string + const UpdateTypeAggTrades + const UpdateTypeBalanceUpdate + const UpdateTypeDepth + const UpdateTypeIndivTicker + const UpdateTypeKline + const UpdateTypeOCOReport + const UpdateTypeOrderReport + const UpdateTypeOutboundAccountInfo + const UpdateTypeOutboundAccountPosition + const UpdateTypeTrades + const UpdateTypeUnknown