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. - parse_
account_ state - Parses a Betfair
AccountFundsResponseinto a Nautilus [AccountState]. - 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].