Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-AVGO-USDT:USDT | 336.880 | -7.09% | $20.8M | 0.0000% | -8.49 | 0.29 | $1.2K | 0.96 |
| OKX | perpetual-AVGO-USDT:USDT | 336.800 | -7.08% | $4.1M | 0.0000% | -11.6 | 2.34 | $497 | 1.01 |
| Hyperliquid | perpetual-XYZ:AVGO-USDC:USDC | 336.810 | -6.86% | $4.2M | -0.0011% | -0.89 | 4.18 | $6.4K | 0.76 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Broadcom (AVGO), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-AVGO-USDT:USDT"),
("okx-perps", "perpetual-AVGO-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:AVGO-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 Broadcom (AVGO) 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?