Unlink executions from their trades
POST/api/v1/reconciliation/unlink
Removes the trade association from one or more executions, setting their link state back to unlinked. The executions must belong to the authenticated user. Rejects with 400 (EXECUTION_HAS_ORDER) when any execution carries an orderId (#1334) - fills follow their order, so an order-backed fill has no independent link state - use POST /unlink-order instead.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 500
Executions unlinked successfully
Validation error. code: EXECUTION_HAS_ORDER - one or more executions carries an orderId, so it has no independent link state (#1334, "fills follow their order"). details.orderId names the order to unlink instead via POST /unlink-order.
Authentication required
One or more executions not found
Unlinking would push an affected trade's recalculated aggregates above the broker's reported position (#1360). The move is rolled back atomically with the refusal. code: RECONCILIATION_SYNTHETIC_CONFLICT or RECONCILIATION_OVER_EXPOSURE; details carries the accountId, symbol, side, brokerQuantity, utmOpenSum, exceedsBy, and conflictingTradeIds.
Server error