Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Trading → Create Stop Loss Limit Order
AI-generatedSummary
Create a stop-loss limit order via the Lighter trading backend
Inputs
- tradingMarketIndex — Market index (0=ETH, 1=BTC, 2=SOL, etc.)
- tradingSide — Order side: Buy / Long or Sell / Short
- tradingSize — Order size in base asset
- tradingReduceOnly — Whether order can only reduce an existing position (recommended true for SL)
- tradingTriggerPrice — Price that triggers the conditional order
- tradingExecutionPrice — Price at which order executes after trigger (leave 0 to use trigger price)
Output shape
object
JSON response from the Lighter trading backend containing order confirmation details
Examples
Example 1: Create a sell stop-loss limit order for BTC with trigger and execution prices
Set tradingMarketIndex to 1, tradingSide to sell, tradingSize to 0.001, tradingReduceOnly to true, tradingTriggerPrice to 25000, and tradingExecutionPrice to 24900