Skip to content
Fourohtwo

GatewayWalletBatched

Get historical OHLCV candlestick data for a market

PolygonArbitrumOptimismUnichainAvalancheSonic+2Unchecked
https://nano.blockrun.ai/api/v1/pm/polymarket/candlesticks/{hash}

UptimeNot checked yet

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/polymarket/candlesticks/{hash}");
console.log(await res.json());