curl --request GET \
--url https://demo-api.mobula.io/api/2/wallet/defi-positions{
"data": [
{
"protocol": {
"name": "<string>",
"id": "<string>",
"logo": "<string>",
"url": "<string>"
},
"positions": [
{
"type": "<string>",
"name": "<string>",
"chain_id": "<string>",
"contract": "<string>",
"created_at": "<string>",
"tokens": [
{
"name": "<string>",
"symbol": "<string>",
"contract": "<string>",
"amount": "<string>",
"amountRaw": "<string>",
"decimals": "<string>",
"amount_usd": "<string>",
"logo": "<string>",
"price_usd": "<string>"
}
],
"rewards": [
{
"name": "<string>",
"symbol": "<string>",
"contract": "<string>",
"amount": "<string>",
"amountRaw": "<string>",
"decimals": "<string>",
"amount_usd": "<string>",
"price_usd": "<string>"
}
],
"extra": {
"lp_token_amount": "<string>",
"position_staked_amount": "<string>",
"factory": "<string>",
"share_of_pool": "<string>",
"type": "supply",
"health_factor": 123,
"reserve0": "<string>",
"reserve1": "<string>",
"reserve_usd": 123
}
}
]
}
],
"wallets": [
"<string>"
]
}Retrieve DeFi positions across multiple protocols for a wallet address.
curl --request GET \
--url https://demo-api.mobula.io/api/2/wallet/defi-positions{
"data": [
{
"protocol": {
"name": "<string>",
"id": "<string>",
"logo": "<string>",
"url": "<string>"
},
"positions": [
{
"type": "<string>",
"name": "<string>",
"chain_id": "<string>",
"contract": "<string>",
"created_at": "<string>",
"tokens": [
{
"name": "<string>",
"symbol": "<string>",
"contract": "<string>",
"amount": "<string>",
"amountRaw": "<string>",
"decimals": "<string>",
"amount_usd": "<string>",
"logo": "<string>",
"price_usd": "<string>"
}
],
"rewards": [
{
"name": "<string>",
"symbol": "<string>",
"contract": "<string>",
"amount": "<string>",
"amountRaw": "<string>",
"decimals": "<string>",
"amount_usd": "<string>",
"price_usd": "<string>"
}
],
"extra": {
"lp_token_amount": "<string>",
"position_staked_amount": "<string>",
"factory": "<string>",
"share_of_pool": "<string>",
"type": "supply",
"health_factor": 123,
"reserve0": "<string>",
"reserve1": "<string>",
"reserve_usd": 123
}
}
]
}
],
"wallets": [
"<string>"
]
}Wallet address (EVM or Solana)
32 - 44Blockchain to fetch positions from (e.g., "solana", "ethereum")