pub struct Ohlc {
pub close: Option<String>,
pub epoch: Option<DateTime<Utc>>,
pub granularity: Option<i64>,
pub high: Option<String>,
pub id: Option<String>,
pub low: Option<String>,
pub open: Option<String>,
pub open_time: Option<DateTime<Utc>>,
pub pip_size: Option<i64>,
pub symbol: Option<String>,
}
Expand description
Historic tick data for a given symbol. Note: this will always return the latest possible set of ticks with accordance to the parameters specified.
Fields§
§close: Option<String>
It is the close price value for the given time\n
epoch: Option<DateTime<Utc>>
It is an epoch value\n
granularity: Option<i64>
Granularity\n
high: Option<String>
It is the high price value for the given time\n
id: Option<String>
Subscription unique identifier. Can be passed to the forget
API call to unsubscribe.\n
low: Option<String>
It is the low price value for the given time\n
open: Option<String>
It is the open price value for the given time\n
open_time: Option<DateTime<Utc>>
It is an epoch of open time\n
pip_size: Option<i64>
PIP size\n
symbol: Option<String>
Symbol name\n
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ohlc
impl<'de> Deserialize<'de> for Ohlc
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Ohlc
impl RefUnwindSafe for Ohlc
impl Send for Ohlc
impl Sync for Ohlc
impl Unpin for Ohlc
impl UnwindSafe for Ohlc
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
Mutably borrows from an owned value. Read more