Multi Factor CU Cost
This CU pricing model applies to the following endpoints:
| API | Endpoint |
|---|---|
| Liquidity OHLC - Pair | /defi/v3/liquidity/ohlc/pair |
| Liquidity OHLC - Token | /defi/v3/liquidity/ohlc/token |
| Liquidity History - Token | /defi/v3/liquidity/history/token |
| Latest Liquidity - Token | /defi/v3/liquidity/latest/token |
The CU (compute unit) cost is calculated dynamically based on three request parameters:
- Resolution – the requested candle interval.
- Depth – the number of candles requested (
limit). - Lookback – the historical time range implied by the request.
The calculation is performed from the request parameters, not from the actual number of records returned.
💡 CU Formula
CU = Base CU (Resolution) × Depth Multiplier × Lookback Multiplier × Limitwhere:
lookback_days ≈ limit × resolution_in_days1. Resolution Base CU
| Resolution | Description | Base CU |
|---|---|---|
| < 1H | High resolution | 10 |
| < 1D | Intraday | 30 |
| ≥ 1D | Daily+ | 150 |
2. Depth Multiplier
| Candles per Request | Multiplier |
|---|---|
| ≤ 100 | ×1 |
| 101 – 300 | ×2 |
| 301 – 500 | ×3 |
3. Lookback Multiplier
| Lookback Range | Description | Multiplier |
|---|---|---|
| < 1 day | Realtime / Intraday | ×1 |
| 1 – 100 days | Standard Historical | ×1.5 |
| > 100 days | Deep Historical / Archive | ×3 |
ℹ️ Examples
Example 1 — Realtime (no lookback multiplier)
Request:
- Resolution: 1m
- Limit: 500
- Lookback: 500 minutes (~0.35 day)
Calculation:
Base CU = 10
Depth Multiplier = ×3
Lookback Multiplier = ×1
CU = 10 × 3 × 1 = 30 CUExample 2 — Standard historical lookback
Request:
- Resolution: 1H
- Limit: 240
- Lookback: 240 hours (10 days)
Calculation:
Base CU = 30
Depth Multiplier = ×2
Lookback Multiplier = ×1.5
CU = 30 × 2 × 1.5 = 90 CUExample 3 — Deep historical archive
Request:
- Resolution: 1D
- Limit: 365
- Lookback: 365 days
Calculation:
Base CU = 150
Depth Multiplier = ×3
Lookback Multiplier = ×3
CU = 150 × 3 × 3 = 1,350 CUExample 4 — Large intraday historical query
Request:
- Resolution: 15m
- Limit: 500
- Lookback: 7,500 minutes (~5.2 days)
Calculation:
Base CU = 10
Depth Multiplier = ×3
Lookback Multiplier = ×1.5
CU = 10 × 3 × 1.5 = 45 CUUpdated about 4 hours ago
Did this page help you?
