Analytics
Protocol-wide statistics and aggregated data.
Protocol Stats
GET /analytics/protocol
bash
curl https://mainnet.api.ryze.pro/api/analytics/protocolResponse
json
{
"totalVolume": {
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913": "50000000000",
"0x4200000000000000000000000000000000000006": "31250000000000000000"
},
"totalFees": { ... },
"totalSwaps": 5000,
"totalJoins": 200,
"totalExits": 80,
"uniqueWallets": 500,
"poolCount": 2,
"volume24h": { ... },
"fees24h": { ... },
"swaps24h": 150,
"volume24hUsd": 250000,
"fees24hUsd": 750,
"totalVolumeUsd": 5000000,
"totalFeesUsd": 15000,
"volume7dUsd": 1200000,
"volume7dByToken": { ... }
}| Field | Type | Description |
|---|---|---|
totalVolume | object | Volume by token (raw amounts as strings) |
totalSwaps | number | All-time swap count |
totalJoins | number | All-time join count |
totalExits | number | All-time exit count |
uniqueWallets | number | Distinct wallet addresses |
poolCount | number | Number of active pools |
volume24hUsd | number | 24-hour volume in USD (nullable) |
fees24hUsd | number | 24-hour fees in USD (nullable) |
totalVolumeUsd | number | All-time volume in USD (nullable) |
totalFeesUsd | number | All-time fees in USD (nullable) |
volume7dUsd | number | 7-day volume in USD (nullable) |
TVL
GET /analytics/tvl
Returns Total Value Locked across all pools.
bash
curl https://mainnet.api.ryze.pro/api/analytics/tvlResponse
json
{
"pools": [
{
"poolAddress": "0x7b41...",
"totalSupplyLP": "1000000000000000000000",
"assets": [
{
"tokenAddress": "0x4200...0006",
"balance": "156250000000000000000",
"weight": "500000000000000000",
"decimals": 18
},
{
"tokenAddress": "0x8335...2913",
"balance": "250000000000",
"weight": "500000000000000000",
"decimals": 6
}
]
}
],
"totalByToken": {
"0x4200000000000000000000000000000000000006": "156250000000000000000",
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913": "250000000000"
}
}Wallets
GET /analytics/wallets
bash
curl https://mainnet.api.ryze.pro/api/analytics/walletsResponse
json
{
"totalUniqueWallets": 500,
"breakdown": {
"swappers": 400,
"liquidityProviders": 150
}
}Top Trades
GET /analytics/trades/top
| Parameter | Type | Default | Description |
|---|---|---|---|
period | string | "24h" | 24h, 7d, 30d, or all |
limit | number | 10 | Max results (up to 100) |
bash
curl "https://mainnet.api.ryze.pro/api/analytics/trades/top?period=7d&limit=10"Response
json
{
"trades": [
{
"txHash": "0x...",
"poolAddress": "0x7b41...",
"sender": "0xtrader...",
"tokenIn": "0x8335...2913",
"tokenOut": "0x4200...0006",
"amountIn": "1000000000",
"amountOut": "625000000000000000",
"timestamp": "2026-04-15T11:30:00.000Z",
"blockNumber": 44700000
}
],
"period": "7d",
"limit": 10
}Rewards
GET /analytics/rewards
Returns epoch reward statistics.
bash
curl https://mainnet.api.ryze.pro/api/analytics/rewardsResponse
json
{
"currentEpoch": 5,
"totalRevenueAllTime": "100000000000000000000",
"totalDistributedAllTime": "80000000000000000000",
"totalEmissionsAllTime": "50000000000000000000",
"recentEpochs": [
{
"epochNumber": 5,
"totalEmission": "10000000000000000000",
"emissionByCategory": {
"premium": "4000000000000000000",
"lp": "3000000000000000000",
"trader": "2000000000000000000",
"referral": "1000000000000000000"
},
"totalRevenue": "20000000000000000000",
"distributedRevenue": "16000000000000000000"
}
]
}Leaderboard
GET /analytics/leaderboard
| Parameter | Type | Default | Description |
|---|---|---|---|
period | string | "24h" | 24h, 7d, 30d, or all |
limit | number | 20 | Max results (up to 100) |
sortBy | string | "volume" | volume or rewards |
bash
curl "https://mainnet.api.ryze.pro/api/analytics/leaderboard?period=7d&sortBy=volume&limit=20"Response
json
{
"leaderboard": [
{
"rank": 1,
"wallet": "0xtoptrader...",
"volumeUsd": "500000",
"swapCount": 150,
"rewardsUsd": "250"
}
],
"period": "7d",
"limit": 20,
"totalParticipants": 500
}Trading Savings
GET /analytics/trading-savings
Protocol-wide comparison of Ryze execution vs. other DEXes.
bash
curl https://mainnet.api.ryze.pro/api/analytics/trading-savingsResponse
json
{
"netDifferenceUsd": 15000,
"totalSavedUsd": 18000,
"totalLostUsd": 3000,
"totalSwaps": 5000,
"swapsWithSavings": 4000,
"swapsWithLosses": 1000,
"avgSavingsPercentage": 0.12,
"uniqueTraders": 500
}| Field | Type | Description |
|---|---|---|
netDifferenceUsd | number | Net savings (positive = saved) |
totalSavedUsd | number | Sum of positive savings |
totalLostUsd | number | Sum of losses (positive number) |
avgSavingsPercentage | number | Average savings as decimal |
uniqueTraders | number | Traders with comparison data |