x4o2 FOMO Data
Historical USD candles for one token as FOMO charts it: t (bucket start, unix ms), o, h, l, c and v (USD volume) for the 300 buckets ending at to, optionally trimmed to those at or after from. period picks the bucket size (5m, 30m, 1h, 4h, 12h). Use for price history and chart analysis.
- Price per call
- $0.001
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 4
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://fomo.x4o2.com/v1/token/:chain/:address/candles", { method: "GET" });
console.log(await res.json());https://fomo.x4o2.com/v1/token/:chain/:address/candles