Skip to content

Analytics

Protocol-wide statistics and aggregated data.

Protocol Stats

GET /analytics/protocol

bash
curl https://mainnet.api.ryze.pro/api/analytics/protocol

Response

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": { ... }
}
FieldTypeDescription
totalVolumeobjectVolume by token (raw amounts as strings)
totalSwapsnumberAll-time swap count
totalJoinsnumberAll-time join count
totalExitsnumberAll-time exit count
uniqueWalletsnumberDistinct wallet addresses
poolCountnumberNumber of active pools
volume24hUsdnumber24-hour volume in USD (nullable)
fees24hUsdnumber24-hour fees in USD (nullable)
totalVolumeUsdnumberAll-time volume in USD (nullable)
totalFeesUsdnumberAll-time fees in USD (nullable)
volume7dUsdnumber7-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/tvl

Response

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/wallets

Response

json
{
  "totalUniqueWallets": 500,
  "breakdown": {
    "swappers": 400,
    "liquidityProviders": 150
  }
}

Top Trades

GET /analytics/trades/top

ParameterTypeDefaultDescription
periodstring"24h"24h, 7d, 30d, or all
limitnumber10Max 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/rewards

Response

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

ParameterTypeDefaultDescription
periodstring"24h"24h, 7d, 30d, or all
limitnumber20Max results (up to 100)
sortBystring"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-savings

Response

json
{
  "netDifferenceUsd": 15000,
  "totalSavedUsd": 18000,
  "totalLostUsd": 3000,
  "totalSwaps": 5000,
  "swapsWithSavings": 4000,
  "swapsWithLosses": 1000,
  "avgSavingsPercentage": 0.12,
  "uniqueTraders": 500
}
FieldTypeDescription
netDifferenceUsdnumberNet savings (positive = saved)
totalSavedUsdnumberSum of positive savings
totalLostUsdnumberSum of losses (positive number)
avgSavingsPercentagenumberAverage savings as decimal
uniqueTradersnumberTraders with comparison data