Versions in this module Expand all Collapse all v0 v0.1.0 Jan 23, 2024 Changes in this version + var ErrRateBanned = errors.New("rate banned") + var ErrRateLimit = errors.New("rate limit") + type Asset struct + Coin string + Free float64 + Frozen float64 + Total float64 + type Assets struct + Assets map[string]Asset + TotalUsdEq float64 + type BookTicker struct + AskPrice float64 + AskQty float64 + BidPrice float64 + BidQty float64 + Exchange constant.ExchangeType + ExchangeTs int64 + Symbol string + TraceId string + Ts int64 + func (e *BookTicker) Hash() uint32 + type ExchangeParameters struct + AccessKey string + DebugMode bool + Passphrase string + ProxyURL string + SecretKey string + type FundingRate struct + FundingRate float64 + FundingTime int64 + Method string + NextFundingRate float64 + NextFundingTime int64 + Symbol string + type Kline struct + Close float64 + Confirm int64 + High float64 + Low float64 + Open float64 + Ts int64 + Vol float64 + type Order struct + Amount string + AvgPrice string + ClientID string + CreateAt int64 + ExchangeType constant.ExchangeType + ExecutedAmt string + ExecutedQty string + ExpectSpred float64 + Fee string + HedgeClientId string + HedgingPrice string + OrderID string + OrigQty string + Price string + Side constant.OrderSide + Status constant.OrderStatus + Symbol string + Type constant.OrderType + UpdateAt int64 + func (order *Order) IsOver() bool + func (order *Order) UpdateByTradeEvent(trade *Trade) (float64, float64) + type OrderBook struct + Asks []OrderBookItem + Bids []OrderBookItem + Exchange constant.ExchangeType + ExchangeTs int64 + Symbol string + TraceId string + Ts int64 + type OrderBookItem struct + Price float64 + Qty float64 + type Position struct + AvgPrice float64 + Exchange constant.ExchangeType + MarkPrice float64 + Size float64 + Symbol string + UnPnl float64 + UpdateAt int64 + type Trade struct + ClientID string + Exchange constant.ExchangeType + ExchangeTs int64 + Fee string + FilledAmount string + FilledSize string + Side constant.OrderSide + Size string + Status constant.OrderStatus + Symbol string + Ts int64 + Type constant.OrderType