#[non_exhaustive]pub enum StreamDataEvent {
OrderSnapshot(Value),
OrderUpdate(Value),
MarketData(Value),
MarketDataLite(Value),
OrderBookDelta(Value),
PositionSnapshot(Value),
PositionUpdate(Value),
BalanceSnapshot(Value),
BalanceUpdate(Value),
Trade(Value),
Heartbeat,
Other {
event_type: String,
payload: Value,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OrderSnapshot(Value)
Initial snapshot of all open orders (private channel).
OrderUpdate(Value)
Real-time order lifecycle update (private channel).
MarketData(Value)
Full order-book depth update.
MarketDataLite(Value)
Best-bid/offer update (lightweight).
OrderBookDelta(Value)
Order-book delta / incremental update.
PositionSnapshot(Value)
Initial snapshot of all portfolio positions (private channel).
PositionUpdate(Value)
Real-time position change (private channel).
BalanceSnapshot(Value)
Initial snapshot of account balances (private channel).
BalanceUpdate(Value)
Real-time balance change (private channel).
Trade(Value)
Trade execution event.
Heartbeat
Server heartbeat — no payload.
Other
Any server event not yet modelled by this SDK.
Trait Implementations§
Source§impl Clone for StreamDataEvent
impl Clone for StreamDataEvent
Source§fn clone(&self) -> StreamDataEvent
fn clone(&self) -> StreamDataEvent
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 moreAuto Trait Implementations§
impl Freeze for StreamDataEvent
impl RefUnwindSafe for StreamDataEvent
impl Send for StreamDataEvent
impl Sync for StreamDataEvent
impl Unpin for StreamDataEvent
impl UnsafeUnpin for StreamDataEvent
impl UnwindSafe for StreamDataEvent
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