[BETA] Wallet Explorer API
Get Defi-Positions Holdings
Introduction
Octopus - Market API
- Docs
- Warehouse
- GETGet Market Data
- GETGet Market Data (batch)
- GETGet Market Pair
- GETGet All Pairs
- GETGet Pair Trades
- GETGet Historical Market Data
- GETGet Historical Market Data (batch)
- GETGet Historical Pair Data (OHLCV)
- GETQuery Asset Data
- GETQuery Token Data
- GETGet Token Holders
- GETGet Blockchain Pairs
- GETGet Pools (new, bonding, bonded)
[BETA] Wallet Explorer API
Metacore
[BETA] Wallet Explorer API
Get Defi-Positions Holdings
GET
/
1
/
wallet
/
defi-positions
curl --request GET \
--url https://api.mobula.io/api/1/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>"
]
}
Retrieves DeFi positions across multiple chains and wallets. Currently, only Uniswap V2 is supported.
Response
200 - application/json
Wallet Defi-Positions response
The response is of type object
.
curl --request GET \
--url https://api.mobula.io/api/1/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>"
]
}