Get earnings¶
GET /v1/earnings
Return the total current value and total unrealized earnings across all of an address's positions, aggregated from live chain reads. Values are base-10 integer strings summed in each asset's smallest unit.
Authentication
Send your API key in the api-key header.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
userAddress |
query | string | yes | The EOA address whose earnings to aggregate (0x-prefixed hex). |
Responses
| Status | Description |
|---|---|
200 |
The aggregate portfolio value and earnings. |
400 |
Invalid userAddress (USER_003). |
500 |
Storage failure (SYSTEM_001). |