pub struct LongShortRatio {
pub symbol: Option<String>,
pub timestamp: Option<i64>,
pub datetime: Option<String>,
pub timeframe: Option<String>,
pub long_short_ratio: Option<f64>,
pub raw: Value,
}Expand description
Unified long/short ratio (fetchLongShortRatio, and each row of
fetchLongShortRatioHistory). Mirrors the TS LongShortRatio interface.
Fields§
§symbol: Option<String>§timestamp: Option<i64>§datetime: Option<String>§timeframe: Option<String>§long_short_ratio: Option<f64>§raw: ValueImplementations§
Source§impl LongShortRatio
impl LongShortRatio
pub fn from_value(v: Value) -> LongShortRatio
Trait Implementations§
Source§impl Clone for LongShortRatio
impl Clone for LongShortRatio
Source§fn clone(&self) -> LongShortRatio
fn clone(&self) -> LongShortRatio
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LongShortRatio
impl Debug for LongShortRatio
Source§impl Default for LongShortRatio
impl Default for LongShortRatio
Source§fn default() -> LongShortRatio
fn default() -> LongShortRatio
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for LongShortRatio
impl Freeze for LongShortRatio
impl Move for LongShortRatio
impl RefUnwindSafe for LongShortRatio
impl Send for LongShortRatio
impl Sync for LongShortRatio
impl Unpin for LongShortRatio
impl UnsafeUnpin for LongShortRatio
impl UnwindSafe for LongShortRatio
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