pub struct GetOrderBookResponse {Show 14 fields
pub figi: String,
pub depth: i32,
pub bids: Vec<Order>,
pub asks: Vec<Order>,
pub last_price: Option<Quotation>,
pub close_price: Option<Quotation>,
pub limit_up: Option<Quotation>,
pub limit_down: Option<Quotation>,
pub instrument_uid: String,
pub ticker: String,
pub class_code: String,
pub last_price_ts: Option<Timestamp>,
pub close_price_ts: Option<Timestamp>,
pub orderbook_ts: Option<Timestamp>,
}Expand description
Информация о стакане.
Fields§
§figi: StringFIGI-идентификатор инструмента.
depth: i32Глубина стакана.
bids: Vec<Order>Множество пар значений на покупку.
asks: Vec<Order>Множество пар значений на продажу.
last_price: Option<Quotation>Цена последней сделки за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
close_price: Option<Quotation>Цена закрытия за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
limit_up: Option<Quotation>Верхний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
limit_down: Option<Quotation>Нижний лимит цены за 1 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
instrument_uid: StringUID инструмента.
ticker: StringТикер инструмента.
class_code: StringКласс-код (секция торгов).
last_price_ts: Option<Timestamp>Время получения цены последней сделки.
close_price_ts: Option<Timestamp>Время получения цены закрытия.
orderbook_ts: Option<Timestamp>Время формирования стакана на бирже.
Trait Implementations§
Source§impl Clone for GetOrderBookResponse
impl Clone for GetOrderBookResponse
Source§fn clone(&self) -> GetOrderBookResponse
fn clone(&self) -> GetOrderBookResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetOrderBookResponse
impl Debug for GetOrderBookResponse
Source§impl Default for GetOrderBookResponse
impl Default for GetOrderBookResponse
Source§impl Message for GetOrderBookResponse
impl Message for GetOrderBookResponse
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.Source§impl PartialEq for GetOrderBookResponse
impl PartialEq for GetOrderBookResponse
Source§fn eq(&self, other: &GetOrderBookResponse) -> bool
fn eq(&self, other: &GetOrderBookResponse) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetOrderBookResponse
Auto Trait Implementations§
impl Freeze for GetOrderBookResponse
impl RefUnwindSafe for GetOrderBookResponse
impl Send for GetOrderBookResponse
impl Sync for GetOrderBookResponse
impl Unpin for GetOrderBookResponse
impl UnsafeUnpin for GetOrderBookResponse
impl UnwindSafe for GetOrderBookResponse
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].