Order

Places a new order based on the provided request.

post/api/Order/place

Request body

accountIdinteger required
contractIdstring required
type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 required

0 = Unknown 1 = Limit 2 = Market 3 = StopLimit 4 = Stop 5 = TrailingStop 6 = JoinBid 7 = JoinAsk

side0 | 1 required

0 = Bid 1 = Ask

sizeinteger required
limitPricenumber
stopPricenumber
trailPricenumber
customTagstring

Response

A response with order placement details.

successboolean required
errorCode0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 required

0 = Success 1 = AccountNotFound 2 = OrderRejected 3 = InsufficientFunds 4 = AccountViolation 5 = OutsideTradingHours 6 = OrderPending 7 = UnknownError 8 = ContractNotFound 9 = ContractNotActive 10 = AccountRejected

errorMessagestring
orderIdinteger

Changes

No recorded changes to this endpoint across all 1 revision of this API.