pub struct PortfolioFacts<'a> {
pub now: NaiveDateTime,
pub balance: f64,
pub drawdown_fraction: Option<f64>,
pub day_realized_r: f64,
pub open: &'a [ExposureFact],
pub pending: &'a [ExposureFact],
pub reserved: &'a [ExposureFact],
}Expand description
Account state at the moment of a review or boundary.
Fields§
§now: NaiveDateTime§balance: f64Realized balance, net of every cost already charged.
drawdown_fraction: Option<f64>Current drawdown of marked equity from its peak as a fraction, or None while no mark exists; a kill switch stays inactive while it is None.
day_realized_r: f64Sum of realized R over positions fully closed at or after PortfolioSupervisor::day_start.
open: &'a [ExposureFact]§pending: &'a [ExposureFact]§reserved: &'a [ExposureFact]Approved requests that have not reached the market yet.
Trait Implementations§
Source§impl<'a> Clone for PortfolioFacts<'a>
impl<'a> Clone for PortfolioFacts<'a>
impl<'a> Copy for PortfolioFacts<'a>
Source§impl<'a> Debug for PortfolioFacts<'a>
impl<'a> Debug for PortfolioFacts<'a>
Source§impl<'a> PartialEq for PortfolioFacts<'a>
impl<'a> PartialEq for PortfolioFacts<'a>
impl<'a> StructuralPartialEq for PortfolioFacts<'a>
Auto Trait Implementations§
impl<'a> Freeze for PortfolioFacts<'a>
impl<'a> RefUnwindSafe for PortfolioFacts<'a>
impl<'a> Send for PortfolioFacts<'a>
impl<'a> Sync for PortfolioFacts<'a>
impl<'a> Unpin for PortfolioFacts<'a>
impl<'a> UnsafeUnpin for PortfolioFacts<'a>
impl<'a> UnwindSafe for PortfolioFacts<'a>
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