REST API
Close an open position
Authorization
bearerAuth AuthorizationBearer <token>
API key passed as Bearer token in Authorization header
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://loading/api/v1/trading/positions/close" \ -H "Content-Type: application/json" \ -d '{ "exchange": "binance", "marketType": "spot", "symbol": "string" }'{
"success": true,
"data": {
"success": true,
"message": "string",
"closedOrder": {
"orderId": "string",
"symbol": "string",
"side": "BUY",
"type": "MARKET",
"quantity": 0,
"price": 0,
"status": "string",
"timestamp": 0
}
},
"meta": {
"timestamp": 0,
"remaining": 0
}
}