fromdatetime importdatefromaperiodic importget_metrics# Natural gas (NATGAS), `l1_liquidity`, hourly, on 2 venuesforexchange, symbol in [ ("binance-futures", "perpetual-NATGAS-USDT:USDT"), ("hyperliquid-perps", "perpetual-XYZ:NATGAS-USDC:USDC"),]:df = get_metrics(api_key="YOUR_API_KEY",metric="l1_liquidity",exchange=exchange,symbol=symbol,interval="1h",timestamp="exchange",start_date=date(2026, 10, 24),end_date=date(2026, 11, 23), )print(exchange, df.head())
供AI智能体使用的提示词
Read https://aperiodic.io/start.md and follow it. Then, for the Natural gas (NATGAS) perps on Binance and Hyperliquid over the last 30 days: which venue is cheapest to trade it on, and when (`l1_liquidity`, `slippage`)?