- Historical Replay
- Replay Setup
- Pack Artifacts
Historical Research Pack Artifact API
Download one file of a pack. Only files listed in the manifest are served, and each is checked against its recorded byte length and SHA-256 before it is sent. The response carries the hash as its ETag, so you can verify the bytes you received. Background: research packs.
Endpoint
historical.flashalpha.com
Auth required (X-Api-Key)
Rate Limited: Yes
Plan: Alpha+
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
packId | path | string | required | - | Pack ID from the catalog |
name | path | string | required | - | An artifact name from the manifest, e.g. trades.csv |
at | query | datetime | - | ET wall-clock instant; the file is served only if its pack was available then. Invalid values return 400 invalid_at. |
Request
curl -H "X-Api-Key: YOUR_API_KEY" -o trades.csv \
"https://historical.flashalpha.com/v1/research/packs/income-spy-qqq-2024-2025-v1-db139753fe8b/artifacts/trades.csv"import hashlib, requests
BASE = "https://historical.flashalpha.com/v1/research/packs"
PACK = "income-spy-qqq-2024-2025-v1-db139753fe8b"
H = {"X-Api-Key": "YOUR_API_KEY"}
resp = requests.get(f"{BASE}/{PACK}", headers=H)
resp.raise_for_status()
manifest = resp.json()
for a in manifest["artifacts"]:
resp = requests.get(f"{BASE}/{PACK}/artifacts/{a['name']}", headers=H)
resp.raise_for_status()
body = resp.content
assert len(body) == a["bytes"] and hashlib.sha256(body).hexdigest() == a["sha256"], a["name"]
open(a["name"], "wb").write(body)
print("all artifacts verified")const resp = await fetch(
"https://historical.flashalpha.com/v1/research/packs/income-spy-qqq-2024-2025-v1-db139753fe8b/artifacts/trades.csv",
{ headers: { "X-Api-Key": "YOUR_API_KEY" } }
);
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const csv = await resp.text();
console.log(resp.headers.get("ETag"), csv.split("\n")[0]);Try it live
Replays archived data as of the at time you pick (ET wall-clock). Needs an Alpha plan API key.
Response
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Disposition: attachment; filename=trades.csv
ETag: "6874a236528f..." (the file's SHA-256)
X-Content-Type-Options: nosniff
<file bytes>Sending request…
See this endpoint on archived data
Send this exact request and the real response shows up here, right next to the example.
Responses can exceed 180 KB.
Response Fields
| Field | Type | Description |
|---|---|---|
Body | bytes | The file exactly as recorded in the manifest |
Content-Type | string (header) | The artifact's media_type |
Content-Disposition | string (header) | Always an attachment named after the artifact, including report.html |
ETag | string (header) | The artifact's SHA-256, lowercase hex |
Errors
| Status | Error | When |
|---|---|---|
400 | invalid_research_artifact | Pack ID or file name contains characters outside the allowed set. |
400 | invalid_at | at is not yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss (ET). |
400 | - | A query value has the wrong type, or a required value is missing. The body is an RFC 7807 problem-details object with errors.<param>. |
401 | - | Missing or invalid X-Api-Key. The body is empty; check the status code before parsing JSON. |
403 | tier_restricted | Your plan is below Alpha. The body includes current_plan and required_plan. |
404 | research_artifact_not_found | The name is not in the manifest, or the pack was not available at at. |
429 | Quota exceeded | Daily quota used up. Retry-After gives the seconds until the reset at 00:00 UTC. Rejected requests (including 403) count toward the quota. |
503 | research_artifact_integrity_failed | The stored file no longer matches its manifest hash; nothing is served. |
Files in the First Pack
| Artifact | Media type | Bytes |
|---|---|---|
accounting-audit.json | application/json | 27,854 |
benchmark-curves.csv | text/csv | 88,053 |
cash-ledger.csv | text/csv | 326,096 |
equity-2025.png | image/png | 375,221 |
equity-2025.svg | image/svg+xml | 164,650 |
equity-curves.csv | text/csv | 2,550,883 |
independent-audit.json | application/json | 240 |
independent-checks.csv | text/csv | 1,663,683 |
input-hashes.json | application/json | 892 |
methodology.json | application/json | 1,721 |
report.html | text/html | 533,931 |
reproduce.zip | application/zip | 2,178,022 |
reproduction.json | application/json | 437 |
summary.json | application/json | 145,034 |
trades.csv | text/csv | 190,862 |
Start with report.html (a standalone report; download the related files with it for local browsing) or summary.json. reproduce.zip holds the frozen captured inputs, model code and commands to regenerate the results offline without a database or credentials.
Related endpoints
- Research Pack Catalog API -
GET /v1/research/packs - Research Pack Manifest API -
GET /v1/research/packs/{packId} - Historical trader context - income replays link the relevant pack through
metrics.research - The first pack's results - SPY and QQQ covered calls and cash-secured puts