Skip to main content

Module order_types

Module order_types 

Source

Structs§

ParsedSymbol
WsOrderMessage
WsOrderRequest

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 None for 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