RWA · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-COIN-USDT:USDT | 139.910 | -12.23% | $19.7M | +0.0160% | +0.69 | 0.66 | $709 | 0.93 |
| Hyperliquid | perpetual-XYZ:COIN-USDC:USDC | 139.750 | -12.24% | $15.2M | +0.0060% | +6.44 | 1.30 | $5.9K | 0.87 |
| OKX | perpetual-COIN-USDT:USDT | 139.940 | -12.25% | $6.4M | +0.0752% | +8.58 | 2.14 | $680 | 0.91 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Coinbase (COIN), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-COIN-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:COIN-USDC:USDC"),
("okx-perps", "perpetual-COIN-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 Coinbase (COIN) 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?