INNER CODE UNIT · Python

keep_single_level

paperswithbacktest/pwb-toolbox · pwb_toolbox/datasets/__init__.py:1015

    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"].
        Defaults to ["close"] for backward compatibility.
    start_date, end_date : str (YYYY-MM-DD)
        Slice the date index (inclusive).
    extend : bool
        Pass-through to `load_dataset(..., extend=extend)`.
    keep_single_level : bool

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…