Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-IREN-USDT:USDT | 13.870 | -12.16% | $6.7M | +0.0228% | -7.61 | 6.94 | $12.5K | 0.86 |
| Hyperliquid | perpetual-XYZ:IREN-USDC:USDC | 13.863 | -12.07% | $13.7M | +0.0025% | +3.61 | 4.26 | $4.0K | 0.98 |
| OKX | perpetual-IREN-USDT:USDT | 13.880 | -12.15% | $819.9K | +0.0019% | +7.21 | 7.05 | $1.0K | 0.86 |
| Hyperliquid | perpetual-PARA:IREN-USDC:USDC | 13.907 | -12.73% | $564.8K | +0.0011% | +1.44 | 29.0 | $12.6K | 1.47 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# IREN (IREN), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-IREN-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:IREN-USDC:USDC"),
("okx-perps", "perpetual-IREN-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 IREN (IREN) 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?