query.trade_order.get
Get a specific trade order.
Method
query.trade_order.get
Description
Returns detailed information about a specific trade order, including execution history.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
tradeOrderId | string | Yes | Trade order ID |
Result
Returns a trade order object with full execution details.
Trade Order Object
| Field | Type | Description |
|---|---|---|
tradeOrderId | string | Unique order identifier (UUID) |
tradingAccountId | string | Trading account ID |
venue | string | Exchange venue |
instrumentId | string | Instrument identifier |
baseAsset | string | Base asset |
quoteAsset | string | Quote asset |
orderSide | string | Order side (BUY, SELL) |
orderType | string | Order type |
timeInForce | string | Time in force |
status | string | Order status |
limitPrice | string | Limit price |
stopPrice | string | Stop price |
quantity | string | Requested quantity |
executedPrice | string | Weighted average executed price |
executedQuantity | string | Total executed quantity |
executedCost | string | Total executed cost |
fees | array | Aggregated fees |
executions | array | Detailed execution breakdown |
rejectReason | string | Rejection reason (if rejected) |
cancelReason | string | Cancellation reason (if cancelled) |
createdAt | integer | Creation timestamp (ms) |
updatedAt | integer | Last update timestamp (ms) |
canceledAt | integer | Cancellation timestamp (ms) |
Execution Object
| Field | Type | Description |
|---|---|---|
executionId | string | Execution identifier |
price | string | Execution price |
quantity | string | Execution quantity |
fee | object | Execution fee |
timestamp | integer | Execution timestamp (ms) |
Usage
result = await client.rpc("query.trade_order.get", {
"tradeOrderId": "770e8400-e29b-41d4-a716-446655440002"
})
Example Response
{
"tradeOrderId": "770e8400-e29b-41d4-a716-446655440002",
"tradingAccountId": "550e8400-e29b-41d4-a716-446655440000",
"venue": "BINANCE",
"instrumentId": "BINANCE:BTC/USDT",
"baseAsset": "BTC",
"quoteAsset": "USDT",
"orderSide": "BUY",
"orderType": "LIMIT",
"timeInForce": "GTC",
"status": "FILLED",
"limitPrice": "50000.00",
"quantity": "0.1",
"executedPrice": "49998.50",
"executedQuantity": "0.1",
"executedCost": "4999.85",
"fees": [
{"symbol": "USDT", "quantity": "4.99985"}
],
"executions": [
{
"executionId": "exec-001",
"price": "49997.00",
"quantity": "0.05",
"fee": {"symbol": "USDT", "quantity": "2.49985"},
"timestamp": 1703052638110
},
{
"executionId": "exec-002",
"price": "50000.00",
"quantity": "0.05",
"fee": {"symbol": "USDT", "quantity": "2.50000"},
"timestamp": 1703052640110
}
],
"createdAt": 1703052635110,
"updatedAt": 1703052640110
}