Message Types
ping
configure
Sent once after receiving hello_ok. Sets the wallets to watch and the strategy to evaluate.
Mirror Config
Themirror_config object controls safety limits and behavior for mirror (copy) trading. All fields are optional; the server uses sensible defaults when omitted.
The SDKs send
configure automatically when you call StreamClient.connect() or StreamSession.connect().
All wallets in
wallet_pubkeys must be registered to your account before connecting. The stream will reject unregistered wallets with error code wallet_not_registered.update_strategy
Update the strategy without reconnecting. Takes effect immediately for all tracked positions.
close_position
Remove a position from tracking. The server will stop monitoring PnL and will not generate exit signals for it. Identify the position by either position_id or token_account.
*One of
position_id or token_account is required.
request_exit_signal
Manually request the server to generate an exit transaction for a position, regardless of whether the strategy thresholds have been met.
*One of
position_id or token_account is required.
The server responds with an exit_signal_with_tx containing the unsigned transaction.
update_wallets
Add or remove wallets from the session without reconnecting. The server will start monitoring the new set and stop tracking wallets that are no longer listed.
update_position_strategy
Override the strategy for a single position without affecting other tracked positions.
update_watch_wallets
Add or update watch wallets mid-session for copy trading. Replaces the current watch wallet list.
Each
WatchWalletEntryMsg has:
AutoBuyConfigMsg:
mirror_buy_result
Reports the outcome of a mirror buy transaction back to the stream. Send this after you sign and submit (or fail to submit) the transaction from a mirror_buy_signal event. The stream uses this feedback to update internal state, track consecutive losses, and manage cooldown timers.

