POST
/
api
/
v1
/
developer
/
wallet
/
pnl
Get Pnl
curl --request POST \
  --url https://api.allium.so/api/v1/developer/wallet/pnl \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '[
  {
    "chain": "<string>",
    "address": "<string>"
  }
]'
{
  "data": {
    "chain": "<string>",
    "address": "<string>",
    "current_tokens": {},
    "current_prices": {},
    "current_balances": {},
    "total_balance": "<any>",
    "unrealized_pnl": {},
    "total_unrealized_pnl": "<any>",
    "realized_pnl": {},
    "total_realized_pnl": "<any>",
    "average_cost": {},
    "unrealized_pnl_ratio_change": {},
    "total_unrealized_pnl_ratio_change": 123,
    "historical_breakdown": [
      "<any>"
    ]
  },
  "items": [
    {
      "chain": "<string>",
      "address": "<string>",
      "current_tokens": {},
      "current_prices": {},
      "current_balances": {},
      "total_balance": "<any>",
      "unrealized_pnl": {},
      "total_unrealized_pnl": "<any>",
      "realized_pnl": {},
      "total_realized_pnl": "<any>",
      "average_cost": {},
      "unrealized_pnl_ratio_change": {},
      "total_unrealized_pnl_ratio_change": 123,
      "historical_breakdown": [
        "<any>"
      ]
    }
  ],
  "error": "<string>",
  "cursor": "<string>"
}
This endpoint provides the unrealized PnL, realized PnL, average cost, current balance, and current USD balance for given wallet addresses. Supported Chains and Holdings

Authorizations

X-API-KEY
string
header
required

Body

application/json · PayloadAddressHoldings · object[]

The body is of type PayloadAddressHoldings · object[].

Response

200
application/json

Successful Response

The response is of type object.