Skip to main content

parse_public_ws_data

Function parse_public_ws_data 

Source
pub fn parse_public_ws_data(
    payload: &WsSubscriptionPayload,
) -> Result<DerivePublicWsData>
Expand description

Parses a Derive public subscription payload into a typed market data update.

ยงErrors

Returns an error when the channel is unsupported or params.data does not match the channel payload shape.