跳转到主要内容
WSS
通过 Datastream WebSocket 实时流式传输 Solana 钱包持有的每种代币的 PnL 更新,按代币推送 tradeUpdate 与 balanceUpdate 事件并刷新持仓。

SDK Example

apiKey
type:httpApiKey

API key for authentication. Include your Datastream key in the connection URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}

joinPnlWallet
type:object

Subscribe to All Positions PnL

leavePnlWallet
type:object

Unsubscribe from wallet PnL

pnlWalletTradeUpdateMessage
type:object

Trade update notification

pnlWalletBalanceUpdateMessage
type:object

Balance update notification