pub struct Trade {
pub symbol: String,
pub direction: TradeDirection,
pub weight_change: f64,
pub estimated_cost_bps: f64,
}Expand description
A single rebalancing trade recommended by TurnoverOptimizer.
Fields§
§symbol: StringInstrument symbol.
direction: TradeDirectionBuy or sell.
weight_change: f64Absolute change in portfolio weight.
estimated_cost_bps: f64Estimated one-way cost in basis points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnsafeUnpin for Trade
impl UnwindSafe for Trade
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