Real-world asset · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-MRVL-USDT:USDT | 132.830 | -11.48% | $18.8M | 0.0000% | 0.00 | 0.75 | $1.3K | 0.90 |
| Hyperliquid | perpetual-XYZ:MRVL-USDC:USDC | 132.720 | -11.43% | $9.2M | +0.0006% | +3.77 | 2.43 | $10.6K | 0.67 |
| OKX | perpetual-MRVL-USDT:USDT | 132.840 | -11.48% | $6.0M | 0.0000% | +4.52 | 1.31 | $481 | 0.86 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Marvell (MRVL), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-MRVL-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:MRVL-USDC:USDC"),
("okx-perps", "perpetual-MRVL-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 Marvell (MRVL) 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?