Skip to main content

Module exchange

Module exchange 

Source
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§

OpenOrder
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.
OrderStatus
Status of an order as reported by the exchange.

Traits§

CandleSource
Periodic candle source — separate from MarketSource because candle polling has a fundamentally different shape (pull, paced) than streaming events (push, unbounded).
EventSource
Received order-book / market-data events from the exchange’s public feed.
ExchangeClient
What the bot framework needs from an exchange to trade.
FillSource
Received fill events from the exchange’s private feed.
MarketSource
A source of live market data (WebSocket feed, backtest replay, simulator).