Vaults V1

User V1 vault position performance

Realized + unrealized earnings of a user's Morpho Vault V1 position. Uses the average_cost accounting method: per-user share-price differentials are accumulated against the running share balance, with transfers netted into the same balance so that earnings reflect the user's economic exposure rather than their on-chain transaction count. return_on_capital is the time-weighted ratio of net earnings to capital deployed over the holding period (non-annualised).

Vault selector example: 1:0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB (format: <chain_id>:<vault_address>; replace with the target vault).

GET
/v0/vaults-v1/{vault-selector}/users/{user-address}/position/performance

Path Parameters

user-address*string

Position owner address. Example: 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd.

Formataddress
vault-selector*string

Selector formatted as <chain_id>:<vault_address>. Example: 1:0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB.

Format<chain_id>:<vault_address>

Response Body

application/json

BASE_URL="${CORE_REST_BASE_URL:-https://api.morpho.org}"MORPHO_API_KEY="<MORPHO_API_KEY>"VAULT_SELECTOR="1:0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB"USER_ADDRESS="0xabcdefabcdefabcdefabcdefabcdefabcdefabcd"curl -sS "${BASE_URL}/v0/vaults-v1/${VAULT_SELECTOR}/users/${USER_ADDRESS}/position/performance" \  -H "accept: application/json" \  -H "x-api-key: ${MORPHO_API_KEY}"
{
  "data": {
    "user_address": "0xABcdEFABcdEFabcdEfAbCdefabcdeFABcDEFabCD",
    "chain_id": 1,
    "vault_address": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
    "last_indexed_block": "25475347",
    "accounting_method": "average_cost",
    "net_earnings_assets": "0",
    "return_on_capital": null
  }
}