Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-TSM-USDT:USDT | 339.510 | -6.07% | $14.8M | +0.0007% | -12.0 | 0.88 | $4.4K | 1.03 |
| Hyperliquid | perpetual-XYZ:TSM-USDC:USDC | 339.520 | -5.93% | $9.8M | +0.0014% | 0.00 | 2.91 | $4.9K | 0.76 |
| OKX | perpetual-TSM-USDT:USDT | 339.530 | -6.10% | $6.6M | +0.0266% | -0.29 | 0.29 | $563 | 0.78 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# TSMC (TSM), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-TSM-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:TSM-USDC:USDC"),
("okx-perps", "perpetual-TSM-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 TSMC (TSM) 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?