pub struct OpenInterest {
pub info: Option<Value>,
pub symbol: String,
pub open_interest: f64,
pub open_interest_value: f64,
pub timestamp: u64,
}Expand description
Open interest data representing the total number of outstanding derivative contracts.
Fields§
§info: Option<Value>Raw API response data.
symbol: StringTrading pair symbol.
open_interest: f64Open interest amount (number of contracts).
open_interest_value: f64Notional value of open interest.
timestamp: u64Timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for OpenInterest
impl Clone for OpenInterest
Source§fn clone(&self) -> OpenInterest
fn clone(&self) -> OpenInterest
Returns a duplicate of the value. Read more
1.0.0 · 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 OpenInterest
impl Debug for OpenInterest
Source§impl Default for OpenInterest
impl Default for OpenInterest
Source§fn default() -> OpenInterest
fn default() -> OpenInterest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenInterest
impl<'de> Deserialize<'de> for OpenInterest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenInterest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenInterest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OpenInterest
impl Serialize for OpenInterest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OpenInterest
impl RefUnwindSafe for OpenInterest
impl Send for OpenInterest
impl Sync for OpenInterest
impl Unpin for OpenInterest
impl UnwindSafe for OpenInterest
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