curl --request GET \
--url https://openapiv1.coinstats.app/wallet/defi \
--header 'X-API-KEY: <api-key>'{
"totalAssets": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"protocols": [
{
"id": "pancakeswap-amm-v3",
"name": "PancakeSwap",
"logo": "https://icons.llama.fi/pancakeswap-amm-v3.jpg",
"totalValue": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"blockchain": {
"name": "Solana",
"icon": "https://static.coinstats.app/portfolio_images/solana_dark.png"
},
"chain": "solana",
"investments": [
{
"id": "liquidity",
"name": "Liquidity",
"value": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"symbols": "USDC + WSOL",
"assets": [
{
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"title": "Deposit",
"amount": 20.431941,
"symbol": "USDC",
"price": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"coinId": "solana",
"logo": "https://img-v1.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",
"danger": true
}
],
"poolAddress": "pancakeswap-amm-v3",
"healthRate": 123,
"healthRateLink": "<string>",
"poolProjectId": "PancakeSwap",
"unlockAt": "2025-08-28T08:35:50.384Z",
"endAt": "2025-08-28T08:35:50.384Z",
"isProxy": true,
"debtRatio": 0.01,
"debtRatioLink": "https://pancakeswap.finance/swap"
}
],
"walletAddress": "wallet_address_here",
"url": "https://pancakeswap.finance/swap"
}
]
}Retrieve comprehensive DeFi portfolio data, including staking, liquidity pool (LP), and yield farming activities
curl --request GET \
--url https://openapiv1.coinstats.app/wallet/defi \
--header 'X-API-KEY: <api-key>'{
"totalAssets": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"protocols": [
{
"id": "pancakeswap-amm-v3",
"name": "PancakeSwap",
"logo": "https://icons.llama.fi/pancakeswap-amm-v3.jpg",
"totalValue": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"blockchain": {
"name": "Solana",
"icon": "https://static.coinstats.app/portfolio_images/solana_dark.png"
},
"chain": "solana",
"investments": [
{
"id": "liquidity",
"name": "Liquidity",
"value": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"symbols": "USDC + WSOL",
"assets": [
{
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"title": "Deposit",
"amount": 20.431941,
"symbol": "USDC",
"price": {
"USD": 46.92,
"ETH": 0.010799824088855844,
"BTC": 0.0004264134046889636
},
"coinId": "solana",
"logo": "https://img-v1.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",
"danger": true
}
],
"poolAddress": "pancakeswap-amm-v3",
"healthRate": 123,
"healthRateLink": "<string>",
"poolProjectId": "PancakeSwap",
"unlockAt": "2025-08-28T08:35:50.384Z",
"endAt": "2025-08-28T08:35:50.384Z",
"isProxy": true,
"debtRatio": 0.01,
"debtRatioLink": "https://pancakeswap.finance/swap"
}
],
"walletAddress": "wallet_address_here",
"url": "https://pancakeswap.finance/swap"
}
]
}Multipliers
You will get
Required
API key needed to access the endpoints. Example: 'demo-api-key'
The wallet address for which the DeFi data is being queried. Must be a valid string representing an EVM-compatible wallet address.
"0x1234567890abcdef1234567890abcdef12345678"
Specifies the blockchain network connection ID to query for DeFi data. Can be a single network (e.g., "ethereum") or comma-separated list of networks (e.g., "ethereum,polygon-wallet") or "all" for all networks.
"ethereum"
Defi Response
List of DeFi protocols with user positions
Show child attributes
Unique identifier for the DeFi protocol
"pancakeswap-amm-v3"
Name of the DeFi protocol
"PancakeSwap"
URL to the protocol logo
"https://icons.llama.fi/pancakeswap-amm-v3.jpg"
Total value of all investments in this protocol
Blockchain network identifier
"solana"
List of investments/positions in this protocol
Show child attributes
Unique identifier for the investment type
"liquidity"
Human-readable name of the investment
"Liquidity"
Total value of the investment position
Token symbols involved in the investment
"USDC + WSOL"
List of assets in this investment
Show child attributes
Token contract address on the blockchain
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Type of asset (Deposit, Reward, etc.)
"Deposit"
Amount of the token held
20.431941
Token symbol
"USDC"
Current price value of the asset
Show child attributes
CoinStats coin identifier
"solana"
URL to the token logo
"https://img-v1.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png"
Flag indicating if the asset is potentially risky
Address or identifier of the liquidity pool
"pancakeswap-amm-v3"
Health rate for lending positions (higher is safer)
Link to check the health rate status
Name of the project managing the pool
"PancakeSwap"
Timestamp when tokens will be unlocked
"2025-08-28T08:35:50.384Z"
Timestamp when the investment period ends
"2025-08-28T08:35:50.384Z"
Indicates if this is a proxy contract
true
Debt ratio for lending positions (lower is safer)
0.01
Link to check the debt ratio status
"https://pancakeswap.finance/swap"
User wallet address holding these positions
"wallet_address_here"
Official website URL of the protocol
"https://pancakeswap.finance/swap"
Was this page helpful?