cURL
curl --request GET \ --url https://api.vaults.fyi/alpha/svm/positions/{userId} \ --header 'x-api-key: <api-key>'
{ "data": [ { "accountId": "<string>", "name": "<string>", "asset": { "accountId": "<string>", "name": "<string>", "symbol": "<string>", "decimals": 123, "balanceNative": "<string>", "balanceUsd": "<string>", "unclaimedNative": "<string>", "unclaimedUsd": "<string>", "assetLogo": "<string>" }, "apy": { "base": 123, "reward": 123, "total": 123 }, "protocol": { "name": "<string>", "product": "<string>", "version": "<string>", "protocolLogo": "<string>" } } ] }
Provides all vault positions for a user on Solana.
User wallet address
1
Interval for APY data. Possible values: 1day, 7day, 30day
1day
7day
30day
Minimum USD value of the position to be included
x >= 0
Default Response
Show child attributes