- Wallet Endpoints
- Token Balance Over Time
Wallet Endpoints
Token Balance Over Time
Get native balance of a token for a wallet address over a specified time period.
/v1/wallets/tracking/token-balance
curl --request GET \
--url https://api.invezo.com/v1/wallets/tracking/token-balance \
--header 'x-invezo-api-key: AUTH_VALUE'
Query Parameters
platform to query (valid chains: eth, sol)
wallet address (example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045)
asset contract address (example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)
start of the aggregate time window as a timestamp (example: 1652486400 or ‘2022-05-13T18:00:00’)
end of the aggregate time window as a timestamp (example: 1675191600 or ‘2023-01-31T12:00:00’)
size of the time window (valid intervals: 10m, 1h, 1d, 1w, 1mo)
sort the results by timestamp. asc will return results in ascending order (oldest to newest), desc will return results in descending order (newest to oldest). default value is asc
limit the number of results returned, default is 5000 and max is 50000
{
"status": "OK",
"request_id": "",
"result_count": 5000,
"data": [
{
"t": 1667779200,
"v": 7.326593
},
{
"t": 1667865600,
"v": 7.326593
},
...
]
}
curl --request GET \
--url https://api.invezo.com/v1/wallets/tracking/token-balance \
--header 'x-invezo-api-key: AUTH_VALUE'
{
"status": "OK",
"request_id": "",
"result_count": 5000,
"data": [
{
"t": 1667779200,
"v": 7.326593
},
{
"t": 1667865600,
"v": 7.326593
},
...
]
}