Skip to content
Fourohtwo

OHLCV price candles for one DEX pool

x402.dexpaprika.com/networks/:network/pools/:pool_address/ohlcv

OHLCV price candles for one DEX pool. Pass start (-24h, -7d, Unix time, RFC3339 or a date) and interval (1m, 5m, 10m, 15m, 30m, 1h, 6h, 12h or 24h); optional end, limit up to 1000, count_back, and inversed to quote the other token. Returns time_open, time_close, open, high, low, close and volume. History goes back over a year.

BaseSolanaAnswering
GEThttps://x402.dexpaprika.com/networks/:network/pools/:pool_address/ohlcv

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.dexpaprika.com/networks/:network/pools/:pool_address/ohlcv?interval=1h&limit=24&start=-24h");
console.log(await res.json());

Example input

{
  "interval": "1h",
  "limit": "24",
  "start": "-24h"
}

More from DexPaprikaProvider status