---
title: "Get orders history"
method: GET
path: "/trade/accounts/{accountId}/ordersHistory"
tags: ["Account"]
---

# Get orders history

`GET /trade/accounts/{accountId}/ordersHistory`

Get orders history for an account. Returns all user's orders with a final status (rejected, filled, canceled). The column names are defined in the `ordersHistoryConfig` part of the `/trade/config` route

## Path parameters

- `accountId` integer, required

## Query parameters

- `from` integer
- `to` integer
- `tradableInstrumentId` integer

## Headers

- `accNum` integer, required

## Response `200`

OK

- OrdersHistory — Orders history response
  - `d` OrderHistory, required
    - `ordersHistory` array[] — ordersHistory
      - string[]
    - `hasMore` boolean — true if there is more data for the chosen timeframe
  - `s` string, required — Status will always be `ok`.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/tradelocker/apis/trading-api.md) · [All operations](https://skmtc.net/tradelocker/apis/trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradelocker/trading-api/revisions/5b184d9b617c/schema)
