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
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
accountId | integer | The account ID. | Required | false |
Example Usage
Example Request
- cURL 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
- Success
- Error
{
"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
}
Error: response status is 401