Expire Market Data Subscription
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Response
Non-empty if the request failed
Bearer authentication of the form Bearer <token>, where token is your auth token.
Non-empty if the request failed
Available to: Organization administrators
Environments: Live
Rate Limit: No endpoint-specific limit
Immediately archive and expire up to 100 market data subscriptions in a single request. Include every subscription in the marketDataSubscriptionIds array rather than calling the endpoint once per subscription. The IDs are primary keys from the marketDataSubscriptions database table, returned when subscriptions are created with endpoints like addMarketDataSubscription.
Before expiring anything, the endpoint checks that every ID is accessible to your organization. If any ID is inaccessible (because it doesn’t exist or belongs to a user outside your organization), the whole request fails and nothing is expired (errorCode: UsersNotInOrganization), so validate your IDs before calling. An already-expired but still accessible ID is treated as valid and counted as a success. Partial success (where some IDs expire and others don’t) happens only when a backend error interrupts processing after the access check passes (errorCode: InternalError).
ok along with the successfulSubscriptionIdExpiries and failedSubscriptionIdExpiries arrays to confirm what was actually expired.Common Failure Scenarios
If you expire a subscription by mistake, create a new one for the user with addMarketDataSubscription.
Error Messages
The errorCode schema also lists TooManySubscriptions, but the endpoint doesn’t currently return it. A request with more than 100 IDs is rejected by validation first, with the error "Market Data Subscription Ids should be no longer than 100".