Search for Orders
API URL: POST https://gateway-api-demo.s2f.projectx.com/api/Order/search
API Reference: /api/order/search
Description
Search for orders.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
accountId | integer | The account ID. | Required | false |
startTimestamp | datetime | The start of the timestamp filter. | Required | false |
endTimestamp | datetime | The end of the timestamp filter. | Optional | true |
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": 202,
"startTimestamp": "2024-12-30T16:48:16.003Z",
"endTimestamp": "2025-12-30T16:48:16.003Z"
}'
Example Response
- Success
- Error
{
"orders": [
{
"id": 26060,
"accountId": 545,
"contractId": "CON.F.US.EP.M25",
"creationTimestamp": "2025-04-14T17:49:10.142532+00:00",
"updateTimestamp": null,
"status": 2,
"type": 2,
"side": 0,
"size": 1,
"limitPrice": null,
"stopPrice": null
},
{
"id": 26062,
"accountId": 545,
"contractId": "CON.F.US.EP.M25",
"creationTimestamp": "2025-04-14T17:49:53.043234+00:00",
"updateTimestamp": null,
"status": 2,
"type": 2,
"side": 1,
"size": 1,
"limitPrice": null,
"stopPrice": null
}
],
"success": true,
"errorCode": 0,
"errorMessage": null
}
Error: response status is 401