parse_ticker_to_funding_rate

Function parse_ticker_to_funding_rate 

Source
pub fn parse_ticker_to_funding_rate(
    msg: &DeribitTickerMsg,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> Option<FundingRateUpdate>
Expand description

Parses a Deribit ticker message into a Nautilus FundingRateUpdate.

Returns None if the instrument is not a perpetual or the funding rate is not available.