Skip to main content
GET
Fetch normalized, Kairos-ingested trade history for a contract

Authorizations

X-Client-Id
string
header
required

Credential client id (kairos_ck_...). Must be sent together with X-Api-Key and X-Api-Secret.

X-Api-Key
string
header
required

64-char hex API key.

X-Api-Secret
string
header
required

64-char hex API secret.

Query Parameters

provider
string
required

Venue identifier, matched case-insensitively against the live provider registry.

contract_id
string
required

Provider-specific contract identifier. Empty or >128 chars returns 400.

Required string length: 1 - 128
window_seconds
integer
default:86400

Lookback window in seconds, ending at before (or now). Clamped to [3600, 86400] (1 hour to 24 hours).

Required range: 3600 <= x <= 86400
before
integer | null

Unix-seconds cursor — return trades at or before this timestamp. Omit to end the window at "now".

limit
integer | null

Max trades returned. If omitted, the service applies its own internal default.

Required range: 1 <= x <= 500
trigger_ingest
boolean
default:false

If true, kicks off ingestion when data for this window is stale or missing, rather than just returning what's already stored.

Response

Normalized trade rows for the window plus pagination/coverage metadata.

trades
object[]
required
has_more
boolean
required

True if more trades exist before the oldest trade in this response (pagination via before).

source
string
required

Opaque internal marker indicating how the response was served. NOT a stable part of the contract — its value may change without notice; do not depend on or switch on it.

coverage_hours
number
required

Hours of trade history coverage available/considered for this response.

Example:

24

indexing
boolean
required

True if ingestion was triggered/in progress for this window (only meaningful with trigger_ingest=true).

Example:

false

oldest_available_ts
number | null

Unix timestamp (seconds) of the oldest trade Kairos has ingested for this contract, or null if unknown.

Example:

1750000000