Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) CancelAllOrders(ctx context.Context, symbol string) error
- func (a *Adapter) CancelOrder(ctx context.Context, orderID, symbol string) error
- func (a *Adapter) CancelOrderWS(ctx context.Context, orderID, symbol string) error
- func (a *Adapter) Close() error
- func (a *Adapter) ExtractSymbol(symbol string) string
- func (a *Adapter) FetchAccount(ctx context.Context) (*exchanges.Account, error)
- func (a *Adapter) FetchAllFundingRates(ctx context.Context) ([]exchanges.FundingRate, error)
- func (a *Adapter) FetchBalance(ctx context.Context) (decimal.Decimal, error)
- func (a *Adapter) FetchFeeRate(ctx context.Context, symbol string) (*exchanges.FeeRate, error)
- func (a *Adapter) FetchFundingRate(ctx context.Context, symbol string) (*exchanges.FundingRate, error)
- func (a *Adapter) FetchFundingRateHistory(ctx context.Context, symbol string, opts *exchanges.FundingRateHistoryOpts) ([]exchanges.FundingRate, error)
- func (a *Adapter) FetchKlines(ctx context.Context, symbol string, interval exchanges.Interval, ...) ([]exchanges.Kline, error)
- func (a *Adapter) FetchOpenInterest(ctx context.Context, symbol string) (*exchanges.OpenInterest, error)
- func (a *Adapter) FetchOpenOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)
- func (a *Adapter) FetchOrderBook(ctx context.Context, symbol string, limit int) (*exchanges.OrderBook, error)
- func (a *Adapter) FetchOrderByID(ctx context.Context, orderID, symbol string) (*exchanges.Order, error)
- func (a *Adapter) FetchOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)
- func (a *Adapter) FetchPositions(ctx context.Context) ([]exchanges.Position, error)
- func (a *Adapter) FetchSymbolDetails(ctx context.Context, symbol string) (*exchanges.SymbolDetails, error)
- func (a *Adapter) FetchTicker(ctx context.Context, symbol string) (*exchanges.Ticker, error)
- func (a *Adapter) FetchTrades(ctx context.Context, symbol string, limit int) ([]exchanges.Trade, error)
- func (a *Adapter) FormatSymbol(symbol string) string
- func (a *Adapter) GetLocalOrderBook(symbol string, depth int) *exchanges.OrderBook
- func (a *Adapter) ModifyOrder(ctx context.Context, orderID, symbol string, ...) (*exchanges.Order, error)
- func (a *Adapter) ModifyOrderWS(ctx context.Context, orderID, symbol string, ...) error
- func (a *Adapter) PlaceOrder(ctx context.Context, params *exchanges.OrderParams) (*exchanges.Order, error)
- func (a *Adapter) PlaceOrderWS(ctx context.Context, params *exchanges.OrderParams) error
- func (a *Adapter) SetLeverage(ctx context.Context, symbol string, leverage int) error
- func (a *Adapter) StopWatchFills(ctx context.Context) error
- func (a *Adapter) StopWatchKlines(ctx context.Context, symbol string, interval exchanges.Interval) error
- func (a *Adapter) StopWatchOrderBook(ctx context.Context, symbol string) error
- func (a *Adapter) StopWatchOrders(ctx context.Context) error
- func (a *Adapter) StopWatchPositions(ctx context.Context) error
- func (a *Adapter) StopWatchTicker(ctx context.Context, symbol string) error
- func (a *Adapter) StopWatchTrades(ctx context.Context, symbol string) error
- func (a *Adapter) WatchFills(ctx context.Context, cb exchanges.FillCallback) error
- func (a *Adapter) WatchKlines(ctx context.Context, symbol string, interval exchanges.Interval, ...) error
- func (a *Adapter) WatchOrderBook(ctx context.Context, symbol string, depth int, cb exchanges.OrderBookCallback) error
- func (a *Adapter) WatchOrders(ctx context.Context, cb exchanges.OrderUpdateCallback) error
- func (a *Adapter) WatchPositions(ctx context.Context, cb exchanges.PositionUpdateCallback) error
- func (a *Adapter) WatchTicker(ctx context.Context, symbol string, cb exchanges.TickerCallback) error
- func (a *Adapter) WatchTrades(ctx context.Context, symbol string, cb exchanges.TradeCallback) error
- type OptionAdapter
- func (a *OptionAdapter) CancelAllOrders(ctx context.Context, symbol string) error
- func (a *OptionAdapter) CancelOrder(ctx context.Context, orderID, symbol string) error
- func (a *OptionAdapter) CancelOrderWS(context.Context, string, string) error
- func (a *OptionAdapter) Close() error
- func (a *OptionAdapter) ExtractSymbol(symbol string) string
- func (a *OptionAdapter) FetchAccount(ctx context.Context) (*exchanges.Account, error)
- func (a *OptionAdapter) FetchBalance(ctx context.Context) (decimal.Decimal, error)
- func (a *OptionAdapter) FetchFeeRate(ctx context.Context, symbol string) (*exchanges.FeeRate, error)
- func (a *OptionAdapter) FetchKlines(ctx context.Context, symbol string, interval exchanges.Interval, ...) ([]exchanges.Kline, error)
- func (a *OptionAdapter) FetchOpenOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)
- func (a *OptionAdapter) FetchOptionContract(ctx context.Context, contractSymbol string) (*exchanges.OptionContract, error)
- func (a *OptionAdapter) FetchOrderBook(ctx context.Context, symbol string, limit int) (*exchanges.OrderBook, error)
- func (a *OptionAdapter) FetchOrderByID(ctx context.Context, orderID, symbol string) (*exchanges.Order, error)
- func (a *OptionAdapter) FetchOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)
- func (a *OptionAdapter) FetchSymbolDetails(ctx context.Context, symbol string) (*exchanges.SymbolDetails, error)
- func (a *OptionAdapter) FetchTicker(ctx context.Context, symbol string) (*exchanges.Ticker, error)
- func (a *OptionAdapter) FetchTrades(ctx context.Context, symbol string, limit int) ([]exchanges.Trade, error)
- func (a *OptionAdapter) FormatSymbol(symbol string) string
- func (a *OptionAdapter) ListOptionContracts(ctx context.Context, underlying string) ([]exchanges.OptionContract, error)
- func (a *OptionAdapter) PlaceOrder(ctx context.Context, params *exchanges.OrderParams) (*exchanges.Order, error)
- func (a *OptionAdapter) PlaceOrderWS(context.Context, *exchanges.OrderParams) error
- func (a *OptionAdapter) StopWatchFills(context.Context) error
- func (a *OptionAdapter) StopWatchKlines(context.Context, string, exchanges.Interval) error
- func (a *OptionAdapter) StopWatchOrderBook(context.Context, string) error
- func (a *OptionAdapter) StopWatchOrders(context.Context) error
- func (a *OptionAdapter) StopWatchPositions(context.Context) error
- func (a *OptionAdapter) StopWatchTicker(context.Context, string) error
- func (a *OptionAdapter) StopWatchTrades(context.Context, string) error
- func (a *OptionAdapter) WatchFills(context.Context, exchanges.FillCallback) error
- func (a *OptionAdapter) WatchKlines(context.Context, string, exchanges.Interval, exchanges.KlineCallback) error
- func (a *OptionAdapter) WatchOrderBook(context.Context, string, int, exchanges.OrderBookCallback) error
- func (a *OptionAdapter) WatchOrders(context.Context, exchanges.OrderUpdateCallback) error
- func (a *OptionAdapter) WatchPositions(context.Context, exchanges.PositionUpdateCallback) error
- func (a *OptionAdapter) WatchTicker(context.Context, string, exchanges.TickerCallback) error
- func (a *OptionAdapter) WatchTrades(context.Context, string, exchanges.TradeCallback) error
- type Options
- type OrderBook
- func (ob *OrderBook) GetDepth(limit int) ([]exchanges.Level, []exchanges.Level)
- func (ob *OrderBook) IsInitialized() bool
- func (ob *OrderBook) LoadSnapshot(data *sdk.OrderBook)
- func (ob *OrderBook) ProcessDelta(data *sdk.WSOrderBookData)
- func (ob *OrderBook) ProcessSnapshot(data *sdk.WSOrderBookData)
- func (ob *OrderBook) Timestamp() int64
- func (ob *OrderBook) WaitReady(ctx context.Context, timeout time.Duration) bool
- type SpotAdapter
- func (a *SpotAdapter) CancelAllOrders(ctx context.Context, symbol string) error
- func (a *SpotAdapter) CancelOrder(ctx context.Context, orderID, symbol string) error
- func (a *SpotAdapter) CancelOrderWS(ctx context.Context, orderID, symbol string) error
- func (a *SpotAdapter) Close() error
- func (a *SpotAdapter) ExtractSymbol(symbol string) string
- func (a *SpotAdapter) FetchAccount(ctx context.Context) (*exchanges.Account, error)
- func (a *SpotAdapter) FetchBalance(ctx context.Context) (decimal.Decimal, error)
- func (a *SpotAdapter) FetchFeeRate(ctx context.Context, symbol string) (*exchanges.FeeRate, error)
- func (a *SpotAdapter) FetchKlines(ctx context.Context, symbol string, interval exchanges.Interval, ...) ([]exchanges.Kline, error)
- func (a *SpotAdapter) FetchOpenOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)
- func (a *SpotAdapter) FetchOrderBook(ctx context.Context, symbol string, limit int) (*exchanges.OrderBook, error)
- func (a *SpotAdapter) FetchOrderByID(ctx context.Context, orderID, symbol string) (*exchanges.Order, error)
- func (a *SpotAdapter) FetchOrders(ctx context.Context, symbol string) ([]exchanges.Order, error)
- func (a *SpotAdapter) FetchSpotBalances(ctx context.Context) ([]exchanges.SpotBalance, error)
- func (a *SpotAdapter) FetchSymbolDetails(ctx context.Context, symbol string) (*exchanges.SymbolDetails, error)
- func (a *SpotAdapter) FetchTicker(ctx context.Context, symbol string) (*exchanges.Ticker, error)
- func (a *SpotAdapter) FetchTrades(ctx context.Context, symbol string, limit int) ([]exchanges.Trade, error)
- func (a *SpotAdapter) FormatSymbol(symbol string) string
- func (a *SpotAdapter) GetLocalOrderBook(symbol string, depth int) *exchanges.OrderBook
- func (a *SpotAdapter) PlaceOrder(ctx context.Context, params *exchanges.OrderParams) (*exchanges.Order, error)
- func (a *SpotAdapter) PlaceOrderWS(ctx context.Context, params *exchanges.OrderParams) error
- func (a *SpotAdapter) StopWatchFills(ctx context.Context) error
- func (a *SpotAdapter) StopWatchKlines(ctx context.Context, symbol string, interval exchanges.Interval) error
- func (a *SpotAdapter) StopWatchOrderBook(ctx context.Context, symbol string) error
- func (a *SpotAdapter) StopWatchOrders(ctx context.Context) error
- func (a *SpotAdapter) StopWatchPositions(ctx context.Context) error
- func (a *SpotAdapter) StopWatchTicker(ctx context.Context, symbol string) error
- func (a *SpotAdapter) StopWatchTrades(ctx context.Context, symbol string) error
- func (a *SpotAdapter) TransferAsset(ctx context.Context, params *exchanges.TransferParams) error
- func (a *SpotAdapter) WatchFills(ctx context.Context, cb exchanges.FillCallback) error
- func (a *SpotAdapter) WatchKlines(ctx context.Context, symbol string, interval exchanges.Interval, ...) error
- func (a *SpotAdapter) WatchOrderBook(ctx context.Context, symbol string, depth int, cb exchanges.OrderBookCallback) error
- func (a *SpotAdapter) WatchOrders(ctx context.Context, cb exchanges.OrderUpdateCallback) error
- func (a *SpotAdapter) WatchPositions(ctx context.Context, cb exchanges.PositionUpdateCallback) error
- func (a *SpotAdapter) WatchTicker(ctx context.Context, symbol string, cb exchanges.TickerCallback) error
- func (a *SpotAdapter) WatchTrades(ctx context.Context, symbol string, cb exchanges.TradeCallback) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
*exchanges.BaseAdapter
// contains filtered or unexported fields
}
func (*Adapter) CancelAllOrders ¶
func (*Adapter) CancelOrder ¶
func (*Adapter) CancelOrderWS ¶
func (*Adapter) ExtractSymbol ¶
func (*Adapter) FetchAccount ¶
func (*Adapter) FetchAllFundingRates ¶
func (*Adapter) FetchBalance ¶
func (*Adapter) FetchFeeRate ¶
func (*Adapter) FetchFundingRate ¶
func (*Adapter) FetchFundingRateHistory ¶ added in v0.2.19
func (a *Adapter) FetchFundingRateHistory(ctx context.Context, symbol string, opts *exchanges.FundingRateHistoryOpts) ([]exchanges.FundingRate, error)
FetchFundingRateHistory is not implemented by this adapter.
func (*Adapter) FetchKlines ¶
func (*Adapter) FetchOpenInterest ¶ added in v0.2.19
func (a *Adapter) FetchOpenInterest(ctx context.Context, symbol string) (*exchanges.OpenInterest, error)
FetchOpenInterest is not implemented by this adapter.
func (*Adapter) FetchOpenOrders ¶
func (*Adapter) FetchOrderBook ¶
func (*Adapter) FetchOrderByID ¶
func (*Adapter) FetchOrders ¶
func (*Adapter) FetchPositions ¶
func (*Adapter) FetchSymbolDetails ¶
func (*Adapter) FetchTicker ¶
func (*Adapter) FetchTrades ¶
func (*Adapter) FormatSymbol ¶
func (*Adapter) GetLocalOrderBook ¶
func (*Adapter) ModifyOrder ¶
func (*Adapter) ModifyOrderWS ¶
func (*Adapter) PlaceOrder ¶
func (*Adapter) PlaceOrderWS ¶
func (*Adapter) SetLeverage ¶
func (*Adapter) StopWatchKlines ¶
func (*Adapter) StopWatchOrderBook ¶
func (*Adapter) StopWatchPositions ¶
func (*Adapter) StopWatchTicker ¶
func (*Adapter) StopWatchTrades ¶
func (*Adapter) WatchFills ¶
func (*Adapter) WatchKlines ¶
func (*Adapter) WatchOrderBook ¶
func (*Adapter) WatchOrders ¶
func (*Adapter) WatchPositions ¶
func (*Adapter) WatchTicker ¶
func (*Adapter) WatchTrades ¶
type OptionAdapter ¶ added in v0.2.20
type OptionAdapter struct {
*exchanges.BaseAdapter
// contains filtered or unexported fields
}
func NewOptionAdapter ¶ added in v0.2.20
func NewOptionAdapter(ctx context.Context, opts Options) (*OptionAdapter, error)
func (*OptionAdapter) CancelAllOrders ¶ added in v0.2.20
func (a *OptionAdapter) CancelAllOrders(ctx context.Context, symbol string) error
func (*OptionAdapter) CancelOrder ¶ added in v0.2.20
func (a *OptionAdapter) CancelOrder(ctx context.Context, orderID, symbol string) error
func (*OptionAdapter) CancelOrderWS ¶ added in v0.2.20
func (*OptionAdapter) Close ¶ added in v0.2.20
func (a *OptionAdapter) Close() error
func (*OptionAdapter) ExtractSymbol ¶ added in v0.2.20
func (a *OptionAdapter) ExtractSymbol(symbol string) string
func (*OptionAdapter) FetchAccount ¶ added in v0.2.20
func (*OptionAdapter) FetchBalance ¶ added in v0.2.20
func (*OptionAdapter) FetchFeeRate ¶ added in v0.2.20
func (*OptionAdapter) FetchKlines ¶ added in v0.2.20
func (*OptionAdapter) FetchOpenOrders ¶ added in v0.2.20
func (*OptionAdapter) FetchOptionContract ¶ added in v0.2.20
func (a *OptionAdapter) FetchOptionContract(ctx context.Context, contractSymbol string) (*exchanges.OptionContract, error)
func (*OptionAdapter) FetchOrderBook ¶ added in v0.2.20
func (*OptionAdapter) FetchOrderByID ¶ added in v0.2.20
func (*OptionAdapter) FetchOrders ¶ added in v0.2.20
func (*OptionAdapter) FetchSymbolDetails ¶ added in v0.2.20
func (a *OptionAdapter) FetchSymbolDetails(ctx context.Context, symbol string) (*exchanges.SymbolDetails, error)
func (*OptionAdapter) FetchTicker ¶ added in v0.2.20
func (*OptionAdapter) FetchTrades ¶ added in v0.2.20
func (*OptionAdapter) FormatSymbol ¶ added in v0.2.20
func (a *OptionAdapter) FormatSymbol(symbol string) string
func (*OptionAdapter) ListOptionContracts ¶ added in v0.2.20
func (a *OptionAdapter) ListOptionContracts(ctx context.Context, underlying string) ([]exchanges.OptionContract, error)
func (*OptionAdapter) PlaceOrder ¶ added in v0.2.20
func (a *OptionAdapter) PlaceOrder(ctx context.Context, params *exchanges.OrderParams) (*exchanges.Order, error)
func (*OptionAdapter) PlaceOrderWS ¶ added in v0.2.20
func (a *OptionAdapter) PlaceOrderWS(context.Context, *exchanges.OrderParams) error
func (*OptionAdapter) StopWatchFills ¶ added in v0.2.20
func (a *OptionAdapter) StopWatchFills(context.Context) error
func (*OptionAdapter) StopWatchKlines ¶ added in v0.2.20
func (*OptionAdapter) StopWatchOrderBook ¶ added in v0.2.20
func (a *OptionAdapter) StopWatchOrderBook(context.Context, string) error
func (*OptionAdapter) StopWatchOrders ¶ added in v0.2.20
func (a *OptionAdapter) StopWatchOrders(context.Context) error
func (*OptionAdapter) StopWatchPositions ¶ added in v0.2.20
func (a *OptionAdapter) StopWatchPositions(context.Context) error
func (*OptionAdapter) StopWatchTicker ¶ added in v0.2.20
func (a *OptionAdapter) StopWatchTicker(context.Context, string) error
func (*OptionAdapter) StopWatchTrades ¶ added in v0.2.20
func (a *OptionAdapter) StopWatchTrades(context.Context, string) error
func (*OptionAdapter) WatchFills ¶ added in v0.2.20
func (a *OptionAdapter) WatchFills(context.Context, exchanges.FillCallback) error
func (*OptionAdapter) WatchKlines ¶ added in v0.2.20
func (a *OptionAdapter) WatchKlines(context.Context, string, exchanges.Interval, exchanges.KlineCallback) error
func (*OptionAdapter) WatchOrderBook ¶ added in v0.2.20
func (a *OptionAdapter) WatchOrderBook(context.Context, string, int, exchanges.OrderBookCallback) error
func (*OptionAdapter) WatchOrders ¶ added in v0.2.20
func (a *OptionAdapter) WatchOrders(context.Context, exchanges.OrderUpdateCallback) error
func (*OptionAdapter) WatchPositions ¶ added in v0.2.20
func (a *OptionAdapter) WatchPositions(context.Context, exchanges.PositionUpdateCallback) error
func (*OptionAdapter) WatchTicker ¶ added in v0.2.20
func (a *OptionAdapter) WatchTicker(context.Context, string, exchanges.TickerCallback) error
func (*OptionAdapter) WatchTrades ¶ added in v0.2.20
func (a *OptionAdapter) WatchTrades(context.Context, string, exchanges.TradeCallback) error
type OrderBook ¶
type OrderBook struct {
// contains filtered or unexported fields
}
func NewOrderBook ¶
func (*OrderBook) IsInitialized ¶
func (*OrderBook) LoadSnapshot ¶
func (*OrderBook) ProcessDelta ¶
func (ob *OrderBook) ProcessDelta(data *sdk.WSOrderBookData)
func (*OrderBook) ProcessSnapshot ¶
func (ob *OrderBook) ProcessSnapshot(data *sdk.WSOrderBookData)
type SpotAdapter ¶
type SpotAdapter struct {
*exchanges.BaseAdapter
// contains filtered or unexported fields
}
func NewSpotAdapter ¶
func NewSpotAdapter(ctx context.Context, opts Options) (*SpotAdapter, error)
func (*SpotAdapter) CancelAllOrders ¶
func (a *SpotAdapter) CancelAllOrders(ctx context.Context, symbol string) error
func (*SpotAdapter) CancelOrder ¶
func (a *SpotAdapter) CancelOrder(ctx context.Context, orderID, symbol string) error
func (*SpotAdapter) CancelOrderWS ¶
func (a *SpotAdapter) CancelOrderWS(ctx context.Context, orderID, symbol string) error
func (*SpotAdapter) Close ¶
func (a *SpotAdapter) Close() error
func (*SpotAdapter) ExtractSymbol ¶
func (a *SpotAdapter) ExtractSymbol(symbol string) string
func (*SpotAdapter) FetchAccount ¶
func (*SpotAdapter) FetchBalance ¶
func (*SpotAdapter) FetchFeeRate ¶
func (*SpotAdapter) FetchKlines ¶
func (*SpotAdapter) FetchOpenOrders ¶
func (*SpotAdapter) FetchOrderBook ¶
func (*SpotAdapter) FetchOrderByID ¶
func (*SpotAdapter) FetchOrders ¶
func (*SpotAdapter) FetchSpotBalances ¶
func (a *SpotAdapter) FetchSpotBalances(ctx context.Context) ([]exchanges.SpotBalance, error)
func (*SpotAdapter) FetchSymbolDetails ¶
func (a *SpotAdapter) FetchSymbolDetails(ctx context.Context, symbol string) (*exchanges.SymbolDetails, error)
func (*SpotAdapter) FetchTicker ¶
func (*SpotAdapter) FetchTrades ¶
func (*SpotAdapter) FormatSymbol ¶
func (a *SpotAdapter) FormatSymbol(symbol string) string
func (*SpotAdapter) GetLocalOrderBook ¶
func (a *SpotAdapter) GetLocalOrderBook(symbol string, depth int) *exchanges.OrderBook
func (*SpotAdapter) PlaceOrder ¶
func (a *SpotAdapter) PlaceOrder(ctx context.Context, params *exchanges.OrderParams) (*exchanges.Order, error)
func (*SpotAdapter) PlaceOrderWS ¶
func (a *SpotAdapter) PlaceOrderWS(ctx context.Context, params *exchanges.OrderParams) error
func (*SpotAdapter) StopWatchFills ¶
func (a *SpotAdapter) StopWatchFills(ctx context.Context) error
func (*SpotAdapter) StopWatchKlines ¶
func (*SpotAdapter) StopWatchOrderBook ¶
func (a *SpotAdapter) StopWatchOrderBook(ctx context.Context, symbol string) error
func (*SpotAdapter) StopWatchOrders ¶
func (a *SpotAdapter) StopWatchOrders(ctx context.Context) error
func (*SpotAdapter) StopWatchPositions ¶
func (a *SpotAdapter) StopWatchPositions(ctx context.Context) error
func (*SpotAdapter) StopWatchTicker ¶
func (a *SpotAdapter) StopWatchTicker(ctx context.Context, symbol string) error
func (*SpotAdapter) StopWatchTrades ¶
func (a *SpotAdapter) StopWatchTrades(ctx context.Context, symbol string) error
func (*SpotAdapter) TransferAsset ¶
func (a *SpotAdapter) TransferAsset(ctx context.Context, params *exchanges.TransferParams) error
func (*SpotAdapter) WatchFills ¶
func (a *SpotAdapter) WatchFills(ctx context.Context, cb exchanges.FillCallback) error
func (*SpotAdapter) WatchKlines ¶
func (a *SpotAdapter) WatchKlines(ctx context.Context, symbol string, interval exchanges.Interval, cb exchanges.KlineCallback) error
func (*SpotAdapter) WatchOrderBook ¶
func (a *SpotAdapter) WatchOrderBook(ctx context.Context, symbol string, depth int, cb exchanges.OrderBookCallback) error
func (*SpotAdapter) WatchOrders ¶
func (a *SpotAdapter) WatchOrders(ctx context.Context, cb exchanges.OrderUpdateCallback) error
func (*SpotAdapter) WatchPositions ¶
func (a *SpotAdapter) WatchPositions(ctx context.Context, cb exchanges.PositionUpdateCallback) error
func (*SpotAdapter) WatchTicker ¶
func (a *SpotAdapter) WatchTicker(ctx context.Context, symbol string, cb exchanges.TickerCallback) error
func (*SpotAdapter) WatchTrades ¶
func (a *SpotAdapter) WatchTrades(ctx context.Context, symbol string, cb exchanges.TradeCallback) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.