The CU (compute unit) cost is calculated dynamically from three factors:
- Resolution – the requested candle interval.
- Depth – the number of candles requested (
limit). - Lookback – the time between the request and the oldest returned candle.
limit, not the number of records returned. Lookback uses the oldest returned candle timestamp; if none is available, it falls back to the requested anchor time, then the request time.
💡 CU Formula
1. Resolution Base CU
2. Depth Multiplier
3. Lookback Multiplier
ℹ️ Examples
The examples assume the oldest returned candle is at the stated lookback.
Example 1 — Realtime (no lookback multiplier)
Request:- Resolution: 1m
- Limit: 500
- Lookback: 500 minutes (~0.35 day)
Example 2 — Standard historical lookback
Request:- Resolution: 1H
- Limit: 240
- Lookback: 240 hours (10 days)
Example 3 — Deep historical archive
Request:- Resolution: 1D
- Limit: 365
- Lookback: 365 days
Example 4 — Large intraday historical query
Request:- Resolution: 15m
- Limit: 500
- Lookback: 7,500 minutes (~5.2 days)

