Edit user-editable trade fields
PATCH/api/v1/trades/:tradeId
Edit the subset of fields users are permitted to change:
- strategyId: always editable
- notes: always editable (max 2000 characters)
Trade dates come from fills and cannot be edited. A body that names openedAt or closedAt, with any value, returns 400 and changes nothing.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Trade updated successfully
Validation error, or the body names openedAt or closedAt (trade dates come from fills)
Authentication required
Trade or strategy not found, or not owned by the authenticated user (same refusal for an unknown, soft-deleted, or another user's strategyId)
Server error