pub fn decode_price_or_undef(value: i64, precision: u8) -> Result<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.
ยงErrors
Returns an error if a defined value cannot be represented exactly at precision.