Create trade
POST/api/v1/trades
Create a new trade record. Typically called by the desktop sync process. Returns 409 if a trade with the same desktopId already exists.
Request
Responses
- 201
- 400
- 401
- 404
- 409
- 500
Trade created
Validation error
Authentication required
Account not found or does not belong to the authenticated user
Conflict.
- A trade with the same
desktopIdalready exists for this account. code: OPPOSING_POSITION_OPEN- the trade would open 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