pub struct Hip4OpenInterestRecord {
pub coin: String,
pub symbol: Option<String>,
pub outcome_id: Option<i64>,
pub side: Option<i32>,
pub timestamp: String,
pub open_interest: String,
pub mark_price: Option<String>,
pub oracle_price: Option<String>,
pub mid_price: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
HIP-4 open-interest record (mirrors HIP-3 OI plus outcome_id and side).
Fields§
§coin: String§symbol: Option<String>§outcome_id: Option<i64>§side: Option<i32>§timestamp: String§open_interest: String§mark_price: Option<String>Implied probability in [0, 1], not a USD price. The field name
matches perp/HIP-3 because the Hyperliquid upstream uses markPx for
both. To convert to a percentage, multiply by 100.
oracle_price: Option<String>§mid_price: Option<String>§extra: HashMap<String, Value>Trait Implementations§
Source§impl Clone for Hip4OpenInterestRecord
impl Clone for Hip4OpenInterestRecord
Source§fn clone(&self) -> Hip4OpenInterestRecord
fn clone(&self) -> Hip4OpenInterestRecord
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 Hip4OpenInterestRecord
impl Debug for Hip4OpenInterestRecord
Source§impl<'de> Deserialize<'de> for Hip4OpenInterestRecord
impl<'de> Deserialize<'de> for Hip4OpenInterestRecord
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 Hip4OpenInterestRecord
impl RefUnwindSafe for Hip4OpenInterestRecord
impl Send for Hip4OpenInterestRecord
impl Sync for Hip4OpenInterestRecord
impl Unpin for Hip4OpenInterestRecord
impl UnsafeUnpin for Hip4OpenInterestRecord
impl UnwindSafe for Hip4OpenInterestRecord
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