Documentation ¶
Index ¶
- Variables
- func CancelAllOrdersUntilSuccessful(ctx context.Context, service advancedOrderCancelService) error
- func CancelOrdersUntilSuccessful(ctx context.Context, ex types.Exchange, orders ...types.Order) error
- func GeneralBackoff(ctx context.Context, op backoff.Operation) (err error)
- func GeneralLiteBackoff(ctx context.Context, op backoff.Operation) (err error)
- func QueryAccountBalancesUntilSuccessful(ctx context.Context, ex types.ExchangeAccountService) (bals types.BalanceMap, err error)
- func QueryAccountBalancesUntilSuccessfulLite(ctx context.Context, ex types.ExchangeAccountService) (bals types.BalanceMap, err error)
- func QueryAccountUntilSuccessful(ctx context.Context, ex types.ExchangeAccountService) (account *types.Account, err error)
- func QueryClosedOrdersUntilSuccessful(ctx context.Context, ex types.ExchangeTradeHistoryService, symbol string, ...) (closedOrders []types.Order, err error)
- func QueryClosedOrdersUntilSuccessfulLite(ctx context.Context, ex types.ExchangeTradeHistoryService, symbol string, ...) (closedOrders []types.Order, err error)
- func QueryOpenOrdersUntilSuccessful(ctx context.Context, ex types.Exchange, symbol string) (openOrders []types.Order, err error)
- func QueryOpenOrdersUntilSuccessfulLite(ctx context.Context, ex types.Exchange, symbol string) (openOrders []types.Order, err error)
- func QueryOrderTradesUntilSuccessful(ctx context.Context, ex types.ExchangeOrderQueryService, q types.OrderQuery) (trades []types.Trade, err error)
- func QueryOrderTradesUntilSuccessfulLite(ctx context.Context, ex types.ExchangeOrderQueryService, q types.OrderQuery) (trades []types.Trade, err error)
- func QueryOrderUntilCanceled(ctx context.Context, queryOrderService types.ExchangeOrderQueryService, ...) (o *types.Order, err error)
- func QueryOrderUntilFilled(ctx context.Context, queryOrderService types.ExchangeOrderQueryService, ...) (o *types.Order, err error)
- func QueryOrderUntilSuccessful(ctx context.Context, query types.ExchangeOrderQueryService, ...) (order *types.Order, err error)
- func QueryTickerUntilSuccessful(ctx context.Context, ex types.Exchange, symbol string) (ticker *types.Ticker, err error)
- func QueryTradesUntilSuccessful(ctx context.Context, ex types.ExchangeTradeHistoryService, symbol string, ...) (trades []types.Trade, err error)
- func QueryTradesUntilSuccessfulLite(ctx context.Context, ex types.ExchangeTradeHistoryService, symbol string, ...) (trades []types.Trade, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOrderIsNil = errors.New("order object is nil")
View Source
var ErrTradeFeeIsProcessing = errors.New("trading fee is still processing")
View Source
var ErrTradeNotExecutedYet = errors.New("trades not executed yet")
Functions ¶
func GeneralBackoff ¶
func GeneralLiteBackoff ¶ added in v1.53.0
func QueryAccountBalancesUntilSuccessful ¶ added in v1.60.0
func QueryAccountBalancesUntilSuccessful( ctx context.Context, ex types.ExchangeAccountService, ) (bals types.BalanceMap, err error)
func QueryAccountBalancesUntilSuccessfulLite ¶ added in v1.60.0
func QueryAccountBalancesUntilSuccessfulLite( ctx context.Context, ex types.ExchangeAccountService, ) (bals types.BalanceMap, err error)
func QueryAccountUntilSuccessful ¶ added in v1.54.0
func QueryClosedOrdersUntilSuccessful ¶ added in v1.58.0
func QueryClosedOrdersUntilSuccessfulLite ¶ added in v1.58.0
func QueryOpenOrdersUntilSuccessfulLite ¶ added in v1.53.0
func QueryOrderTradesUntilSuccessful ¶ added in v1.58.0
func QueryOrderTradesUntilSuccessful( ctx context.Context, ex types.ExchangeOrderQueryService, q types.OrderQuery, ) (trades []types.Trade, err error)
QueryOrderTradesUntilSuccessful query order's trades until success (include the trading fee is not processing)
func QueryOrderTradesUntilSuccessfulLite ¶ added in v1.58.0
func QueryOrderTradesUntilSuccessfulLite( ctx context.Context, ex types.ExchangeOrderQueryService, q types.OrderQuery, ) (trades []types.Trade, err error)
QueryOrderTradesUntilSuccessfulLite query order's trades until success (include the trading fee is not processing)
func QueryOrderUntilCanceled ¶ added in v1.55.0
func QueryOrderUntilFilled ¶
func QueryOrderUntilSuccessful ¶ added in v1.52.0
func QueryOrderUntilSuccessful( ctx context.Context, query types.ExchangeOrderQueryService, opts types.OrderQuery, ) (order *types.Order, err error)
func QueryTickerUntilSuccessful ¶ added in v1.55.0
func QueryTradesUntilSuccessful ¶ added in v1.59.0
func QueryTradesUntilSuccessful( ctx context.Context, ex types.ExchangeTradeHistoryService, symbol string, q *types.TradeQueryOptions, ) (trades []types.Trade, err error)
func QueryTradesUntilSuccessfulLite ¶ added in v1.59.0
func QueryTradesUntilSuccessfulLite( ctx context.Context, ex types.ExchangeTradeHistoryService, symbol string, q *types.TradeQueryOptions, ) (trades []types.Trade, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.