Streams

Anaxer streams send Solana DEX trades, wallet transfers, token launches, graduations and prices as JSON over one WebSocket connection, sub-350ms from chain confirmation.

URL
wss://api.anaxer.com/v1/stream
Auth
Your API key as ?apiKey= on the URL, or an Authorization: Bearer header from a server
Flow
Connect, wait for connected, send subscribe, read events

Channels

Connect

Clients
Any WebSocket client works: the SDKs, a browser WebSocket, or wscat from a terminal.
First message
The server sends connected with your plan's limits: connectionsPerStream, the trades rules (tradesRequiresMints, tradesMintCap) and the transfers rules (transfersRequiresFilter, transfersWalletCap, transfersMintCap).
Message size
Messages you send are limited to 64 KiB each, enough for a 1,000-wallet transfers subscription. A larger message closes the socket with code 1009.

Subscribe

After connected, send one subscribe message per subscription.

type
Always subscribe.
id
Your name for the subscription: 1–64 characters from A–Z a–z 0–9 _ -, unique on the connection. Every event echoes it as sub.
channel
creations, graduations, prices, trades or transfers.
filters
Required, even when empty: {} means everything on the channel. Filters AND across fields and OR within a list. Each channel page lists its filters.

The server replies with subscribed, echoing your filters, and then sends events.

Unsubscribe

Send unsubscribe with the subscription id to stop a subscription without closing the connection. The server replies with unsubscribed.

Keep-alive and reconnecting

Pings
Optional. Send ping and the server replies with pong. The server never sends pings on a timer, but it may close idle or dead sockets.
Reconnecting
Reconnect with exponential backoff and send your subscribe messages again. The SDKs do both for you.

Plan limits

Free
  • Subscriptions per channel: 1
  • Trades: Not included
  • Transfers: Not included
Starter
  • Subscriptions per channel: 1
  • Trades: Mints required, up to 25 tokens at once; wallets up to 100
  • Transfers: Wallets or mints required; wallets up to 100, mints up to 25 at once
Pro
  • Subscriptions per channel: 2
  • Trades: Every trade with no filter; mints up to 100, wallets up to 100
  • Transfers: Every transfer with no filter; wallets up to 1,000, mints up to 100
Enterprise
  • Subscriptions per channel: Custom
  • Trades: Every trade with no filter; mints up to 100, wallets up to 100
  • Transfers: Every transfer with no filter; wallets up to 1,000, mints up to 100

Subscriptions are counted per channel across your whole account: every connection and every API key shares the count. Going over returns subscription_limit, breaking a filter rule returns invalid_filters, and a channel your plan doesn't include returns plan_restricted.

Errors

A rejected message gets an error message with a code instead of a reply. The connection stays open, except after unauthorized and slow_consumer. Error handling covers REST as well.

invalid_message
Client frame is not a recognized control message
invalid_filters
Filters fail schema or channel rules: an unknown source name, a filter the channel doesn't take (volume filters off trades and transfers, direction without wallets), a list over its cap, or a Starter transfers subscription without wallets or mints. The message names the problem.
unknown_channel
subscribe.channel is not a v1 channel
subscription_limit
Active subscriptions on that channel would exceed the account-wide connectionsPerStream cap
duplicate_id
subscribe.id already active on this connection
unknown_subscription
unsubscribe.id is not active
unauthorized
Auth failed or revoked (closes socket)
slow_consumer
Client outbound buffer exceeded (closes socket)
plan_restricted
Plan does not include the requested channel
internal_error
Unexpected server failure handling the message

Close codes

The WebSocket close codes Anaxer streams use.

1008
Unauthorized — invalid or missing API key (preceded by error frame)
1009
Message too big — a frame you sent was over 64 KiB
1013
Slow consumer — outbound buffer exceeded (preceded by slow_consumer error)
1011
Internal server error

Gap recovery

Streams do not replay missed events. Every event has a slot and a timestamp: note the last one you processed, and after a reconnect backfill over REST with from / to, walking next until it is null. There is no since slot parameter.

REST history covers the last 7 days on every plan and takes the same filters as the stream. An unfiltered trades or transfers subscription has no chain-wide REST equivalent, so treat a gap there as lost or reconcile from your own store.

Sources

A source is the venue an event came from. It is the source field on every trade, creation, graduation and price, and the values you pass in a sources filter. An unknown name is rejected (invalid_filters on a stream, 400 on REST), not silently matched against nothing. In events, treat source as an open string: new venues are added as they ship. The transfers stream has no source and rejects the filter.

Pump.funpump_fun, pump_amm
pump_fun
Pump.fun
pump_amm
PumpSwap (AMM)
Raydiumraydium_launchlab, raydium_cpmm, raydium_clmm, raydium_v4
raydium_launchlab
Raydium LaunchLab
raydium_cpmm
Raydium CPMM
raydium_clmm
Raydium CLMM
raydium_v4
Raydium V4
Meteorameteora_dbc, meteora_damm_v2, meteora_dlmm, meteora_pools
meteora_dbc
Meteora DBC (historical filter only)
meteora_damm_v2
Meteora DAMM v2
meteora_dlmm
Meteora DLMM
meteora_pools
Meteora Pools
Orcaorca_whirlpool
orca_whirlpool
Orca Whirlpool
PancakeSwappancakeswap
pancakeswap
PancakeSwap
Jupiterjupiter_order_engine
jupiter_order_engine
JupiterZ (Jupiter RFQ)
Prop AMMstessera_v, bisonfi, goonfi_v2, zerofi, scorch, alphaq
tessera_v
Tessera V (prop AMM)
bisonfi
BisonFi (prop AMM)
goonfi_v2
GoonFi V2 (prop AMM)
zerofi
ZeroFi (prop AMM)
scorch
Scorch (prop AMM)
alphaq
AlphaQ (prop AMM)
Byrealbyreal_clmm
byreal_clmm
Byreal CLMM
Order booksmanifest, deriverse
manifest
Manifest (order book)
deriverse
Deriverse (order book)
Bonk.funbonkfun
bonkfun
Bonk.fun
Not a venueinternal
internal
SOL, USDC and USDT prices (prices stream only)

Select a group for each value's venue name.

Common questions

What happens if my WebSocket connection drops?

Anaxer streams do not replay missed events. Reconnect with exponential backoff, send your subscribe messages again, and backfill the gap from the REST API using from and to. REST history covers the last 7 days on every plan.

How many stream subscriptions can I open?

Free and Starter allow 1 subscription per channel and Pro allows 2, counted across your whole account. One WebSocket connection can hold subscriptions on several channels at once.

Do I have to send pings to keep a stream open?

No. Pings are optional. Send one when you want to check the connection and the server replies with pong.

Last updated · Changelog