RWA · ETF perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-QQQ-USDT:USDT | 675.750 | +0.58% | $87.6M | 0.0000% | +4.07 | 0.15 | $17.0K | 1.02 |
| OKX | perpetual-QQQ-USDT:USDT | 675.770 | +0.62% | $33.4M | 0.0000% | +2.66 | 0.15 | $11.8K | 1.11 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Nasdaq 100 ETF (QQQ), `basis`, hourly, on 2 venues
for exchange, symbol in [
("binance-futures", "perpetual-QQQ-USDT:USDT"),
("okx-perps", "perpetual-QQQ-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, 16),
end_date=date(2026, 11, 15),
)
print(exchange, df.head())Read https://aperiodic.io/start.md and follow it. Then, for the Nasdaq 100 ETF (QQQ) 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?