pub trait StreamSelector<Instrument, Kind>{
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§
type SnapFetcher: SnapshotFetcher<Self, Kind>
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".
Implementors§
Source§impl<Instrument, Server> StreamSelector<Instrument, Candles> for Massive<Server>
Per-second and per-minute aggregates. Any other interval is refused when subscribing.
impl<Instrument, Server> StreamSelector<Instrument, Candles> for Massive<Server>
Per-second and per-minute aggregates. Any other interval is refused when subscribing.
type SnapFetcher = NoInitialSnapshots
type Stream = SharedStream<MassiveAttachment, MassiveTransformer<Massive<Server>, <Instrument as InstrumentData>::Key, Candles>>
Source§impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Alpaca<Server>
impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Alpaca<Server>
type SnapFetcher = NoInitialSnapshots
type Stream = SharedStream<AlpacaAttachment, AlpacaQuoteTransformer<Alpaca<Server>, <Instrument as InstrumentData>::Key, OrderBooksL1>>
Source§impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Bybit<Server>
impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Bybit<Server>
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Bybit<Server>, <Instrument as InstrumentData>::Key, OrderBooksL1, BybitPayload<BybitOrderBookInner>>>
Source§impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Lse<Server>
impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Lse<Server>
type SnapFetcher = NoInitialSnapshots
type Stream = SharedStream<LseAttachment, LseTransformer<Lse<Server>, <Instrument as InstrumentData>::Key, OrderBooksL1>>
Source§impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Massive<Server>
The quotes channel, as a top of book. See OrderBooksL1’s
MassiveKind implementation for how a quote maps onto one.
impl<Instrument, Server> StreamSelector<Instrument, OrderBooksL1> for Massive<Server>
The quotes channel, as a top of book. See OrderBooksL1’s
MassiveKind implementation for how a quote maps onto one.