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>"
}
Get the PnL for a given wallet address.
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>"
}
The body is of type PayloadAddressHoldings · object[]
.
Successful Response
The response is of type object
.
Was this page helpful?