pub struct ExchangeDetails {
pub venue: Venue,
pub supported_order_types: SmallVec<[OrderType; 4]>,
pub supported_time_in_force: SmallVec<[TimeInForce; 4]>,
pub supports_modify: bool,
pub supports_post_only: bool,
pub supports_reduce_only: bool,
pub max_open_orders: Option<usize>,
pub decimal_precision: DecimalPrecision,
}Expand description
Exchange-specific details for normalization and interoperability
Fields§
§venue: VenueExchange venue
supported_order_types: SmallVec<[OrderType; 4]>Supported order types
supported_time_in_force: SmallVec<[TimeInForce; 4]>Supported time in force options
supports_modify: boolWhether the exchange supports modifying orders
supports_post_only: boolWhether the exchange supports post-only orders
supports_reduce_only: boolWhether the exchange supports reduce-only orders
max_open_orders: Option<usize>Maximum number of open orders allowed per account
decimal_precision: DecimalPrecisionPrecision requirements for quantity and price
Trait Implementations§
Source§impl Clone for ExchangeDetails
impl Clone for ExchangeDetails
Source§fn clone(&self) -> ExchangeDetails
fn clone(&self) -> ExchangeDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeDetails
impl Debug for ExchangeDetails
Source§impl<'de> Deserialize<'de> for ExchangeDetails
impl<'de> Deserialize<'de> for ExchangeDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExchangeDetails
impl RefUnwindSafe for ExchangeDetails
impl Send for ExchangeDetails
impl Sync for ExchangeDetails
impl Unpin for ExchangeDetails
impl UnwindSafe for ExchangeDetails
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more