Skip to main content

GET /api/defi/uniswap

Uniswap stats

GET uniswap data from defi service

Endpoint​

GET https://api.web3identity.com/api/defi/uniswap

Example Request​

curl -s "https://api.web3identity.com/api/defi/uniswap" | jq

Responses​

200 Uniswap data​

{
"protocol": "Uniswap",
"tvl": 8901234567.89,
"volume24h": 1234567890.12,
"volume7d": 8901234567.89,
"fees24h": 3456789.01,
"topPools": [
{
"pair": "ETH/USDC",
"tvl": 987654321.09,
"volume24h": 234567890.12,
"fee": 0.05
},
{
"pair": "ETH/USDT",
"tvl": 876543210.98,
"volume24h": 198765432.1,
"fee": 0.05
}
]
}

400 Bad request - invalid parameters​

{
"example": "response"
}

402 Payment required - free tier exhausted​

{
"example": "response"
}

404 Resource not found​

{
"example": "response"
}

429 Rate Limited​

{
"example": "response"
}

500 Internal Server Error - Something went wrong on our end​

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}

Auto-generated from OpenAPI spec