decode_price_or_undef

Function decode_price_or_undef 

Source
pub fn decode_price_or_undef(value: i64, precision: u8) -> Price
Expand description

Decodes a price, returning PRICE_UNDEF if the value is undefined.

This is used for market data where undefined prices should pass through as PRICE_UNDEF rather than causing an error.