#[non_exhaustive]pub enum Capability {
StopOrders,
PostOnly,
ReduceOnly,
Ioc,
Fok,
PublicFeed,
PrivateFeed,
OrderTracking,
}Expand description
Optional adapter capabilities, queried via ExchangeClient::supports.
The framework consults this to degrade gracefully when an adapter
doesn’t implement a feature an Order or strategy requests — e.g.
rejecting an order with Order.stop = Some(...) against an adapter
that returns false for Capability::StopOrders rather than
silently dropping the attachment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StopOrders
Adapter accepts Order.stop and translates to native stop orders.
PostOnly
Adapter rejects post-only orders that would cross the book as taker.
ReduceOnly
Adapter honours Order.reduce_only.
Ioc
Adapter supports OrderKind::Ioc.
Fok
Adapter supports OrderKind::Fok.
PublicFeed
Adapter can stream a public market-data feed alongside trading. Most do; spot-only HTTP adapters may not.
PrivateFeed
Adapter pushes fill / order-update events on a private feed.
OrderTracking
Adapter implements ExchangeClient::get_open_orders and
ExchangeClient::cancel_order — required for resting-order
tracking, TTL cancellation, and reconnect reconciliation.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Capability
Source§impl Debug for Capability
impl Debug for Capability
impl Eq for Capability
Source§impl Hash for Capability
impl Hash for Capability
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§fn eq(&self, other: &Capability) -> bool
fn eq(&self, other: &Capability) -> bool
self and other values to be equal, and is used by ==.