现实世界资产 · FX perp
pip install "aperiodic[polars]"
from datetime import date from aperiodic import get_metrics # Euro (EUR), `basis`, hourly df = get_metrics( api_key="YOUR_API_KEY", metric="basis", exchange="hyperliquid-perps", symbol="perpetual-XYZ:EUR-USDC:USDC", interval="1h", timestamp="exchange", start_date=date(2026, 10, 24), end_date=date(2026, 11, 23), ) print(df.head())
Read https://aperiodic.io/start.md and follow it. Then, for the Euro (EUR) perps on Hyperliquid over the last 30 days: how does the premium (`basis`, `funding`) behave at weekends, while the FX market is shut?
打开方式Claude Desktop·Claude Code(终端)·Codex
其他类别