Get suggestions

Retrieve metric recommendations based on a specified wallet address

Description

This endpoint facilitates obtaining metric suggestions for a list of wallet addresses. Leveraging the Debank API, it retrieves asset holdings and positions for the aggregations of the address list, generating metric recommendations for all supported assets within the list. Users have the option to filter out minor positions, focusing solely on suggestions for the most significant assets.

Endpoint

GET https://sentry.aleno.ai/suggestions

Query parameters

Payload

No payload.

CURL example

curl -X GET \
  'https://sentry.aleno.ai/suggestions?addresses=0x634B41C246F9afCE16dE397424704130b588139f' \
  -H 'Authorization: YOUR_API_KEY'

Result

Returns a list of Metric objects representing suggested metrics for the aggregated address list.

It also returns a list of Assets as :

and a list of Positions for the aggregated wallet as :

{
    "data": {
        "metrics": [
            {
                "key": "token_total_tvl_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "type": "token_total_tvl",
                "name": "WETH total tvl",
                "info": {
                    "token": {
                        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "name": "Wrapped Ether",
                        "symbol": "WETH",
                        "decimals": 18,
                        "isTracked": true
                    }
                }
            },
            {
                "key": "token_total_supply_0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "type": "token_total_supply",
                "name": "WETH total supply",
                "info": {
                    "token": {
                        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                        "name": "Wrapped Ether",
                        "symbol": "WETH",
                        "decimals": 18,
                        "isTracked": true
                    }
                }
            },
            ...
        ],
        "assets": [
            {
                "tokenAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "amount": 0.6843785711644949,
                "usdAmount": 2363.7546155879136
            },
            ...
        ],
        "positions": [
            {
                "protocolId": "uniswap3",
                "protocolName": "Uniswap V3",
                "positionType": "Liquidity Pool",
                "contractAddress": "0x127452f3f9cdc0389b0bf59ce6131aa3bd763598",
                "tokenAddress": "eth",
                "amount": 27.681389081545227,
                "usdAmount": 95607.9193070766
            },
            ...
        ],
    }
}

Last updated