Structs§
Functions§
- f64_
to_ decimal - Convert an f64 to Decimal for places where Decimal is required. Returns Decimal::ZERO if the conversion fails.
- get_
timestamp_ millis - parse_
deribit_ 🔒expiry - perp_
underlying - Extract the underlying from a perp symbol (e.g., “BTC-PERP” -> “BTC”, “BTC” -> “BTC”).
Returns
Nonefor option symbols or other hyphenated symbols that aren’t perps. - to_
contract_ units_ decimal - Convert human-readable size (Decimal) to contract units (Decimal). This is a re-export for convenience within the crate.
- to_
human_ readable_ decimal - Convert contract units (Decimal) to human-readable size (Decimal). This is a re-export for convenience within the crate.
- validate_
order_ request