Real-world asset · Index perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Hyperliquid | perpetual-XYZ:KR200-USDC:USDC | 752.140 | -6.20% | $975.0K | +0.0091% | +12.4 | 11.2 | $3.2K | 0.97 |
| OKX | perpetual-KR200-USDT:USDT | 756.000 | -5.74% | $71.2K | +0.0504% | +41.9 | 26.3 | $747 | 0.57 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# KOSPI 200 (KR200), `basis`, hourly, on 2 venues
for exchange, symbol in [
("hyperliquid-perps", "perpetual-XYZ:KR200-USDC:USDC"),
("okx-perps", "perpetual-KR200-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 KOSPI 200 (KR200) 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?