pub struct CostMetricsSection {
pub positions_with_costs: usize,
pub total_commission: f64,
pub total_swap: f64,
pub total_cost: f64,
pub gross_outcome: f64,
pub net_outcome: f64,
pub cost_share_of_gross: MetricValue<f64>,
pub mean_cost_per_position: MetricValue<f64>,
}Expand description
Commission and swap actually charged across the selected positions.
Every outcome in this evaluation is already net of these amounts, so the section exists to show how large the deduction was, not to adjust anything.
Fields§
§positions_with_costs: usize§total_commission: f64§total_swap: f64§total_cost: f64§gross_outcome: f64Sum of outcomes before costs.
net_outcome: f64Sum of outcomes after costs, matching the outcomes used everywhere else in this report.
total_cost / gross_outcome.abs(), unavailable when the gross outcome is zero.
mean_cost_per_position: MetricValue<f64>Trait Implementations§
Source§impl Clone for CostMetricsSection
impl Clone for CostMetricsSection
Source§impl Debug for CostMetricsSection
impl Debug for CostMetricsSection
Source§impl<'de> Deserialize<'de> for CostMetricsSection
impl<'de> Deserialize<'de> for CostMetricsSection
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
Source§impl PartialEq for CostMetricsSection
impl PartialEq for CostMetricsSection
Source§impl Serialize for CostMetricsSection
impl Serialize for CostMetricsSection
impl StructuralPartialEq for CostMetricsSection
Auto Trait Implementations§
impl Freeze for CostMetricsSection
impl RefUnwindSafe for CostMetricsSection
impl Send for CostMetricsSection
impl Sync for CostMetricsSection
impl Unpin for CostMetricsSection
impl UnsafeUnpin for CostMetricsSection
impl UnwindSafe for CostMetricsSection
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