Real-world asset · ETF perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-SOXS-USDT:USDT | 69.370 | +28.25% | $71.7M | -0.0186% | +2.50 | 1.58 | $18.1K | 1.02 |
| OKX | perpetual-SOXS-USDT:USDT | 69.350 | +28.16% | $12.7M | 0.0000% | +8.66 | 1.58 | $5.8K | 1.01 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Semiconductor Bear 3x ETF (SOXS), `basis`, hourly, on 2 venues
for exchange, symbol in [
("binance-futures", "perpetual-SOXS-USDT:USDT"),
("okx-perps", "perpetual-SOXS-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 Semiconductor Bear 3x ETF (SOXS) perps on Binance and OKX over the last 30 days: how does the premium over the ETF (`basis`, `funding`) behave overnight and at weekends, while its market is shut?