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,
}Expand description
Auditable output from compute_size.
Fields§
§final_lot_steps: u64Authoritative tradable quantity in symbol lot steps.
final_lot: f64Final lot quantity derived from final_lot_steps and SymbolSpec.
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>Caller-supplied account-currency loss for one lot at the protective stop.
cap_status: LotCapStatusMaximum-lot cap status.
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 moreimpl Copy for SizingResult
Source§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