Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-AMAT-USDT:USDT | 327.650 | -9.95% | $1.9M | +0.0086% | -8.71 | 4.09 | $550 | 0.98 |
| Hyperliquid | perpetual-XYZ:AMAT-USDC:USDC | 327.480 | -9.77% | $670.5K | +0.0006% | 0.00 | 8.62 | $7.4K | 0.96 |
| OKX | perpetual-AMAT-USDT:USDT | 327.610 | -9.92% | $589.9K | 0.0000% | -3.05 | 9.63 | $330 | 0.84 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Applied Materials (AMAT), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-AMAT-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:AMAT-USDC:USDC"),
("okx-perps", "perpetual-AMAT-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 Applied Materials (AMAT) 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?