RWA · Stock perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-PLTR-USDT:USDT | 185.790 | -4.08% | $7.9M | 0.0000% | -4.58 | 0.52 | $684 | 1.03 |
| Hyperliquid | perpetual-XYZ:PLTR-USDC:USDC | 185.480 | -4.11% | $5.8M | -0.0006% | -2.70 | 1.55 | $3.6K | 0.88 |
| OKX | perpetual-PLTR-USDT:USDT | 185.890 | -4.07% | $1.9M | 0.0000% | +0.54 | 1.03 | $391 | 0.96 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Palantir (PLTR), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-PLTR-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:PLTR-USDC:USDC"),
("okx-perps", "perpetual-PLTR-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 Palantir (PLTR) 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?