Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-QCOM-USDT:USDT | 158.220 | -2.88% | $6.3M | 0.0000% | -18.8 | 1.25 | $913 | 0.99 |
| OKX | perpetual-QCOM-USDT:USDT | 158.220 | -2.87% | $820.7K | 0.0000% | -7.58 | 1.25 | $275 | 0.98 |
| Hyperliquid | perpetual-XYZ:QCOM-USDC:USDC | 157.980 | -3.12% | $1.8M | +0.0006% | -6.33 | 6.77 | $12.1K | 0.93 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Qualcomm (QCOM), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-QCOM-USDT:USDT"),
("okx-perps", "perpetual-QCOM-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:QCOM-USDC:USDC"),
]:
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 Qualcomm (QCOM) perps on Binance, OKX and Hyperliquid over the last 30 days: how does the premium over the stock (`basis`, `funding`) behave overnight and at weekends, while its market is shut?