Installation
Modules
| Import Path | Purpose |
|---|---|
lasersell_sdk.exit_api | ExitApiClient, request/response types, ExitApiError |
lasersell_sdk.tx | sign_unsigned_tx, send_transaction, SendTarget* classes |
lasersell_sdk.stream.client | StreamClient, StreamConfigure, StreamSender |
lasersell_sdk.stream.session | StreamSession, StreamEvent, PositionHandle |
lasersell_sdk.stream.proto | Message types (ServerMessage, ClientMessage, StrategyConfigMsg) |
API Client
All API client methods areasync and must be awaited.
Buy Transactions
Custom Options
Exit Intelligence Stream Session
event.message is a TypedDict union. At runtime, access fields using dict syntax (e.g. msg["unsigned_tx_b64"]).
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:
Transaction Helpers
Error Handling
Loading a Keypair
solders package, which is included in the [tx] extra.

