GET Orders
- NT8
- Tradovate
Get list of all orders in one account NT8
Lists orders for one NT8 account, with optional active-order filtering.
Endpoint
GET /v1/api/accounts/{account}/orders
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account | string | Required | Name of account in NT8 |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
activeOnly | boolean | Optional | When true, exclude terminal orders. Defaults to true for this HTTP route. |
Code examples
- Python
- JavaScript
- cURL
import requests
token = 'my-secret-token'
url = "https://app.crosstrade.io/v1/api/accounts/Sim101/orders"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}
params = {
"activeOnly": False
}
try:
response = requests.get(url, headers=headers, params=params)
print(f"Response Code: {response.status_code}, Response Text: {response.text}")
except Exception as e:
print(f"An error occurred: {e}")
const token = 'my-secret-token';
const params = new URLSearchParams({ activeOnly: "false" });
const url = `https://app.crosstrade.io/v1/api/accounts/Sim101/orders?${params}`;
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/accounts/Sim101/orders?activeOnly=false" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"
Response
- 200
- 400
- 401
- 403
- 408
- 429
- 500
{
"orders": [
{
"id": "3cac8a5e85a041ababd9e33a4cecdbc0",
"type": "NinjaTrader.Cbi.Order",
"time": "2025-09-26T11:37:08.4195857",
"epoch": 1727375828419,
"name": "",
"ocoId": "",
"onBehalfOf": "",
"clientId": -1,
"account": "Sim101",
"instrument": "ES 12-25",
"instrumentType": "Future",
"orderType": "Limit",
"orderState": "Working",
"orderAction": "Sell",
"quantity": 1,
"quantityChanged": 1,
"limitPrice": 5805.0,
"limitPriceChanged": 5805.0,
"stopPrice": 0.0,
"stopPriceChanged": 0.0,
"averageFillPrice": 0.0,
"filled": 0,
"timeInForce": "Day",
"gtd": "2099-12-01T00:00:00.0000000",
"fromEntrySignal": null,
"hasOverfill": false,
"isBacktestOrder": false,
"isLimit": true,
"isLiveUntilCancelled": false,
"isLong": false,
"isMarket": false,
"isMarketIfTouched": false,
"isShort": true,
"isSimulatedStop": false,
"isStopLimit": false,
"isStopMarket": false,
"isTrackingConfigured": false,
"isTrackingEnabled": false,
"userData": "<NinjaTrader />",
"ownerStrategy": {
"id": null,
"name": null,
"displayName": null
}
}
],
"success": true
}
{
"error": "The request timed out, please check connection to NT8 Add-On."
}
{
"error": "Invalid bearer token"
}
{
"error": "Endpoint not available"
}
{
"error": "Client not ready to receive requests, disconnected."
}
// retryAfter is integer seconds; also sent as Retry-After.
{
"error": "Rate limit exceeded",
"retryAfter": 1
}
{
"success": false,
"error": "internal_error"
}
Success field types
| Field | Type | Description |
|---|---|---|
success | boolean | true on success. |
orders | array of objects | May be empty. No count field on this route. |
orders[] | object | Complete NT8 order field grid, without per-order success. |
Platform nuances
- The HTTP route always passes
activeOnly; when omitted from the URL it defaults totrue. - With
activeOnly=true, terminal orders are excluded. WithactiveOnly=false, the response includes terminal and nonterminal orders currently retained by NT8 for the selected account.
WebSocket API
This request can also be made over the WebSocket API. The account path parameter and query parameters are passed inside args.
{
"action": "rpc",
"id": "my-request-id",
"api": "ListOrders",
"args": {
"account": "Sim101",
"activeOnly": false
}
}
Get list of all orders in one account Tradovate
Returns the working orders for one linked Tradovate account. No NinjaTrader add-on is involved: the read executes server-side against the Tradovate Web API, so it works even while NinjaTrader is closed.
Endpoint
GET /v1/api/tv/accounts/{account}/orders
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account | string | Required | Tradovate account name, for example DEMO12345678. |
Code examples
- Python
- JavaScript
- cURL
import requests
token = 'my-secret-token'
url = "https://app.crosstrade.io/v1/api/tv/accounts/DEMO12345678/orders"
headers = {
"Authorization": f"Bearer {token}"
}
try:
response = requests.get(url, headers=headers)
print(f"Response Code: {response.status_code}, Response Text: {response.text}")
except Exception as e:
print(f"An error occurred: {e}")
const token = 'my-secret-token';
const url = "https://app.crosstrade.io/v1/api/tv/accounts/DEMO12345678/orders";
fetch(url, {
method: "GET",
headers: {
"Authorization": `Bearer ${token}`
}
})
.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/accounts/DEMO12345678/orders" \
-H "Authorization: Bearer $TOKEN"
Response
The response uses the Tradovate read envelope. data is the list of raw Tradovate Order rows for the selected account, without OrderVersion quantity, type, or prices. The accounts snapshot provides limited version enrichment.
- 200
- 400
- 401
- 403
- 429
- 500
- 502
- 503
{
"success": true,
"data": [
{
"id": 123456789,
"accountId": 12345678,
"contractId": 1234,
"instrument": "MESZ6",
"timestamp": "2026-10-27T12:00:00Z",
"action": "Sell",
"ordStatus": "Working",
"ocoId": 123456790,
"archived": false,
"external": false,
"admin": false
}
]
}
{
"success": false,
"error": "unknown_account"
}
{
"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 | boolean | true on success. |
data | array of objects | Working orders; may be empty. |
data[] | object | Tradovate order field grid; use data[] instead of data for each row. |
data[].instrument | string | Contract symbol resolved from contractId, for example MESZ6. Briefly the id as a string if the name cannot be resolved yet. |
Platform nuances
- There is no
activeOnlyquery parameter. - Only working orders are returned:
WorkingandSuspended(including bracket legs awaiting activation), plus orders in the transitionalPendingNew,PendingReplace, andPendingCancelstates. - For every order across all linked identities, including filled and cancelled orders, use
GET /v1/api/tv/orders.
See the Tradovate API overview for the full route list and error table.