Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Trading → Close Position
AI-generatedSummary
Close an open position with a market order
Inputs
None.
Output shape
json
Returns the Lighter trading backend's JSON response confirming the position close
Examples
Example 1: Close BTC position on mainnet with default slippage
tradingMarketIndex: 1 (BTC), tradingSlippage: 0.5