Skip to content

API Reference

The Ryze API is a Fastify server that provides pool data, portfolio tracking, analytics, and configuration.

Base URL

https://mainnet.api.ryze.pro/api

Endpoints

MethodPathDescription
GET/healthService health check
GET/assetsToken list with metadata
GET/poolsPool states (paginated)
GET/pools/listAll pools with metadata
GET/pools/:addressPool summary stats
GET/pools/:address/volumeVolume candles
GET/pools/:address/feesFee candles
GET/pools/:address/aprPool APR breakdown
GET/pools/tokens/:token/volumeToken volume
GET/portfolio/pools/:addressUser LP positions
GET/portfolio/order-history/:addressUser swap history
GET/portfolio/units/:addressUser unit balances
GET/portfolio/rewards/:addressUser claimed rewards
GET/portfolio/division/:addressUser division/tier
GET/portfolio/divisionsAll division definitions
GET/portfolio/claimable-epochs/:addressUnclaimed epoch rewards
GET/portfolio/trading-savings/:addressUser trading savings
GET/portfolio/trading-savings/:address/chartMonthly savings chart
GET/portfolio/trading-savings/:address/swapsSwap comparison details
GET/analytics/protocolProtocol-wide stats
GET/analytics/tvlTotal value locked
GET/analytics/walletsUnique wallet counts
GET/analytics/trades/topTop trades by size
GET/analytics/rewardsEpoch reward stats
GET/analytics/leaderboardTrader leaderboard
GET/analytics/trading-savingsProtocol-wide savings
GET/wbr-configWBR configuration
GET/referral/:addressGet referral code
POST/referral/registerRegister referral
GET/referral/:address/referredList referred users

Common Response Patterns

Pagination

Paginated endpoints accept page and limit query parameters and return:

json
{
  "pagination": {
    "page": 1,
    "limit": 15,
    "totalItems": 42,
    "totalPages": 3,
    "hasNext": true,
    "hasPrev": false
  }
}

Caching

Responses are cached for 60 seconds. The Cache-Control header is set for CDN caching.

Number Format

  • Large numbers (balances, amounts, units) are returned as strings to preserve BigInt precision.
  • WAD format: 1e18 = 1.0. Used for weights, fees, prices.
  • Timestamps in responses are ISO 8601. Timestamps in query parameters are Unix seconds.