pub struct MarketImpact { /* private fields */ }Expand description
Represents the market impact analysis of a market order
Implementations§
Source§impl MarketImpact
impl MarketImpact
Sourcepub fn requested_quantity(&self) -> Quantity
pub fn requested_quantity(&self) -> Quantity
Get the requested quantity of the order
Sourcepub fn available_quantity(&self) -> Quantity
pub fn available_quantity(&self) -> Quantity
Get the available quantity to fill the order
Sourcepub fn total_cost(&self) -> Notional
pub fn total_cost(&self) -> Notional
Get the total cost to fill the order
Sourcepub fn best_price(&self) -> Price
pub fn best_price(&self) -> Price
Get the best execution price
Sourcepub fn worst_price(&self) -> Price
pub fn worst_price(&self) -> Price
Get the worst (furthest from the best price) execution price
Sourcepub fn consumed_price_levels(&self) -> usize
pub fn consumed_price_levels(&self) -> usize
Get the number of price levels that would be consumed
Sourcepub fn average_price(&self) -> f64
pub fn average_price(&self) -> f64
Get the average price to fill the order
Trait Implementations§
Source§impl Clone for MarketImpact
impl Clone for MarketImpact
Source§fn clone(&self) -> MarketImpact
fn clone(&self) -> MarketImpact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarketImpact
impl Debug for MarketImpact
Source§impl<'de> Deserialize<'de> for MarketImpact
impl<'de> Deserialize<'de> for MarketImpact
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
Source§impl PartialEq for MarketImpact
impl PartialEq for MarketImpact
Source§impl Serialize for MarketImpact
impl Serialize for MarketImpact
impl Eq for MarketImpact
impl StructuralPartialEq for MarketImpact
Auto Trait Implementations§
impl Freeze for MarketImpact
impl RefUnwindSafe for MarketImpact
impl Send for MarketImpact
impl Sync for MarketImpact
impl Unpin for MarketImpact
impl UnsafeUnpin for MarketImpact
impl UnwindSafe for MarketImpact
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