跳转到主要内容
WSS
wss://raptor.solanatracker.io/stream 一个或多个代币对的实时报价,可用于展示价格。要获取交易,请把报价传给 POST /swap,或使用兑换流。 订阅时发送 { type: "subscribe", inputMint, outputMint, amount, ... },取消订阅时发送 { type: "unsubscribe", id }。心跳发送 { type: "ping" },服务端返回 { type: "pong" }。你会收到 quote、subscribed、unsubscribed 和 error 消息。
Subscribe to Quote Updates
type:object

Subscribe to real-time quote updates for a token pair

Unsubscribe from Quote Updates
type:object

Unsubscribe from a specific quote subscription

Ping
type:object

Send a ping to keep the connection alive

Quote Update
type:object

Real-time quote update for a subscribed token pair

Subscription Confirmation
type:object

Confirmation that a subscription was successfully created

Unsubscription Confirmation
type:object

Confirmation that a subscription was removed

Pong Response
type:object

Response to a ping message

Error Response
type:object

Error message from the server