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)
- openedAt: editable only for imported trades
- closedAt: editable only for imported trades
Attempting to edit openedAt or closedAt on a non-imported trade returns 400.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Trade updated successfully
Validation error or attempt to edit dates on a non-imported trade
Authentication required
Trade not found or does not belong to the authenticated user
Server error