GET Connection Settings
Read your NinjaTrader connection settings: auto-reconnect, data watchdog, what happens after a reconnect, and opposing-position protection. Works while the add-on is offline.
Elite
The Management API requires an Elite subscription. See Authentication.
Endpoint
GET https://app.crosstrade.io/v1/api/manage/nt8/connection-settings
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/nt8/connection-settings",
headers={"Authorization": "Bearer YOUR_TOKEN"},
)
print(resp.json())
curl https://app.crosstrade.io/v1/api/manage/nt8/connection-settings \
-H "Authorization: Bearer YOUR_TOKEN"
Responses
- 200
- Other responses
{
"success": true,
"data": {
"autoReconnect": [ { "connection": "Rithmic", "enabled": true, "timeoutSeconds": 60 } ],
"dataWatchdog": [ { "connection": "Rithmic", "enabled": false, "timeoutSeconds": 60 } ],
"reconnectActions": {
"restartStrategies": true,
"flatten": { "scope": "specific", "accounts": ["Sim101"] }
},
"opposingPositionProtection": {
"enabled": true,
"checkAllAccounts": false,
"relatedProducts": [["ES", "MES"], ["NQ", "MNQ"]],
"relatedProductsSource": "custom",
"groups": [ { "name": "Prop accounts", "accounts": ["PROP1234", "PROP1235"] } ]
}
},
"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 Connection settings field reference.