curl --request POST \
--url https://api.allium.so/api/v1/developer/wallet/pnl-by-token/history \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"addresses": [
{
"address": "125Z6k4ZAxsgdG7JxrKZpwbcS1rxqpAeqM9GSCKd66Wp",
"chain": "solana",
"token_address": "So11111111111111111111111111111111111111112"
}
],
"end_timestamp": "2025-04-10T00:00:00Z",
"granularity": "1h",
"start_timestamp": "2025-04-01T00:00:00Z"
}
'