๐ Overview
Koi API is the Solana launchpad market as data: every transaction on every launchpad we index, the moment it happens, and the trade history of the launchpads' coins back to March 2025.
- ๐ก Full Data Stream Every transaction on every launchpad, one WebSocket.
- โก Shreds pump.fun and PumpSwap transactions before the block runs.
- โช Replay and resume
Reconnect with
sinceSlotand miss nothing. - ๐๏ธ Historical data Any day back to March 2025, from $6 a day.
- ๐ฑ Local trading Buy and sell on every launchpad, 0.25% a trade.
- ๐ Regions Frankfurt, Amsterdam and New York.
๐ฆ What you getโ
- Full Data Stream: one event per transaction. Trades with a per-swap breakdown, pool reserves and fees; launches with their mint and freeze authorities and the launcher's own buy; migrations, pool creates, liquidity, creator-fee claims and fee sweeps. On pump.fun, PumpSwap, Bonk and StonkFun, Meteora (DBC, DAMM v2, DAMM v1, DLMM), Raydium (CPMM, AMM v4, CLMM) and Orca. Every event also says what its transaction paid to land: priority fee, tip and compute units.
- Shreds: the same launches and trades read from the shreds, before the block executes: who sends what, on which coin, buy or sell, the amount in and the limit out, the fee and the tip. Earlier, and with less in it, since nothing has run yet: act on Shreds, account with the Full Data Stream.
- Historical data: the launchpad coins' trades, launches and graduations from our trade database, by the UTC hour as compressed JSON lines, back to March 2025. Buy the days you need.
- Local trading: buy and sell any coin on pump.fun, PumpSwap, LaunchLab, Meteora and Raydium in one request. Your wallet signs on your machine; we send it, or your own RPC does.
๐ณ Pricesโ
| Data Stream plan | $130 a month: the Full Data Stream on 3 sockets and Shreds on 2, resume with sinceSlot, all three regions |
| Free trial | a new account that never had a plan can try the Data Stream plan once, free, from the dashboard: once per account and once per address |
| Historical data | by the day: 1 day $6, 7 days $40, 1 month (up to 31 days) $150, the cheapest mix taken for you. No plan needed |
| Local trading | 0.25% per trade, inside the transaction. No plan and no key needed |
Paid in USDC or SOL. Everything on the pricing page.
๐ Your keyโ
Sign in to the dashboard and take the Data Stream plan: your key, sk_โฆ, is shown there. Send it as ?key= or an x-api-key header, or as auth: { api_key } on Socket.IO. Keep it to yourself: whoever has it uses your plan. Historical data is bought in the same dashboard and downloaded with the same key.
๐ Addressesโ
| Region | Address |
|---|---|
| Frankfurt | fra.api.koi.tools |
| Amsterdam | ams.api.koi.tools |
| New York | nyc.api.koi.tools |
The same stream and the same key in each; pick the one next to your bot (Regions).
๐ First connectionโ
- JavaScript
- Python
import WebSocket from "ws"; // npm install ws
const ws = new WebSocket("wss://fra.api.koi.tools/api/stream/ws?key=sk_โฆ");
ws.on("message", (raw) => {
const e = JSON.parse(raw);
if (e.type) return; // connected, resumed, pong, โฆ: about the socket itself
console.log(e.action, e.protocol, e.mint, e.quoteAmount);
});
import asyncio, json, websockets # pip install websockets
async def main():
async with websockets.connect("wss://fra.api.koi.tools/api/stream/ws?key=sk_โฆ") as ws:
async for raw in ws:
e = json.loads(raw)
if "type" in e:
continue # connected, resumed, pong, โฆ: about the socket itself
print(e["action"], e["protocol"], e.get("mint"), e.get("quoteAmount"))
asyncio.run(main())
With no filter that is the whole market. Narrow it with protocols and actions, or resume after a disconnect with sinceSlot: see the Full Data Stream.
โ Helpโ
Ask in the Telegram group. Include what you sent, what came back and the time.