Struct tinkoff_invest_types::Candle
source · pub struct Candle {
pub figi: String,
pub interval: i32,
pub open: Option<Quotation>,
pub high: Option<Quotation>,
pub low: Option<Quotation>,
pub close: Option<Quotation>,
pub volume: i64,
pub time: Option<Timestamp>,
pub last_trade_ts: Option<Timestamp>,
pub instrument_uid: String,
}
Expand description
Пакет свечей в рамках стрима.
Fields§
§figi: String
Figi-идентификатор инструмента.
interval: i32
Интервал свечи.
open: Option<Quotation>
Цена открытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
high: Option<Quotation>
Максимальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
low: Option<Quotation>
Минимальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
close: Option<Quotation>
Цена закрытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
volume: i64
Объём сделок в лотах.
time: Option<Timestamp>
Время начала интервала свечи в часовом поясе UTC.
last_trade_ts: Option<Timestamp>
Время последней сделки, вошедшей в свечу в часовом поясе UTC.
instrument_uid: String
Uid инструмента
Implementations§
source§impl Candle
impl Candle
sourcepub fn interval(&self) -> SubscriptionInterval
pub fn interval(&self) -> SubscriptionInterval
Returns the enum value of interval
, or the default if the field is set to an invalid enum value.
sourcepub fn set_interval(&mut self, value: SubscriptionInterval)
pub fn set_interval(&mut self, value: SubscriptionInterval)
Sets interval
to the provided enum value.
Trait Implementations§
source§impl Message for Candle
impl Message for Candle
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for Candle
impl PartialEq for Candle
impl StructuralPartialEq for Candle
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnwindSafe for Candle
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> 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