Real-world asset · ETF perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-TQQQ-USDT:USDT | 46.950 | -14.78% | $31.2M | +0.0235% | +0.36 | 2.04 | $32.4K | 0.98 |
| OKX | perpetual-TQQQ-USDT:USDT | 46.980 | -14.72% | $4.5M | +0.0288% | 0.00 | 2.04 | $3.4K | 0.97 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Nasdaq 100 3x ETF (TQQQ), `basis`, hourly, on 2 venues
for exchange, symbol in [
("binance-futures", "perpetual-TQQQ-USDT:USDT"),
("okx-perps", "perpetual-TQQQ-USDT:USDT"),
]:
df = get_metrics(
api_key="YOUR_API_KEY",
metric="basis",
exchange=exchange,
symbol=symbol,
interval="1h",
timestamp="exchange",
start_date=date(2026, 10, 21),
end_date=date(2026, 11, 20),
)
print(exchange, df.head())Read https://aperiodic.io/start.md and follow it. Then, for the Nasdaq 100 3x ETF (TQQQ) perps on Binance and OKX over the last 30 days: how does the premium over the ETF (`basis`, `funding`) behave overnight and at weekends, while its market is shut?