> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://partner.ninjatrader.com/connect/api/rest-api-endpoints/users/cancel-everything/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server. # Cancel Everything POST https://demo.tradovateapi.com/v1/user/canceleverything Content-Type: application/json ### Cancel any number of market data subscriptions, Tradovate subscriptions, trading permissions, or user plug-ins.**Available to:** Organization administrators**Environments:** Demo, Live**[Rate Limit](/overview/core-concepts/rate-limits):** No endpoint-specific limit`cancelEverything` combines the functionality of multiple other endpoints. Use `cancelEverything` to do any or all of the following:- Cancel market data subscriptions - Cancel Tradovate subscriptions - Revoke trading permissions - End user plug-in subscriptionsAlthough there is no limit on the number of user IDs you can include in a single request, we recommend sending **100 to 500 user IDs per call** for best performance. This is a recommended range, not an enforced limit. Any IDs that don't match a user in your organization are ignored, so a stale or unknown ID won't cause an error. Double-check the IDs you send, since a cancellation can't be undone through this endpoint.Include the users you want to cancel in the `userIds` array rather than calling `cancelEverything` once per user.```json { "userIds": [12345, 67890, 24680], "tradovateSubscriptions": true, "userPlugins": true, "marketDataSubscriptions": true, "tradingPermissions": true } ```Since `cancelEverything` returns an `HTTP 200` even when a cancellation doesn't go through, check the response's ID arrays (`tradovateSubscriptionIds`, `userPluginIds`, `marketDataSubscriptionIds`, and `tradingPermissionIds`) to confirm what was actually cancelled. The response doesn't echo the `userIds` you submitted.To fully revoke a user's trading permissions and cancel all their subscriptions, call `cancelEverything` on both `live.tradovateapi.com/v1` and `demo.tradovateapi.com/v1`. Each call revokes trading permissions in its own environment; subscription cancellation runs only on `live.tradovateapi.com/v1`. Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/users/cancel-everything ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Body (application/json) This endpoint expects a CancelEverything. - `userIds` (list of long, required) - `tradovateSubscriptions` (boolean, optional) - `userPlugins` (boolean, optional) - `marketDataSubscriptions` (boolean, optional) - `tradingPermissions` (boolean, optional) ## Response ### 200 CancelEverythingResponse - `tradovateSubscriptionIds` (list of long, required) - `userPluginIds` (list of long, required) - `marketDataSubscriptionIds` (list of long, required) - `tradingPermissionIds` (list of long, required) ## Examples **Request** ```json { "userIds": [ 1 ] } ``` **Response** ```json { "tradovateSubscriptionIds": [ 1 ], "userPluginIds": [ 1 ], "marketDataSubscriptionIds": [ 1 ], "tradingPermissionIds": [ 1 ] } ``` **SDK Code** ```python import requests url = "https://demo.tradovateapi.com/v1/user/canceleverything" payload = { "userIds": [1] } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://demo.tradovateapi.com/v1/user/canceleverything'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"userIds":[1]}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://demo.tradovateapi.com/v1/user/canceleverything" payload := strings.NewReader("{\n \"userIds\": [\n 1\n ]\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://demo.tradovateapi.com/v1/user/canceleverything") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"userIds\": [\n 1\n ]\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://demo.tradovateapi.com/v1/user/canceleverything") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"userIds\": [\n 1\n ]\n}") .asString(); ``` ```php request('POST', 'https://demo.tradovateapi.com/v1/user/canceleverything', [ 'body' => '{ "userIds": [ 1 ] }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://demo.tradovateapi.com/v1/user/canceleverything"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"userIds\": [\n 1\n ]\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = ["userIds": [1]] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://demo.tradovateapi.com/v1/user/canceleverything")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```