Installation
Modules
| Module | Purpose |
|---|---|
lasersell_sdk::exit_api | ExitApiClient, request/response types, ExitApiError |
lasersell_sdk::tx | SendTarget, sign_unsigned_tx, send_transaction |
lasersell_sdk::stream::client | StreamClient, StreamConfigure, StreamConnection, StreamSender |
lasersell_sdk::stream::session | StreamSession, position tracking |
lasersell_sdk::stream::proto | Message types (ServerMessage, ClientMessage, StrategyConfigMsg) |
lasersell_sdk::retry | RetryPolicy configuration |
API Client
All methods areasync and return Result<T, ExitApiError>.
Custom Options
Exit Intelligence Stream Session
Liquidity Snapshots and Partial Sells
Tier 1+ only. Requires a Professional or Advanced subscription. See the announcement for full details.
StreamSession caches the latest liquidity snapshot per position. Query slippage bands, maximum sellable amounts, and liquidity trends:
build_partial_sell_tx() to sell a portion of a position based on slippage data:
Mirror Trading
Configure watch wallets to mirror trades from other wallets. When a watched wallet opens a position on a supported market, the stream sends aMirrorBuySignal event with an unsigned transaction for your wallet to execute.
watch_wallets field specifies which wallets to mirror. Each WatchWalletConfig includes an auto_buy configuration that controls how much to spend when mirroring a trade, and a mirror_sell flag that determines whether to also mirror sell transactions.
The MirrorConfig struct sets global limits: max_positions_per_wallet caps concurrent mirrored positions, cooldown_sec enforces a delay between mirror buys, max_active_sol limits total SOL exposure, and buy_slippage_bps sets the slippage tolerance for mirror buy transactions.

