Function parse_price

Source
pub fn parse_price(value: f64, precision: u8) -> Price
Expand description

Parses a Nautilus price from the given value.

If value is outside the valid range, then will return an [ERROR_PRICE].