Real-world asset · Index perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Hyperliquid | perpetual-XYZ:XYZ100-USDC:USDC | 26,151.0 | -5.12% | $346.4M | +0.0024% | +8.04 | 0.38 | $194.3K | 0.87 |
| OKX | perpetual-US100-USDT:USDT | 26,194.0 | -5.11% | $563.0K | +0.0207% | +6.79 | 0.76 | $8.9K | 0.88 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Nasdaq 100 index (US100), `basis`, hourly, on 2 venues
for exchange, symbol in [
("hyperliquid-perps", "perpetual-XYZ:XYZ100-USDC:USDC"),
("okx-perps", "perpetual-US100-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 index (US100) perps on Hyperliquid and OKX over the last 30 days: how does the premium over the index (`basis`, `funding`) behave while the cash market is shut?