GET/v0/midnight/users/{user_address}/positions
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 freeCursor-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
| name | in | type | description | |
|---|---|---|---|---|
user_address | path | str | required | Midnight participant EVM address. example: 0x93f96d0775E3d915228Bab5e91f5EF09262847AA |
limit | query | int | optional | Page size (default 100). default: 20example: 5 |
cursor | query | str | optional | Opaque pagination cursor returned by the previous page. |
Response
type: object
pagination: none
sample: {
"cursor": "null",
"data": "array[2]"
}