Messages
{
"method": "subscribe",
"topic": "solana.dex.trade.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.trade.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "subscribe",
"topic": "solana.dex.trade.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.trade.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"topic": "solana.dex.trade.wallet",
"data": {
"protocol": "orca-whirl",
"swap_type": "token_quote",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"quote": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"position": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",
"direction": "buy",
"position_state": "open",
"token_amount": 256.4115815,
"quote_amount": 35.323303,
"native_amount": 0.012345,
"usd_amount": 35.31801262890969,
"pre_token_balance": 2247.98704231,
"post_token_balance": 1991.57546081,
"token_symbol": "2Z",
"quote_symbol": "USDC",
"token_price": 0.13773953743547926,
"quote_price": 0.99985023,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"trade_index": 58
}
}{
"topic": "solana.dex.trade.token",
"data": {
"protocol": "orca-whirl",
"swap_type": "token_quote",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"quote": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"position": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",
"direction": "buy",
"position_state": "open",
"token_amount": 256.4115815,
"quote_amount": 35.323303,
"native_amount": 0.012345,
"usd_amount": 35.31801262890969,
"pre_token_balance": 2247.98704231,
"post_token_balance": 1991.57546081,
"token_symbol": "2Z",
"quote_symbol": "USDC",
"token_price": 0.13773953743547926,
"quote_price": 0.99985023,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"trade_index": 58
}
}Trades
Subscribe Trades
Subscribe to real-time trades.
WSS
/
v1
/
ws
Documentation Index
Fetch the complete documentation index at: https://docs.prismapi.io/llms.txt
Use this file to discover all available pages before exploring further.
To keep the connection alive, you need to send a ping message every less than 60 seconds.
topic field that you can use to filter.
Available Topics
Available Topics
solana.dex.profile.walletsolana.dex.profile.tokensolana.dex.profile.positionsolana.dex.swap.walletsolana.dex.swap.tokensolana.dex.trade.walletsolana.dex.trade.tokensolana.dex.priceWhen subscribing, you can leave the array field of the
params object empty to subscribe to all entries.When unsubscribing, you can leave the array field of the
params object empty to unsubscribe from all entries.Messages
{
"method": "subscribe",
"topic": "solana.dex.trade.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.trade.wallet",
"params": {
"wallets": [
"CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED"
]
}
}{
"method": "subscribe",
"topic": "solana.dex.trade.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"method": "unsubscribe",
"topic": "solana.dex.trade.token",
"params": {
"tokens": [
"J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd"
]
}
}{
"topic": "solana.dex.trade.wallet",
"data": {
"protocol": "orca-whirl",
"swap_type": "token_quote",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"quote": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"position": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",
"direction": "buy",
"position_state": "open",
"token_amount": 256.4115815,
"quote_amount": 35.323303,
"native_amount": 0.012345,
"usd_amount": 35.31801262890969,
"pre_token_balance": 2247.98704231,
"post_token_balance": 1991.57546081,
"token_symbol": "2Z",
"quote_symbol": "USDC",
"token_price": 0.13773953743547926,
"quote_price": 0.99985023,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"trade_index": 58
}
}{
"topic": "solana.dex.trade.token",
"data": {
"protocol": "orca-whirl",
"swap_type": "token_quote",
"wallet": "CsVdJ8WH8Q9eHSTRpwtwN3TYApm24QnLKYUMNxJ3DaED",
"token": "J6pQQ3FAcJQeWPPGppWRb4nM8jU3wLyYbRrLh7feMfvd",
"quote": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"position": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",
"direction": "buy",
"position_state": "open",
"token_amount": 256.4115815,
"quote_amount": 35.323303,
"native_amount": 0.012345,
"usd_amount": 35.31801262890969,
"pre_token_balance": 2247.98704231,
"post_token_balance": 1991.57546081,
"token_symbol": "2Z",
"quote_symbol": "USDC",
"token_price": 0.13773953743547926,
"quote_price": 0.99985023,
"block_slot": 382423380,
"block_time": 1764173044,
"tx_hash": "3gg6eQPa2PJ4LkGnd12EoEBHmSB3R3fr9h6MYUaaDAjeZBL5bb9paUxn521Z9d3ScWES4cVKLsexwEvo3dUoqhEs",
"trade_index": 58
}
}X-Api-Key
type:httpApiKey
Your Prism API key. You can get one for free in the Prism Dashboard.
Subscribe Wallets
type:object
Subscribe to trade updates for a list of wallets.
Unsubscribe Wallets
type:object
Unsubscribe from trade updates for a list of wallets.
Subscribe Tokens
type:object
Subscribe to trade updates for a list of tokens.
Unsubscribe Tokens
type:object
Unsubscribe from trade updates for a list of tokens.
Wallet Trade Message
type:object
Message containing the trade data for the subscribed wallets.
Token Trade Message
type:object
Message containing the trade data for the subscribed tokens.
Was this page helpful?
⌘I