The API is currently in development and is not yet available for production use. Please check back later.
{
"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
}
}Subscribe to real-time trades.
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.
topic field that you can use to filter.
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.priceparams object empty to subscribe to all entries.params object empty to unsubscribe from all entries.{
"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
}
}Your Prism API key. You can get one for free in the Prism Dashboard.
Subscribe to trade updates for a list of wallets.
Unsubscribe from trade updates for a list of wallets.
Subscribe to trade updates for a list of tokens.
Unsubscribe from trade updates for a list of tokens.
Message containing the trade data for the subscribed wallets.
Message containing the trade data for the subscribed tokens.
Was this page helpful?