RWA · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-AAPL-USDT:USDT | 343.840 | -1.93% | $52.7M | -0.0148% | -3.34 | 0.29 | $6.1K | 1.07 |
| Hyperliquid | perpetual-XYZ:AAPL-USDC:USDC | 343.140 | -2.00% | $74.3M | -0.0002% | -2.04 | 1.14 | $32.9K | 0.96 |
| OKX | perpetual-AAPL-USDT:USDT | 343.800 | -1.90% | $12.2M | 0.0000% | -0.29 | 0.29 | $3.4K | 1.21 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Apple (AAPL), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-AAPL-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:AAPL-USDC:USDC"),
("okx-perps", "perpetual-AAPL-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 Apple (AAPL) 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?