pub struct GetOrderBookResponse {
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 last_price_ts: Option<Timestamp>,
pub close_price_ts: Option<Timestamp>,
pub orderbook_ts: Option<Timestamp>,
pub instrument_uid: String,
}
Expand description
Информация о стакане.
Fields§
§figi: String
FIGI-идентификатор инструмента.
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 инструмент. Чтобы получить стоимость лота, нужно умножить на лотность инструмента. Подробнее про перевод цен в валюту.
last_price_ts: Option<Timestamp>
Время получения цены последней сделки.
close_price_ts: Option<Timestamp>
Время получения цены закрытия.
orderbook_ts: Option<Timestamp>
Время формирования стакана на бирже.
instrument_uid: String
UID инструмента.
Trait Implementations§
source§impl Clone for GetOrderBookResponse
impl Clone for GetOrderBookResponse
source§fn clone(&self) -> GetOrderBookResponse
fn clone(&self) -> GetOrderBookResponse
1.0.0 · 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
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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request