Recording 7 venues

POST/api/v1/exports

Create export

Older call that queues one file for a market, an event, or a UTC day. The app does not use it. Downloads saves a request and fetches daily Parquet.

Auth required. The response is status: pending. Poll get export until ready, then download GET /api/v1/exports/{id}/file with the same bearer token. A job that is still preparing returns 409 on the file route.

Body

Send one of these shapes:

  • Market: ticker
  • Event: event
  • Day: series and day (YYYY-MM-DD UTC)
FieldNotes
formatcsv (default), parquet, json, jsonl.gz
streamssnapshots, settlement, and l2. Default ["snapshots","settlement"]. l2 needs the Full book plan.

A missing target is 400. A stream or history window outside the plan is 402. GET /api/v1/exports/formats lists the format ids.

curl
curl https://kalshieye.com/api/v1/exports \
  -X POST \
  -H "Authorization: Bearer $KALSHIEYE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"ticker":"KXBTC15M-26OCT121545-45","format":"csv","streams":["snapshots","settlement"]}'
200 response (trimmed)
{
  "id": "ea54844a-43f6-4c3f-ba26-6407abaa7508",
  "status": "pending",
  "format": "csv",
  "ticker": "KXBTC15M-26OCT121545-45",
  "row_count": null,
  "markets": null,
  "days": null
}

row_count, markets and days are null until the file is built. Poll GET /api/v1/exports/{id}: when status is ready they say how many rows and markets the file holds and which published days.