Error messages

TWS error 202: why was the order cancelled?

Quick answer

Error 202 reports an order cancellation. Check who or what requested it and whether any size filled first. A cancelled status does not always mean the entire original order remained unfilled.

Educational software guidance. Trading involves risk. Read the financial and information disclaimers.

Step by step

  1. 1 Locate the order in Activity and include cancelled orders in the view.
  2. 2 Read the full cancellation reason and timestamp.
  3. 3 Check the Trades tab for any fills tied to that order before cancellation.
  4. 4 Compare the event with your alert history, time-in-force, and any linked exit orders.
  5. 5 Reconcile the remaining position before deciding whether a new order is needed.

A practical example

Suppose you send an order for ten shares. Four fill before you cancel the rest. The final order may show a cancelled state, but the four shares still belong in the position. Check both the order and the fill list. A new order for ten more shares would not be the same as replacing the six that never filled.

Illustrative scenario, not a record of a trade placed during this review.

Screen reference

Empty TWS Activity Orders panel and Trades tab
Use Orders to inspect order state and Trades to inspect executions. This empty paper view shows the location; it does not reproduce a rejection or prove a fill. Captured in TWS paper mode on 3 October 2026. Open the image for full size.
How to confirm the result You should be able to account for filled size, cancelled remainder, and the current position.

Mistake to avoid

Do not resend the original full size just because an order ended as cancelled.

Common questions

Can a partially filled order be cancelled?

Its unfilled remainder can be cancelled; existing fills still count.

Is 202 always an error in my strategy?

No. Review the reason and the event that requested the cancellation.

Financial and information disclaimers

Financial disclaimer

These guides explain software. They are for education, not financial, investment, tax, or legal advice. No example is a suggestion to buy or sell a product or use a trading strategy. Trading can lose money, including all funds you put at risk. With margin, futures, short sales, or some options, losses can exceed your starting funds. Automation can fail, send duplicate orders, or act late. Stops do not guarantee a fill or a price. Review your orders and positions, and seek advice from a qualified professional for your own needs. Paper trades, examples, and past results do not predict live results or promise a profit.

Information disclaimer

This is general help based on the sources and check date shown on the page. Screens, settings, fees, data access, and product support can change or differ by app version, account, country, and broker. The content may contain errors or become out of date; accuracy, completeness, and continuous service are not guaranteed. Check current broker and app instructions before acting. Screenshots show where controls are; they do not prove that an order test passed. This guide does not replace broker terms or risk notices. References to IBKR and TradingView identify their products and do not imply their endorsement of this guide.

IBKR risk disclosures · IBKR paper-trading limits · SEC guidance on automated investment tools

PickMyTrade help · Independent guidance for Trader Workstation and the desktop integration. TWS images show paper trading. Other applications are named in the image captions. Settings and availability can vary by version and account.

Automate TradingView alerts to Interactive Brokers

See the IBKR integration