Skip to main content

Modify an Order

API URL: POST https://gateway-api-demo.s2f.projectx.com/api/Order/modify

API Reference: /api/order/modify

Description


Modify an open order.

Parameters


NameTypeDescriptionRequiredNullable
accountIdintegerThe account ID.Requiredfalse
orderIdintegerThe order id.Requiredfalse
sizeintegerThe size of the order.Optionaltrue
limitPricedecimalThe limit price for the order, if applicable.Optionaltrue
stopPricedecimalThe stop price for the order, if applicable.Optionaltrue
trailPricedecimalThe trail price for the order, if applicable.Optionaltrue

Example Usage


Example Request

curl -X 'POST' \
'https://gateway-api-demo.s2f.projectx.com/api/Order/modify' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"accountId": 465,
"orderId": 26974,
"size": 1,
"limitPrice": null,
"stopPrice": 1604,
"trailPrice": null
}
'

Example Response

{
"success": true,
"errorCode": 0,
"errorMessage": null
}