origo.data.bars intentionally exposes unavailable adaptive bar builders in this build; only the base pass-through path is usable unless those builders are restored.
HistoricalData is stateful and updates .data and .data_columns on each get_* call.
HistoricalData._get_data_for_test() reads from <repo>/datasets/klines_2h_2020_2025.csv; that file must exist in the repository root.
get_binance_file() normalizes millisecond timestamps to seconds automatically if the value exceeds 10^13.
Historical spot interfaces use strict window selection: exactly one of date-window(start_date/end_date), n_latest_rows, or n_random_rows.
Date-window inputs are strict UTC day strings (YYYY-MM-DD) and apply start inclusive plus end-day inclusive, implemented as next-day exclusive.
The auth_token parameter is forwarded to generic_endpoints for authenticated database queries; leave it None for public Binance file access.
generic_endpoints is fail-loud for env config: set CLICKHOUSE_HOST, CLICKHOUSE_HTTP_PORT, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD, and CLICKHOUSE_DATABASE before calling database query helpers.
split_data_to_prep_output expects all splits to share the same column schema.