1. Wallet Endpoints
  2. Profit Loss
GET

/v1/wallets/tracking/balance

x-invezo-api-key*
curl --request GET \
     --url https://api.invezo.com/v1/wallets/tracking/balance \
     --header 'x-invezo-api-key: AUTH_VALUE'

Query Parameters

chainRequired
string

platform to query (valid chains: eth, sol)

addressRequired
string

wallet address (example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045)

minRequired
int or string

start of the aggregate time window as a timestamp (example: 1652486400 or ‘2022-05-13T18:00:00’)

maxRequired
int or string

end of the aggregate time window as a timestamp (example: 1675191600 or ‘2023-01-31T12:00:00’)

intervalRequired
string

size of the time window (valid intervals: 10m, 1h, 1d, 1w, 1mo)

tokenOptional
string

asset contract address (example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)

sortOptional
string

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

limitOptional
int

limit the number of results returned, default is 5000 and max is 50000

{
    "status": "OK",
    "request_id": "",
    "result_count": 5000,
    "data": [
        {
            "t": 1667865600,
            "v": -0.027372016086151696
        },
        {
            "t": 1667952000,
            "v": -0.07622440794520902
        },
        ...
    ]
}