#[repr(i32)]pub enum Timeframe {
TIMEFRAME_UNSPECIFIED = 0,
SEC_1 = 1,
MIN_1 = 2,
MIN_5 = 3,
MIN_15 = 4,
MIN_30 = 5,
HOUR_1 = 6,
HOUR_4 = 7,
DAY_1 = 8,
HOUR_12 = 9,
WEEK_1 = 10,
MONTH_1 = 11,
}Expand description
Timeframe represents an OHLCV candle bucket.
Most values are fixed-duration buckets. MONTH_1 is calendar-based (UTC
month boundaries).
Variants§
TIMEFRAME_UNSPECIFIED = 0
SEC_1 = 1
1 second
MIN_1 = 2
1 minute
MIN_5 = 3
5 minutes
MIN_15 = 4
15 minutes
MIN_30 = 5
30 minutes
HOUR_1 = 6
1 hour
HOUR_4 = 7
4 hours
DAY_1 = 8
1 day
HOUR_12 = 9
12 hours
WEEK_1 = 10
1 week
MONTH_1 = 11
1 month (calendar month, UTC)
Implementations§
Source§impl Timeframe
impl Timeframe
Sourcepub const TimeframeUnspecified: Self = Self::TIMEFRAME_UNSPECIFIED
pub const TimeframeUnspecified: Self = Self::TIMEFRAME_UNSPECIFIED
Idiomatic alias for Self::TIMEFRAME_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Sec1: Self = Self::SEC_1
pub const Sec1: Self = Self::SEC_1
Idiomatic alias for Self::SEC_1; Debug prints the variant name.
Sourcepub const Min1: Self = Self::MIN_1
pub const Min1: Self = Self::MIN_1
Idiomatic alias for Self::MIN_1; Debug prints the variant name.
Sourcepub const Min5: Self = Self::MIN_5
pub const Min5: Self = Self::MIN_5
Idiomatic alias for Self::MIN_5; Debug prints the variant name.
Sourcepub const Min15: Self = Self::MIN_15
pub const Min15: Self = Self::MIN_15
Idiomatic alias for Self::MIN_15; Debug prints the variant name.
Sourcepub const Min30: Self = Self::MIN_30
pub const Min30: Self = Self::MIN_30
Idiomatic alias for Self::MIN_30; Debug prints the variant name.
Sourcepub const Hour1: Self = Self::HOUR_1
pub const Hour1: Self = Self::HOUR_1
Idiomatic alias for Self::HOUR_1; Debug prints the variant name.
Sourcepub const Hour4: Self = Self::HOUR_4
pub const Hour4: Self = Self::HOUR_4
Idiomatic alias for Self::HOUR_4; Debug prints the variant name.
Sourcepub const Day1: Self = Self::DAY_1
pub const Day1: Self = Self::DAY_1
Idiomatic alias for Self::DAY_1; Debug prints the variant name.
Sourcepub const Hour12: Self = Self::HOUR_12
pub const Hour12: Self = Self::HOUR_12
Idiomatic alias for Self::HOUR_12; Debug prints the variant name.
Sourcepub const Week1: Self = Self::WEEK_1
pub const Week1: Self = Self::WEEK_1
Idiomatic alias for Self::WEEK_1; Debug prints the variant name.
Sourcepub const Month1: Self = Self::MONTH_1
pub const Month1: Self = Self::MONTH_1
Idiomatic alias for Self::MONTH_1; Debug prints the variant name.
Trait Implementations§
impl Copy for Timeframe
Source§impl<'de> Deserialize<'de> for Timeframe
impl<'de> Deserialize<'de> for Timeframe
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for Timeframe
impl Enumeration for Timeframe
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for Timeframe
Source§impl ProtoElemJson for Timeframe
impl ProtoElemJson for Timeframe
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
impl StructuralPartialEq for Timeframe
Auto Trait Implementations§
impl Freeze for Timeframe
impl RefUnwindSafe for Timeframe
impl Send for Timeframe
impl Sync for Timeframe
impl Unpin for Timeframe
impl UnsafeUnpin for Timeframe
impl UnwindSafe for Timeframe
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.