pub struct TrajectoryStep {
pub step: usize,
pub inventory: f64,
pub trade_size: f64,
pub impact_cost: f64,
}Expand description
A single step in the optimal execution trajectory.
Fields§
§step: usizeTime step index (0 = now, N = horizon end).
inventory: f64Remaining inventory at this step (shares not yet traded).
trade_size: f64Shares traded during this step (trade_size = inventory[t] - inventory[t+1]).
impact_cost: f64Expected instantaneous market impact cost of this step’s trade.
Trait Implementations§
Source§impl Clone for TrajectoryStep
impl Clone for TrajectoryStep
impl Copy for TrajectoryStep
Source§impl Debug for TrajectoryStep
impl Debug for TrajectoryStep
Source§impl<'de> Deserialize<'de> for TrajectoryStep
impl<'de> Deserialize<'de> for TrajectoryStep
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 TrajectoryStep
impl RefUnwindSafe for TrajectoryStep
impl Send for TrajectoryStep
impl Sync for TrajectoryStep
impl Unpin for TrajectoryStep
impl UnsafeUnpin for TrajectoryStep
impl UnwindSafe for TrajectoryStep
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