실물자산 · Stock perp
| 거래소 | Atlas ID | 가격 | 24h | 미결제약정 | 펀딩 | 베이시스, bps | Spread, bps | 최상단 호가 깊이 | 매수/매도 |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-AAOI-USDT:USDT | 35.670 | +3.69% | $8.4M | 0.0000% | +2.60 | 2.89 | $1.6K | 0.98 |
| OKX | perpetual-AAOI-USDT:USDT | 35.660 | +3.66% | $2.3M | 0.0000% | +8.42 | 2.89 | $1.1K | 0.87 |
| Hyperliquid | perpetual-XYZ:AAOI-USDC:USDC | 35.642 | +3.70% | $1.5M | +0.0030% | +5.62 | 5.24 | $2.5K | 0.70 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Applied Optoelectronics (AAOI), `basis`, hourly, on 3 venues
for exchange, symbol in [
("binance-futures", "perpetual-AAOI-USDT:USDT"),
("okx-perps", "perpetual-AAOI-USDT:USDT"),
("hyperliquid-perps", "perpetual-XYZ:AAOI-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, 24),
end_date=date(2026, 11, 23),
)
print(exchange, df.head())Read https://aperiodic.io/start.md and follow it. Then, for the Applied Optoelectronics (AAOI) perps on Binance, OKX 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?