pub fn parse_funding_rate_msg(
msg: &OKXFundingRateMsg,
instrument_id: InstrumentId,
ts_init: UnixNanos,
) -> Result<FundingRateUpdate>Expand description
Parses an OKXFundingRateMsg into a [FundingRateUpdate].
ยงErrors
Returns an error if the funding_rate field fails
to parse into a Decimal value or next_funding_time fails to parse into a positive, in bounds interval.