Stream Events
stream_eventsStored events of ONE stream channel after a cursor, oldest first, with the stream's own filters: the REST catch-up of wss://stream.vike.io, for what a socket missed or a quick look without a socket. Returns {events: [{cursor, event}], next_cursor, has_more}; event is byte for byte what the WebSocket frame carried. An idle window of the on-demand channel is an item {cursor, gap} in its place. Pass next_cursor back as cursor for the next page; a page at the end returns the channel head, so an empty page on a quiet channel returns the same cursor. Events are kept 3 days: an older cursor is refused with a resume cursor in the message. since_ms starts at an ARRIVAL time instead of a cursor. Delivery is at least once: dedupe on event.event_id. hl.fills without min_usd is min_usd 1000, as on the socket (0 = every fill). Every channel stream_info lists is accepted, including one the stream does not run yet (a subscribe there answers unknown_channel): its pages are empty, like a quiet channel's. Same data as GET /v1/{hyperliquid,onchain,polymarket}/stream-events.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>"
},
"name": "stream_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Events per page, 1 to 1000 (default 200). | |
| cursor | No | `next_cursor` of the previous page or the `cursor` of a stream frame. Omit (and omit since_ms) for the oldest retained event. | |
| filter | No | The channel's filter keys as on a subscribe, e.g. `{"coin": ["BTC"], "min_usd": 100000}`. An unknown or channel-foreign key is refused. | |
| channel | Yes | A stream channel, e.g. `hl.fills`, `hl.liquidations`, `chain.transfers`, `pm.trades`; stream_info lists them all. Required. | |
| since_ms | No | Epoch MILLISECONDS: start after this arrival time instead of a cursor. Not together with `cursor`. |