List timeframes
GET
/timeframesReturns the timeframes a run, or a definition run over history, can use.
Scope | Heavy call | Long poll | CLI |
|---|---|---|---|
| No | No | None |
Guidance
The list is fixed:
1m,5m,15m,30m,1h,2h,4h,1dand1w. Read it once and cache it.Any other value in
timeframeon Create a run, List events or Run a definition over history gets400 unsupported_timeframe. Upper case is lowered on runs, so5Mworks there.One run holds at most 50,000 bars, so a long window needs a larger timeframe: 90 days of
1mis about 130,000 bars and is refused, while 90 days of5mis about 26,000.
Response
200 with data, an array of strings. The list is not paginated.
Status codes
Status | Code | Meaning |
|---|---|---|
| - | The supported timeframes |
|
| No key, or it is wrong, expired or revoked |
