pub struct ExecutionCosts {
pub fee_pct: f64,
pub spread: f64,
pub slippage_pct: f64,
}Expand description
Trading costs applied to every fill.
Fields§
§fee_pct: f64Fraction of notional charged as a fee per fill (e.g. 0.001 = 10 bps).
spread: f64Fixed price spread applied against the order side (buys fill spread/2 higher, sells
spread/2 lower).
slippage_pct: f64Additional adverse slippage as a fraction of price, applied the same direction as spread.
Trait Implementations§
Source§impl Clone for ExecutionCosts
impl Clone for ExecutionCosts
Source§fn clone(&self) -> ExecutionCosts
fn clone(&self) -> ExecutionCosts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExecutionCosts
Source§impl Debug for ExecutionCosts
impl Debug for ExecutionCosts
Source§impl Default for ExecutionCosts
impl Default for ExecutionCosts
Source§fn default() -> ExecutionCosts
fn default() -> ExecutionCosts
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExecutionCosts
impl PartialEq for ExecutionCosts
impl StructuralPartialEq for ExecutionCosts
Auto Trait Implementations§
impl Freeze for ExecutionCosts
impl RefUnwindSafe for ExecutionCosts
impl Send for ExecutionCosts
impl Sync for ExecutionCosts
impl Unpin for ExecutionCosts
impl UnsafeUnpin for ExecutionCosts
impl UnwindSafe for ExecutionCosts
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