pub fn parse_price(value: &str, precision: u8) -> Result<Price>Expand description
Converts a decimal string into a Nautilus [Price] at the requested precision.
ยงErrors
Returns an error if the string is not a decimal, if precision exceeds
MAX_DECIMALS, or if the resulting value is out of range.