/api/v1/indices/{id}/candlesGETtimestamp is the end of the bucket, UTC. One hourly level at 12:00Z is the candle that ends at 13:00Z. A bucket with no level is omitted. interval defaults to 5min. When from and to are omitted, the window is the last 7 days for 1min and 5min, 30 days for 1hour, and 90 days for 1d. from is inclusive and to is exclusive. A window that needs more than 20,000 stored levels returns 400; narrow from and to. An unknown index returns 404. An index with no levels in the window returns an empty list.ak_ prefix), sent as a Bearer token or an ?api_key= query parameter.. Token in: header1min, 5min, 1hour, or 1d. daily and 1day are aliases of 1d."5min"timestamp, ISO-8601 or YYYY-MM-DD. A date with no time is that UTC midnight. Omitted, the bound is to minus the interval's default window.timestamp, ISO-8601 or YYYY-MM-DD. A date with no time is that UTC midnight. Omitted, the bound is the current time.1Min: 1100Min: 1Max: 500timestamp. desc is newest first."desc"1min, 5min, or 1hour bucket ends on a UTC boundary. A 1d bucket ends at the next midnight in US Eastern time. A level printed on a boundary belongs to the bucket that starts there.open.open.open. A bucket with one level has open, high, low, and close equal to that level.total and total_pages reflect the server's counting ceiling rather than the exact matched count: the real set is at least total large. Render such totals as a lower bound (for example "10,000+"). Omitted when the count is exact. A sorted markets search that fills the 10,000-candidate ceiling sets this flag.message. One of bad_request, unauthorized, forbidden, not_found, conflict, service_unavailable, upstream_error, service_error, or internal_error.Authorization header, an invalid token, or a token lacking the required scope. This is free text whose wording can change, so branch on status (or the HTTP status code) instead of on this string.message. One of bad_request, unauthorized, forbidden, not_found, conflict, service_unavailable, upstream_error, service_error, or internal_error.rate_limited. Branch on this to detect a throttled request.rpm for the per-minute cap, daily for the daily one, or concurrency for the cap on requests running at the same time.curl -X GET "https://api.adjacent.markets/api/v1/indices/<id>/candles" \ -H "Authorization: Bearer <token>"
{ "error": "Missing or invalid Authorization header", "status": 401 }