Skip to main content

Delete ATM Template

Delete an ATM template. Webhooks that name it are refused afterwards.

Elite

The Management API requires an Elite subscription. See Authentication.

Endpoint​

DELETE https://app.crosstrade.io/v1/api/manage/tradovate/atm-templates/{id}

Headers​

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

Path parameters​

NameTypeDescription
idstringThe resource id

Code examples​

import requests

resp = requests.delete(
"https://app.crosstrade.io/v1/api/manage/tradovate/atm-templates/tvatm_Qw12er34Ty56ui78",
headers={"Authorization": "Bearer YOUR_TOKEN"},
)
print(resp.status_code, resp.json())

Responses​

{
"success": true,
"changed": true,
"changedFields": [
"active",
"config.quantities",
"config.stops",
"config.targets",
"config.trail",
"description",
"id",
"name"
],
"delivery": {
"status": "immediate",
"target": "signal_gate"
},
"warnings": [],
"meta": {
"requestId": "req_9f2c1a0b7d3e4f51"
}
}

When it takes effect​

The next webhook signal that names the template.