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>"
}
]'{
"items": [
{
"chain": "<string>",
"address": "<string>",
"tokens": [
{
"token_address": "<string>",
"average_cost": {
"currency": "USD",
"amount": "<string>"
},
"raw_balance": "<string>",
"current_price": {
"currency": "USD",
"amount": "<string>"
},
"current_balance": {
"currency": "USD",
"amount": "<string>"
},
"realized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"unrealized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"unrealized_pnl_ratio_change": 123,
"attributes": {
"total_liquidity_usd": {
"amount": "<any>",
"details": "<any>"
}
}
}
],
"total_balance": {
"currency": "USD",
"amount": "<string>"
},
"total_realized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"total_unrealized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"total_unrealized_pnl_ratio_change": 123
}
],
"error": "<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>"
}
]'{
"items": [
{
"chain": "<string>",
"address": "<string>",
"tokens": [
{
"token_address": "<string>",
"average_cost": {
"currency": "USD",
"amount": "<string>"
},
"raw_balance": "<string>",
"current_price": {
"currency": "USD",
"amount": "<string>"
},
"current_balance": {
"currency": "USD",
"amount": "<string>"
},
"realized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"unrealized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"unrealized_pnl_ratio_change": 123,
"attributes": {
"total_liquidity_usd": {
"amount": "<any>",
"details": "<any>"
}
}
}
],
"total_balance": {
"currency": "USD",
"amount": "<string>"
},
"total_realized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"total_unrealized_pnl": {
"currency": "USD",
"amount": "<string>"
},
"total_unrealized_pnl_ratio_change": 123
}
],
"error": "<string>"
}Was this page helpful?