NoLimitNodes
PricingDocsBlogAbout
SupportContact
Log in
Blog/Guides

Pump.fun WebSocket Trading Bot: Track Launches and Trades

Pump.fun is where chaos meets opportunity. Every few minutes a new memecoin hits the feed; some moon, most vanish.

N
NoLimitNodes Team
Community & Tutorials
Apr 17, 2025updated Aug 25, 20263 min read
On this page +
  • 01Tools You'll Need for a Pump.fun WebSocket Bot
  • 02What We're Building with the Pump.fun WebSocket
  • 03How Pump.fun Memecoins Work
  • 04Step 1: Real-Time Pump.fun Token Launches via WebSocket
  • 05Step 2: Listen to Pump.fun Trades over WebSocket
  • 06Build Your Pump.fun WebSocket Trading Bot
  • 07Winning Strategies That Actually Work
  • 08Is Pump.fun Just Gambling?
  • 09Bonus Tips for Creators
  • 10Useful Links
Pump.fun WebSocket trading bot monitoring real-time launches and trades

Pump.fun is where chaos meets opportunity. Every few minutes a new memecoin hits the feed; some moon, most vanish. This guide shows you how to listen to that feed in real time over WebSockets, catch launches the moment they happen, and automate buy, take-profit, and stop-loss logic around them.

That's the whole agenda.

Degen trader, memecoin explorer, or someone launching a coin of your own: by the end you'll have moved from watching Pump.fun to acting on it.


