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 free

Perp trade events (opens, adds, closes, liquidations, ADL).

Parameters

nameintypedescription
contractIdquerystrrequiredPerp contract id (from a perps page URL, not the market listing).
example: nERguQgpuOIZ
userIdquerystroptionalOnly this user's perp events.
example: IPTOzEqrpkWmEzh6hwvAyY9PqFb2
beforeIdqueryintoptionalReturn events with id lower than this (backward paging).
example: 1000000
limitqueryintoptionalRows 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"