RWA · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-TSLA-USDT:USDT | 398.930 | -1.55% | $51.6M | 0.0000% | -2.69 | 0.25 | $5.1K | 0.89 |
| Hyperliquid | perpetual-XYZ:TSLA-USDC:USDC | 398.200 | -1.57% | $39.4M | +0.0006% | -1.25 | 0.76 | $9.8K | 1.14 |
| OKX | perpetual-TSLA-USDT:USDT | 398.900 | -1.53% | $15.0M | 0.0000% | -2.13 | 0.25 | $4.4K | 1.01 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Tesla (TSLA), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-TSLA-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:TSLA-USDC:USDC"),
("okx-perps", "perpetual-TSLA-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 Tesla (TSLA) 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?