pub struct GetOpenInterestResponse {
pub open_interest: Option<String>,
pub open_interest_base: Option<String>,
pub open_interest_notional: Option<String>,
pub trading_pair_id: Option<Uuid>,
pub updated_at: Option<String>,
}Expand description
Latest public open interest for a trading pair.
JSON schema
{
"description": "Latest public open interest for a trading pair.",
"type": "object",
"properties": {
"openInterest": {
"description": "Current open interest in base-asset units",
"examples": [
"12345.67"
],
"type": [
"string",
"null"
]
},
"openInterestBase": {
"description": "Current open interest in base-asset units",
"examples": [
"12345.67"
],
"type": [
"string",
"null"
]
},
"openInterestNotional": {
"description": "Current open interest notional in quote units",
"examples": [
"1172836500.00"
],
"type": [
"string",
"null"
]
},
"tradingPairId": {
"description": "Trading pair UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"updatedAt": {
"description": "Timestamp of the latest open interest sample (ms since epoch)",
"examples": [
"1736742000000"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§open_interest: Option<String>Current open interest in base-asset units
open_interest_base: Option<String>Current open interest in base-asset units
open_interest_notional: Option<String>Current open interest notional in quote units
trading_pair_id: Option<Uuid>Trading pair UUID
updated_at: Option<String>Timestamp of the latest open interest sample (ms since epoch)
Trait Implementations§
Source§impl Clone for GetOpenInterestResponse
impl Clone for GetOpenInterestResponse
Source§fn clone(&self) -> GetOpenInterestResponse
fn clone(&self) -> GetOpenInterestResponse
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 GetOpenInterestResponse
impl Debug for GetOpenInterestResponse
Source§impl Default for GetOpenInterestResponse
impl Default for GetOpenInterestResponse
Source§impl<'de> Deserialize<'de> for GetOpenInterestResponse
impl<'de> Deserialize<'de> for GetOpenInterestResponse
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 GetOpenInterestResponse
impl RefUnwindSafe for GetOpenInterestResponse
impl Send for GetOpenInterestResponse
impl Sync for GetOpenInterestResponse
impl Unpin for GetOpenInterestResponse
impl UnsafeUnpin for GetOpenInterestResponse
impl UnwindSafe for GetOpenInterestResponse
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