Versions in this module Expand all Collapse all v1 v1.1.0 Nov 17, 2026 Changes in this version + var OrderStatusTypeCanceled OrderStatusType = "CANCELED" + var OrderStatusTypeExpired OrderStatusType = "EXPIRED" + var OrderStatusTypeFilled OrderStatusType = "FILLED" + var OrderStatusTypeNew OrderStatusType = "NEW" + var OrderStatusTypePartiallyFilled OrderStatusType = "PARTIALLY_FILLED" + var OrderStatusTypePendingCancel OrderStatusType = "PENDING_CANCEL" + var OrderStatusTypeRejected OrderStatusType = "REJECTED" + var OrderTypeLimit OrderType = "LIMIT" + var OrderTypeLimitMaker OrderType = "LIMIT_MAKER" + var OrderTypeMarket OrderType = "MARKET" + var OrderTypeStopLoss OrderType = "STOP_LOSS" + var OrderTypeStopLossLimit OrderType = "STOP_LOSS_LIMIT" + var OrderTypeTakeProfit OrderType = "TAKE_PROFIT" + var OrderTypeTakeProfitLimit OrderType = "TAKE_PROFIT_LIMIT" + var SideTypeBuy SideType = "BUY" + var SideTypeSell SideType = "SELL" + func NumDecPlaces(v float64) int64 + type Account struct + Balances []Balance + func (a Account) Balance(assetTick, quoteTick string) (Balance, Balance) + func (a Account) Equity() float64 + type AssetInfo struct + BaseAsset string + BaseAssetPrecision int + MaxPrice float64 + MaxQuantity float64 + MinPrice float64 + MinQuantity float64 + QuoteAsset string + QuotePrecision int + StepSize float64 + TickSize float64 + type Balance struct + Asset string + Free float64 + Leverage float64 + Lock float64 + type Candle struct + Close float64 + Complete bool + High float64 + Low float64 + Metadata map[string]float64 + Open float64 + Pair string + Time time.Time + UpdatedAt time.Time + Volume float64 + func (c Candle) Empty() bool + func (c Candle) Less(j Item) bool + func (c Candle) ToHeikinAshi(ha *HeikinAshi) Candle + func (c Candle) ToSlice(precision int) []string + type Dataframe struct + Close Series[float64] + High Series[float64] + LastUpdate time.Time + Low Series[float64] + Metadata map[string]Series[float64] + Open Series[float64] + Pair string + Time []time.Time + Volume Series[float64] + func (df Dataframe) Sample(positions int) Dataframe + type Discard struct + AfterID int64 + At time.Time + Pair string + Quantity float64 + Side SideType + func (d Discard) Key() string + func (d Discard) Same(other Discard) bool + type HeikinAshi struct + PreviousHACandle Candle + func NewHeikinAshi() *HeikinAshi + func (ha *HeikinAshi) CalculateHeikinAshi(c Candle) Candle + type Item interface + Less func(Item) bool + type Order struct + Candle Candle + CreatedAt time.Time + ExchangeID int64 + Fee float64 + GroupID *int64 + ID int64 + Pair string + Price float64 + Profit float64 + ProfitValue float64 + Quantity float64 + RefPrice float64 + Side SideType + Status OrderStatusType + Stop *float64 + Type OrderType + UpdatedAt time.Time + func (o Order) Finite() (Order, []string) + func (o Order) String() string + func (o Order) Supersedes(prev Order) bool + type OrderStatusType string + func (s OrderStatusType) Final() bool + type OrderType string + type PriorityQueue struct + func NewPriorityQueue(data []Item) *PriorityQueue + func (q *PriorityQueue) Len() int + func (q *PriorityQueue) Peek() Item + func (q *PriorityQueue) Pop() Item + func (q *PriorityQueue) PopLock(ctx context.Context) <-chan Item + func (q *PriorityQueue) Push(item Item) + type Series []T + func (s Series[T]) Cross(ref Series[T]) bool + func (s Series[T]) Crossover(ref Series[T]) bool + func (s Series[T]) Crossunder(ref Series[T]) bool + func (s Series[T]) Last(position int) T + func (s Series[T]) LastValues(size int) []T + func (s Series[T]) Length() int + func (s Series[T]) Values() []T + type Settings struct + Pairs []string + type SideType string