Send PLACE_ORDER after login. The acknowledgement event is PLACE_ORDER_ACK.
Arguments
| Field | Type | Required | Description |
|---|---|---|---|
brokerClientId | string | Yes | Account ID identifying the client account for the request. |
exchangeCode | string | Yes | Market. Values: US. |
productCode | string | Yes | Security code, for example AAPL. |
bsFlag | string | Yes | B = buy; S = sell. Values: B, S. |
orderType | string | Yes | L = limit; M = market. Values: L, M. |
price | string | Yes | Required. Send "0" for market orders (orderType=M). |
qty | integer | Yes | Order quantity. |
orderValidity | string | No / conditional | Time in force. Values: Day, FAK, FOK, GTD, GTC. Default: Day. |
orderExpiryDate | string | No / conditional | Required for GTD. Format YYYY-MM-DD. |
reference | string | No / conditional | Caller-supplied order reference. The server generates a UUID if omitted. |
conditionCode | string | No / conditional | Omit or leave empty to send immediately. Conditional order type. Values: UT, DT, SL, OCO, TIME, HOLD, ``. |
triggerPrice | string | No / conditional | Required for UT, DT, SL and OCO. |
stopPrice | string | No / conditional | Required for OCO. |
timeToSend | string | No / conditional | Required for TIME. Format yyyy-MM-dd HH:mm:ss. |
extendedTrading | boolean | No / conditional | Whether to allow pre-market and after-hours trading. Default: False. |
Request
{
"action": "PLACE_ORDER",
"id": "req-002",
"args": {
"brokerClientId": "julioclient001",
"exchangeCode": "US",
"productCode": "AAPL",
"bsFlag": "B",
"orderType": "L",
"price": "182.50",
"qty": 100,
"orderValidity": "Day"
}
}
Response
{
"event": "PLACE_ORDER_ACK",
"id": "req-002",
"code": 0,
"message": "success",
"data": {
"orderNo": "23818",
"orderStatus": "NEW"
}
}
