Data (fynance.data)

Ingestion layer: file adapters into PriceSeries, alignment/resampling, and no-lookahead temporal splits.

load(path[, source])

Load a file into a PriceSeries (or mapping for multi-column).

CSVSource()

Read a CSV file into a PriceSeries (or a mapping).

ParquetSource()

Read a Parquet file into a PriceSeries (or a mapping).

align(series[, how, fill])

Align several series onto a common index.

resample(ps, freq[, agg])

Downsample a series to a coarser frequency.

train_test_split(n, test_size[, gap])

Time-ordered train/test index split.

walk_forward(n, train, test[, step, purge])

Generate purged walk-forward windows.

Custom sources

The registry extension API: subclass BaseDataSource, register it under a file extension, and load (or get_source) will dispatch to it.

BaseDataSource()

Abstract base for data-source adapters (the I/O port).

register(name)

Class decorator registering a data-source adapter under name.

get_source(name)

Instantiate a registered data source by name.