Skip to main content

GET Controls

Read your global trading controls.

Elite

The Management API requires an Elite subscription. See Authentication.

Endpoint​

GET https://app.crosstrade.io/v1/api/manage/controls

Headers​

NameRequiredValue
AuthorizationYesBearer <your API token>
If-None-MatchNoETag from a previous read. Returns 304 with no body if nothing changed

Code examples​

import requests

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

Responses​

{
"success": true,
"data": {
"killSwitch": false,
"closingOnly": false,
"tradingWindow": {
"days": ["mon", "tue", "wed", "thu", "fri"],
"start": "09:30",
"end": "16:00",
"closingOnlyAfter": "15:45"
},
"monitorLock": true,
"enhancedClosingOnly": false
},
"meta": { "requestId": "req_9f2c1a0b7d3e4f51", "etag": "\"c2:7Q0xMmZ3bTRkWmRVdz\"" }
}

A read can include warnings when a saved value was stored in an older form. For example, trading days saved without a start time read as "start": null with a legacy_value_normalized warning.

Notes​

Field details are in the Controls field reference.