pub struct MarketDataConfig {
pub api: FinamApiConfig,
pub source: Arc<str>,
pub subscribe_ack_timeout: Duration,
}Expand description
Market data connector config. Not bound to an account.
Used with MarketDataConnector::start.
Fields§
§api: FinamApiConfigCredentials and endpoint.
source: Arc<str>Envelope source label, e.g. "finam-md".
subscribe_ack_timeout: DurationHow long subscribe_* waits for the stream to open (default 3 seconds).
The call returns as soon as the broker has opened the stream: what happens after that is delivered. A
refusal (unknown symbol, no permission) is returned as Rejected. A stream that has not opened in time
leaves the subscription connecting and the call returns Ok, unlike the other brokers: Finam is gRPC,
and a gRPC server may send the headers of a quiet stream only together with its first message, so a
healthy stream of orders can look “not open” until the first order. Until the stream is open, events of
the broker are not delivered: check
MarketDataConnector::sub_status. Not verified against the live
server; if it sends the headers at once, this will become an error like at the other brokers.
Implementations§
Trait Implementations§
Source§impl Clone for MarketDataConfig
impl Clone for MarketDataConfig
Source§fn clone(&self) -> MarketDataConfig
fn clone(&self) -> MarketDataConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MarketDataConfig
impl !UnwindSafe for MarketDataConfig
impl Freeze for MarketDataConfig
impl Send for MarketDataConfig
impl Sync for MarketDataConfig
impl Unpin for MarketDataConfig
impl UnsafeUnpin for MarketDataConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].