Skip to main content
GET
/
portfolio
/
{address}
/
pnl
Get portfolio P&L
curl --request GET \
  --url https://app.elata.bio/api/portfolio/{address}/pnl \
  --header 'Authorization: Bearer <token>'
{
  "realizedUsd": 123,
  "unrealizedUsd": 123,
  "byApp": [
    {
      "tokenAddress": "<string>",
      "symbol": "<string>",
      "realizedUsd": 123,
      "unrealizedUsd": 123
    }
  ]
}
Status: proposed. Requires a SIWE-issued bearer token whose sub matches {address}.

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

Realized and unrealized P&L.

realizedUsd
number
unrealizedUsd
number
byApp
object[]