Order

Modify Order

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

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

Path parameters

accountIdstring required

account id, or fa group if modifying a group order

orderIdstring required

Customer order id, use /iservers/account/orders endpoint to query orderId.

Request body

acctIdstring
conidinteger
orderTypestring

for example LMT

outsideRTHboolean
pricenumber
auxPricenumber
sidestring

SELL or BUY

listingExchangestring

optional, not required

tickerstring

The ticker symbol of the original place order

tifstring

Specify a time in force to change how long your order will continue to work in the market

quantitynumber

usually integer, for some special cases can be float numbers

deactivatedboolean

Set to true if you want to pause a working order. For details refer to the TWS Users' Guide:

Example request

{
  "tif": "tif = DAY to tif = GTC"
}

Response

returns an array

order_idstring
local_order_idstring
order_statusstring

Changes

No recorded changes to this operation across all 1 revision of this API.