/markets/active only ever returns the slot that is currently open, so you cannot use it to pre-fetch the next one. The timeline endpoints return the upcoming and past slots for a recurring series, including each slot’s slug and a tradable flag. That lets you resolve the next slug and warm up an orderbook subscription before it opens.
Both endpoints are public and require no authentication.
By current slug
If you already have the current slug (e.g. from/markets/active):
- Route:
GET /markets/{slug}/timeline - Query:
before(default1),after(default24) — number of slots to return on each side of the anchor.
By symbol and frequency
If you do not have a current slug, anchor on the recurring series directly:- Route:
GET /markets/timeline
Response
Slot fields
Both variants also return
anchor (slug, jobId, periodId) and job (id, frequency, frequencySubType, periodDuration, deployLeadTime) describing the recurring series. next is null when no successor slot is scheduled yet.
A slot can exist in
PRE_OPEN before orders are accepted. Gate order submission on tradable: true / state: "OPEN" rather than on startAt alone.Pre-fetch pattern
- Poll the timeline a few seconds before the current slot ends.
- Read
next.slugand open its orderbook subscription early. - Submit the moment
nextflips tostate: "OPEN"/tradable: true.