---
title: "Modify Order"
method: POST
path: "/iserver/account/{accountId}/order/{orderId}"
tags: ["Order"]
---

# Modify Order

`POST /iserver/account/{accountId}/order/{orderId}`

## Request

- Base URL: `http://localhost:5000/v1/api`
- URL: `http://localhost:5000/v1/api/iserver/account/{accountId}/order/{orderId}`
- Auth: none declared

Modifies an open order. Must call /iserver/accounts endpoint prior to modifying an order. Use /iservers/account/orders endpoint to review open-order(s).

## Path parameters

- `accountId` string, required
- `orderId` string, required

## Request body

- ModifyOrder
  - `acctId` string
  - `conid` integer
  - `orderType` string: for example LMT
  - `outsideRTH` boolean
  - `price` number
  - `auxPrice` number
  - `side` string: SELL or BUY
  - `listingExchange` string: optional, not required
  - `ticker` string: The ticker symbol of the original place order
  - `tif` string: Specify a time in force to change how long your order will continue to work in the market
  - `quantity` number: usually integer, for some special cases can be float numbers
  - `deactivated` boolean: Set to true if you want to pause a working order. For details refer to the [TWS Users' Guide:](https://guides.interactivebrokers.com/tws/twsguide.html#usersguidebook/getstarted/pause_execution.htm)

## Response `200`

returns an array

- object[]
  - `order_id` string
  - `local_order_id` string
  - `order_status` string

---

[API](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api.md) - [All operations](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api/llms.txt) - [OpenAPI document](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api/revisions/32edbfe496d1?raw)
