Skip to main content

Data Stream – WebSocket API

Use this endpoint to stream live Pump.fun, PumpSwap, Bonk, and Raydium-CPMM transactions the moment they happen.
Subscribing delivers every event β€” token creations, buys, sells, and migrations.

Endpoint​

wss://stream.pumpapi.io/

Filter on the client. The server sends all events.
One connection only. Open a single WebSocket per client and reuse it to avoid rate limits.
Reconnect logic. Connections can drop (for example, due to server-side updates or your network issues). You should implement automatic reconnection in your client.

πŸ“¦ Code Examples​

import asyncio
import websockets
import orjson as json # or use the standard json module (orjson is faster)

async def pumpapi_data_stream():
uri = "wss://stream.pumpapi.io/"
async with websockets.connect(uri) as websocket:
async for message in websocket:
event = json.loads(message)
print(event) # {'txType': 'buy', 'pool': 'pump', ...}

asyncio.run(pumpapi_data_stream())

Event Schema​

FieldDescription
signatureTransaction signature on the Solana blockchain.
mintToken mint address.
traderPublicKeyPublic key of the trader who initiated the transaction.
txTypeTransaction type β€” one of create, buy, sell, or migrate.
tokenAmountAmount of tokens involved in the transaction.
solAmountAmount of SOL involved in the transaction.
vTokensInBondingCurveVirtual token reserves in the bonding curve pool. Reflects liquidity available on the token side.
vSolInBondingCurveVirtual SOL reserves in the bonding curve pool. Reflects liquidity available on the SOL side.
pricePrice in SOL including this transaction’s impact.
marketCapSolMarket capitalization in SOL
poolLiquidity source. Before migration, the value is either pump or bonk. After migration, pump β†’ pump-amm, bonk β†’ raydium-cpmm.
timestampBlockchain timestamp of transaction.

Example Events​

{
"signature": "2daXd54pi7yqJYb4L2eTygRfZgikXhtbJjsTVb9AANVtucpn36j1bZZZMrT8GCiDjPYtskSBZuQNcURsDyqmhZxH",
"mint": "47zuBTaqGzZnqg6mDYmoKLYobTXAsvnnSiXFus8zbonk",
"traderPublicKey": "Dr7V12M5AcXAC2EEdzMHmwYwgUQbhUcT791szi5pzggw",
"txType": "create",
"initialBuy": 354675353.131364,
"solAmount": 15.0,
"bondingCurveKey": "38LrhTXXNbjtDoZ9DXqJyBZDzHbDn9adcLHRR484zNDu",
"vTokensInBondingCurve": 718350252.465018,
"vSolInBondingCurve": 44.813352951,
"price": 6.238370877886245e-08,
"marketCapSol": 62.38370877886245,
"name": "Planet Nine",
"symbol": "PLANETNINE",
"uri": "https://ipfs.io/ipfs/QmYDs4A8agRDdQCCjxVKPX4VdVUJ7J55gEWJVsuHdH1h75",
"pool": "bonk",
"timestamp": 1752715922584
}