GET /get-perp-events
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/manifold/get-perp-eventsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePerp trade events (opens, adds, closes, liquidations, ADL).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
contractId | query | str | required | Perp contract id (from a perps page URL, not the market listing). example: nERguQgpuOIZ |
userId | query | str | optional | Only this user's perp events. example: IPTOzEqrpkWmEzh6hwvAyY9PqFb2 |
beforeId | query | int | optional | Return events with id lower than this (backward paging). example: 1000000 |
limit | query | int | optional | Rows to return; this route caps at 100. example: 5 |
Response
type: array
pagination: none
sample: {
"[0]": "empty"
}
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/manifold/get-perp-events?contractId=nERguQgpuOIZ&userId=IPTOzEqrpkWmEzh6hwvAyY9PqFb2&beforeId=1000000&limit=5"