Skip to content

Data API

arbitrix_core.load_ohlcv

load_ohlcv(path: PathLike, *, time_col: str = 'time') -> pd.DataFrame

Load CSV or parquet into a validated UTC-indexed OHLCV DataFrame.

Parameters

path : str or Path File to load. Suffix .parquet selects parquet; everything else CSV. time_col : str Column name containing timestamps when input is flat (not yet indexed).

arbitrix_core.validate_ohlcv

validate_ohlcv(df: DataFrame) -> None

Raise ValueError if df does not satisfy the open-core OHLCV schema.

Schema
  • DatetimeIndex with tz='UTC'
  • Monotonic increasing, no duplicates
  • Required columns: open, high, low, close, volume (lowercase, float64-coercible)
  • Optional column: spread (float64-coercible)

arbitrix_core.DataProvider

Bases: Protocol

Symbol-info provider injected by closed arbitrix. Open-core never instantiates one.