Expand description
Parsing utilities that convert Betfair payloads into Nautilus domain models.
Functionsยง
- extract_
market_ id - Extracts the Betfair market ID from a Nautilus instrument ID.
- extract_
selection_ id - Extracts the selection ID and handicap from a Nautilus instrument ID.
- make_
customer_ order_ ref - Truncates a client order ID to a Betfair
customer_order_ref. - make_
customer_ order_ ref_ legacy - Legacy truncation that takes the first 32 characters.
- make_
instrument_ id - Constructs a Nautilus [
InstrumentId] from Betfair market and selection identifiers. - make_
symbol - Constructs a Nautilus [
Symbol] from Betfair market and selection identifiers. - normalize_
betfair_ price - Normalizes a Betfair price to Nautilus price precision.
- normalize_
betfair_ quantity - Normalizes a Betfair quantity to Nautilus quantity precision.
- parse_
account_ state - Parses a Betfair
AccountFundsResponseinto a Nautilus [AccountState]. - parse_
betfair_ price - Converts a Betfair decimal price into a Nautilus [
Price]. - parse_
betfair_ quantity - Converts a Betfair decimal quantity into a Nautilus [
Quantity]. - parse_
betfair_ timestamp - Parses an RFC 3339 / ISO 8601 timestamp string into [
UnixNanos]. - parse_
market_ catalogue - Parses a Betfair
MarketCatalogueinto a vec of [InstrumentAny]. - parse_
market_ definition - Parses a stream
MarketDefinitioninto a vec of [InstrumentAny]. - parse_
millis_ timestamp - Converts a millisecond epoch timestamp (as used in stream
ptfield) into [UnixNanos].