pub struct RiskMetrics {
pub var_95: Decimal,
pub var_99: Decimal,
pub cvar_95: Decimal,
pub max_drawdown: Decimal,
pub sharpe_ratio: f64,
pub volatility: f64,
pub beta: f64,
}Expand description
Risk metrics for portfolio
Fields§
§var_95: DecimalValue at Risk (95% confidence)
var_99: DecimalValue at Risk (99% confidence)
cvar_95: DecimalConditional Value at Risk (95%)
max_drawdown: DecimalMaximum drawdown
sharpe_ratio: f64Sharpe ratio
volatility: f64Portfolio volatility
beta: f64Beta (market correlation)
Trait Implementations§
Source§impl Clone for RiskMetrics
impl Clone for RiskMetrics
Source§fn clone(&self) -> RiskMetrics
fn clone(&self) -> RiskMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RiskMetrics
impl RefUnwindSafe for RiskMetrics
impl Send for RiskMetrics
impl Sync for RiskMetrics
impl Unpin for RiskMetrics
impl UnwindSafe for RiskMetrics
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