Skip to main content

parse_mark_price

Function parse_mark_price 

Source
pub fn parse_mark_price(
    msg: &BinanceFuturesMarkPriceMsg,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> BinanceWsResult<(MarkPriceUpdate, IndexPriceUpdate, FundingRateUpdate)>
Expand description

Parses a mark price message into MarkPriceUpdate, IndexPriceUpdate, and FundingRateUpdate.

ยงErrors

Returns an error if parsing fails.