Struct tinkoff_invest_types::HistoricCandle
source · pub struct HistoricCandle {
pub open: Option<Quotation>,
pub high: Option<Quotation>,
pub low: Option<Quotation>,
pub close: Option<Quotation>,
pub volume: i64,
pub time: Option<Timestamp>,
pub is_complete: bool,
pub candle_source: i32,
}
Expand description
Информация о свече.
Fields§
§open: Option<Quotation>
Цена открытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
high: Option<Quotation>
Максимальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
low: Option<Quotation>
Минимальная цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
close: Option<Quotation>
Цена закрытия за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать информацию со страницы
volume: i64
Объём торгов в лотах.
time: Option<Timestamp>
Время свечи в часовом поясе UTC.
is_complete: bool
Признак завершённости свечи. false значит, свеча за текущие интервал ещё сформирована не полностью.
candle_source: i32
Тип источника свечи
Implementations§
source§impl HistoricCandle
impl HistoricCandle
sourcepub fn candle_source(&self) -> CandleSource
pub fn candle_source(&self) -> CandleSource
Returns the enum value of candle_source
, or the default if the field is set to an invalid enum value.
sourcepub fn set_candle_source(&mut self, value: CandleSource)
pub fn set_candle_source(&mut self, value: CandleSource)
Sets candle_source
to the provided enum value.
Trait Implementations§
source§impl Clone for HistoricCandle
impl Clone for HistoricCandle
source§fn clone(&self) -> HistoricCandle
fn clone(&self) -> HistoricCandle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HistoricCandle
impl Debug for HistoricCandle
source§impl Default for HistoricCandle
impl Default for HistoricCandle
source§impl Message for HistoricCandle
impl Message for HistoricCandle
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 HistoricCandle
impl PartialEq for HistoricCandle
source§fn eq(&self, other: &HistoricCandle) -> bool
fn eq(&self, other: &HistoricCandle) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HistoricCandle
Auto Trait Implementations§
impl Freeze for HistoricCandle
impl RefUnwindSafe for HistoricCandle
impl Send for HistoricCandle
impl Sync for HistoricCandle
impl Unpin for HistoricCandle
impl UnwindSafe for HistoricCandle
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