GET /api/v1/events
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/api/v1/eventsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeActive and historical prediction and Up/Down market events.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
active | query | bool | optional | Filter active events. |
cursor | query | int | optional | Pagination cursor. |
limit | query | int | optional | Max events. example: 5 |
Response
type: object
data key: events
cursor key: next_cursor
pagination: cursor
sample: {
"code": "int",
"next_cursor": "int",
"events": "array[5]"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/events?limit=5"