Approve a pending import
POST/api/v1/pending-imports/:id/approve
Approves a pending import and creates a trade from the broker execution. Only imports with status "pending" can be approved. Optionally assigns the import to a strategy.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 500
Import approved and trade created.
Invalid request body.
Authentication required.
Pending import not found or access denied.
Conflict.
- Import has already been processed.
code: OPPOSING_POSITION_OPEN- approving this import would create the opposing side of an existing non-terminal trade for the same(account, symbol)on a netting broker (Alpaca, TradeStation). Responsedetails.conflictingTradeIdcarries the existing trade id.
Server error.