{
"type": "subscribe",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": 100000000,
"slippageBps": "50"
}{
"type": "unsubscribe",
"id": "sub_1767187968856399"
}{
"type": "ping"
}{
"type": "quote",
"id": "sub_1767187968856399",
"timestamp": 1767188116413,
"data": {
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amountIn": "100000000",
"amountOut": "12589134",
"minAmountOut": "12526188",
"slippageBps": 50,
"priceImpact": 0.00000763905067919488,
"feeAmount": "40000",
"swapUsdValue": "12.59",
"contextSlot": 390395145,
"timeTaken": 0.000677147,
"routePlan": [
{
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amountIn": "100000000",
"amountOut": "12589134",
"feeAmount": "40000",
"priceImpact": 0.00000763905067919488,
"percent": 100,
"pool": "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
"dex": "Whirlpool",
"programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
}
]
}
}{
"type": "subscribed",
"id": "sub_1767187968856399"
}{
"type": "unsubscribed",
"id": "sub_1767187968856399",
"success": true
}{
"type": "pong",
"timestamp": 1767188116413
}{
"type": "error",
"error": "Invalid inputMint"
}WebSocket channel for subscribing to real-time quote updates
{
"type": "subscribe",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": 100000000,
"slippageBps": "50"
}{
"type": "unsubscribe",
"id": "sub_1767187968856399"
}{
"type": "ping"
}{
"type": "quote",
"id": "sub_1767187968856399",
"timestamp": 1767188116413,
"data": {
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amountIn": "100000000",
"amountOut": "12589134",
"minAmountOut": "12526188",
"slippageBps": 50,
"priceImpact": 0.00000763905067919488,
"feeAmount": "40000",
"swapUsdValue": "12.59",
"contextSlot": 390395145,
"timeTaken": 0.000677147,
"routePlan": [
{
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amountIn": "100000000",
"amountOut": "12589134",
"feeAmount": "40000",
"priceImpact": 0.00000763905067919488,
"percent": 100,
"pool": "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
"dex": "Whirlpool",
"programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
}
]
}
}{
"type": "subscribed",
"id": "sub_1767187968856399"
}{
"type": "unsubscribed",
"id": "sub_1767187968856399",
"success": true
}{
"type": "pong",
"timestamp": 1767188116413
}{
"type": "error",
"error": "Invalid inputMint"
}Subscribe to real-time quote updates for a token pair
Unsubscribe from a specific quote subscription
Send a ping to keep the connection alive
Real-time quote update for a subscribed token pair
Confirmation that a subscription was successfully created
Confirmation that a subscription was removed
Response to a ping message
Error message from the server
Was this page helpful?