GET
/
v1
/
user
/
positions
Retrieve User Positions
curl --request GET \
  --url https://zap.dzap.io/v1/user/positions
{
  "status": "success",
  "data": {
    "positions": [
      {
        "underlyingAssets": [
          {
            "address": "0x4200000000000000000000000000000000000006",
            "logo": "https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png",
            "decimals": 18,
            "symbol": "WETH",
            "price": "3344.27",
            "chainId": 8453,
            "amount": "56004916608096",
            "amountUSD": "0.19"
          },
          {
            "address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
            "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
            "decimals": 6,
            "symbol": "USDbC",
            "price": "0.999932",
            "chainId": 8453,
            "amount": "171523",
            "amountUSD": "0.17"
          }
        ],
        "address": "0x002A1eb0804504DD5162757Bc309FD34784aE7e0",
        "apr": 44,
        "name": "WETH/USDbC",
        "chainId": 8453,
        "provider": "balancer",
        "amount": "4500000",
        "amountUSD": "0.36"
      }
    ],
    "count": 1
  }
}

Query Parameters

provider
string
required

Provider name.

Example:

"balancer"

chainId
number
required

Chain ID.

Example:

8453

account
string
required

User wallet address.

Example:

"0x99BCEBf44433E901597D9fCb16E799a4847519f6"

Response

200
application/json

Successful response with user positions.

The response is of type object.