Documentation Index
Fetch the complete documentation index at: https://docs.lasersell.io/llms.txt
Use this file to discover all available pages before exploring further.
What is the Exit Intelligence Stream?
The Exit Intelligence Stream is a persistent WebSocket connection that monitors your wallets on chain, tracks token positions, evaluates your profit and loss strategy in real time, and delivers pre built unsigned exit transactions when your thresholds are met. Professional and Advanced tier subscribers also receive real time liquidity snapshots with slippage bands and liquidity trend data, giving you visibility into how much of a position can be sold at a given price impact and whether pool liquidity is growing, stable, or draining. Read the full announcement for details.Endpoint
x-api-key header, which the SDKs set automatically.
When to Use the Exit Intelligence Stream vs REST
| Scenario | Use |
|---|---|
| Automated sell when profit/loss target is hit | Exit Intelligence Stream |
| One off buy or sell transaction | REST (LaserSell API) |
| Continuous position monitoring | Exit Intelligence Stream |
| Building a transaction for user confirmation | REST (LaserSell API) |
| Bot that reacts to wallet activity | Exit Intelligence Stream |
High Level Flow
- Connect to
wss://stream.lasersell.io/v1/wswith your API key. - Receive
hello_okfrom the server (includes session ID and rate limits). - Send
configurewith wallet public keys and your strategy parameters. - Receive initial
balance_updatemessages for existing token holdings. - The stream monitors your wallets for new token arrivals and tracks profit and loss.
- When a position hits your target profit, stop loss, trailing stop, or deadline, the server sends an
exit_signal_with_tx. - Sign locally and submit the unsigned transaction.
SDK Entry Points
The SDKs provide two abstraction levels:StreamClient: Low level client. Manages the WebSocket connection, reconnection, and message framing. Returns rawServerMessageobjects.StreamSession: High level wrapper. WrapsStreamClientwith position tracking, deadline timers, liquidity snapshot caching, and typedStreamEventobjects that include aPositionHandle.
StreamSession.
Next Steps
- Connection Lifecycle: Detailed handshake, reconnection, and lane splitting.
- Strategy Configuration: Configure profit targets, stop losses, and trailing stops.
- Server Events: Complete schema for all 9 server message types, including liquidity snapshots.
- Client Messages: All 6 client message types and their schemas.

