Skip to main content
GET
/
portfolio
/
{address}
Get aggregated portfolio
curl --request GET \
  --url https://app.elata.bio/api/portfolio/{address} \
  --header 'Authorization: Bearer <token>'
{
  "address": "<string>",
  "totalValueUsd": 123,
  "elta": {
    "balance": "<string>",
    "valueUsd": 123
  },
  "veElta": {
    "balance": "<string>",
    "unlockTime": "2023-11-07T05:31:56Z"
  },
  "appHoldings": [
    {
      "tokenAddress": "<string>",
      "symbol": "<string>",
      "balance": "<string>",
      "valueUsd": 123,
      "avgEntryPriceUsd": 123,
      "unrealizedPnlUsd": 123
    }
  ],
  "unrealizedPnlUsd": 123,
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

SIWE-issued JWT, scoped to a wallet address. Obtain via Sign-In With Ethereum (EIP-4361) against app.elata.bio. Required for personalized Portfolio and Rewards endpoints. The sub claim is the wallet address; a request whose path {address} does not match the sub is rejected.

Path Parameters

address
string
required

Wallet address.

Pattern: ^0x[a-fA-F0-9]{40}$

Response

Aggregate portfolio.

address
string
totalValueUsd
number
elta
object
veElta
object
appHoldings
object[]
unrealizedPnlUsd
number
updatedAt
string<date-time>