Skip to main content

Delete Monitor

Delete the monitor for one account. You can create it again later.

Deleting a monitor also changes copiers

Deleting a monitor removes every trade copier that uses the account as its leader or as its single follower, and removes the account from group copiers (a group left with no followers is removed). This matches the web app on both brokers. The ids are listed in the copiers_removed warning.

Elite

The Management API requires an Elite subscription. See Authentication.

Endpoint​

DELETE https://app.crosstrade.io/v1/api/manage/nt8/monitors/{account}

Headers​

NameRequiredValue
AuthorizationYesBearer <your API token>
If-MatchNoETag from a previous read. The request fails with 412 if the monitor changed since then

Path parameters​

NameTypeDescription
accountstringAccount name, URL-encoded (exact match, including case; no leading or trailing spaces)

Code examples​

import requests

resp = requests.delete(
"https://app.crosstrade.io/v1/api/manage/nt8/monitors/Sim101",
headers={"Authorization": "Bearer YOUR_TOKEN"},
)
print(resp.status_code, resp.json())

Responses​

{
"success": true,
"changed": true,
"changedFields": [
"account",
"active",
"autoFlattenTime",
"blockSignals",
"cleanSessionProtection",
"closingOnly",
"dailyLossLimit",
"dailyProfitTarget",
"includeCommissions",
"includeUnrealized",
"minimumProfit.enabled",
"minimumProfit.flatten",
"minimumProfit.signals",
"minimumProfit.threshold",
"minimumProfit.trigger",
"newsLockout.blockSignals",
"newsLockout.flatten",
"onLossLimit.flatten",
"onLossLimit.signals",
"onProfitTarget.flatten",
"onProfitTarget.signals",
"outlierProtection.enabled",
"outlierProtection.sensitivity",
"pnlMode",
"positionLossLimit",
"positionProfitTarget",
"switchesLocked",
"tradingWindows",
"trailingDrawdown.amount",
"trailingDrawdown.basis",
"trailingDrawdown.enabled",
"trailingDrawdown.flatten",
"trailingDrawdown.signals",
"trailingDrawdown.trigger",
"trailingDrawdown.unit"
],
"delivery": {
"status": "queued",
"target": "nt8_addon"
},
"warnings": [
{
"code": "copiers_removed",
"ids": [
"4b1f0c9e2d7a4c55b1e0"
],
"detail": "1 copier(s) that used this account were removed or updated."
}
],
"meta": {
"requestId": "req_9f2c1a0b7d3e4f51"
}
}

When it takes effect​

NinjaTrader: the add-on stops enforcing the monitor right after the delete, or when it next connects. Tradovate: within about 10 seconds.

Notes​

  • changedFields lists every field the deleted monitor had a value for (fields that were null are left out), and the change history keeps their last values.
  • A monitor on an account that is a follower in a Tandem copier cannot be deleted (409 tandem_dependency). Nothing is changed in that case.
  • A delete costs 2 units of your change budget.