Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRateLimit = errors.New("rate limit") ErrRateBanned = errors.New("rate banned") )
Functions ¶
This section is empty.
Types ¶
type BookTicker ¶
type BookTicker struct { Symbol string Exchange constant.ExchangeType AskPrice float64 AskQty float64 BidPrice float64 BidQty float64 ExchangeTs int64 Ts int64 TraceId string }
func (*BookTicker) Hash ¶
func (e *BookTicker) Hash() uint32
type ExchangeParameters ¶
type FundingRate ¶
type Order ¶
type Order struct { Symbol string `json:"symbol"` Type constant.OrderType `json:"type"` OrderID string `json:"orderId"` ClientID string `json:"clientID"` Side constant.OrderSide `json:"side"` Price string `json:"price"` OrigQty string `json:"origQty"` Amount string `json:"amount"` // 订单quote额度 ExecutedQty string `json:"executedQty"` ExecutedAmt string AvgPrice string `json:"avgPrice"` Fee string `json:"fee"` Status constant.OrderStatus `json:"status"` // 自定义的订单状态,统一各交易所订单状态 ExchangeType constant.ExchangeType `json:"exchangeType"` HedgeClientId string HedgingPrice string ExpectSpred float64 CreateAt int64 `gorm:"column:createAt;" json:"createAt"` UpdateAt int64 `gorm:"column:updateAt;" json:"updateAt"` }
type OrderBook ¶
type OrderBook struct { Symbol string Exchange constant.ExchangeType Asks []OrderBookItem Bids []OrderBookItem ExchangeTs int64 Ts int64 TraceId string }
type OrderBookItem ¶
Click to show internal directories.
Click to hide internal directories.