RWA · Index perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Hyperliquid | perpetual-XYZ:SP500-USDC:USDC | 7,553.7 | -1.92% | $370.1M | +0.0006% | -0.26 | 0.13 | $102.0K | 1.01 |
| OKX | perpetual-US500-USDT:USDT | 7,558.6 | -1.81% | $377.2K | 0.0000% | +5.51 | 2.61 | $1.4K | 0.46 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# S&P 500 (SP500), `basis`, hourly, on 2 venues
for exchange, symbol in [
("hyperliquid-perps", "perpetual-XYZ:SP500-USDC:USDC"),
("okx-perps", "perpetual-US500-USDT:USDT"),
]:
df = get_metrics(
api_key="YOUR_API_KEY",
metric="basis",
exchange=exchange,
symbol=symbol,
interval="1h",
timestamp="exchange",
start_date=date(2026, 9, 30),
end_date=date(2026, 10, 30),
)
print(exchange, df.head())Read https://aperiodic.io/start.md and follow it. Then, for the S&P 500 (SP500) 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?