GET/v0/midnight/users/{user_address}/positions

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/morpho/v0/midnight/users/{user_address}/positionsCache cached 10s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Cursor-paginated list of a user's fixed-rate Midnight positions across markets.

Try this endpoint

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/morpho/v0/midnight/users/0x93f96d0775E3d915228Bab5e91f5EF09262847AA/positions?limit=5"

Parameters

nameintypedescription
user_addresspathstrrequiredMidnight participant EVM address.
example: 0x93f96d0775E3d915228Bab5e91f5EF09262847AA
limitqueryintoptionalPage size (default 100).
default: 20
example: 5
cursorquerystroptionalOpaque pagination cursor returned by the previous page.

Response

type: object
pagination: none
sample: {
  "cursor": "null",
  "data": "array[2]"
}