INNER CODE UNIT · Python
get_pricing
paperswithbacktest/pwb-toolbox · pwb_toolbox/datasets/__init__.py:1009
def get_pricing(
symbol_list,
fields=None, # ← default set below
start_date="1980-01-01",
end_date=date.today().isoformat(),
extend=False,
keep_single_level=False, # backward-compat flag
):
"""
Fetch OHLC pricing for the requested symbols.
Parameters
----------
symbol_list : str | list[str]
One ticker or a list of tickers. Supports suffixed form "SYM.CAT"
where CAT in {CRYPTO, STOCK, CMDTY, IDX, ETF, FX, BND}.
fields : list[str] | None
Any subset of ["open", "high", "low", "close"].