RWA · Commodity perp
| Venue | Atlas ID | Price | 24h | Open interest | Funding | Basis, bps | Spread, bps | Top depth | Buy/sell |
|---|---|---|---|---|---|---|---|---|---|
| Binance | perpetual-NATGAS-USDT:USDT | 2.898 | -1.16% | $18.2M | 0.0000% | -2.25 | 3.44 | $22.8K | 0.93 |
| Hyperliquid | perpetual-XYZ:NATGAS-USDC:USDC | 2.892 | -1.11% | $10.8M | +0.0006% | +2.07 | 1.38 | $5.1K | 0.76 |
pip install "aperiodic[polars]"from datetime import date
from aperiodic import get_metrics
# Natural gas (NATGAS), `l1_liquidity`, hourly, on 2 venues
for exchange, 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, 9, 30),
end_date=date(2026, 10, 30),
)
print(exchange, df.head())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`)?