pub struct Subscription {
pub symbols: Symbols,
pub schema: Schema,
pub stype_in: SType,
pub start: Option<OffsetDateTime>,
pub id: Option<u32>,
/* private fields */
}live only.Expand description
A subscription for real-time or intraday historical data.
Fields§
§symbols: SymbolsThe symbols of the instruments to subscribe to.
schema: SchemaThe data record schema of data to subscribe to.
stype_in: STypeThe symbology type of the symbols in symbols.
start: Option<OffsetDateTime>The inclusive start of subscription replay.
Pass OffsetDateTime::UNIX_EPOCH to request all available data.
When None, only real-time data is sent.
Cannot be specified after the session is started with LiveClient::start.
See Intraday Replay.
id: Option<u32>The optional numerical identifier associated with this subscription.
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub fn builder() -> SubscriptionBuilder<((), (), (), (), (), ())>
pub fn builder() -> SubscriptionBuilder<((), (), (), (), (), ())>
Create a builder for building Subscription.
On the builder, call .symbols(...), .schema(...), .stype_in(...)(optional), .start(...)(optional), .use_snapshot(...)(optional), .id(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Subscription.
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more