GET/v0/midnight/markets/{market_id}/users/{user_address}/position/performance

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

Performance metrics for a single Midnight fixed-rate position.

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/markets/0xbd290e0b508a18549b2977919d9fd8c598f2a13f42977dd13d23880a5c97dbc2/users/0x93f96d0775E3d915228Bab5e91f5EF09262847AA/position/performance"

Parameters

nameintypedescription
market_idpathstrrequired32-byte Midnight fixed-rate market ID.
example: 0xbd290e0b508a18549b2977919d9fd8c598f2a13f42977dd13d23880a5c97dbc2
user_addresspathstrrequiredMidnight participant EVM address.
example: 0x93f96d0775E3d915228Bab5e91f5EF09262847AA

Response

type: object
pagination: none
sample: {
  "data": "object"
}