RWA · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-AMZN-USDT:USDT | 239.640 | -2.33% | $17.2M | 0.0000% | +2.48 | 0.83 | $1.0K | 1.01 |
| Hyperliquid | perpetual-XYZ:AMZN-USDC:USDC | 239.170 | -2.38% | $22.1M | +0.0006% | +2.09 | 1.32 | $7.1K | 0.95 |
| OKX | perpetual-AMZN-USDT:USDT | 239.660 | -2.32% | $3.9M | 0.0000% | +4.01 | 1.30 | $655 | 0.96 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Amazon (AMZN), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-AMZN-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:AMZN-USDC:USDC"),
("okx-perps", "perpetual-AMZN-USDT:USDT"),
]:
df = get_metrics(
api_key="YOUR_API_KEY",
metric="basis",
exchange=exchange,
symbol=symbol,
interval="1h",
timestamp="exchange",
start_date=date(2026, 9, 30),
end_date=date(2026, 10, 30),
)
print(exchange, df.head())Read https://aperiodic.io/start.md and follow it. Then, for the Amazon (AMZN) 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?