Feature

1s Solana OHLCV API

Get candle data for any mint across intervals like 1s, 15s, 30s, 1m, and more. Bonding curve candles and the graduated pool candles are merged into one normalized series.

Endpoint

GET /token/ohlcv/:mint/:timeframe

Optional: use time_to (unix seconds) as a cursor to backfill older candles.

Example (1s)

Curl | ohlcv_1s.sh
curl -H "x-api-key: YOUR_KEY" \
  "https://us-east.dritan.dev/token/ohlcv/So11111111111111111111111111111111111111112/1s"
TypeScript (SDK) | ohlcv_1s.ts
import { DritanClient } from "dritan-sdk";

const client = new DritanClient({ apiKey: "YOUR_KEY" });
const candles = await client.getTokenOhlcv(
  "So11111111111111111111111111111111111111112",
  "1s"
);
console.log(candles.closed.length, candles.active?.close);

Note: upstream sources typically return up to ~2000 candles per request. Use time_to to paginate.