Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-BE-USDT:USDT | 158.940 | -10.57% | $5.3M | 0.0000% | -14.1 | 1.84 | $600 | 1.00 |
| OKX | perpetual-BE-USDT:USDT | 158.970 | -10.55% | $1.3M | 0.0000% | -14.4 | 3.08 | $390 | 0.94 |
| Hyperliquid | perpetual-XYZ:BE-USDC:USDC | 158.980 | -10.43% | $3.3M | +0.0006% | 0.00 | 3.92 | $4.6K | 0.76 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Bloom Energy (BE), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-BE-USDT:USDT"),
("okx-perps", "perpetual-BE-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:BE-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 Bloom Energy (BE) 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?