Saltar al contenido principal
WSS
wss://raptor.solanatracker.io/stream/swap Cotizaciones en vivo y una transacción lista para firmar para userPublicKey. Firma el swapTransaction más reciente y envíalo con POST /send-transaction. Si nada cambia durante 10 slots, el servidor reenvía una transacción nueva para que la última no expire. El protocolo de suscripción, cancelación y ping es el mismo que en /stream. Usa txVersion con V0 o LEGACY (en mayúsculas).
Subscribe to Swap Updates
type:object

Subscribe to real-time swap quotes with pre-built transactions for a token pair

Unsubscribe from Swap Updates
type:object

Unsubscribe from a specific swap subscription

Ping
type:object

Send a ping to keep the swap stream connection alive

Swap Update
type:object

Real-time swap quote with pre-built transaction, sent whenever pool states change

Swap Subscription Confirmation
type:object

Confirmation that a swap subscription was successfully created

Swap Unsubscription Confirmation
type:object

Confirmation that a swap subscription was removed

Pong Response
type:object

Response to a ping message on swap stream

Swap Error Response
type:object

Error message from the swap stream server