diff --git a/src/ibkr_quant/universe.py b/src/ibkr_quant/universe.py index 786c14c..6542d64 100644 --- a/src/ibkr_quant/universe.py +++ b/src/ibkr_quant/universe.py @@ -7,7 +7,12 @@ import pandas as pd SP500_URL = "https://en.wikipedia.org/wiki/List_of_S%26P_500_companies" +# Tickers Wikipedia lists differently from what IBKR carries. +IBKR_SYMBOL_OVERRIDES = {"PSKY": "SKYD"} # Paramount Skydance trades as SKYD/NYSE on IBKR + + def to_ib_symbol(ticker: str) -> str: + ticker = IBKR_SYMBOL_OVERRIDES.get(ticker, ticker) # IBKR writes share classes with a space: BRK.B -> "BRK B". return ticker.replace(".", " ")