GET News Lockout
Read the global news lockout.
Elite
The Management API requires an Elite subscription. See Authentication.
Endpoint
GET https://app.crosstrade.io/v1/api/manage/news-lockout
Headers
| Name | Required | Value |
|---|---|---|
| Authorization | Yes | Bearer <your API token> |
| If-None-Match | No | ETag from a previous read. Returns 304 with no body if nothing changed |
Code examples
- Python
- cURL
import requests
resp = requests.get(
"https://app.crosstrade.io/v1/api/manage/news-lockout",
headers={"Authorization": "Bearer YOUR_TOKEN"},
)
print(resp.json())
curl https://app.crosstrade.io/v1/api/manage/news-lockout \
-H "Authorization: Bearer YOUR_TOKEN"
Responses
- 200
- Other responses
{
"success": true,
"data": {
"enabled": true,
"impact": ["high"],
"currencies": ["USD"],
"preMinutes": 5,
"postMinutes": 5
},
"meta": { "requestId": "req_9f2c1a0b7d3e4f51", "etag": "\"c2:7Q0xMmZ3bTRkWmRVdz\"" }
}
| Status | error | When |
|---|---|---|
| 304 | If-None-Match matched; no body | |
| 400 | unexpected_body, unknown_parameter | A body or a query parameter was sent |
| 401 | unauthorized | Missing or invalid token |
| 403 | elite_required, not_available | See Authentication |
| 429 | rate_limited, too_many_concurrent_requests | See Rate limits |
| 503 | management_unavailable, management_busy, storage_unavailable | See Errors |
Notes
Field details are in the News lockout field reference. An empty currencies array means every currency.