Tools You'll Need for a Pump.fun WebSocket Bot

  • Python 3.x (upgrade if you haven't yet)
  • Terminal or IDE (VSCode, PyCharm, dealer's choice)
  • A free API Key from NoLimitNodes

What We're Building with the Pump.fun WebSocket

You'll learn how to:

Pump.fun WebSocket trading bot workflow

Listen to new token launches on Pump.fun in real time
Stream live transactions across all Pump.fun memecoins
Automatically buy, take profit, or stop loss using logic
Build the foundation of a trading bot that works while you sleep


How Pump.fun Memecoins Work

A quick breakdown of the token lifecycle on Pump.fun:

  1. Token launches with full price, so there are no early flippers.
  2. As people buy, the price reduces incrementally.
  3. When the market cap hits $69K, the token auto-launches on Raydium and the liquidity is burned.
  4. Early entries can win big, but many tokens never make it to Raydium, aka "rugged".

Bonus Insight:

Pump.fun WebSocket token launch and trade stream

Step 1: Real-Time Pump.fun Token Launches via WebSocket

Connect to the live token stream:

url = "wss://api.nolimitnodes.com/pump-fun?api_key=YOUR_API_KEY"

Subscribe to token creation events:

{
  "method": "pumpFunCreateEventSubscribe",
  "params": {
    "eventType": "coin",
    "referenceId": "launch-sub"
  }
}

Each launch arrives in real time with data like:

  • Token name & symbol
  • Mint address
  • Creator wallet
  • IPFS metadata (if available)

Step 2: Listen to Pump.fun Trades over WebSocket

To monitor buy/sell actions across every memecoin, subscribe like this:

{
  "method": "pumpFunTradeSubscribe",
  "params": {
    "coinAddress": "all",
    "referenceId": "tx-sub"
  }
}

Sample trade notification:

{
  "method": "tradeEventNotification",
  "result": {
    "type": "Buy",
    "price": { "sol": "0.000000045" },
    "wallet": { "address": "trader-wallet" },
    "token_out": { "token": "coinMintAddress", "amount": 10000000 }
  }
}

Build Your Pump.fun WebSocket Trading Bot

Install the dependency:

pip install websocket-client

Then paste in the bot script:

import websocket, json, threading

buyPrice        = float(0.0000000500)
takeProfitPrice = float(0.0000000900)
stopLossPrice   = float(0.0000000300)

buyDict, sellDict = {}, {}

def on_new_coin(ws, msg):
    data = json.loads(msg)
    if data.get("method") == "createEventNotification":
        coin = data["result"]
        mint = coin["mint"]
        name = coin["name"]
        symbol = coin["symbol"]
        buyDict[mint] = {"name": name, "symbol": symbol}
        print(f"🟢 NEW COIN: {name} ({symbol}) - Mint: {mint}")

def on_trade(ws, msg):
    data = json.loads(msg)
    if data.get("method") == "tradeEventNotification":
        trade = data["result"]
        mint = trade["token_out"]["token"]
        price = float(trade["price"]["sol"])
        if mint in buyDict and buyPrice <= price < takeProfitPrice:
            print(f"🛒 BUY: {buyDict[mint]['symbol']} @ {price}")
            sellDict[mint] = buyDict.pop(mint)
        elif mint in sellDict:
            if price >= takeProfitPrice:
                print(f"💰 SELL (TP): {sellDict[mint]['symbol']} @ {price}")
                del sellDict[mint]
            elif price <= stopLossPrice:
                print(f"🛑 SELL (SL): {sellDict[mint]['symbol']} @ {price}")
                del sellDict[mint]

def run_socket():
    ws = websocket.WebSocketApp(
        "wss://api.nolimitnodes.com/pump-fun?api_key=YOUR_API_KEY",
        on_message=on_trade
    )
    ws.on_open = lambda ws: ws.send(json.dumps({
        "method": "pumpFunTradeSubscribe",
        "params": {"coinAddress": "all", "referenceId": "tx-sub"}
    }))
    ws.run_forever()

def run_new_coin_socket():
    ws = websocket.WebSocketApp(
        "wss://api.nolimitnodes.com/pump-fun?api_key=YOUR_API_KEY",
        on_message=on_new_coin
    )
    ws.on_open = lambda ws: ws.send(json.dumps({
        "method": "pumpFunCreateEventSubscribe",
        "params": {"eventType": "coin", "referenceId": "launch-sub"}
    }))
    ws.run_forever()

threading.Thread(target=run_socket).start()
threading.Thread(target=run_new_coin_socket).start()

Winning Strategies That Actually Work

  • Catch early: Snipe coins under $10k market cap
  • Track creators: Favor wallets with past wins
  • Set exits: Define TP/SL logic clearly
  • Avoid rugs: Check if the creator is active on Telegram/X

Is Pump.fun Just Gambling?

Not if you add data + discipline.

Most tokens fail.
Bots help you catch trends, limit loss, and exit before hype dies.

With tools like NoLimitNodes and WebSockets, it stops being pure degenerate gambling and becomes calculated chaos.


Bonus Tips for Creators

Planning to launch your own token? Here's how to stand out:

  • Build a Telegram + Twitter presence before launch
  • Upload a meme-based litepaper or whitepaper on IPFS
  • Highlight real or meme utility in metadata
  • Add creator vesting or community wallets for credibility

Useful Links

For the core Pump.fun WebSocket API guide, start with the main NoLimitNodes reference.

  • NoLimitNodes – Free API & tooling
  • Pump.fun – Where memecoins are born
  • Raydium – Where tokens go if they make it
#Pumpfun WebSocket#solana#pumpfun#websocket#trading#news
N
NoLimitNodes Team
Community & Tutorials

Tutorials, market notes, and product walkthroughs from across the NoLimitNodes team.

On this page
  • 01Tools You'll Need for a Pump.fun WebSocket Bot
  • 02What We're Building with the Pump.fun WebSocket
  • 03How Pump.fun Memecoins Work
  • 04Step 1: Real-Time Pump.fun Token Launches via WebSocket
  • 05Step 2: Listen to Pump.fun Trades over WebSocket
  • 06Build Your Pump.fun WebSocket Trading Bot
  • 07Winning Strategies That Actually Work
  • 08Is Pump.fun Just Gambling?
  • 09Bonus Tips for Creators
  • 10Useful Links
↑ back to top
///Read next
GuidesJan 27, 2025

Pump.fun WebSocket Drawdown Trading Bot: Pullback Strategy

Part three of the Pump.Fun trading bot series covers drawdown trading: the bot tracks each token's peak price over WebSocket, waits for a defined percentage drop, then buys the recovery off the trough and exits on a…

#Pumpfun WebSocket#solana#pumpfun
6 min read
GuidesFeb 4, 2025

Pump.fun WebSocket Guide: Build a Crypto Trading Bot for Popular Coins

The fourth bot in the Pump.Fun series trades on popularity rather than price action alone: it counts unique wallets interacting with each token over the live WebSocket trade stream, buys once the wallet count crosses a…

#solana#pumpfun#websocket
6 min read
///Relevant Solana infrastructure
Solana WebSocket Nodes

Standard Solana subscriptions for account, program, slot, and transaction updates.

Explore Solana WebSocket Nodes →
Solana Enhanced Streams

Decoded swaps, token lifecycle events, transfers, and system feeds.

Explore Solana Enhanced Streams →
Pump.fun Enhanced Stream

Decoded Pump.fun launches, trades, graduations, and lifecycle events.

Explore Pump.fun Enhanced Stream →
← Older
Solana RPC Node Setup & Best Practices: A Complete Guide with NoLimitNodes
Newer →
Solana Meme Coin Trading with NoLimitNodes API: Ride the Solana Pump Fun with Price Alerts and Token Launch Insights
Run it yourself

Every benchmark in this blog runs against our public endpoints.

Spin up an RPC, WebSocket, or gRPC endpoint in under a minute. Flat pricing, no request caps. Reproduce the numbers for your own workload.

See pricing

Ready to get started?

Choose a plan and start building in under 30 seconds.

Talk to Sales
NoLimitNodes

Solana RPC infrastructure built for performance and scale.

RPC Access
  • Solana HTTP RPC nodes
  • Solana WebSocket nodes
  • Yellowstone gRPC nodes
  • Solana Shredstream
  • UltraSend transaction relay
Infrastructure
  • Compute Platform
  • VPS
  • VDS
  • Bare Metal
  • Geyser Plugin Hosting
Enhanced Streams
  • PumpFun
  • PumpSwap
  • Raydium
  • Orca
  • Meteora
  • System Events
  • Browse all Solana Enhanced Streams →
Program Streams
  • PumpFun
  • PumpSwap
  • Raydium CLMM
  • Orca Whirlpool
  • Meteora DLMM
  • Jupiter Swap
  • Jupiter Perps
  • Kamino Lending
  • Browse all 37 Solana programs →
Trading
  • EZWallet
Analytics
  • Historical Datasets
  • Historical Raw Blocks
Company
  • About
Resources
  • Pricing
  • RPC Rate Limits
  • Custom Development
  • Documentation
  • Blog
  • System Status
  • Support
  • Contact Sales
Compare
  • Yellowstone gRPC vs LaserStream
  • Triton vs Helius
  • Raydium API vs Helius
  • PumpSwap API vs Bitquery
  • QuickNode Streams vs NLN
  • All comparisons →
Legal
  • Terms & Conditions
  • Privacy Policy
© 2026 CLR3 Inc., operating as NoLimitNodes. Registered in Ontario, Canada. All rights reserved.solana mainnet