Skip to main content

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


NameTypeDescriptionRequiredNullable
accountIdintegerThe account ID.Requiredfalse
startTimestampdatetimeThe start of the timestamp filter.Requiredfalse
endTimestampdatetimeThe end of the timestamp filter.Optionaltrue

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": 704,
"startTimestamp": "2025-07-18T21:00:01.268009+00:00",
"endTimestamp": "2025-07-18T21:00:01.278009+00:00"
}'

Example Response

{
"orders": [
{
"id": 36598,
"accountId": 704,
"contractId": "CON.F.US.EP.U25",
"symbolId": "F.US.EP",
"creationTimestamp": "2025-07-18T21:00:01.268009+00:00",
"updateTimestamp": "2025-07-18T21:00:01.268009+00:00",
"status": 2,
"type": 2,
"side": 0,
"size": 1,
"limitPrice": null,
"stopPrice": null,
"fillVolume": 1,
"filledPrice": 6335.250000000,
"customTag": null
}
],
"success": true,
"errorCode": 0,
"errorMessage": null
}