GatewayWalletBatched
Get OHLCV candlestick data for a Binance trading pair
https://nano.blockrun.ai/api/v1/pm/binance/candles/BTCUSDTUptime100% of 4 checks in 30 days
30 days agoToday
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://nano.blockrun.ai/api/v1/pm/binance/candles/BTCUSDT");
console.log(await res.json());