Expand description
Trait contracts for exchange integrations.
Concrete exchange clients (KuCoin, Binance, …) implement ExchangeClient
so the bot framework can stay exchange-agnostic. A client crate like
exchange-apiws already provides most of this — these traits are the
framework-side view.
Structs§
- Open
Order - A resting (not-yet-terminal) order as reported by the exchange, returned
by
ExchangeClient::get_open_orders.
Enums§
- Capability
- Optional adapter capabilities, queried via
ExchangeClient::supports. - Order
Status - Status of an order as reported by the exchange.
Traits§
- Candle
Source - Periodic candle source — separate from
MarketSourcebecause candle polling has a fundamentally different shape (pull, paced) than streaming events (push, unbounded). - Event
Source - Received order-book / market-data events from the exchange’s public feed.
- Exchange
Client - What the bot framework needs from an exchange to trade.
- Fill
Source - Received fill events from the exchange’s private feed.
- Market
Source - A source of live market data (WebSocket feed, backtest replay, simulator).