Skip to main content

Update Equity Order

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

POST
/trading-api/v1/equityorder/update-equity-order

Request

A request to this endpoint includes a required JSON body and optional url query parameters.

Query Parameters

NameData TypeDescription
verifyOnlyBooleanAllows users to review the response of an order without creating the order

Request Body

The Request to update an Equity 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:

AttributeData TypeDescription
orderIdStringAssigned Order identifier
quantityNumberNew quantity amount
stopPriceNumberPrice assigned to trigger a Stop Order
limitPriceNumberPrice assigned to a Limit order
timeInForceStringDay, GoodTillCancel, FillorKill, GTXPre, NTE

Response

The endpoint will return a JSON body.

Successful Response

The response for a Successful request will look like:

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