RWA · ETF perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-SPY-USDT:USDT | 754.920 | -1.84% | $29.9M | 0.0000% | +2.87 | 0.13 | $61.8K | 0.94 |
| OKX | perpetual-SPY-USDT:USDT | 754.880 | -1.84% | $8.2M | 0.0000% | +4.37 | 0.13 | $20.6K | 0.88 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# S&P 500 ETF (SPY), `basis`, hourly, on 2 venues
for exchange, symbol in [
("binance-futures", "perpetual-SPY-USDT:USDT"),
("okx-perps", "perpetual-SPY-USDT:USDT"),
]:
df = get_metrics(
api_key="YOUR_API_KEY",
metric="basis",
exchange=exchange,
symbol=symbol,
interval="1h",
timestamp="exchange",
start_date=date(2026, 9, 30),
end_date=date(2026, 10, 30),
)
print(exchange, df.head())Read https://aperiodic.io/start.md and follow it. Then, for the S&P 500 ETF (SPY) 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?