Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-ARM-USDT:USDT | 169.210 | -10.58% | $3.5M | 0.0000% | -7.42 | 2.31 | $529 | 0.99 |
| Hyperliquid | perpetual-XYZ:ARM-USDC:USDC | 168.930 | -10.66% | $3.8M | +0.0001% | 0.00 | 3.67 | $3.8K | 0.94 |
| OKX | perpetual-ARM-USDT:USDT | 169.240 | -10.55% | $1.0M | 0.0000% | +2.36 | 3.36 | $380 | 0.95 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Arm (ARM), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-ARM-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:ARM-USDC:USDC"),
("okx-perps", "perpetual-ARM-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 Arm (ARM) 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?