pub struct Kline<'a> {
pub start: u64,
pub end: u64,
pub interval: &'a str,
pub open: &'a str,
pub close: &'a str,
pub high: &'a str,
pub low: &'a str,
pub volume: Option<&'a str>,
pub turnover: Option<&'a str>,
pub confirm: bool,
pub timestamp: u64,
}Expand description
The (leveraged token) kline data.
Fields§
§start: u64The start timestamp (ms)
end: u64The end timestamp (ms). It is current timestamp if it does not reach to the end time of candle.
interval: &'a strKline interval.
open: &'a strOpen price.
close: &'a strClose price.
high: &'a strHighest price.
low: &'a strLowest price.
volume: Option<&'a str>Trade volume. Leveraged token does not have this field.
turnover: Option<&'a str>Turnover. Leveraged token does not have this field.
confirm: boolWeather the tick is ended or not.
timestamp: u64The timestamp (ms) of the last matched order in the candle.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Kline<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Kline<'a>
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<'a> Freeze for Kline<'a>
impl<'a> RefUnwindSafe for Kline<'a>
impl<'a> Send for Kline<'a>
impl<'a> Sync for Kline<'a>
impl<'a> Unpin for Kline<'a>
impl<'a> UnwindSafe for Kline<'a>
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