Trading Operations
Emergency Exit Position
Emergency exit from a position, refunding the margin
POST
Overview
Perform an emergency exit from a position, immediately returning your original margin without realizing profit or loss. This is a last-resort option that should only be used in exceptional circumstances.This endpoint requires authentication with a valid API key. You can only emergency exit positions that belong to your wallet.
Authentication
Include your API key in the X-API-Key header:Request Body
The unique identifier of the position to emergency exit.How to get: Use Get Positions to find your position IDs
Example: 12345
Example: 12345
Response Fields
Indicates if the emergency exit was completed successfully
The original margin amount returned to your account in USD
Error Responses
Invalid position ID or position cannot be emergency exited
Missing or invalid authentication token
Attempting to emergency exit position that doesn’t belong to your wallet
Rate limit exceeded (10 requests per minute for trading endpoints)
Recovery and Next Steps
After an emergency exit:- Confirm Refund - Check Account for margin refund
- Review Dashboard - Update portfolio view in Dashboard
- Assess Markets - Use Market Data to evaluate conditions
- Consider Reentry - If conditions improve, consider new positions