pub struct OrderBooksL2;Expand description
Barter Subscription SubscriptionKind that yields L2
OrderBookEvent market events
Level 2 refers to an OrderBook with orders at each price level aggregated.
Trait Implementations§
Source§impl Clone for OrderBooksL2
impl Clone for OrderBooksL2
Source§fn clone(&self) -> OrderBooksL2
fn clone(&self) -> OrderBooksL2
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 OrderBooksL2
impl Debug for OrderBooksL2
Source§impl Default for OrderBooksL2
impl Default for OrderBooksL2
Source§fn default() -> OrderBooksL2
fn default() -> OrderBooksL2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderBooksL2
impl<'de> Deserialize<'de> for OrderBooksL2
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OrderBooksL2
impl Display for OrderBooksL2
Source§impl<InstrumentKey> ExchangeTransformer<Binance<BinanceServerFuturesUsd>, InstrumentKey, OrderBooksL2> for BinanceFuturesUsdOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey> ExchangeTransformer<Binance<BinanceServerFuturesUsd>, InstrumentKey, OrderBooksL2> for BinanceFuturesUsdOrderBooksL2Transformer<InstrumentKey>
Source§fn init<'life0, 'async_trait>(
instrument_map: Map<InstrumentKey>,
initial_snapshots: &'life0 [MarketEvent<InstrumentKey, OrderBookEvent>],
__arg2: UnboundedSender<WsMessage>,
) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
instrument_map: Map<InstrumentKey>,
initial_snapshots: &'life0 [MarketEvent<InstrumentKey, OrderBookEvent>],
__arg2: UnboundedSender<WsMessage>,
) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<InstrumentKey> ExchangeTransformer<Binance<BinanceServerSpot>, InstrumentKey, OrderBooksL2> for BinanceSpotOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey> ExchangeTransformer<Binance<BinanceServerSpot>, InstrumentKey, OrderBooksL2> for BinanceSpotOrderBooksL2Transformer<InstrumentKey>
Source§fn init<'life0, 'async_trait>(
instrument_map: Map<InstrumentKey>,
initial_snapshots: &'life0 [MarketEvent<InstrumentKey, OrderBookEvent>],
__arg2: UnboundedSender<WsMessage>,
) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
instrument_map: Map<InstrumentKey>,
initial_snapshots: &'life0 [MarketEvent<InstrumentKey, OrderBookEvent>],
__arg2: UnboundedSender<WsMessage>,
) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<InstrumentKey, Server> ExchangeTransformer<Bybit<Server>, InstrumentKey, OrderBooksL2> for BybitOrderBooksL2Transformer<InstrumentKey>
impl<InstrumentKey, Server> ExchangeTransformer<Bybit<Server>, InstrumentKey, OrderBooksL2> for BybitOrderBooksL2Transformer<InstrumentKey>
Source§fn init<'life0, 'async_trait>(
instrument_map: Map<InstrumentKey>,
_: &'life0 [MarketEvent<InstrumentKey, OrderBookEvent>],
__arg2: UnboundedSender<WsMessage>,
) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
instrument_map: Map<InstrumentKey>,
_: &'life0 [MarketEvent<InstrumentKey, OrderBookEvent>],
__arg2: UnboundedSender<WsMessage>,
) -> Pin<Box<dyn Future<Output = Result<Self, DataError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Hash for OrderBooksL2
impl Hash for OrderBooksL2
Source§impl Ord for OrderBooksL2
impl Ord for OrderBooksL2
Source§fn cmp(&self, other: &OrderBooksL2) -> Ordering
fn cmp(&self, other: &OrderBooksL2) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OrderBooksL2
impl PartialEq for OrderBooksL2
Source§impl PartialOrd for OrderBooksL2
impl PartialOrd for OrderBooksL2
Source§impl Serialize for OrderBooksL2
impl Serialize for OrderBooksL2
Source§impl SnapshotFetcher<Binance<BinanceServerFuturesUsd>, OrderBooksL2> for BinanceFuturesUsdOrderBooksL2SnapshotFetcher
impl SnapshotFetcher<Binance<BinanceServerFuturesUsd>, OrderBooksL2> for BinanceFuturesUsdOrderBooksL2SnapshotFetcher
fn fetch_snapshots<Instrument>(
subscriptions: &[Subscription<BinanceFuturesUsd, Instrument, OrderBooksL2>],
) -> impl Future<Output = Result<Vec<MarketEvent<Instrument::Key, OrderBookEvent>>, SocketError>> + Sendwhere
Instrument: InstrumentData,
Subscription<BinanceFuturesUsd, Instrument, OrderBooksL2>: Identifier<BinanceMarket>,
Source§impl SnapshotFetcher<Binance<BinanceServerSpot>, OrderBooksL2> for BinanceSpotOrderBooksL2SnapshotFetcher
impl SnapshotFetcher<Binance<BinanceServerSpot>, OrderBooksL2> for BinanceSpotOrderBooksL2SnapshotFetcher
fn fetch_snapshots<Instrument>(
subscriptions: &[Subscription<BinanceSpot, Instrument, OrderBooksL2>],
) -> impl Future<Output = Result<Vec<MarketEvent<Instrument::Key, OrderBookEvent>>, SocketError>> + Sendwhere
Instrument: InstrumentData,
Subscription<BinanceSpot, Instrument, OrderBooksL2>: Identifier<BinanceMarket>,
Source§impl<Instrument> StreamSelector<Instrument, OrderBooksL2> for BinanceFuturesUsdwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, OrderBooksL2> for BinanceFuturesUsdwhere
Instrument: InstrumentData,
Source§impl<Instrument> StreamSelector<Instrument, OrderBooksL2> for BinanceSpotwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, OrderBooksL2> for BinanceSpotwhere
Instrument: InstrumentData,
Source§impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL2> for Bybit<Server>
impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL2> for Bybit<Server>
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, BybitOrderBooksL2Transformer<<Instrument as InstrumentData>::Key>>
Source§impl SubscriptionKind for OrderBooksL2
impl SubscriptionKind for OrderBooksL2
impl Copy for OrderBooksL2
impl Eq for OrderBooksL2
impl StructuralPartialEq for OrderBooksL2
Auto Trait Implementations§
impl Freeze for OrderBooksL2
impl RefUnwindSafe for OrderBooksL2
impl Send for OrderBooksL2
impl Sync for OrderBooksL2
impl Unpin for OrderBooksL2
impl UnwindSafe for OrderBooksL2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more