Merge a pending import into an existing trade
POST/api/v1/pending-imports/:id/merge
Merges a pending broker execution into an existing trade by creating an execution record and updating the trade state. The target trade must be for the same symbol. Only imports with status "pending" can be merged.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 500
Import merged into the target trade.
Invalid request body or symbol mismatch between import and target trade.
Authentication required.
Pending import or target trade not found or access denied.
Import has already been processed.
Server error.