Skip to main content

Disconnect NT8 Connection

Ask NinjaTrader to disconnect a configured broker or data-provider connection. Use its name from List NT8 Connections.

Elite

Requires an Elite subscription and a connected CrossTrade add-on. See Authentication.

Endpoint​

POST https://app.crosstrade.io/v1/api/manage/nt8/connections/disconnect

Headers​

NameRequiredValue
AuthorizationYesBearer <your API token>
Content-TypeYesapplication/json

This live command does not support If-Match; sending it returns 400 unsupported_precondition.

Body parameters​

NameTypeRequiredDescription
namestringYesConfigured NT8 connection name, matched without regard to case. 1 to 128 characters, without leading/trailing whitespace, control characters, ; or =

Unknown fields and query parameters are rejected. The name must resolve to one connection in your add-on's inventory.

Code examples​

import requests

resp = requests.post(
"https://app.crosstrade.io/v1/api/manage/nt8/connections/disconnect",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={"name": "Rithmic"},
)
print(resp.status_code, resp.json())

Response​

{
"success": true,
"changed": true,
"data": { "name": "Rithmic", "action": "disconnect", "requestStatus": "acknowledged" },
"changedFields": [],
"delivery": { "status": "requested", "target": "nt8_addon" },
"warnings": [],
"meta": { "requestId": "req_9f2c1a0b7d3e4f51" }
}

200 confirms acknowledgement by the add-on, including when it reports the connection is already disconnected. Poll List NT8 Connections to confirm current broker and market-data status.

changed: true describes the acknowledged command, not a confirmed transition or settings save. changedFields is empty, and no ETag is returned. The command is not held for a later add-on connection.

This disconnects the named provider inside NT8. It does not close NinjaTrader, disconnect the CrossTrade add-on transport, flatten positions, or cancel orders. The add-on records intentional API disconnections in apiDisconnectIntent.

Errors​

StatuserrorWhen
400invalid_json, unknown_parameter, unsupported_preconditionInvalid JSON, query parameters, or an If-Match header
401unauthorizedMissing or invalid API token
403elite_required, not_availableSee Authentication
404connection_not_foundThe name does not resolve to one configured connection
409addon_disconnected, concurrent_modificationThe add-on is offline, or another connection command is in progress
415unsupported_content_typeThe body is not UTF-8 JSON
422validation_failedMissing, invalid, or unknown body fields
429rate_limited, too_many_concurrent_requestsSee Rate limits
503addon_unavailableInventory could not be read; no disconnect command was issued
503outcome_unknownThe command was attempted without a successful acknowledgement. Read live status before retrying
503management_unavailable, management_read_only, family_unavailable, management_busySee Errors

Each disconnect request costs 2 change-budget units. Acknowledged and uncertain attempts appear in GET Audit under family=nt8_connections. To reconnect, wait for disconnection, then call Connect.