pub struct RiskLimits {
pub max_order_quantity: Quantity,
pub max_position_quantity: Quantity,
pub max_order_notional: Option<Price>,
}Expand description
Upper bounds enforced by the BasicRiskChecker.
Fields§
§max_order_quantity: Quantity§max_position_quantity: Quantity§max_order_notional: Option<Price>Implementations§
Source§impl RiskLimits
impl RiskLimits
Trait Implementations§
Source§impl Clone for RiskLimits
impl Clone for RiskLimits
Source§fn clone(&self) -> RiskLimits
fn clone(&self) -> RiskLimits
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 moreSource§impl Debug for RiskLimits
impl Debug for RiskLimits
impl Copy for RiskLimits
Auto Trait Implementations§
impl Freeze for RiskLimits
impl RefUnwindSafe for RiskLimits
impl Send for RiskLimits
impl Sync for RiskLimits
impl Unpin for RiskLimits
impl UnwindSafe for RiskLimits
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