pub struct OrderBook {
pub figi: String,
pub depth: i32,
pub is_consistent: bool,
pub bids: Vec<Order>,
pub asks: Vec<Order>,
pub time: Option<Timestamp>,
pub limit_up: Option<Quotation>,
pub limit_down: Option<Quotation>,
pub instrument_uid: String,
pub order_book_type: i32,
pub ticker: String,
pub class_code: String,
}Expand description
Пакет стаканов в рамках стрима.
Fields§
§figi: StringFIGI-идентификатор инструмента.
depth: i32Глубина стакана.
is_consistent: boolФлаг консистентности стакана. false — не все заявки попали в стакан из-за сетевых задержек или нарушения порядка доставки.
bids: Vec<Order>Массив предложений.
asks: Vec<Order>Массив спроса.
time: Option<Timestamp>Время формирования стакана в часовом поясе UTC по времени биржи.
limit_up: Option<Quotation>Верхний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
limit_down: Option<Quotation>Нижний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
instrument_uid: StringUID инструмента.
order_book_type: i32Тип стакана.
ticker: StringТикер инструмента.
class_code: StringКласс-код (секция торгов).
Implementations§
Source§impl OrderBook
impl OrderBook
Sourcepub fn order_book_type(&self) -> OrderBookType
pub fn order_book_type(&self) -> OrderBookType
Returns the enum value of order_book_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_order_book_type(&mut self, value: OrderBookType)
pub fn set_order_book_type(&mut self, value: OrderBookType)
Sets order_book_type to the provided enum value.
Trait Implementations§
Source§impl Message for OrderBook
impl Message for OrderBook
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for OrderBook
Auto Trait Implementations§
impl Freeze for OrderBook
impl RefUnwindSafe for OrderBook
impl Send for OrderBook
impl Sync for OrderBook
impl Unpin for OrderBook
impl UnsafeUnpin for OrderBook
impl UnwindSafe for OrderBook
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].