Assign Data Subscription to User
API URL: PUT https://userapi-demo.s2f.projectx.com/MarketDataSubscription/user
API Reference: /MarketDataSubscription/user
Description
Attach a Market Data Subscription to a User.
Parameters
| Name | Type | Description | Required | Nullable |
|---|---|---|---|---|
| userId | integer | The user's id. | Required | false |
| subscriptionId | integer | The id associated with the market data subscription. | Required | false |
Example Usage
- Request
- cURL
{
"userId": 123,
"subscriptionId": "CMEGROUP_DOM"
}
curl -X 'PUT' \
'https://userapi-demo.s2f.projectx.com/MarketDataSubscription/user' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"userId": 123,
"subscriptionId": "CMEGROUP_DOM"
}'
Example Response
- Success
- Error
{
"success": true,
"errorMessage": null
}
Error: response status is 401
Available Subscriptions
As of Jan 9, 2025, the following subscriptions are available for assignment.
To retrieve the latest subscriptions, we suggest you make a GET request to the following endpoint:
API Reference: /MarketDataSubscription
| Name | Description | Data Exchange |
|---|---|---|
| CMEGROUP_TOB | The level 1 bundle (all four exchanges) | SIM |
| CMEGROUP_DOM | The level 2 bundle (all four exchanges) | SIM |
| CME_NONPROF_DOM | DOM data only for CME exchange products (e.g. NQ, ES, etc.) | SIM |
| NYMEX_NONPROF_DOM | DOM data only for NYMEX exchange products (e.g. CL, NG, etc.) | SIM |
| COMEX_NONPROF_DOM | DOM data only for COMEX exchange products (e.g. GC, SI, etc.) | SIM |
| CBOT_NONPROF_DOM | DOM data only for CBOT exchange products (e.g. ZS, ZC, etc.) | SIM |
| CME_PROF | DOM data only for CME exchange products (e.g. NQ, ES, etc.) | Live |
| NYMEX_PROF | DOM data only for NYMEX exchange products (e.g. CL, NG, etc.) | Live |
| COMEX_PROF | DOM data only for COMEX exchange products (e.g. GC, SI, etc.) | Live |
| CBOT_PROF | DOM data only for CBOT exchange products (e.g. ZS, ZC, etc.) | Live |
| CME_TOB | This is deprecated. Please use CMEGROUP_TOB | SIM |
| CME_DOM | This is deprecated. Please use CMEGROUP_DOM | SIM |