Expand description
Parsing utilities for converting Interactive Brokers data to Nautilus types.
Statics§
- VENUE_
MEMBERS - Venue to IB exchange mappings. Maps MIC venue codes to lists of IB exchange codes used by Interactive Brokers.
Functions§
- determine_
venue_ from_ contract - Determine venue from contract using provider configuration.
- generate_
ib_ trade_ id - Generate a unique trade ID for Interactive Brokers trades.
- ib_
contract_ to_ instrument_ id_ raw - Convert an IB Contract to an InstrumentId using raw symbology.
- ib_
contract_ to_ instrument_ id_ simple - Convert an IB Contract to an InstrumentId (simple version using contract fields).
- ib_
contract_ to_ instrument_ id_ simplified - Convert an IB Contract to an InstrumentId using simplified symbology.
- instrument_
id_ to_ ib_ contract - Convert a NautilusTrader
InstrumentIdto an Interactive BrokersContract. - is_
spread_ instrument_ id - Check if an instrument ID represents a spread.
- parse_
spread_ instrument_ id_ to_ legs - Parse a spread instrument ID back into leg tuples.
- possible_
exchanges_ for_ venue