Backtesting through a paged API means thousands of calls and a constant risk of using a value before it existed. The export endpoint returns a date-bounded slice of the public factor history as one streamed file, and every row says both which period it describes and when it could first have been known.
GET /v1/export/factors with your X-API-Key header.
| Parameter | Meaning |
|---|---|
factor | A public factor name. Omit for every public factor. |
subject | One subject (region, settlement point, series). Optional. |
start_date, end_date | Bounds on period, inclusive. |
as_of | Only rows knowable on this date (known_at <= as_of). |
format | csv (default) or ndjson. |
| Column | Meaning |
|---|---|
factor, subject | What the value is and what it is about. |
period | The date the value describes. |
known_at | The earliest date it could have been known: the period plus that factor's reporting lag. |
value | The factor value. |
details | Supporting fields as JSON, or empty. |
The response carries X-Export-Schema-Version,
X-Export-Row-Count and, where a source requires it,
X-Data-Attribution. Rows are ordered by factor,
subject, then period.
With as_of, you get every row whose
known_at is on or before that date: the full history
as it was visible then, not just the latest value. Without it you
get everything, and you cut your own walk-forward folds on
known_at, never on period.
Public factors and servable subjects only; anything else returns 404. A request matching more than 1,000,000 rows is refused with a 422 asking you to narrow it, never silently truncated. A bulk export counts as one request against your rate limit.
GET /v1/export/eia930 exports the hourly EIA-930 data
(respondent, type, start_date,
end_date, as_of, format) with
columns respondent, type, period, known_at, value,
value_units. period and known_at are
UTC timestamps; as_of keeps rows whose
known_at is on or before the end of that day. The
1-day reporting lag is a placeholder, not a confirmed EIA schedule.
curl, straight to a file:
curl -H "X-API-Key: $ORDINEX_KEY" \
"https://energy.ordinexdata.com/v1/export/factors?factor=ercot_spark_spread&as_of=2025-06-30" \
-o ercot_spark_spread.csv
Python client (pip install ordinex-energy):
from ordinex_energy import OrdinexEnergyClient
client = OrdinexEnergyClient(api_key="...")
# Everything knowable on 2025-06-30, as a DataFrame
df = client.export_factors(factor="ercot_spark_spread", as_of="2025-06-30", as_dataframe=True)
# Leak-free train/test cut: filter on known_at, not period
full = client.export_factors(factor="storage_percentile", as_dataframe=True)
train = full[full["known_at"] <= "2024-12-31"]