GET /market/{marketId}/positions

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/manifold/market/{marketId}/positionsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Position ranking for one market (top/bottom or one user).

Optional `userId` and `answerId` narrow the ranking to one user or one answer; forwarded verbatim.

Parameters

nameintypedescription
marketIdpathstrrequired20-character contract id.
example: INPLL9csg9
orderquerystr
shares | profit
optionalPosition ranking field.
default: profit
example: profit
topqueryintoptionalHow many top positions to return.
example: 3
bottomqueryintoptionalHow many bottom positions to return.
example: 1

Response

type: array
pagination: none
sample: {
  "[0]": "object"
}

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/market/INPLL9csg9/positions?order=profit&top=3&bottom=1"