Skip to main content

parse_order_response

Function parse_order_response 

Source
pub fn parse_order_response(text: &str) -> Result<Option<KrakenSpotWsMessage>>
Expand description

Parses a raw WebSocket JSON string and returns KrakenSpotWsMessage::OrderResponse if the message is an order-method response envelope, or Ok(None) for unrecognised messages.

ยงErrors

Returns an error if the message appears to be an order response but cannot be deserialized.