---
title: "Modify an existing order"
method: PATCH
path: "/trade/orders/{orderId}"
tags: ["Trading"]
---

# Modify an existing order

`PATCH /trade/orders/{orderId}`

Modify an existing order.

For more details on each of the fields in the body, look at their definitions in the `POST /trade/accounts/{accountId}/orders` route.

## Path parameters

- `orderId` integer, required

## Headers

- `accNum` integer, required
- `developer-api-key` string

## Request body

- PatchOrder
  - `price` number
  - `qty` number
  - `stopLoss` number
  - `stopLossType` 'absolute' | 'offset' | 'trailingOffset'
  - `stopPrice` number
  - `takeProfit` number
  - `takeProfitType` 'absolute' | 'offset'
  - `trStopOffset` number
  - `validity` 'GTC' | 'IOC'

## Response `200`

OK

- OrderModificationResponse
  - `d` array[], required — modifiedOrder
    - string[]
  - `s` string, required — Status will always be `ok`.

## Other responses

- `204` — No Content
- `401` — Unauthorized
- `403` — Forbidden

---

[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)
