pub struct RiskOrder {
pub parent_order_id: String,
pub symbol: String,
pub side: OrderSide,
pub order_type: OrderType,
pub quantity: f64,
pub trigger_price: f64,
pub is_stop_loss: bool,
pub is_take_profit: bool,
pub created_at: DateTime<FixedOffset>,
}Expand description
Representation of a stop-loss or take-profit order managed by RiskManager.
Fields§
§parent_order_id: StringIdentifier of the originating order.
symbol: StringAsset symbol.
side: OrderSideOrder side used to flatten the position when triggered.
order_type: OrderTypeOrder type used when submitting the risk order.
quantity: f64Quantity to trade when the order triggers.
trigger_price: f64Trigger price for the order.
is_stop_loss: boolWhether the order acts as a stop-loss.
is_take_profit: boolWhether the order acts as a take-profit.
created_at: DateTime<FixedOffset>Timestamp when the risk order was created.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RiskOrder
impl RefUnwindSafe for RiskOrder
impl Send for RiskOrder
impl Sync for RiskOrder
impl Unpin for RiskOrder
impl UnwindSafe for RiskOrder
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