pub struct ImplementationShortfallConfig { /* private fields */ }Expand description
Configuration for implementation-shortfall planning.
Implementations§
Source§impl ImplementationShortfallConfig
impl ImplementationShortfallConfig
Sourcepub const fn new(
base_urgency_bps: u16,
max_urgency_bps: u16,
volatility_weight_bps: u16,
spread_weight_bps: u16,
adverse_move_weight_bps: u16,
impact_weight_bps: u16,
) -> Result<Self, AlgoError>
pub const fn new( base_urgency_bps: u16, max_urgency_bps: u16, volatility_weight_bps: u16, spread_weight_bps: u16, adverse_move_weight_bps: u16, impact_weight_bps: u16, ) -> Result<Self, AlgoError>
Creates implementation-shortfall planner configuration.
§Errors
Returns AlgoError::InvalidShortfallParameters when urgency values
exceed 10,000 bps or base urgency exceeds the cap.
Sourcepub const fn base_urgency_bps(&self) -> u16
pub const fn base_urgency_bps(&self) -> u16
Returns base urgency in basis points.
Sourcepub const fn max_urgency_bps(&self) -> u16
pub const fn max_urgency_bps(&self) -> u16
Returns maximum urgency in basis points.
Sourcepub const fn volatility_weight_bps(&self) -> u16
pub const fn volatility_weight_bps(&self) -> u16
Returns volatility urgency weight in basis points.
Sourcepub const fn spread_weight_bps(&self) -> u16
pub const fn spread_weight_bps(&self) -> u16
Returns spread urgency weight in basis points.
Sourcepub const fn adverse_move_weight_bps(&self) -> u16
pub const fn adverse_move_weight_bps(&self) -> u16
Returns adverse move urgency weight in basis points.
Sourcepub const fn impact_weight_bps(&self) -> u16
pub const fn impact_weight_bps(&self) -> u16
Returns temporary impact patience weight in basis points.
Trait Implementations§
impl Copy for ImplementationShortfallConfig
impl Eq for ImplementationShortfallConfig
impl StructuralPartialEq for ImplementationShortfallConfig
Auto Trait Implementations§
impl Freeze for ImplementationShortfallConfig
impl RefUnwindSafe for ImplementationShortfallConfig
impl Send for ImplementationShortfallConfig
impl Sync for ImplementationShortfallConfig
impl Unpin for ImplementationShortfallConfig
impl UnsafeUnpin for ImplementationShortfallConfig
impl UnwindSafe for ImplementationShortfallConfig
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