How to check open positions

In this section, we'll learn how to retrieve the current yield positions for an address.

Prerequisites

How to Check Open Positions

  1. Request Current Positions Use the following endpoint to retrieve all the current yield positions of an address:

    GET /wallets/:address

    Required Parameters:\

    Parameter
    Description
    Example

    address

    Wallet address

    0x1234567890123456789012345678901234567890

    Example Request:

    GET /wallets/0x1234567890123456789012345678901234567890

    Response:

    {
      "address": "0x1234567890123456789012345678901234567890",
      "positions": [
        {
          "protocol": "Aave",
          "asset": {
            "address": "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
            "decimals": "18",
            "symbol": "WETH",
            "name": "Wrapped Ether"
          },
          "balance": {
            "raw": "1000000000000000000",
            "humanized": 1.0,
            "decimals": "18"
          },
          "balanceUSD": "2601.29",
          "apy": "0.0312",
          "rewards": [
            {
              "token": {
                "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
                "symbol": "AAVE",
                "decimals": "18"
              },
              "amount": "0.05",
              "amountUSD": "10.50"
            }
          ]
        }
      ]
    }

The response will return an array of yield positions across different protocols, including details about the deposited assets, current balances, APY rates, and any additional reward tokens being earned.

Active Loans example in the UI

Next Steps

After checking your positions, you can:

Last updated