pub struct OKXFundingRateMsg {Show 13 fields
pub inst_type: Option<OKXInstrumentType>,
pub inst_id: Ustr,
pub funding_rate: Ustr,
pub next_funding_rate: Ustr,
pub min_funding_rate: Option<String>,
pub max_funding_rate: Option<String>,
pub sett_state: OKXSettlementState,
pub sett_funding_rate: Option<String>,
pub premium: Option<String>,
pub method: Option<String>,
pub funding_time: u64,
pub next_funding_time: u64,
pub ts: u64,
}Expand description
Funding rate data for perpetual swaps.
Fields§
§inst_type: Option<OKXInstrumentType>Instrument type.
inst_id: UstrInstrument ID.
funding_rate: UstrCurrent funding rate.
next_funding_rate: UstrPredicted next funding rate.
min_funding_rate: Option<String>Minimum funding rate.
max_funding_rate: Option<String>Maximum funding rate.
sett_state: OKXSettlementStateSettlement state.
sett_funding_rate: Option<String>Settlement funding rate.
Current premium.
method: Option<String>Funding rate calculation method.
funding_time: u64Funding time, Unix timestamp format in milliseconds.
next_funding_time: u64Next funding time, Unix timestamp format in milliseconds (used to determine funding interval).
ts: u64Message timestamp, Unix timestamp format in milliseconds.
Trait Implementations§
Source§impl Debug for OKXFundingRateMsg
impl Debug for OKXFundingRateMsg
Source§impl<'de> Deserialize<'de> for OKXFundingRateMsg
impl<'de> Deserialize<'de> for OKXFundingRateMsg
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 OKXFundingRateMsg
impl RefUnwindSafe for OKXFundingRateMsg
impl Send for OKXFundingRateMsg
impl Sync for OKXFundingRateMsg
impl Unpin for OKXFundingRateMsg
impl UnsafeUnpin for OKXFundingRateMsg
impl UnwindSafe for OKXFundingRateMsg
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more