Agara

Recurring event cycles

GET/api/v1/events/{slug}/cycles

Thin rows for the cycles of a RECURRING_PROPOSITION event: the live and unsettled cycles (up to 50, newest first), then the 49 soonest upcoming cycles, then the 50 newest settled cycles. Fetch GET /markets/{id} for a cycle's full market. Empty for other event types and for price-range events, whose cycles are all in the event detail markets[]. Concurrent reads of the same event share one query per API instance. Archived events 404.

Path Parameters

slug*string

Event slug (any event in the group).

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/events/string/cycles"
{  "cycles": [    {      "id": "string",      "slug": "string",      "display_label": "string",      "state": "DRAFT",      "exchange": "AGARA",      "condition_id": "string",      "token_ids": [        "string"      ],      "reference_at": "string",      "observe_at": "string",      "cadence_seconds": 0,      "result_label": "string"    }  ]}