Historical data
Our trade database, by the hour: every trade on the launchpads' coins, their launches and their graduations, back to March 2025. Buy the days you want, download their hours and run them through your strategy: that is a backtest.
| A day | 24 hourly files of that calendar day, in Beijing time or UTC as you pick it |
| Price | 1 day $6 · 7 days $40 · 1 month (up to 31 days) $150. An order takes the cheapest mix: 10 days are a week and 3 days, $58 |
| Downloads | each hour file you bought, 3 times, counted by the data sent: every whole file's worth is one download, a resumed download counts only what it sent |
| Ready | the files of a day are prepared when you buy it, in about 2 minutes a day |
| Plan | the history does not need the monthly plan |
| Payment | USDC or SOL, in the dashboard |
On the history page pick the days and see what the order costs before you pay. To see what a file holds, download the sample.
What the data includes
One line per event, in the chain's order:
- Trades (
buy,sell): every buy and sell of a coin launched on pump.fun, Raydium LaunchLab (Bonk, StonkFun and the other LaunchLab platforms) or Meteora DBC, on its bonding curve or in the pool it graduated to (venue:curveorpool). The trader, the coin, the token and SOL amounts, the price, the network fee and tip, the trading app it went through and what that app charged, and tags: the coin's creator (dev), a bundle, a sniper, the wallet's first buy. - Liquidity (
add,remove) in a coin's own PumpSwap pool: coming. No hour has it yet; the files get it from the day it is recorded on. - Launches (
create): the mint, creator, name, symbol, metadata URI and decimals. - Graduations (
migrate): when a coin left its curve. - When: the
block, itstimestamp(seconds),time(milliseconds) and the transaction's place in the block (txIndex).
How far back:
- Every venue above: from 17 July 2026.
- Before that: pump.fun only.
- The oldest stretch, from 14 March 2025, has pump.fun's bonding curve only, read from the Solana ledger. Those trades have
signaturenull, no tip or trading app, and the time is the block's second. Many traders are known only asunknown:<16 hex>: the same id is the same wallet.
The calendar on the history page shows which days exist.
Not in it:
- Pool reserves, per-swap breakdowns, creator-fee claims and compute units.
- Coins that did not start on one of those launchpads, and pools other than a coin's own.
For those, live, use the Full Data Stream.
Download a sample: 3,000 lines in a row from 6 December 2026, 10:00:17 to 10:00:36 UTC (buys, sells, launches and a graduation), exactly as in the files you buy (1.7 MB, unpacked).
Which hours exist
GET https://fra.api.koi.tools/api/history/hours
No key needed. Every hour with trades, oldest first:
{
"from": "2025/03/14/00",
"hours": [
{ "hour": "2026/12/04/14", "events": 612408, "bytes": 79611040, "ready": true },
{ "hour": "2026/12/04/15", "events": 598115, "bytes": 77754950, "ready": false }
]
}
The hour is UTC: 2026/12/04/14 is 14:00 to 15:00 UTC on 4 December 2026. An hour can be had about 10 minutes after it ends. ready says whether its file is built; until it is, events counts its trades and bytes is an estimate.
What is in an hour
GET https://fra.api.koi.tools/api/history/hours/2026/12/04/14
No key needed, and free. For a built hour: its size, its lines counted by action and by venue, and its first five lines:
{
"hour": "2026/12/04/14", "bytes": 79611040, "events": 615290,
"byAction": { "buy": 371002, "sell": 238511, "create": 3120, "migrate": 41, "add": 1340, "remove": 1276 },
"byVenue": { "curve": 281960, "pool": 330169 },
"sample": [ { "action": "buy", "timestamp": 1796392800, "…": "…" } ]
}
An hour not built yet answers with its trade count and estimated size, and "ready": false.
Download an hour
GET https://fra.api.koi.tools/api/history/download/2026/12/04/14
x-api-key: sk_…
The answer is a redirect to the hour's file, 2026-12-04-14.jsonl.zst, on our file server: follow it (curl -L; fetch and requests follow it by themselves). The link works for 10 minutes; a download that started goes on, and one that breaks off resumes with a Range header.
Every hour of a day you bought downloads 3 times. It is counted by the data sent: every whole file's worth uses one download, and a resumed download counts only what it sent.
| Answer | |
|---|---|
302 | the file, at the Location given (the body has url, bytes and downloadsLeft) |
503 preparing | the file is being built: wait Retry-After seconds and ask again |
402 not_bought | that hour's day is not bought: buy it in the dashboard |
403 downloads_used | the hour was downloaded 3 times |
404 not_found | there is no such hour |
- Shell
- JavaScript
- Python
# Save the hour (retries while it is prepared, resumes if cut off), then unpack it.
curl -L --retry 10 -C - -H "x-api-key: sk_…" -o 2026-12-04-14.jsonl.zst \
https://fra.api.koi.tools/api/history/download/2026/12/04/14
zstd -d 2026-12-04-14.jsonl.zst
// Node 22.15+ has zstd in zlib. Older Node: npm install fzstd.
import { createZstdDecompress } from "node:zlib";
import { createInterface } from "node:readline";
import { Readable } from "node:stream";
const url = "https://fra.api.koi.tools/api/history/download/2026/12/04/14";
let res;
for (;;) {
res = await fetch(url, { headers: { "x-api-key": "sk_…" } }); // follows the redirect
if (res.status !== 503) break; // 503: being prepared
await new Promise((r) => setTimeout(r, 1000 * Number(res.headers.get("retry-after") || 60)));
}
if (!res.ok) throw new Error(`HTTP ${res.status}`); // 402: that day is not bought
const lines = createInterface({ input: Readable.fromWeb(res.body).pipe(createZstdDecompress()) });
let buys = 0;
for await (const line of lines) {
const e = JSON.parse(line);
if (e.action === "buy" && e.venue === "curve") buys++;
}
console.log("curve buys that hour:", buys);
import io, json, time, requests, zstandard # pip install zstandard requests
url = "https://fra.api.koi.tools/api/history/download/2026/12/04/14"
while True:
r = requests.get(url, headers={"x-api-key": "sk_…"}, stream=True) # follows the redirect
if r.status_code != 503: # 503: being prepared
break
time.sleep(int(r.headers.get("Retry-After", 60)))
r.raise_for_status() # 402: that day is not bought
reader = zstandard.ZstdDecompressor().stream_reader(r.raw)
buys = 0
for line in io.TextIOWrapper(reader, encoding="utf-8"):
e = json.loads(line)
if e["action"] == "buy" and e["venue"] == "curve":
buys += 1
print("curve buys that hour:", buys)
What you bought
GET https://fra.api.koi.tools/api/history/purchases
x-api-key: sk_…
Every hour of every day you bought, with the downloads it has left:
{ "days": 2, "hours": [{ "hour": "2026/12/04/14", "downloadsLeft": 3 }, { "hour": "2026/12/04/15", "downloadsLeft": 2 }, "…"] }
Format
One JSON object per line, zstd compressed, in the chain's order: by block, then by place in the block. Fields share the Full Data Stream's names where they mean the same. Every line has action, timestamp (seconds) and time (milliseconds).
A trade:
{"action":"buy","timestamp":1796392979,"time":1796392979702,"block":477400329,"txIndex":21,"signature":"4Hq2…xP9w","mint":"Gc6r…pump","trader":"9AiX…yvZG","venue":"curve","tokenAmount":145147.104363,"tokenAmountRaw":"145147104363","decimals":6,"quoteAmount":0.18242992,"quote":"SOL","price":0.00000125686,"solAmount":0.184619082,"feeLamports":50450,"tipLamports":0,"platform":"Axiom","platformFeeLamports":1824,"tags":["dev","first"]}
| Field | |
|---|---|
block, txIndex, signature | where the transaction is; txIndex is null where not known (for now on every line), signature in the oldest stretch |
trader | the wallet that traded; unknown:<16 hex> for a wallet the oldest stretch knows only by an id (the same id is the same wallet) |
venue | curve (the bonding curve) or pool (the pool the coin graduated to) |
tokenAmount, tokenAmountRaw, decimals | the tokens, whole and in base units |
quoteAmount, quote | the curve's or pool's side of the trade in its quote: SOL, USD or token (another coin); null for a trade recorded from the wallet's balance change (about 7% of trades) |
price | the trade's fill, per whole token in the quote; null like quoteAmount |
solAmount | the SOL the wallet paid on a buy or received on a sell, every fee in it; always positive (action gives the direction) |
feeLamports, tipLamports | what the transaction paid to land (network fee, priority fee and tip), shared evenly over its trades, and the tip's part of it, in lamports: don't add the two |
platform, platformFeeLamports | the trading app the trade went through (null for none known) and what it charged, in lamports |
tags | dev (the coin's creator), bundle, sniper, first (the wallet's first buy of the coin) |
Liquidity (not in the files yet), a launch and a graduation:
{"action":"add","timestamp":1796392985,"time":1796392985120,"block":477400343,"txIndex":7,"signature":"2kPq…aF3e","mint":"Gc6r…pump","pool":"4mBL…zmY","protocol":"PUMPSWAP","user":"7bXe…Lm2Q","tokenAmount":2000000,"tokenAmountRaw":"2000000000000","quoteAmount":1.5,"quoteAmountRaw":"1500000000","quote":"SOL","lpAmountRaw":"77015521","feeLamports":5000}
{"action":"create","timestamp":1796392991,"time":1796392991004,"mint":"9xTt…pump","creator":"3Fhv…Ws8u","name":"Koi","symbol":"KOI","uri":"https://ipfs.io/ipfs/…","decimals":6}
{"action":"migrate","timestamp":1796393002,"time":1796393002500,"mint":"Gc6r…pump"}
Launches and graduations carry no block or signature.
An hour is about 80 MB compressed at busy times and about ten times that unpacked. Stream it rather than loading it whole.
Notes
- Filter early. Keep the coins, venues and actions you care about and drop the rest while streaming.
- One line per trader per coin. A transaction that trades for several wallets or coins gives one line each, with the same signature.
- Fees before 17 October 2026.
feeLamportsis mostly the priority fee alone there, andtipLamports0. - Not the live stream's events. The fields are named like the stream's where they mean the same, but a line is shorter. Code written for the Full Data Stream needs small changes: the wallet is
trader(the stream'stxSigner), and there are no reserves or breakdowns.