Enum Event
pub enum Event {
Market(MarketEvent),
Fill {
fill: Fill,
client_intent_id: Option<ClientIntentId>,
},
OrderUpdate(OrderStateEvent),
RiskState(RiskStateEvent),
}Expand description
Events delivered to strategies via Strategy::on_event.
Variants§
Market(MarketEvent)
Market data (trade, L2, liquidation).
Fill
A fill on one of our orders.
client_intent_id is populated when the platform can resolve the
originating intent before dispatch.
OrderUpdate(OrderStateEvent)
Order lifecycle transition.
RiskState(RiskStateEvent)
Risk stop-state change.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)