Import a broker position split across multiple trades
POST/api/v1/reconciliation/split-import-position
Creates one or more trades from a single broker position using explicit quantity allocations. The sum of all allocation quantities must equal the broker position quantity (within a tolerance of 0.0001). A maximum of 20 allocations is allowed. Each allocation can optionally specify a strategy and notes.
Request
Responses
- 200
- 400
- 401
- 409
- 422
- 500
Position imported and split into one or more trades
Validation error or allocation quantity does not match broker position quantity
Authentication required
Conflict. code: OPPOSING_POSITION_OPEN - the imported trade allocations would be the opposing side of an existing non-terminal trade for the same (account, symbol) on a netting broker (Alpaca, TradeStation). Response details.conflictingTradeId carries the existing trade id.
Import sanity check failed. code: IMPORT_SANITY_FAILED and details.reason is one of IMPORT_SIDE_MISMATCH or IMPORT_QTY_EXCEEDS_BROKER. The rejected import is recorded on the pending-review queue so an operator can resolve it.
Server error