Skip to main content

GET Execution

Get execution by ID NT8​

Returns one NinjaTrader execution by ID for the specified account.

Endpoint​

GET /v1/api/accounts/{account}/executions/{executionId}

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Path parameters​

NameTypeRequiredDescription
accountstringRequiredName of account in NT8
executionIdstringRequiredID of the order execution

Code examples​

import requests

token = 'my-secret-token'

url = "https://app.crosstrade.io/v1/api/accounts/Sim101/executions/64d62e0891b341419e5986713dec79f4"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}

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}")

Response​

{
"id": "550837ff9e784c2895ef6dab22d06be0",
"type": "NinjaTrader.Cbi.Execution",
"time": "2026-10-28T16:00:00.0000000",
"epoch": 1793217600000,
"name": "",
"orderId": "d99b2043460849ddae409d1b15cb92ff",
"originalOrderId": "d99b2043460849ddae409d1b15cb92ff",
"account": "Sim101",
"serverName": "TRADING-PC",
"instrument": "MNQ 12-26",
"instrumentType": "Future",
"position": 1,
"marketPosition": "Long",
"positionStrategy": 0,
"price": 29680.25,
"quantity": 1,
"rate": 1.0,
"commission": "0.95",
"slippage": 0.0,
"lotSize": 1.0,
"isEntry": true,
"isEntryStrategy": false,
"isExit": false,
"isExitStrategy": false,
"isInitialEntry": true,
"isLastExit": false,
"isSod": false,
"barsInProgress": 0,
"exchange": "Default",
"success": true
}

Success field types​

FieldTypeDescription
successbooleanRequest outcome.
id, orderId, originalOrderIdstringExecution, current order and original order identifiers.
type, instrumentTypestringNinjaTrader execution type and instrument category.
account, serverName, instrument, exchangestringAccount, host, instrument and exchange.
timestringExecution timestamp as reported by NinjaTrader.
epochintegerUnix milliseconds.
name, marketPositionstringExecution name and position side. The name may be empty.
position, positionStrategy, quantity, barsInProgressintegerPosition quantities, fill quantity and bars-series index.
price, rate, slippage, lotSizenumberExecution price, rate, slippage and lot size.
commissionstringCommission amount serialized as text.
isEntry, isEntryStrategy, isExit, isExitStrategy, isInitialEntry, isLastExit, isSodbooleanExecution classification flags.

Platform nuances​

The execution fields are returned at the top level, including its orderId, instrument, position side, price, quantity, commission, and entry/exit flags.

WebSocket API​

This request can also be made over the WebSocket API. The account and executionId path parameters are passed inside args.

{
"action": "rpc",
"id": "my-request-id",
"api": "GetExecution",
"args": {
"account": "Sim101",
"executionId": "exec_a1b2c3"
}
}