---
title: "Update Order"
method: PUT
path: "/ccp/order"
tags: ["CCP (Beta)"]
---

# Update Order

`PUT /ccp/order`

Updates an Order. Updating an order requires the same arguments as placing an order besides the conid. Note: The status of the order can be queried through GET /ccp/order.

## Query parameters

- `acct` string, required
- `id` number, required

## Response `200`

An Object

- OrderData
  - `clientOrderId` string
  - `execId` string
  - `execType` '-1 "Invalid"' | '0 "New"' | '1 "Partially Filled"' | '2 "Filled"' | '3 "Done for the Day"' | '4 "Canceled"' | '5 "Replaced"' | '6 "Pending Cancel"' | '7 "Stopped"' | '8 "Rejected"' | '9 "Suspended"' | 'A "Pending New"' | 'B "Calculated"' | 'C "Expired"' | 'D "Restated"' | 'E "Pending Replace"' | 'F "Trade"' | 'G "Trade Correct"' | 'H "Trade Cancel"' | 'I "Order Status"'
  - `orderType` '1 "Market"' | '2 "Limit"' | '3 "Stop"' | '4 "Stop Limit"' | '5 "Market on Close"' | '6 "With or Without"' | '7 "Limit or Better"' | '8 "Limit With or Without"' | '9 "On Basis"' | 'A "On Close"' | 'B "Limit On Close"' | 'C "Forex Market"' | 'D "Previously Quoted"' | 'E "Previously Indicated"' | 'F "Forex Limit"' | 'G "Forex Swap"' | 'H "Forex Previously Quoted"' | 'I "Funari"' | 'K "Market To Limit"' | 'P "Pegged"'
  - `orderStatus` '-1 "Invalid Order Status"' | '0 "New"' | '1 "Partially Filled"' | '2 "Filled"' | '3 "Done for the Day"' | '4 "Canceled"' | '5 "Replaced"' | '6 "Pending Cancel"' | '7 "Stopped"' | '8 "Rejected"' | '9 "Suspended"' | 'A "Pending New"' | 'B "Calculated"' | 'C "Expired"' | 'D "Restated"' | 'E "Pending Replace"'
  - `symbol` string — Underlying symbol for contract
  - `orderQty` string — Quantity of active order
  - `price` string — Price of active order
  - `lastShares` string — Quantity of the last partial fill
  - `lastPrice` string — Price of the last partial fill
  - `cumQty` string — Cumulative fill quantity
  - `leavesQty` string — Remaining quantity to be filled
  - `avgPrice` string — Average fill price
  - `side` '1 "Buy"' | '2 "Sell"' | '3 "Buy Minus"' | '4 "Sell Plus"' | '5 "Sell Short"' | '6 "Sell Short Exempt"'
  - `orderId` string — Order identifier
  - `account` string — Account number
  - `secType` 'CS "Stock"' | 'CASH "Forex"' | 'CFD "Contract for Difference"' | 'FUT "Future"' | 'OPT "Option"' — Contracts asset class
  - `txTime` string — Time of transaction in GMT, format YYYYMMDD-hh:m:ss
  - `rcptTime` string — Time of receipt in GMT, format YYYYMMDD-hh:mm:ss
  - `tif` '0 "Day"' | '1 "GTC"' | '2 "At the Opening"' — Time in Force
  - `conid` string — Contract identifier from IBKR's database.
  - `currency` string — Trading currency
  - `exchange` string — Exchange or venue
  - `listingExchange` string — Listing Exchange
  - `text` number — error message
  - `warnings` object
    - `PRICECAP` string
    - `TIME` string
  - `commCurr` string — Commission currency
  - `comms` string — Commissions
  - `realizedPnl` string — Realized PnL

## Other responses

- `401` — Access denied
- `500` — System error, for example when connection to CCP failed

---

[API](https://skmtc.dev/ibkr/apis/client-portal-web-api.md) · [All operations](https://skmtc.dev/ibkr/apis/client-portal-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibkr/client-portal-web-api/revisions/32edbfe496d1/schema)
