RWA · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-AMD-USDT:USDT | 500.480 | -11.27% | $29.4M | 0.0000% | +2.70 | 0.19 | $647 | 0.91 |
| Hyperliquid | perpetual-XYZ:AMD-USDC:USDC | 499.420 | -11.33% | $15.3M | +0.0032% | +3.81 | 1.68 | $5.4K | 1.01 |
| OKX | perpetual-AMD-USDT:USDT | 500.030 | -11.32% | $4.1M | 0.0000% | -0.20 | 0.94 | $347 | 0.84 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# AMD (AMD), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-AMD-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:AMD-USDC:USDC"),
("okx-perps", "perpetual-AMD-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 AMD (AMD) perps on Binance, Hyperliquid and OKX over the last 30 days: how does the premium over the stock (`basis`, `funding`) behave overnight and at weekends, while its market is shut?