Skip to main content

PATCH News Lockout

Turn the global news lockout on or off. While it is on, opening webhook signals are blocked from preMinutes before to postMinutes after each matching economic event.

Elite

The Management API requires an Elite subscription. See Authentication.

Endpoint​

PATCH https://app.crosstrade.io/v1/api/manage/news-lockout

Headers​

NameRequiredValue
AuthorizationYesBearer <your API token>
Content-TypeYesapplication/json
If-MatchNoETag from a previous read

Body parameters​

NameTypeRequiredDescription
enabledbooleanNoTurn the news lockout on or off

impact, currencies, preMinutes and postMinutes are read-only here, as in the web app, and your saved values are kept. You can send them back as you read them (matching values are ignored), but a value that differs from the saved one returns 422 field_read_only.

Code examples​

import requests

resp = requests.patch(
"https://app.crosstrade.io/v1/api/manage/news-lockout",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={"enabled": True},
)
print(resp.json())

Responses​

{
"success": true,
"changed": true,
"data": { "enabled": true, "impact": ["high"], "currencies": ["USD"], "preMinutes": 5, "postMinutes": 5 },
"changedFields": ["enabled"],
"delivery": { "status": "immediate", "target": "signal_gate" },
"warnings": [],
"meta": { "requestId": "req_9f2c1a0b7d3e4f51", "etag": "\"c2:Tm90UmVhbEV0YWcwMg\"" }
}

When it takes effect​

The next incoming webhook signal. The lockout applies to webhook signals only.

Notes​

  • News settings on individual monitors (newsLockout on a monitor) are separate and are not changed here.