TL;DR
- Detect new pools and listings over REST or WebSocket
- Gate every hit for rug risk before it reaches a trade decision
- Rank survivors by early volume and unique wallets
- Watch open positions for whale prints and dumps
All requests share the base URL https://public-api.birdeye.so, authenticate with the X-API-KEY header, and select the network with x-chain: solana.
Detection over REST and the security gate run from the Lite or Starter package up. The WebSocket variants are a Premium package upgrade for lower latency, not a requirement.
The four stage pipeline
1
Detect new token launches
Poll for new listings, or subscribe to a live stream if your package supports it. Track the newest On a Premium package, stream instead of poll for the lowest latency. Open one socket and subscribe to new pairs, new listings, or both.
block_unix_time you have already seen on REST, and treat anything newer as a fresh hit.Endpoint: GET /defi/v2/tokens/new_listing2
Gate every hit for rug risk
A freshly detected token is safe to show only after it clears a security check. Read the mint and freeze authority, mutable metadata, liquidity, and holder concentration from
token_security, token_creation_info, token_overview, and holder/v1/distribution.Endpoint: GET /defi/token_securitySolana liquidity comes from the
liquidity field on token_overview, not exit liquidity, since that endpoint is Base only. holder/v1/distribution takes the token as token_address, not address.Rug Checker
The full five check gate, including mint and burn history and holder behavior tags, with the exact field list per chain.
3
Rank survivors by early momentum
A single
token_overview call returns price, liquidity, market cap, and per timeframe metrics including unique wallets and buy and sell volume. Request only the short frames you score on with the frames parameter to keep payloads small.To refresh a live candidate list without one request per token, batch up to 100 addresses through multi_price.Endpoint: POST /defi/multi_price4
Watch positions for the dump
Once a token is on the watchlist, price movement and large trade alerts matter most. Poll the latest candles and trades filtered by volume on any paid tier from Lite or Starter up, or stream for the lowest latency on a Premium package.Endpoint:
GET /defi/v3/token/txs-by-volumeWhale Transaction Tracker
Full whale detection pipeline, with buy and sell pressure split out.
Token Price Alert Monitor
Absolute and percent alerts confirmed on a closed candle.
Watch your credit budget
Polling for detection and monitoring is credit hungry, so wire this in from day one. Endpoint:GET /utils/v1/credits
Before you ship
- No detected token reaches the trade UI before it clears the security gate.
- Solana liquidity is read from
token_overview, sinceexit-liquidityis Base only. token_addressis used forholder/v1/distribution, andaddressfor thedefiendpoints.nullresults frommulti_priceare handled explicitly, not assumed away.- Detection and monitor intervals back off automatically when credits run low.
FAQ
Can I build this without a WebSocket?
Can I build this without a WebSocket?
Yes. Detection and monitoring both have REST paths. Detection runs on any paid tier, and the security gate and whale feed need the Lite or Starter package or higher. The WebSocket streams are a lower latency upgrade available from the Premium package up, not a requirement.
Does the new pair stream include meme launchpad tokens?
Does the new pair stream include meme launchpad tokens?
Set
meme_platform_enabled=true on new_listing or on SUBSCRIBE_TOKEN_NEW_LISTING to include pump.fun and similar Solana launchpads. SUBSCRIBE_NEW_PAIR does not deliver Openbook pairs, so subscribe to new token listing as well for fuller coverage.Why does the new pair event have no risk data?
Why does the new pair event have no risk data?
Detection and risk are separate concerns by design. A
NEW_PAIR_DATA event tells you a pool exists, not whether it is safe. Every hit must pass the security gate, which pulls token security, creation info, liquidity, and holder distribution before the token is shown.
