Skip to content

Bands

Band endpoints provide pre-computed quotes at various trade sizes (band midpoints) for all pools.

Get All Bands

GET /bands

Returns band information for all pools with quotes at band midpoints.

bash
curl https://mainnet.router.ryze.pro/bands

Response

json
{
  "pools": [
    {
      "poolAddress": "0x7B41aA91947398CD9244AD4e314C253D9B1B5206",
      "assets": [
        {
          "assetAddress": "0x4200000000000000000000000000000000000006",
          "decimals": 18,
          "bands": [
            {
              "bandIndex": 0,
              "lowerLimit": "250000000000000000000",
              "upperLimit": "1000000000000000000000",
              "midpointUSD": "625000000000000000000",
              "tokenAToB": {
                "amountIn": "390625000000000000",
                "amountOut": "624375000",
                "priceImpact": "100000000000000",
                "effectiveRate": "1598400000000000000000",
                "hops": [
                  {
                    "poolAddress": "0x7B41...",
                    "tokenIn": "0x4200...",
                    "tokenOut": "0x8335..."
                  }
                ]
              },
              "tokenBToA": {
                "amountIn": "625000000",
                "amountOut": "390000000000000000",
                "priceImpact": "100000000000000",
                "effectiveRate": "624000000000",
                "hops": [...]
              }
            }
          ],
          "totalBands": 6
        }
      ],
      "totalAssets": 2
    }
  ],
  "totalPools": 2
}

Band Fields

FieldTypeDescription
bandIndexnumberBand index (0-based)
lowerLimitstringLower USD bound (WAD)
upperLimitstringUpper USD bound (WAD)
midpointUSDstringBand midpoint in USD (WAD)
tokenAToBobjectQuote for selling this asset
tokenBToAobjectQuote for buying this asset

Quote Fields (per direction)

FieldTypeDescription
amountInstringInput amount (raw units)
amountOutstringOutput amount (raw units)
priceImpactstringPrice impact (WAD)
effectiveRatestringEffective rate (WAD)
hopsarrayRoute hops

Caching

Response includes Cache-Control: public, max-age=10.


Token Band Prices

GET /bands-prices/:token

Returns band quotes for a specific non-USDC token paired with USDC.

Path Parameters

ParameterTypeDescription
tokenstringNon-USDC token address
bash
curl https://mainnet.router.ryze.pro/bands-prices/0x4200000000000000000000000000000000000006

Response

json
{
  "tokenA": {
    "address": "0x4200000000000000000000000000000000000006",
    "symbol": "WETH",
    "decimals": 18
  },
  "tokenB": {
    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "symbol": "USDC",
    "decimals": 6
  },
  "bands": [
    {
      "bandIndex": 0,
      "range": {
        "minUSD": "250000000000000000000",
        "maxUSD": "1000000000000000000000"
      },
      "midpointUSD": "625000000000000000000",
      "tokenAToB": {
        "amountIn": "390625000000000000",
        "amountOut": "624375000",
        "priceImpact": "100000000000000",
        "effectiveRate": "1598400000000000000000",
        "hops": [...]
      },
      "tokenBToA": {
        "amountIn": "625000000",
        "amountOut": "390000000000000000",
        "priceImpact": "100000000000000",
        "effectiveRate": "624000000000",
        "hops": [...]
      }
    }
  ],
  "lastUpdated": "2026-04-15T12:00:00Z",
  "priceA": "1600250000000000000000",
  "priceB": "1000000000000000000"
}
FieldTypeDescription
tokenAobjectThe requested token (address, symbol, decimals)
tokenBobjectUSDC (the quote token)
bandsarrayBand quotes for each size tier
priceAstringOracle price of token A (WAD)
priceBstringOracle price of USDC (WAD)
lastUpdatedstringTimestamp of data

Errors

CodeReason
400Token address missing or token is USDC
404No USDC-paired pool found