StreamSelector

Trait StreamSelector 

Source
pub trait StreamSelector<Instrument, Kind>
where Self: Connector, Instrument: InstrumentData, Kind: SubscriptionKind,
{ type SnapFetcher: SnapshotFetcher<Self, Kind>; type Stream: MarketStream<Self, Instrument, Kind>; }
Expand description

Defines the MarketStream kind associated with an exchange Subscription SubscriptionKind.

§Notes

Must be implemented by an exchange Connector if it supports a specific SubscriptionKind.

Required Associated Types§

Source

type SnapFetcher: SnapshotFetcher<Self, Kind>

Source

type Stream: MarketStream<Self, Instrument, Kind>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Instrument> StreamSelector<Instrument, OrderBooksL1> for Kraken
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, OrderBooksL2> for BinanceFuturesUsd
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, OrderBooksL2> for BinanceSpot
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, Liquidations> for BinanceFuturesUsd
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for Bitfinex
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for Bitmex
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for Coinbase
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for Kraken
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for Okx
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioFuturesBtc
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioFuturesUsd
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioOptions
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioPerpetualsBtc
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioPerpetualsUsd
where Instrument: InstrumentData,

Source§

impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioSpot
where Instrument: InstrumentData,

Source§

impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Binance<Server>
where Instrument: InstrumentData, Server: ExchangeServer + Debug + Send + Sync,

Source§

impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Bybit<Server>
where Instrument: InstrumentData, Server: ExchangeServer + Debug + Send + Sync,

Source§

impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL2> for Bybit<Server>
where Instrument: InstrumentData, Server: ExchangeServer + Debug + Send + Sync,

Source§

impl<Instrument, Server> StreamSelector<Instrument, PublicTrades> for Binance<Server>
where Instrument: InstrumentData, Server: ExchangeServer + Debug + Send + Sync,

Source§

impl<Instrument, Server> StreamSelector<Instrument, PublicTrades> for Bybit<Server>
where Instrument: InstrumentData, Server: ExchangeServer + Debug + Send + Sync,