pub struct SizingResult {
pub final_lot_steps: u64,
pub final_lot: f64,
pub scaled_raw_lot: f64,
pub requested_account_risk: Option<f64>,
pub native_loss_per_lot: Option<f64>,
pub account_loss_per_lot: Option<f64>,
pub cap_status: LotCapStatus,
pub quantity_adjustment: Option<GridAdjustment<Decimal>>,
pub final_notional: Option<Money>,
}Expand description
Auditable output from legacy or catalog-backed sizing.
Fields§
§final_lot_steps: u64Authoritative tradable quantity in legacy lot steps or catalog quantity-grid steps.
final_lot: f64Final standard-lot quantity derived from final_lot_steps and the active quantity rules.
scaled_raw_lot: f64Raw lot quantity after applying the signal risk multiplier and before lot constraints.
requested_account_risk: Option<f64>Requested account-currency risk before lot constraints for monetary policies.
native_loss_per_lot: Option<f64>Loss in the symbol’s native P&L currency for one lot at the protective stop.
account_loss_per_lot: Option<f64>Account-currency loss for one lot at the protective stop.
cap_status: LotCapStatusMaximum-lot cap status.
quantity_adjustment: Option<GridAdjustment<Decimal>>Exact requested and final quantity for catalog-backed sizing.
final_notional: Option<Money>Exact notional after quantity adjustment for catalog-backed sizing.
Trait Implementations§
Source§impl Clone for SizingResult
impl Clone for SizingResult
Source§fn clone(&self) -> SizingResult
fn clone(&self) -> SizingResult
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 moreSource§impl Debug for SizingResult
impl Debug for SizingResult
Source§impl PartialEq for SizingResult
impl PartialEq for SizingResult
impl StructuralPartialEq for SizingResult
Auto Trait Implementations§
impl Freeze for SizingResult
impl RefUnwindSafe for SizingResult
impl Send for SizingResult
impl Sync for SizingResult
impl Unpin for SizingResult
impl UnsafeUnpin for SizingResult
impl UnwindSafe for SizingResult
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