pub struct ExecutionCost {
pub commission_usd: f64,
pub spread_cost_usd: f64,
pub market_impact_usd: f64,
pub total_cost_usd: f64,
pub cost_bps: f64,
}Expand description
Full breakdown of estimated round-trip execution cost for one order.
Fields§
§commission_usd: f64Commission paid to the broker, in USD.
spread_cost_usd: f64Half-spread cost (buy at ask, sell at bid), in USD.
market_impact_usd: f64Estimated market impact cost (price concession due to order size), in USD.
total_cost_usd: f64Sum of all cost components, in USD.
cost_bps: f64Total cost expressed as basis points of notional: total_cost_usd / notional * 10_000.
Trait Implementations§
Source§impl Clone for ExecutionCost
impl Clone for ExecutionCost
Auto Trait Implementations§
impl Freeze for ExecutionCost
impl RefUnwindSafe for ExecutionCost
impl Send for ExecutionCost
impl Sync for ExecutionCost
impl Unpin for ExecutionCost
impl UnsafeUnpin for ExecutionCost
impl UnwindSafe for ExecutionCost
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