---
updatedAt: 2026-03-26T12:27:31.000Z
agentTools:
  projectIndex: https://public-api.tradelocker.com/llms.txt
---

# Get non-final orders

Get non-final orders for the account. The column names are defined in the `ordersConfig` part of the `/trade/config` route

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Trading API",
    "version": "2.11.0",
    "title": "Trading API",
    "contact": {}
  },
  "tags": [
    {
      "name": "Account",
      "description": "Account management and information."
    }
  ],
  "paths": {
    "/trade/accounts/{accountId}/orders": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get non-final orders",
        "description": "Get non-final orders for the account. The column names are defined in the `ordersConfig` part of the `/trade/config` route",
        "operationId": "getOrders",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "Account identifier.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accNum",
            "in": "header",
            "description": "Account number",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Unix timestamp in milliseconds (UTC) for the beginning of the interval. If not specified, all non-final orders are returned.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Unix timestamp in milliseconds (UTC) for the end of the interval. If not specified, all non-final orders are returned.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "tradableInstrumentId",
            "in": "query",
            "description": "Instrument filter. If specified, only orders in this instrument will be returned.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdersResponse"
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "s": "ok",
                      "d": {
                        "orders": [
                          [
                            "7277816997907673698",
                            "206",
                            "1152263",
                            "100.0",
                            "sell",
                            "limit",
                            "New",
                            null,
                            null,
                            "91011.74",
                            null,
                            "GTC",
                            null,
                            "1767886346666",
                            "1767886346000",
                            "true",
                            null,
                            null,
                            null,
                            null,
                            null,
                            null
                          ],
                          [
                            "7277816997907673940",
                            "206",
                            "1152263",
                            "100.0",
                            "sell",
                            "limit",
                            "New",
                            null,
                            null,
                            "91011.74",
                            null,
                            "GTC",
                            null,
                            "1767886397795",
                            "1767886397000",
                            "true",
                            null,
                            "91959.68",
                            "absolute",
                            "89430.79",
                            "absolute",
                            null
                          ]
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://demo.tradelocker.com/backend-api"
    },
    {
      "url": "https://live.tradelocker.com/backend-api"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Orders": {
        "type": "object",
        "properties": {
          "orders": {
            "type": "array",
            "description": "orders",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "title": "Orders"
      },
      "OrdersResponse": {
        "type": "object",
        "required": [
          "d",
          "s"
        ],
        "properties": {
          "d": {
            "$ref": "#/components/schemas/Orders"
          },
          "s": {
            "type": "string",
            "example": "ok",
            "description": "Status will always be `ok`."
          }
        },
        "title": "OrdersResponse",
        "description": "Orders response"
      }
    }
  }
}
```