pub enum SubscriptionKind {
OrderBook {
instrument: InstrumentId,
depth: u32,
},
Quotes {
instrument: InstrumentId,
},
LastTrades {
instrument: InstrumentId,
},
LastCandle {
instrument: InstrumentId,
timeframe: Timeframe,
},
OrderState,
Portfolio,
Executions,
}Expand description
Kind of streaming subscription the connector should maintain.
Market data kinds carry the instrument. Account kinds (OrderState,
Portfolio, Executions) are per account and carry
nothing.
Variants§
OrderBook
Order book updates.
Fields
§
instrument: InstrumentIdThe instrument to follow.
Quotes
Best bid and ask updates.
Fields
§
instrument: InstrumentIdThe instrument to follow.
LastTrades
Trades printed on the market, by all participants.
Fields
§
instrument: InstrumentIdThe instrument to follow.
LastCandle
Updates of the current candle.
OrderState
State changes of the account’s own orders.
Portfolio
Portfolio, positions and balances updates.
Executions
Own fills, pushed as Event::Execution.
Trait Implementations§
Source§impl Clone for SubscriptionKind
impl Clone for SubscriptionKind
Source§fn clone(&self) -> SubscriptionKind
fn clone(&self) -> SubscriptionKind
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 moreSource§impl Debug for SubscriptionKind
impl Debug for SubscriptionKind
impl Eq for SubscriptionKind
Source§impl Hash for SubscriptionKind
impl Hash for SubscriptionKind
Source§impl PartialEq for SubscriptionKind
impl PartialEq for SubscriptionKind
Source§fn eq(&self, other: &SubscriptionKind) -> bool
fn eq(&self, other: &SubscriptionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscriptionKind
Auto Trait Implementations§
impl Freeze for SubscriptionKind
impl RefUnwindSafe for SubscriptionKind
impl Send for SubscriptionKind
impl Sync for SubscriptionKind
impl Unpin for SubscriptionKind
impl UnsafeUnpin for SubscriptionKind
impl UnwindSafe for SubscriptionKind
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