GET /get-perp-positions
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/manifold/get-perp-positionsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOpen perp positions for one contract or one user.
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 positions (omit contractId to read across all perps). example: IPTOzEqrpkWmEzh6hwvAyY9PqFb2 |
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-positions?contractId=nERguQgpuOIZ&userId=IPTOzEqrpkWmEzh6hwvAyY9PqFb2"