GET Tradovate Status
- NT8
- Tradovate
NinjaTrader 8
There is no equivalent NT8 endpoint for Tradovate identity linkage, environment, and token-expiry status.
The Tradovate endpoint on this page is REST-only. The WebSocket API applies to supported CrossTrade NT8 add-on routes, not this Tradovate route.
Link and connection status Tradovate
Returns the link status for your Tradovate identities: whether an identity is linked, its environment (demo or live), and when its access token expires. It is useful as a first call to confirm the Tradovate API is ready before reading or trading.
Endpoint
GET /v1/api/tv/status
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Code examples
- Python
- JavaScript
- cURL
import requests
token = 'my-secret-token'
url = "https://app.crosstrade.io/v1/api/tv/status"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(f"Response Code: {response.status_code}, Response Text: {response.text}")
const token = 'my-secret-token';
const url = "https://app.crosstrade.io/v1/api/tv/status";
fetch(url, {
method: "GET",
headers: {
"Authorization": `Bearer ${token}`,
"Content-Type": "application/json"
}
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));
TOKEN="my-secret-token"
curl -X GET "https://app.crosstrade.io/v1/api/tv/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
Response
- 200
- 401
- 403
- 429
- 500
- 502
- 503
{
"success": true,
"data": {
"linked": true,
"environments": [
"demo"
],
"countByEnv": {
"demo": 1
},
"identities": [
{
"environment": "demo",
"userId": "12345",
"name": "Demo identity",
"expires": "2026-10-27T18:00:00Z",
"expiresInSeconds": 3600,
"authFailure": null,
"linked": "2026-10-01T12:00:00Z",
"updated": "2026-10-27T17:00:00Z"
}
],
"environment": "demo",
"userId": "12345",
"expires": "2026-10-27T18:00:00Z",
"expiresInSeconds": 3600
}
}
{
"success": false,
"error": "inactive_subscription"
}
{
"success": false,
"error": "tradovate_not_linked"
}
// retryAfter is integer seconds; also sent as Retry-After.
{
"success": false,
"error": "rate_limited",
"detail": "CrossTrade API rate limit exceeded (180 requests/min per user). Retry after 1s.",
"retryAfter": 1
}
{
"success": false,
"error": "internal_error"
}
{
"success": false,
"error": "tradovate_unavailable",
"detail": "Tradovate is temporarily unavailable. Please try again shortly."
}
{
"success": false,
"error": "temporarily_disabled"
}
Success field types
| Field | Type | Description |
|---|---|---|
success, data.linked | boolean | Request and link status. |
data | object | Link summary. |
data.environments | array of strings | Linked environments. |
data.countByEnv | object | Environment counts; absent environments may be omitted. |
data.countByEnv.demo, data.countByEnv.live | integer | Linked identity counts. |
data.identities | array of objects | Per-identity link metadata. |
data.identities[].environment, data.identities[].userId | string | Environment and identity ID. |
data.identities[].name, data.identities[].authFailure | string or null | Display name and authentication-failure text. |
data.identities[].expires, data.identities[].linked, data.identities[].updated | string | ISO 8601 timestamps. |
data.identities[].expiresInSeconds | integer | Remaining authorization lifetime. |
data.environment, data.userId, data.expires | string | Convenience fields for the selected identity. |
data.expiresInSeconds | integer | Selected identity's remaining lifetime. |
Platform nuances
Authentication uses the same bearer token as the rest of the CrossTrade API and requires a plan with API access (Pro) plus a linked Tradovate account. Unlinked users receive 403 tradovate_not_linked.
This endpoint is REST-only and has no WebSocket equivalent.