跳转到主要内容
WSS
wss://raptor.solanatracker.io/stream/swap 为 userPublicKey 提供实时报价和可直接签名的交易。签名最新的 swapTransaction,再用 POST /send-transaction 发送。如果 10 个 slot 内没有变化,服务器会重新发送一笔新交易,避免最新交易过期。 订阅、取消订阅和心跳协议与 /stream 相同。txVersion 使用 V0 或 LEGACY(大写)。
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