Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-ORCL-USDT:USDT | 107.770 | -7.48% | $11.4M | 0.0000% | -13.4 | 1.70 | $888 | 0.93 |
| OKX | perpetual-ORCL-USDT:USDT | 107.770 | -7.49% | $2.7M | 0.0000% | -1.86 | 1.79 | $690 | 0.85 |
| Hyperliquid | perpetual-XYZ:ORCL-USDC:USDC | 107.660 | -7.43% | $9.4M | +0.0006% | -0.93 | 2.56 | $6.3K | 0.82 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Oracle (ORCL), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-ORCL-USDT:USDT"),
("okx-perps", "perpetual-ORCL-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:ORCL-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 Oracle (ORCL) 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?