Assign Data Subscription to User
Once you have successfully created a Trading Account, you must assign a Market Data Subscription to your user.
Retrieve Market Data Subscriptions
API Reference: /MarketDataSubscription
Before assigning a Market Data Subscription (MDS) to a user, you must select a data subscription from our list.
To retrieve a list of all available data subscriptions, create a GET request to the endpoint referenced above.
Example Usage
- cURL
- Response
curl -X 'GET' \
'https://userapi-demo.s2f.projectx.com/MarketDataSubscription' \
-H 'accept: text/plain'
{
"subscriptions": [
"CME_TOB",
"CME_DOM",
"CMEGROUP_TOB",
"CMEGROUP_DOM",
"CME_NONPROF_DOM",
"NYMEX_NONPROF_DOM",
"CBOT_NONPROF_DOM",
"COMEX_NONPROF_DOM",
"NYMEX_PROF",
"CBOT_PROF",
"COMEX_PROF",
"CME_PROF"
]
}
Assign Market Data Subscription
API Reference: /MarketDataSubscription/user
After reviewing the available Market Data Subscriptions, you may assign an MDS to user.
Example Usage
- cURL
- Response
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"
}'
{
"success": true,
"errorMessage": null
}
Notes
Adjusting subscriptions to a user will not incur a double charge. You may add / remove subscriptions at your discretion.
When the user has no active accounts, remove all subscriptions associated with the user as not to incur additional charges. You may re-attach a subscription when you create a new active account for the user.