Skip to content
Create API key

Date ranges

Range tokens
today · yesterday · last_7_days · last_30_days · last_90_days
this_week · last_week · this_month · last_month · this_quarter · last_quarter
ytd · this_year · last_year · all_time
custom_YYYYMMDD_YYYYMMDD

A custom window looks like custom_20260101_20260630.

400 Bad Request
{
"error": "…",
"code": "bad_range",
"range": "next_month",
"accepted": ["today", "yesterday", "…", "custom_YYYYMMDD_YYYYMMDD"]
}

GET /cx/v1/markets reads pre-aggregated snapshots. It takes ?range= with its own named set and no custom windows: today, day, this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_7_days. See markets.

Was this helpful?

Still stuck? Contact support and include the job or page you were on.