Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-WDC-USDT:USDT | 282.690 | -5.06% | $4.4M | 0.0000% | -23.4 | 1.98 | $405 | 1.05 |
| OKX | perpetual-WDC-USDT:USDT | 282.720 | -5.06% | $1.5M | 0.0000% | -29.6 | 3.68 | $273 | 0.85 |
| Hyperliquid | perpetual-XYZ:WDC-USDC:USDC | 282.360 | -5.06% | $1.4M | +0.0006% | 0.00 | 6.83 | $5.2K | 0.74 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Western Digital (WDC), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-WDC-USDT:USDT"),
("okx-perps", "perpetual-WDC-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:WDC-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 Western Digital (WDC) 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?