Close trade
POST/api/v1/trades/:tradeId/close
Mark a trade as closed with exit price details. Closing quantity defaults to the full open quantity if omitted. Returns 409 on a version conflict.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 500
Trade closed successfully
Validation error
Authentication required
Trade not found or does not belong to the authenticated user
Version conflict; trade has been modified since the client last read it
Server error