pub fn decode_optional_price(value: i64, precision: u8) -> Result<Option<Price>>Expand description
Decodes a price from the given optional value, expressed in units of 1e-9.
Databento uses i64::MAX as a sentinel value for unset/null prices (see
UNDEF_PRICE).
ยงErrors
Returns an error if a defined value cannot be represented exactly at precision.