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,
pub volume_buy: i64,
pub volume_sell: i64,
}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Тип источника свечи
volume_buy: i64Объем торгов на покупку.
volume_sell: i64Объём торгов на продажу.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HistoricCandle
Source§impl Debug for HistoricCandle
impl Debug for HistoricCandle
Source§impl Default for HistoricCandle
impl Default for HistoricCandle
impl Eq for HistoricCandle
Source§impl Hash for HistoricCandle
impl Hash 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(&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 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 UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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].