Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-BABA-USDT:USDT | 83.890 | +0.60% | $15.3M | 0.0000% | +13.3 | 1.20 | $1.9K | 0.94 |
| Hyperliquid | perpetual-XYZ:BABA-USDC:USDC | 83.758 | +0.66% | $10.6M | +0.0032% | +4.30 | 5.98 | $15.0K | 0.94 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Alibaba (BABA), `basis`, hourly, on 2 venues
for exchange, symbol in [
("binance-futures", "perpetual-BABA-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:BABA-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 Alibaba (BABA) perps on Binance 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?