Remove Data Subscription from User
API URL: DELETE https://userapi-demo.s2f.projectx.com/MarketDataSubscription/user
API Reference: /MarketDataSubscription/user
Description
Removes a market data subscription from 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 'DELETE' \
'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