Versions in this module Expand all Collapse all v1 v1.16.3 May 28, 2021 v1.16.2 May 28, 2021 v1.16.1 May 28, 2021 Changes in this version + const Black + const DateFormat + const DepositCancelled + const DepositCredited + const DepositPending + const DepositRejected + const DepositSuccess + const DirectionDown + const DirectionNone + const DirectionUp + const ExchangeBacktest + const ExchangeBinance + const ExchangeFTX + const ExchangeMax + const ExchangeOKEx + const GrayColor + const GreenColor + const Red + const RedColor + const RewardAirdrop + const RewardCommission + const RewardHolding + const RewardMining + const RewardTrading + const RewardVipRebate + const SideTypeBoth + const SideTypeBuy + const SideTypeSelf + const SideTypeSell + var BNB = accounting.Accounting + var BTC = accounting.Accounting + var BookChannel = Channel("book") + var ErrInvalidSideType = errors.New("invalid side type") + var Interval12h = Interval("12h") + var Interval15m = Interval("15m") + var Interval1d = Interval("1d") + var Interval1h = Interval("1h") + var Interval1m = Interval("1m") + var Interval2h = Interval("2h") + var Interval30m = Interval("30m") + var Interval3d = Interval("3d") + var Interval4h = Interval("4h") + var Interval5m = Interval("5m") + var Interval6h = Interval("6h") + var KLineChannel = Channel("kline") + var Neel = &RBNode + var SupportedExchanges = []ExchangeName + var SupportedIntervals = map[Interval]int + var USD = accounting.Accounting + func SideToColorName(side SideType) string + type Account struct + AccountType string + MakerCommission fixedpoint.Value + TakerCommission fixedpoint.Value + func NewAccount() *Account + func (a *Account) AddBalance(currency string, fund fixedpoint.Value) error + func (a *Account) Balance(currency string) (balance Balance, ok bool) + func (a *Account) Balances() BalanceMap + func (a *Account) BindStream(stream Stream) + func (a *Account) LockBalance(currency string, locked fixedpoint.Value) error + func (a *Account) Print() + func (a *Account) UnlockBalance(currency string, unlocked fixedpoint.Value) error + func (a *Account) UpdateBalances(balances BalanceMap) + func (a *Account) UseLockedBalance(currency string, fund fixedpoint.Value) error + type Asset struct + Currency string + InBTC fixedpoint.Value + InUSD fixedpoint.Value + Total fixedpoint.Value + type AssetMap map[string]Asset + type Balance struct + Available fixedpoint.Value + Currency string + Locked fixedpoint.Value + func (b Balance) String() string + func (b Balance) Total() fixedpoint.Value + type BalanceMap map[string]Balance + func (m BalanceMap) Assets(prices map[string]float64) AssetMap + func (m BalanceMap) Print() + func (m BalanceMap) String() string + type Channel string + type Color bool + type Deposit struct + Address string + AddressTag string + Amount float64 + Asset string + Exchange ExchangeName + GID int64 + Status DepositStatus + Time Time + TransactionID string + func (d Deposit) EffectiveTime() time.Time + type DepositStatus string + type Direction int + type Duration time.Duration + func (d *Duration) UnmarshalJSON(data []byte) error + func (d Duration) Duration() time.Duration + type Exchange interface + Name func() ExchangeName + PlatformFeeCurrency func() string + type ExchangeMarketDataService interface + NewStream func() Stream + QueryKLines func(ctx context.Context, symbol string, interval Interval, ...) ([]KLine, error) + QueryMarkets func(ctx context.Context) (MarketMap, error) + QueryTicker func(ctx context.Context, symbol string) (*Ticker, error) + QueryTickers func(ctx context.Context, symbol ...string) (map[string]Ticker, error) + type ExchangeName string + func ValidExchangeName(a string) (ExchangeName, error) + func (n *ExchangeName) UnmarshalJSON(data []byte) error + func (n *ExchangeName) Value() (driver.Value, error) + func (n ExchangeName) String() string + type ExchangeRewardService interface + QueryRewards func(ctx context.Context, startTime time.Time) ([]Reward, error) + type ExchangeTradeHistoryService interface + QueryClosedOrders func(ctx context.Context, symbol string, since, until time.Time, lastOrderID uint64) (orders []Order, err error) + QueryTrades func(ctx context.Context, symbol string, options *TradeQueryOptions) ([]Trade, error) + type ExchangeTradeService interface + CancelOrders func(ctx context.Context, orders ...Order) error + QueryAccount func(ctx context.Context) (*Account, error) + QueryAccountBalances func(ctx context.Context) (BalanceMap, error) + QueryOpenOrders func(ctx context.Context, symbol string) (orders []Order, err error) + SubmitOrders func(ctx context.Context, orders ...SubmitOrder) (createdOrders OrderSlice, err error) + type ExchangeTransferService interface + QueryDepositHistory func(ctx context.Context, asset string, since, until time.Time) (allDeposits []Deposit, err error) + QueryWithdrawHistory func(ctx context.Context, asset string, since, until time.Time) (allWithdraws []Withdraw, err error) + type ExchangeWithdrawalService interface + Withdrawal func(ctx context.Context, asset string, amount fixedpoint.Value, address string, ...) error + type Float64Slice []float64 + func (s *Float64Slice) Pop(i int64) (v float64) + func (s *Float64Slice) Push(v float64) + func (s Float64Slice) Max() float64 + func (s Float64Slice) Mean() (mean float64) + func (s Float64Slice) Min() float64 + func (s Float64Slice) Sum() (sum float64) + func (s Float64Slice) Tail(size int) Float64Slice + type Interval string + func (i *Interval) UnmarshalJSON(b []byte) (err error) + func (i Interval) Duration() time.Duration + func (i Interval) Minutes() int + func (i Interval) String() string + type IntervalSlice []Interval + func (s IntervalSlice) StringSlice() (slice []string) + type IntervalWindow struct + Interval Interval + Window int + func (iw IntervalWindow) String() string + type IsolatedMarginAccount struct + Assets []IsolatedMarginAsset + TotalAssetOfBTC fixedpoint.Value + TotalLiabilityOfBTC fixedpoint.Value + TotalNetAssetOfBTC fixedpoint.Value + type IsolatedMarginAsset struct + BaseAsset IsolatedUserAsset + IndexPrice fixedpoint.Value + IsolatedCreated bool + LiquidatePrice fixedpoint.Value + LiquidateRate fixedpoint.Value + MarginLevel fixedpoint.Value + MarginLevelStatus string + MarginRatio fixedpoint.Value + QuoteAsset IsolatedUserAsset + Symbol string + TradeEnabled bool + type IsolatedUserAsset struct + Asset string + BorrowEnabled bool + Borrowed fixedpoint.Value + Free fixedpoint.Value + Interest fixedpoint.Value + Locked fixedpoint.Value + NetAsset fixedpoint.Value + NetAssetOfBtc fixedpoint.Value + RepayEnabled bool + TotalAsset fixedpoint.Value + type KLine struct + Close float64 + Closed bool + EndTime time.Time + Exchange string + GID uint64 + High float64 + Interval Interval + LastTradeID uint64 + Low float64 + NumberOfTrades uint64 + Open float64 + QuoteVolume float64 + StartTime time.Time + Symbol string + Volume float64 + func (k KLine) BounceDown() bool + func (k KLine) BounceUp() bool + func (k KLine) Color() string + func (k KLine) Direction() Direction + func (k KLine) GetBody() float64 + func (k KLine) GetChange() float64 + func (k KLine) GetClose() float64 + func (k KLine) GetEndTime() time.Time + func (k KLine) GetHigh() float64 + func (k KLine) GetInterval() Interval + func (k KLine) GetLow() float64 + func (k KLine) GetLowerShadowHeight() float64 + func (k KLine) GetLowerShadowRatio() float64 + func (k KLine) GetMaxChange() float64 + func (k KLine) GetOpen() float64 + func (k KLine) GetStartTime() time.Time + func (k KLine) GetThickness() float64 + func (k KLine) GetUpperShadowHeight() float64 + func (k KLine) GetUpperShadowRatio() float64 + func (k KLine) Mid() float64 + func (k KLine) SlackAttachment() slack.Attachment + func (k KLine) String() string + type KLineCallback func(kline KLine) + type KLineOrWindow interface + BounceDown func() bool + BounceUp func() bool + Direction func() Direction + GetChange func() float64 + GetClose func() float64 + GetHigh func() float64 + GetInterval func() string + GetLow func() float64 + GetLowerShadowRatio func() float64 + GetMaxChange func() float64 + GetOpen func() float64 + GetThickness func() float64 + GetUpperShadowRatio func() float64 + Mid func() float64 + SlackAttachment func() slack.Attachment + type KLineQueryOptions struct + EndTime *time.Time + Limit int + StartTime *time.Time + type KLineWindow []KLine + func (k *KLineWindow) Add(line KLine) + func (k *KLineWindow) Truncate(size int) + func (k KLineWindow) AllDrop() bool + func (k KLineWindow) AllRise() bool + func (k KLineWindow) BounceDown() bool + func (k KLineWindow) BounceUp() bool + func (k KLineWindow) Color() string + func (k KLineWindow) First() KLine + func (k KLineWindow) GetBody() float64 + func (k KLineWindow) GetChange() float64 + func (k KLineWindow) GetClose() float64 + func (k KLineWindow) GetHigh() float64 + func (k KLineWindow) GetInterval() Interval + func (k KLineWindow) GetLow() float64 + func (k KLineWindow) GetLowerShadowHeight() float64 + func (k KLineWindow) GetLowerShadowRatio() float64 + func (k KLineWindow) GetMaxChange() float64 + func (k KLineWindow) GetOpen() float64 + func (k KLineWindow) GetThickness() float64 + func (k KLineWindow) GetTrend() int + func (k KLineWindow) GetUpperShadowHeight() float64 + func (k KLineWindow) GetUpperShadowRatio() float64 + func (k KLineWindow) Last() KLine + func (k KLineWindow) Len() int + func (k KLineWindow) Mid() float64 + func (k KLineWindow) ReduceClose() float64 + func (k KLineWindow) SlackAttachment() slack.Attachment + func (k KLineWindow) Tail(size int) KLineWindow + func (k KLineWindow) Take(size int) KLineWindow + type MarginAccount struct + BorrowEnabled bool + MarginLevel fixedpoint.Value + TotalAssetOfBTC fixedpoint.Value + TotalLiabilityOfBTC fixedpoint.Value + TotalNetAssetOfBTC fixedpoint.Value + TradeEnabled bool + TransferEnabled bool + UserAssets []MarginUserAsset + type MarginExchange interface + GetMarginSettings func() MarginSettings + UseIsolatedMargin func(symbol string) + UseMargin func() + type MarginOrderSideEffectType string + var SideEffectTypeAutoRepay MarginOrderSideEffectType = "AUTO_REPAY" + var SideEffectTypeMarginBuy MarginOrderSideEffectType = "MARGIN_BUY" + var SideEffectTypeNoSideEffect MarginOrderSideEffectType = "NO_SIDE_EFFECT" + func (t *MarginOrderSideEffectType) UnmarshalJSON(data []byte) error + type MarginSettings struct + IsIsolatedMargin bool + IsMargin bool + IsolatedMarginSymbol string + func (e *MarginSettings) UseIsolatedMargin(symbol string) + func (e *MarginSettings) UseMargin() + func (e MarginSettings) GetMarginSettings() MarginSettings + type MarginUserAsset struct + Asset string + Borrowed fixedpoint.Value + Free fixedpoint.Value + Interest fixedpoint.Value + Locked fixedpoint.Value + NetAsset fixedpoint.Value + type Market struct + BaseCurrency string + LocalSymbol string + MaxPrice float64 + MaxQuantity float64 + MinAmount float64 + MinNotional float64 + MinPrice float64 + MinQuantity float64 + PricePrecision int + QuoteCurrency string + StepSize float64 + Symbol string + TickSize float64 + VolumePrecision int + func (m Market) CanonicalizeVolume(val float64) float64 + func (m Market) FormatPrice(val float64) string + func (m Market) FormatPriceCurrency(val float64) string + func (m Market) FormatQuantity(val float64) string + func (m Market) FormatVolume(val float64) string + type MarketMap map[string]Market + type MillisecondTimestamp time.Time + func (t *MillisecondTimestamp) UnmarshalJSON(data []byte) error + func (t MillisecondTimestamp) String() string + func (t MillisecondTimestamp) Time() time.Time + type MutexOrderBook struct + OrderBook OrderBook + Symbol string + func NewMutexOrderBook(symbol string) *MutexOrderBook + func (b *MutexOrderBook) BestAsk() (pv PriceVolume, ok bool) + func (b *MutexOrderBook) BestBid() (pv PriceVolume, ok bool) + func (b *MutexOrderBook) Copy() OrderBook + func (b *MutexOrderBook) CopyDepth(depth int) OrderBook + func (b *MutexOrderBook) IsValid() (ok bool, err error) + func (b *MutexOrderBook) Load(book SliceOrderBook) + func (b *MutexOrderBook) Reset() + func (b *MutexOrderBook) Update(update SliceOrderBook) + type Order struct + CreationTime Time + Exchange ExchangeName + ExecutedQuantity float64 + GID uint64 + IsIsolated bool + IsMargin bool + IsWorking bool + OrderID uint64 + Status OrderStatus + UpdateTime Time + func (o Order) Backup() SubmitOrder + func (o Order) PlainText() string + func (o Order) SlackAttachment() slack.Attachment + func (o Order) String() string + type OrderBook interface + BestAsk func() (PriceVolume, bool) + BestBid func() (PriceVolume, bool) + Copy func() OrderBook + CopyDepth func(depth int) OrderBook + IsValid func() (bool, error) + Load func(book SliceOrderBook) + Reset func() + SideBook func(sideType SideType) PriceVolumeSlice + Spread func() (fixedpoint.Value, bool) + Update func(book SliceOrderBook) + type OrderMap map[uint64]Order + func (m OrderMap) Add(o Order) + func (m OrderMap) Backup() (orderForms []SubmitOrder) + func (m OrderMap) Canceled() OrderSlice + func (m OrderMap) Exists(orderID uint64) bool + func (m OrderMap) Filled() OrderSlice + func (m OrderMap) FindByStatus(status OrderStatus) (orders OrderSlice) + func (m OrderMap) IDs() (ids []uint64) + func (m OrderMap) Orders() (orders OrderSlice) + func (m OrderMap) Remove(orderID uint64) + func (m OrderMap) Update(o Order) + type OrderSlice []Order + func (s OrderSlice) IDs() (ids []uint64) + type OrderStatus string + const OrderStatusCanceled + const OrderStatusFilled + const OrderStatusNew + const OrderStatusPartiallyFilled + const OrderStatusRejected + type OrderType string + const OrderTypeIOCLimit + const OrderTypeLimit + const OrderTypeLimitMaker + const OrderTypeMarket + const OrderTypeStopLimit + const OrderTypeStopMarket + type PlainText interface + PlainText func() string + type PriceVolume struct + Price fixedpoint.Value + Volume fixedpoint.Value + func (p PriceVolume) String() string + type PriceVolumeSlice []PriceVolume + func (slice PriceVolumeSlice) Copy() PriceVolumeSlice + func (slice PriceVolumeSlice) CopyDepth(depth int) PriceVolumeSlice + func (slice PriceVolumeSlice) Find(price fixedpoint.Value, descending bool) (pv PriceVolume, idx int) + func (slice PriceVolumeSlice) First() (PriceVolume, bool) + func (slice PriceVolumeSlice) IndexByVolumeDepth(requiredVolume fixedpoint.Value) int + func (slice PriceVolumeSlice) InsertAt(idx int, pv PriceVolume) PriceVolumeSlice + func (slice PriceVolumeSlice) Len() int + func (slice PriceVolumeSlice) Less(i, j int) bool + func (slice PriceVolumeSlice) Remove(price fixedpoint.Value, descending bool) PriceVolumeSlice + func (slice PriceVolumeSlice) Second() (PriceVolume, bool) + func (slice PriceVolumeSlice) Swap(i, j int) + func (slice PriceVolumeSlice) Trim() (pvs PriceVolumeSlice) + func (slice PriceVolumeSlice) Upsert(pv PriceVolume, descending bool) PriceVolumeSlice + type RBNode struct + Color Color + Key fixedpoint.Value + Left *RBNode + Parent *RBNode + Right *RBNode + Value fixedpoint.Value + type RBTOrderBook struct + Asks *RBTree + Bids *RBTree + Symbol string + func NewRBOrderBook(symbol string) *RBTOrderBook + func (b *RBTOrderBook) BestAsk() (PriceVolume, bool) + func (b *RBTOrderBook) BestBid() (PriceVolume, bool) + func (b *RBTOrderBook) Copy() OrderBook + func (b *RBTOrderBook) CopyDepth(limit int) OrderBook + func (b *RBTOrderBook) EmitLoad(book *RBTOrderBook) + func (b *RBTOrderBook) EmitUpdate(book *RBTOrderBook) + func (b *RBTOrderBook) IsValid() (bool, error) + func (b *RBTOrderBook) Load(book SliceOrderBook) + func (b *RBTOrderBook) OnLoad(cb func(book *RBTOrderBook)) + func (b *RBTOrderBook) OnUpdate(cb func(book *RBTOrderBook)) + func (b *RBTOrderBook) Print() + func (b *RBTOrderBook) Reset() + func (b *RBTOrderBook) SideBook(sideType SideType) PriceVolumeSlice + func (b *RBTOrderBook) Spread() (fixedpoint.Value, bool) + func (b *RBTOrderBook) Update(book SliceOrderBook) + type RBTree struct + Root *RBNode + func NewRBTree() *RBTree + func (tree *RBTree) Copy() *RBTree + func (tree *RBTree) CopyInorder(limit int) *RBTree + func (tree *RBTree) CopyInorderReverse(limit int) *RBTree + func (tree *RBTree) Delete(key fixedpoint.Value) bool + func (tree *RBTree) DeleteFixup(current *RBNode) + func (tree *RBTree) Inorder(cb func(n *RBNode) bool) + func (tree *RBTree) InorderOf(current *RBNode, cb func(n *RBNode) bool) + func (tree *RBTree) InorderReverse(cb func(n *RBNode) bool) + func (tree *RBTree) InorderReverseOf(current *RBNode, cb func(n *RBNode) bool) + func (tree *RBTree) Insert(key, val fixedpoint.Value) + func (tree *RBTree) InsertFixup(current *RBNode) + func (tree *RBTree) Leftmost() *RBNode + func (tree *RBTree) LeftmostOf(current *RBNode) *RBNode + func (tree *RBTree) Postorder(cb func(n *RBNode) bool) + func (tree *RBTree) PostorderOf(current *RBNode, cb func(n *RBNode) bool) + func (tree *RBTree) Preorder(cb func(n *RBNode)) + func (tree *RBTree) PreorderOf(current *RBNode, cb func(n *RBNode)) + func (tree *RBTree) Print() + func (tree *RBTree) Rightmost() *RBNode + func (tree *RBTree) RightmostOf(current *RBNode) *RBNode + func (tree *RBTree) RotateLeft(x *RBNode) + func (tree *RBTree) RotateRight(y *RBNode) + func (tree *RBTree) Search(key fixedpoint.Value) *RBNode + func (tree *RBTree) Size() int + func (tree *RBTree) Successor(current *RBNode) *RBNode + func (tree *RBTree) Upsert(key, val fixedpoint.Value) + type Reward struct + CreatedAt Time + Currency string + Exchange ExchangeName + GID int64 + Note string + Quantity fixedpoint.Value + Spent bool + State string + Type RewardType + UUID string + type RewardSlice []Reward + func (s RewardSlice) Len() int + func (s RewardSlice) Swap(i, j int) + type RewardSliceByCreationTime RewardSlice + func (s RewardSliceByCreationTime) Len() int + func (s RewardSliceByCreationTime) Less(i, j int) bool + func (s RewardSliceByCreationTime) Swap(i, j int) + type RewardType string + type SideType string + func StrToSideType(s string) (side SideType, err error) + func (side *SideType) UnmarshalJSON(data []byte) error + func (side SideType) Color() string + func (side SideType) Reverse() SideType + func (side SideType) String() string + type SliceOrderBook struct + Asks PriceVolumeSlice + Bids PriceVolumeSlice + Symbol string + func NewSliceOrderBook(symbol string) *SliceOrderBook + func (b *SliceOrderBook) BestAsk() (PriceVolume, bool) + func (b *SliceOrderBook) BestBid() (PriceVolume, bool) + func (b *SliceOrderBook) Copy() OrderBook + func (b *SliceOrderBook) CopyDepth(limit int) OrderBook + func (b *SliceOrderBook) EmitLoad(book *SliceOrderBook) + func (b *SliceOrderBook) EmitUpdate(book *SliceOrderBook) + func (b *SliceOrderBook) IsValid() (bool, error) + func (b *SliceOrderBook) Load(book SliceOrderBook) + func (b *SliceOrderBook) OnLoad(cb func(book *SliceOrderBook)) + func (b *SliceOrderBook) OnUpdate(cb func(book *SliceOrderBook)) + func (b *SliceOrderBook) PriceVolumesBySide(side SideType) PriceVolumeSlice + func (b *SliceOrderBook) Print() + func (b *SliceOrderBook) Reset() + func (b *SliceOrderBook) SideBook(sideType SideType) PriceVolumeSlice + func (b *SliceOrderBook) Spread() (fixedpoint.Value, bool) + func (b *SliceOrderBook) String() string + func (b *SliceOrderBook) Update(book SliceOrderBook) + type StandardStream struct + Subscriptions []Subscription + func (stream *StandardStream) EmitBalanceSnapshot(balances BalanceMap) + func (stream *StandardStream) EmitBalanceUpdate(balances BalanceMap) + func (stream *StandardStream) EmitBookSnapshot(book SliceOrderBook) + func (stream *StandardStream) EmitBookUpdate(book SliceOrderBook) + func (stream *StandardStream) EmitConnect() + func (stream *StandardStream) EmitDisconnect() + func (stream *StandardStream) EmitKLine(kline KLine) + func (stream *StandardStream) EmitKLineClosed(kline KLine) + func (stream *StandardStream) EmitOrderUpdate(order Order) + func (stream *StandardStream) EmitStart() + func (stream *StandardStream) EmitTradeUpdate(trade Trade) + func (stream *StandardStream) OnBalanceSnapshot(cb func(balances BalanceMap)) + func (stream *StandardStream) OnBalanceUpdate(cb func(balances BalanceMap)) + func (stream *StandardStream) OnBookSnapshot(cb func(book SliceOrderBook)) + func (stream *StandardStream) OnBookUpdate(cb func(book SliceOrderBook)) + func (stream *StandardStream) OnConnect(cb func()) + func (stream *StandardStream) OnDisconnect(cb func()) + func (stream *StandardStream) OnKLine(cb func(kline KLine)) + func (stream *StandardStream) OnKLineClosed(cb func(kline KLine)) + func (stream *StandardStream) OnOrderUpdate(cb func(order Order)) + func (stream *StandardStream) OnStart(cb func()) + func (stream *StandardStream) OnTradeUpdate(cb func(trade Trade)) + func (stream *StandardStream) Subscribe(channel Channel, symbol string, options SubscribeOptions) + type StandardStreamEventHub interface + OnBalanceSnapshot func(cb func(balances BalanceMap)) + OnBalanceUpdate func(cb func(balances BalanceMap)) + OnBookSnapshot func(cb func(book SliceOrderBook)) + OnBookUpdate func(cb func(book SliceOrderBook)) + OnConnect func(cb func()) + OnDisconnect func(cb func()) + OnKLine func(cb func(kline KLine)) + OnKLineClosed func(cb func(kline KLine)) + OnOrderUpdate func(cb func(order Order)) + OnStart func(cb func()) + OnTradeUpdate func(cb func(trade Trade)) + type Stream interface + Close func() error + Connect func(ctx context.Context) error + SetPublicOnly func() + Subscribe func(channel Channel, symbol string, options SubscribeOptions) + type StreamOrderBook struct + C sigchan.Chan + func NewStreamBook(symbol string) *StreamOrderBook + func (sb *StreamOrderBook) BindStream(stream Stream) + type Stringer interface + String func() string + type SubmitOrder struct + ClientOrderID string + GroupID uint32 + MarginSideEffect MarginOrderSideEffectType + Market Market + Price float64 + PriceString string + Quantity float64 + QuantityString string + Side SideType + StopPrice float64 + StopPriceString string + Symbol string + TimeInForce string + Type OrderType + func (o *SubmitOrder) PlainText() string + func (o *SubmitOrder) SlackAttachment() slack.Attachment + func (o *SubmitOrder) String() string + type SubscribeOptions struct + Depth string + Interval string + func (o SubscribeOptions) String() string + type Subscription struct + Channel Channel + Options SubscribeOptions + Symbol string + type SyncOrderMap struct + func NewSyncOrderMap() *SyncOrderMap + func (m *SyncOrderMap) Add(o Order) + func (m *SyncOrderMap) AnyFilled() (order Order, ok bool) + func (m *SyncOrderMap) Backup() []SubmitOrder + func (m *SyncOrderMap) Canceled() OrderSlice + func (m *SyncOrderMap) Exists(orderID uint64) (exists bool) + func (m *SyncOrderMap) Filled() OrderSlice + func (m *SyncOrderMap) FindByStatus(status OrderStatus) OrderSlice + func (m *SyncOrderMap) IDs() (ids []uint64) + func (m *SyncOrderMap) Iterate(it func(id uint64, order Order) bool) + func (m *SyncOrderMap) Len() int + func (m *SyncOrderMap) Orders() (slice OrderSlice) + func (m *SyncOrderMap) Remove(orderID uint64) (exists bool) + func (m *SyncOrderMap) Update(o Order) + type Ticker struct + Buy float64 + High float64 + Last float64 + Low float64 + Open float64 + Sell float64 + Time time.Time + Volume float64 + type Time time.Time + func (t *Time) Scan(src interface{}) error + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) String() string + func (t Time) Time() time.Time + func (t Time) Value() (driver.Value, error) + type Trade struct + Exchange ExchangeName + Fee float64 + FeeCurrency string + GID int64 + ID int64 + IsBuyer bool + IsIsolated bool + IsMaker bool + IsMargin bool + OrderID uint64 + PnL sql.NullFloat64 + Price float64 + Quantity float64 + QuoteQuantity float64 + Side SideType + StrategyID sql.NullString + Symbol string + Time Time + func (trade Trade) Key() TradeKey + func (trade Trade) Liquidity() (o string) + func (trade Trade) PlainText() string + func (trade Trade) SlackAttachment() slack.Attachment + func (trade Trade) String() string + type TradeKey struct + ID int64 + Side SideType + type TradeQueryOptions struct + EndTime *time.Time + LastTradeID int64 + Limit int64 + StartTime *time.Time + type TradeSlice struct + Trades []Trade + func (s *TradeSlice) Append(t Trade) + func (s *TradeSlice) Copy() []Trade + func (s *TradeSlice) Reverse() + type Withdraw struct + Address string + AddressTag string + Amount float64 + ApplyTime Time + Asset string + Exchange ExchangeName + GID int64 + Network string + Status string + TransactionFee float64 + TransactionFeeCurrency string + TransactionID string + WithdrawOrderID string + func (w Withdraw) EffectiveTime() time.Time + func (w Withdraw) String() string + type WithdrawalOptions struct + AddressTag string + Network string