Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Trading → Cancel Order
AI-generatedSummary
Cancels a specific order
Inputs
- tradingMarketIndex — Market index (0=ETH, 1=BTC, 2=SOL, etc.)
- tradingOrderIndex — The order index to cancel
Output shape
JSON response from the Lighter backend confirming order cancellation
Returns the backend's order cancellation confirmation as a JSON object
Examples
Example 1: Cancel a specific order on the ETH market
Set tradingMarketIndex to 0 and tradingOrderIndex to the desired order's index