pub enum PortfolioBlock {
DailyLossHalt {
net_pnl: f64,
limit: f64,
},
MaxConcurrentPositions {
open: u32,
limit: u32,
},
GrossExposureCap {
current: f64,
additional: f64,
limit: f64,
},
}Expand description
Why PortfolioRisk::check_entry blocked a new entry.
Variants§
DailyLossHalt
The account-wide daily loss limit is breached; halted until UTC rollover.
MaxConcurrentPositions
Already at the maximum number of concurrent open positions.
GrossExposureCap
Adding this position would exceed the gross-exposure cap.
Trait Implementations§
Source§impl Clone for PortfolioBlock
impl Clone for PortfolioBlock
Source§fn clone(&self) -> PortfolioBlock
fn clone(&self) -> PortfolioBlock
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 PortfolioBlock
Source§impl Debug for PortfolioBlock
impl Debug for PortfolioBlock
Source§impl Display for PortfolioBlock
impl Display for PortfolioBlock
Source§impl PartialEq for PortfolioBlock
impl PartialEq for PortfolioBlock
Source§fn eq(&self, other: &PortfolioBlock) -> bool
fn eq(&self, other: &PortfolioBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PortfolioBlock
Auto Trait Implementations§
impl Freeze for PortfolioBlock
impl RefUnwindSafe for PortfolioBlock
impl Send for PortfolioBlock
impl Sync for PortfolioBlock
impl Unpin for PortfolioBlock
impl UnsafeUnpin for PortfolioBlock
impl UnwindSafe for PortfolioBlock
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