fromdatetime importdatefromaperiodic importget_metrics# Japanese yen (JPY), `basis`, hourlydf = get_metrics(api_key="YOUR_API_KEY",metric="basis",exchange="hyperliquid-perps",symbol="perpetual-XYZ:JPY-USDC:USDC",interval="1h",timestamp="exchange",start_date=date(2026, 10, 24),end_date=date(2026, 11, 23),)print(df.head())
供AI智能体使用的提示词
Read https://aperiodic.io/start.md and follow it. Then, for the Japanese yen (JPY) perps on Hyperliquid over the last 30 days: how does the premium (`basis`, `funding`) behave at weekends, while the FX market is shut?