/api/wallets//holdings
Description: Calculate and return the current token holdings for a specific wallet address by analyzing its transaction history, focusing on buy (`kauf`) and sell (`verkauf`) activities. Replace `
` with the wallet address (e.g., `5TuiERc4X7EgZTxNmj8PHgzUAfNHZRLYHKp4DuiWevXv`). This endpoint only returns tokens with positive holdings (more bought than sold), making it perfect for tracking a wallet’s portfolio. Each request costs 10 usage points.- • Required Parameter: `api_key` – Your unique API Key (e.g., `?api_key=YOUR_API_KEY`).
- Usage Cost: Each request deducts 10 usage points, regardless of the `limit` parameter.
- Response Format: Returns a JSON array of token holdings, each containing `token_symbol` and `holding` (in SOL), sorted by token symbol.
Example Request:
curl "http://82.29.177.109:8080/api/wallets/5TuiERc4X7EgZTxNmj8PHgzUAfNHZRLYHKp4DuiWevXv/holdings?api_key=YOUR_API_KEY"
Example Response:
[
{
"token_symbol": "NOPE",
"holding": "10.5"
}
]