Skip to main content

Update Option Order

Update a Single Non-Discretionary, Single CAT, Single Complex, Block or Allocation Option Order.

POST
/trading-api/v1/optionorder/update-option-order

Request

Query Parameters

NameData TypeDescription
verifyOnlyBooleanTrue: does not submit order. Response body will not return an orderId <br/> False: immediately submits order through API. If the order is successfully, the Response Body will return an orderId`

Request Body

The Request Body to update an Options Order includes several required fields. This ensures that the created order has all necessary parameters for the order to return with no errors.

All fields in the request, other than the orderId field, can be updated. If the field is not being updated, the Update field must reflect that of the inputted field from the original orderId .

This request must consist of the below Stonex identifiers:

AttributesData TypeLengthDescription
orderIdString32Assigned Order identifier
quantityNumberNew quantity amount
stopPriceNumberPrice assigned to trigger a Stop Order
limitPriceNumberPrice assigned to a Limit order
timeInForceStringDay, GoodTillCancel, GTXPre

Response Body

Responses from the request will return with a Status Code. There are 3 Codes: Successful (200), Bad Request (400) and Internal Server Error (500).

Successful Response

The response for a Successful request will look like:

AttributesData TypeLengthDescription
statusCodeInteger3Code identifies success of request
messageStringOutcome of request
dataData BlockMain field containing information of request
errorsErrorsAPI errors
traceIdStringUnique identifier
hasErrorsBooleanTrue or False