pub struct ProtoOaTrendbar {
pub volume: i64,
pub period: Option<i32>,
pub low: Option<i64>,
pub delta_open: Option<u64>,
pub delta_close: Option<u64>,
pub delta_high: Option<u64>,
pub utc_timestamp_in_minutes: Option<u32>,
}Expand description
- Historical Trendbar entity.
Fields§
§volume: i64Bar volume in ticks.
period: Option<i32>Bar period.
low: Option<i64>Low price of the bar.
delta_open: Option<u64>Delta between open and low price. open = low + deltaOpen.
delta_close: Option<u64>Delta between close and low price. close = low + deltaClose.
delta_high: Option<u64>Delta between high and low price. high = low + deltaHigh.
utc_timestamp_in_minutes: Option<u32>The Unix time in minutes of the bar, equal to the timestamp of the open tick.
Implementations§
Source§impl ProtoOaTrendbar
impl ProtoOaTrendbar
Sourcepub fn period(&self) -> ProtoOaTrendbarPeriod
pub fn period(&self) -> ProtoOaTrendbarPeriod
Returns the enum value of period, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_period(&mut self, value: ProtoOaTrendbarPeriod)
pub fn set_period(&mut self, value: ProtoOaTrendbarPeriod)
Sets period to the provided enum value.
Sourcepub fn delta_open(&self) -> u64
pub fn delta_open(&self) -> u64
Returns the value of delta_open, or the default value if delta_open is unset.
Sourcepub fn delta_close(&self) -> u64
pub fn delta_close(&self) -> u64
Returns the value of delta_close, or the default value if delta_close is unset.
Sourcepub fn delta_high(&self) -> u64
pub fn delta_high(&self) -> u64
Returns the value of delta_high, or the default value if delta_high is unset.
Sourcepub fn utc_timestamp_in_minutes(&self) -> u32
pub fn utc_timestamp_in_minutes(&self) -> u32
Returns the value of utc_timestamp_in_minutes, or the default value if utc_timestamp_in_minutes is unset.
Trait Implementations§
Source§impl Clone for ProtoOaTrendbar
impl Clone for ProtoOaTrendbar
Source§fn clone(&self) -> ProtoOaTrendbar
fn clone(&self) -> ProtoOaTrendbar
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaTrendbar
impl Debug for ProtoOaTrendbar
Source§impl Default for ProtoOaTrendbar
impl Default for ProtoOaTrendbar
Source§impl<'de> Deserialize<'de> for ProtoOaTrendbar
impl<'de> Deserialize<'de> for ProtoOaTrendbar
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for ProtoOaTrendbar
impl Hash for ProtoOaTrendbar
Source§impl Message for ProtoOaTrendbar
impl Message for ProtoOaTrendbar
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 ProtoOaTrendbar
impl PartialEq for ProtoOaTrendbar
Source§impl Serialize for ProtoOaTrendbar
impl Serialize for ProtoOaTrendbar
impl Copy for ProtoOaTrendbar
impl Eq for ProtoOaTrendbar
impl StructuralPartialEq for ProtoOaTrendbar
Auto Trait Implementations§
impl Freeze for ProtoOaTrendbar
impl RefUnwindSafe for ProtoOaTrendbar
impl Send for ProtoOaTrendbar
impl Sync for ProtoOaTrendbar
impl Unpin for ProtoOaTrendbar
impl UnwindSafe for ProtoOaTrendbar
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.