Skip to main content

Search for Open Orders

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

API Reference: /api/order/searchopen

Description


Search for open orders.

Parameters


NameTypeDescriptionRequiredNullable
accountIdintegerThe account ID.Requiredfalse

Example Usage


Example Request

curl -X 'POST' \
'https://gateway-api-demo.s2f.projectx.com/api/Order/search' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"accountId": 212
}'

Example Response

{
"orders": [
{
"id": 26970,
"accountId": 212,
"contractId": "CON.F.US.EP.M25",
"creationTimestamp": "2025-04-21T19:45:52.105808+00:00",
"updateTimestamp": "2025-04-21T19:45:52.105808+00:00",
"status": 1,
"type": 4,
"side": 1,
"size": 1,
"limitPrice": null,
"stopPrice": 5138.000000000
}
],
"success": true,
"errorCode": 0,
"errorMessage": null
}