E_KEY_001 — Required key missing¶
A dict / object passed to a FLOX API was missing a required key. The error message names the missing key.
Where it fires¶
Engine.load_ohlcv(d)— expectsts(ortimestamp),open,high,low,close,volume.
How to fix¶
If your DataFrame uses different column names, rename them:
df = df.rename(columns={"timestamp": "ts", "vol": "volume"})
eng.load_ohlcv({k: df[k].to_numpy() for k in
["ts", "open", "high", "low", "close", "volume"]},
symbol="BTCUSDT")
Common causes¶
- Source data uses
timestamp_ns/time/tinstead ofts— rename before passing. - Volume series stored as
vol— same fix. - Trying to load a tick stream into the OHLCV path.