Skip to main content

Search for Contracts

API URL: POST https://gateway-api-demo.s2f.projectx.com/api/Contract/search

API Reference: /api/contract/search

Description


Search for contracts.

Parameters


NameTypeDescriptionRequiredNullable
searchTextstringThe name of the contract to search for.Requiredfalse
livebooleanWhether to search for contracts using the sim/live data subscription.Requiredfalse

Example Usage


Example Request

curl -X 'POST' \
'https://gateway-api-demo.s2f.projectx.com/api/Contract/search' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"live": false,
"searchText": "NQ"
}'

Example Response

{
"contracts": [
{
"id": "CON.F.US.ENQ.H25",
"name": "ENQH25",
"description": "E-mini NASDAQ-100: March 2025",
"tickSize": 0.25,
"tickValue": 5,
"activeContract": true
},
{
"id": "CON.F.US.MNQ.H25",
"name": "MNQH25",
"description": "Micro E-mini Nasdaq-100: March 2025",
"tickSize": 0.25,
"tickValue": 0.5,
"activeContract": true
},
{
"id": "CON.F.US.NQG.G25",
"name": "NQGG25",
"description": "E-Mini Natural Gas: February 2025",
"tickSize": 0.005,
"tickValue": 12.5,
"activeContract": true
},
{
"id": "CON.F.US.NQM.G25",
"name": "NQMG25",
"description": "E-Mini Crude Oil: February 2025",
"tickSize": 0.025,
"tickValue": 12.5,
"activeContract": true
}
],
"success": true,
"errorCode": 0,
"errorMessage": null
}