Error Codes

View as MarkdownOpen in Claude

Error codes in different ranges have different indications.

CodeTWS messageAdditional notes
100Max rate of messages per second has been exceeded.The client application has exceeded the rate of 50 messages/second. The TWS will likely disconnect the client application after this message.
101Max number of tickers has been reached.”The current number of active market data subscriptions in TWS and the API altogether has been exceeded. This number is calculated based on a formula which is based on the equity, commissions, and quote booster packs in an account. Active lines can be checked in Tws using the Ctrl-Alt-= combination”
102Duplicate ticker ID.A market data request used a ticker ID which is already in use by an active request.
103Duplicate order ID.An order was placed with an order ID that is less than or equal to the order ID of a previous order from this client
104Can’t modify a filled order.An attempt was made to modify an order which has already been filled by the system.
105Order being modified does not match original order.An order was placed with an order ID of a currently open order but basic parameters differed (aside from quantity or price fields)
106Can’t transmit order ID:Order ID may not be transmitted. This is most often caused by an invalid order type or order formatting.
107Cannot transmit incomplete order.Order is missing a required field.
109Price is out of the range defined by the Percentage setting at order defaults frame. The order will not be transmitted.Price entered is outside the range of prices set in TWS or IB Gateway Order Precautionary Settings
110The price does not conform to the minimum price variation for this contract.An entered price field has more digits of precision than is allowed for this particular contract. Minimum increment information can be found on the IB Contracts and Securities Search page.
111The TIF (Tif type) and the order type are incompatible.The time in force specified cannot be used with this order type. Please refer to order tickets in TWS for allowable combinations.
113The Tif option should be set to DAY for MOC and LOC orders.Market-on-close or Limit-on-close orders should be sent with time in force set to ‘DAY’
114Relative orders are valid for stocks only.This error is deprecated.
115”Relative orders for US stocks can only be submitted to SMART, SMART_ECN, INSTINET, or PRIMEX.”This error is deprecated.
116The order cannot be transmitted to a dead exchange.Exchange field is invalid.
117The block order size must be at least 50.Caused by a block order submission using a quantity less than 50.
118VWAP orders must be routed through the VWAP exchange.
119Only VWAP orders may be placed on the VWAP exchange.”When an order is routed to the VWAP exchange, the type of the order must be defined as ‘VWAP’.“
120It is too late to place a VWAP order for today.The cutoff has passed for the current day to place VWAP orders.
121”Invalid BD flag for the order. Check “Destination” and “BD” flag.”This error is deprecated.
122No request tag has been found for order:Caused when request encoding to socket improperly formed.
123No record is available for conid:The specified contract ID cannot be found. This error is deprecated.
124No market rule is available for conid:Returned in the event a market rule is not applied to a given contract identifier. May be caused when interacting with a non-tradeable instrument such as an Index.
125Buy price must be the same as the best asking price.Caused by a Buy order exceptionally above the Best Ask price. Please request market data to identify the NBO.
126Sell price must be the same as the best bidding price.Caused by a Sell order exceptionally below the Best Bid price. Please request market data to identify the NBB.
129VWAP orders must be submitted at least three minutes before the start time.The start time specified in the VWAP order is less than 3 minutes after when it is placed.
131”The sweep-to-fill flag and display size are only valid for US stocks routed through SMART, and will be ignored.”Sweep-to-fill used on an unsupported order type.
132This order cannot be transmitted without a clearing account.Order parameters do not include a valid clearing account.
133Submit new order failed.Failure in order submission. May be caused by order parameters or network connectivity.
134Modify order failed.Unable to modify an existing order. The order may have already been executed or cancelled. Please request open orders to verify current order status.
135Can’t find order with ID =An attempt was made to cancel an order not currently in the system.
136This order cannot be cancelled.”An attempt was made to cancel an order than cannot be cancelled, for instance because”
137VWAP orders can only be cancelled up to three minutes before the start time.VWAP order cancellation taking place within three minutes of submission.
138Could not parse ticker request:“Ticker symbol cannot be parsed, likely due to the inclusion of invalid symbols or content.”
139Parsing error:Error in command syntax generated parsing error.
140The size value should be an integer:The size field in the Order class has an invalid type.
141The price value should be a double:A price field in the Order type has an invalid type.
142Institutional customer account does not have account infoInstitutional account structure is not including account details in order submission.
143Requested ID is not an integer number.The IDs used in API requests must be integer values.
144”Order size does not match total share allocation. To adjust the share allocation, right-click on the order and select Modify > Share Allocation “
145Error in validating entry fields –An error occurred with the syntax of a request field.
146Invalid trigger method.The trigger method specified for a method such as stop or trail stop was not one of the allowable methods.
147The conditional contract info is incomplete.
148”Conditional submission of orders is supported for Limit, Market, MidPrice, Relative and Snap order types only. Conditional cancelation of orders is supported for Limit and MidPrice order types only.”
151This order cannot be transmitted without a user name.In DDE the user name is a required field in the place order command.
152”The “hidden” order attribute may not be specified for this order.”The order in question cannot be placed as a hidden order. See- https://www.interactivebrokers.com/en/index.php?f=596
153EFPs can only be limit orders.This error is deprecated.
154Orders cannot be transmitted for a halted security.A security was halted for trading when an order was placed.
155A sizeOp order must have a user name and account.This error is deprecated.
156A SizeOp order must go to IBSXThis error is deprecated.
157An order can be EITHER Iceberg or Discretionary. Please remove either the Discretionary amount or the Display size.In the Order class extended attributes the fields ‘Iceberg’ and ‘Discretionary’ cannot
158You must specify an offset amount or a percent offset value.TRAIL and TRAIL STOP orders must have an absolute offset amount or offset percentage specified.
159The percent offset value must be between 0% and 100%.A percent offset value was specified outside the allowable range of 0% and 100%.
160The size value cannot be zero.The size of an order must be a positive quantity.
161Cancel attempted when order is not in a cancellable state. Order permId =An attempt was made to cancel an order not active at the time.
162Historical market data Service error message.
163The price specified would violate the percentage constraint specified in the default order settings.The order price entered is outside the allowable range specified in the Order Precautionary Settings of TWS or IB Gateway
164There is no market data to check price percent violations.No market data is available for the specified contract to determine whether the specified price is outside the price percent precautionary order setting.
165Historical market Data Service query message.”There was an issue with a historical data request, such is no such data in IB’s database. Note this message is not specific to the API.”
166HMDS Expired Contract Violation.Historical data is not available for the specified expired contract.
167VWAP order time must be in the future.The start time of a VWAP order has already passed.
168Discretionary amount does not conform to the minimum price variation for this contract.The discretionary field is specified with a number of degrees of precision higher than what is allowed for a specified contract.
200No security definition has been found for the request.”The specified contract does not match any in IB’s database, usually because of an incorrect or missing parameter.”
200The contract description specified for is ambiguousAmbiguity may occur when the contract definition provided is not unique.
200”For some stocks that has the same Symbol, Currency and Exchange, you need to specify the IBApi.Contract.PrimaryExch attribute to avoid ambiguity. Please refer to a sample stock contract here.”
200”For futures that has multiple multipliers for the same expiration, You need to specify the IBApi.Contract.Multiplier attribute to avoid ambiguity. Please refer to a sample futures contract here.”
201Order rejected – Reason:An attempted order was rejected by the IB servers. See Order Placement Considerations for additional information/considerations for these errors.
202Order cancelled – Reason:An active order on the IB server was cancelled. See Order Placement Considerations for additional information/considerations for these errors.
203The security is not available or allowed for this account.The specified security has a trading restriction with a specific account.
203The contract description specified for %S is ambiguous; you must specify the currency.The contract definition is incomplete. The currency must be included.
300Can’t find EId with ticker Id:An attempt was made to cancel market data for a ticker ID that was not associated with a current subscription. With the DDE API this occurs by clearing the spreadsheet cell.
301Invalid ticker action:
302Error parsing stop ticker string:
303Invalid action:An action field was specified that is not available for the account. For most accounts this is only BUY or SELL. Some institutional accounts also have the options SSHORT or SLONG available.
304Invalid account value action:
305”Request parsing error, the request has been ignored.”The syntax of a DDE request is invalid.
306Error processing DDE request:An issue with a DDE request prevented it from processing.
307Invalid request topic:The ‘topic’ field in a DDE request is invalid.
308Unable to create the ‘API’ page in TWS as the maximum number of pages already exists.”An order placed from the API will automatically open a new page in classic TWS, however there are already the maximum number of pages open.”
309”Max number (3) of market depth requests has been reached. Note: TWS currently limits users to a maximum of 3 distinct market depth requests. This same restriction applies to API clients, however API clients may make multiple market depth requests for the same security.""Maximum market depth requests exceeded. Please see our Market Data Line Documentation for more information.”
310Can’t find the subscribed market depth with tickerId:An attempt was made to cancel market depth for a ticker not currently active.
311The origin is invalid.The origin field specified in the Order class is invalid.
312The combo details are invalid.Combination contract specified has invalid parameters.
313The combo details for leg ” are invalid.A combo leg was not defined correctly.
314Security type ‘BAG’ requires combo leg details.When specifying security type as ‘BAG’ make sure to also add combo legs with details.
315Stock combo legs are restricted to SMART order routing.Make sure to specify ‘SMART’ as an exchange when using stock combo contracts.
316Market depth data has been HALTED. Please re-subscribe.You need to re-subscribe to start receiving market depth data again.
317Market depth data has been RESET. Please empty deep book contents before applying any new entries.
319Invalid log levelMake sure that you are setting a log level to a value in range of 1 to 5.
320Server error when reading an API client request.
321Server error when validating an API client request.
322Server error when processing an API client request.
323Server error: cause – s
324Server error when reading a DDE client request (missing information).Make sure that you have specified all the needed information for your request.
325Discretionary orders are not supported for this combination of exchange and order type.Make sure that you are specifying a valid combination of exchange and order type for the discretionary order.
326Unable to connect as the client id is already in use. Retry with a unique client id.Another client application is already connected with the specified client id.
327Only API connections with clientId set to 0 can set the auto bind TWS orders property.
328Trailing stop orders can be attached to limit or stop-limit orders only.Indicates attempt to attach trail stop to order which was not a limit or stop-limit.
329Order modify failed. Cannot change to the new order type.You are not allowed to modify initial order type to the specific order type you are using.
330Only FA or STL customers can request managed accounts list.Make sure that your account type is either FA or STL.
331Internal error. FA or STL does not have any managed accounts.You do not have any managed accounts.
332The account codes for the order profile are invalid.You need to check that the account codes you specified for your request are valid.
333Invalid share allocation syntax.
334Invalid Good Till Date orderCheck you order settings.
335Invalid delta: The delta must be between 0 and 100.
336”The time or time zone is invalid. The correct format is hh:mm:ss xxx where xxx is an optionally specified time-zone. E.g.: 15:59:00 EST Note that there is a space between the time and the time zone. If no time zone is specified, local time is assumed.”
337”The date, time, or time-zone entered is invalid. The correct format is yyyymmdd hh:mm:ss xxx where yyyymmdd and xxx are optional. E.g.: 20031126 15:59:00 ESTNote that there is a space between the date and time, and between the time and time-zone.”
338Good After Time orders are currently disabled on this exchange.
339Futures spread are no longer supported. Please use combos instead.
340Invalid improvement amount for box auction strategy.
341”Invalid delta. Valid values are from 1 to 100. You can set the delta from the “Pegged to Stock” section of the Order Ticket Panel, or by selecting Page/Layout from the main menu and adding the Delta column.”
342Pegged order is not supported on this exchange.You can review all order types and supported exchanges on the Order Types and Algos page.
343”The date, time, or time-zone entered is invalid. The correct format is yyyymmdd hh:mm:ss xxx”
344The account logged into is not a financial advisor account.You are trying to perform an action that is only available for the financial advisor account.
345Generic combo is not supported for FA advisor account.
346Not an institutional account or an away clearing account.
347Short sale slot value must be 1 (broker holds shares) or 2 (delivered from elsewhere).Make sure that your slot value is either 1 or 2.
348Order not a short sale – type must be SSHORT to specify short sale slot.Make sure that the action you specified is ‘SSHORT’.
349”Generic combo does not support “Good After” attribute.”
350Minimum quantity is not supported for best combo order.
351”The “Regular Trading Hours only” flag is not valid for this order.”
352Short sale slot value of 2 (delivered from elsewhere) requires location.You need to specify designatedLocation for your order.
353Short sale slot value of 1 requires no location be specified.You do not need to specify designatedLocation for your order.
354Requested market data is not subscribed. Check API status by selecting the Account menu then under Management choose Market Data Subscription Manager and/or availability of delayed data.You do not have live market data available in your account for the specified instruments. For further details please refer to our [Market Data Subscriptions page].
355Order size does not conform to market rule.Check order size parameters for the specified contract from the TWS Contract Details.
356Smart-combo order does not support OCA group.Remove OCA group from your order.
357Your client version is out of date.
358Smart combo child order not supported.
359Combo order only supports reduce on fill without block(OCA).
360No whatif check support for smart combo order.Pre-trade commissions and margin information is not available for this type of order.
361Invalid trigger price.
362Invalid adjusted stop price.
363Invalid adjusted stop limit price.
364Invalid adjusted trailing amount.
365No scanner subscription found for ticker id:Scanner market data subscription request with this ticker id has either been cancelled or is not found.
366No historical data query found for ticker id:Historical market data request with this ticker id has either been cancelled or is not found.
367Volatility type if set must be 1 or 2 for VOL orders. Do not set it for other order types.
368Reference Price Type must be 1 or 2 for dynamic volatility management. Do not set it for non-VOL orders.
369Volatility orders are only valid for US options.Make sure that you are placing an order for US OPT contract.
370”Dynamic Volatility orders must be SMART routed, or trade on a Price Improvement Exchange.”
371VOL order requires positive floating point value for volatility. Do not set it for other order types.
372Cannot set dynamic VOL attribute on non-VOL order.Make sure that your order type is ‘VOL’.
373Can only set stock range attribute on VOL or RELATIVE TO STOCK order.
374”If both are set, the lower stock range attribute must be less than the upper stock range attribute.”
375Stock range attributes cannot be negative.
376The order is not eligible for continuous update. The option must trade on a cheap-to-reroute exchange.
377Must specify valid delta hedge order aux. price.
378Delta hedge order type requires delta hedge aux. price to be specified.Make sure your order has delta attribute.
379Delta hedge order type requires that no delta hedge aux. price be specified.Make sure you do not specify aux. delta hedge price.
380This order type is not allowed for delta hedge orders.”Limit, Market or Relative orders are supported.”
381Your DDE.dll needs to be upgraded.
382The price specified violates the number of ticks constraint specified in the default order settings.
383The size specified violates the size constraint specified in the default order settings.
384Invalid DDE array request.
385Duplicate ticker ID for API scanner subscription.Make sure you are using a unique ticker ID for your new scanner subscription.
386Duplicate ticker ID for API historical data query.Make sure you are using a unique ticker ID for your new historical market data query.
387Unsupported order type for this exchange and security type.You can review all order types and supported exchanges on the Order Types and Algos page.
388Order size is smaller than the minimum requirement.Check order size parameters for the specified contract from the TWS Contract Details.
389Supplied routed order ID is not unique.
390Supplied routed order ID is invalid.
391The time or time-zone entered is invalid. The correct format is hh:mm:ss xxx
392Invalid order: contract expired.You can not place an order for the expired contract.
393Short sale slot may be specified for delta hedge orders only.
394Invalid Process Time: must be integer number of milliseconds between 100 and 2000. Found:
395”Due to system problems, orders with OCA groups are currently not being accepted.”Check TWS bulletins for more information.
396”Due to system problems, application is currently accepting only Market and Limit orders for this contract.”Check TWS bulletins for more information.
397”Due to system problems, application is currently accepting only Market and Limit orders for this contract.”
398cannot be used as a condition trigger.Please make sure that you specify a valid condition
399Order message error
400Algo order error.
401Length restriction.
402Conditions are not allowed for this contract.Condition order type does not support for this contract
403Invalid stop price.The Stop Price you specified for the order is invalid for the contract
404Shares for this order are not immediately available for short sale. The order will be held while we attempt to locate the shares.You order is held by the TWS because you are trying to sell a contract but you do not have any long position and the market does not have short sale available. You order will be transmitted once there is short sale available on the market
405The child order quantity should be equivalent to the parent order size.This error is deprecated.
406The currency is not allowed.Please specify a valid currency
407The symbol should contain valid non-unicode characters only.Please check your contract Symbol
408Invalid scale order increment.
409Invalid scale order. You must specify order component size.ScaleInitLevelSize specified is invalid
410Invalid subsequent component size for scale order.ScaleSubsLevelSize specified is invalid
411”The “Outside Regular Trading Hours” flag is not valid for this order.”Trading outside of regular trading hours is not available for this security
412The contract is not available for trading.
413What-if order should have the transmit flag set to true.You need to set IBApi.Order.Transmit to TRUE
414Snapshot market data subscription is not applicable to generic ticks.You must leave Generic Tick List to be empty when requesting snapshot market data
415Wait until previous RFQ finishes and try again.
416RFQ is not applicable for the contract. Order ID:
417Invalid initial component size for scale order.ScaleInitLevelSize specified is invalid
418Invalid scale order profit offset.ScaleProfitOffset specified is invalid
419Missing initial component size for scale order.You need to specify the ScaleInitLevelSize
420Invalid real-time query.Information about pacing violations
421Invalid route.This error is deprecated.
422The account and clearing attributes on this order may not be changed.
423Cross order RFQ has been expired. THI committed size is no longer available. Please open order dialog and verify liquidity allocation.
424FA Order requires allocation to be specified.This error is deprecated.
425FA Order requires per-account manual allocations because there is no common clearing instruction. Please use order dialog Adviser tab to enter the allocation.This error is deprecated.
426None of the accounts have enough shares.You are not able to enter short position with Cash Account
427Mutual Fund order requires monetary value to be specified.This error is deprecated.
428Mutual Fund Sell order requires shares to be specified.This error is deprecated.
429Delta neutral orders are only supported for combos (BAG security type).
430”We are sorry, but fundamentals data for the security specified is not available.”
431What to show field is missing or incorrect.This error is deprecated.
432Commission must not be negative.This error is deprecated.
433”Invalid “Restore size after taking profit” for multiple account allocation scale order.”
434The order size cannot be zero.
435You must specify an account.The function you invoked only works on a single account
436”You must specify an allocation (either a single account, group, or profile).""When you try to place an order with a Financial Advisor account, you must specify the order to be routed to either a single account, a group, or a profile.”
437Order can have only one flag Outside RTH or Allow PreOpen.This error is deprecated.
438The application is now locked.This error is deprecated.
439Order processing failed. Algorithm definition not found.Please double check your specification for IBApi.Order.AlgoStrategy and IBApi.Order.AlgoParams
440Order modify failed. Algorithm cannot be modified.
441Algo attributes validation failed:Please double check your specification for IBApi.Order.AlgoStrategy and IBApi.Order.AlgoParams
442Specified algorithm is not allowed for this order.
443Order processing failed. Unknown algo attribute.Specification for IBApi.Order.AlgoParams is incorrect
444Volatility Combo order is not yet acknowledged. Cannot submit changes at this time.The order is not in a state that is able to be modified
445The RFQ for this order is no longer valid.
446Missing scale order profit offset.ScaleProfitOffset is not properly specified
447Missing scale price adjustment amount or interval.ScalePriceAdjustValue or ScalePriceAdjustInterval is not specified properly
448Invalid scale price adjustment interval.ScalePriceAdjustInterval specified is invalid
449Unexpected scale price adjustment amount or interval.ScalePriceAdjustValue or ScalePriceAdjustInterval specified is invalid
481Order size reduced.
501Already Connected.Your client application is already connected to the TWS.
502”Couldn’t connect to TWS. Confirm that “Enable ActiveX and Socket Clients” is enabled and connection port is the same as “Socket Port” on the TWS “Edit->Global Configuration…->API->Settings” menu.”When you receive this error message it is either because you have not enabled API connectivity in the TWS and/or you are trying to connect on the wrong port. Refer to the TWS’ API Settings as explained in the error message. See also Connectivity
503The TWS is out of date and must be upgraded.Indicates TWS or IBG is too old for use with the current API version. Can also be triggered if the TWS version does not support a specific API function.
504Not connected.You are trying to perform a request without properly connecting and/or after connection to the TWS has been broken probably due to an unhandled exception within your client application.
505Fatal Error: Unknown message id.
506Unsupported Version (not used in Python client)
507Bad Message Length (Java-only)“Indicates EOF exception was caught while reading from the socket. This can occur if there is an attempt to connect to TWS with a client ID that is already in use, or if TWS is locked, closes, or breaks the connection. It should be handled by the client application and used to indicate that the socket connection is not valid.”
508Bad Message
509Exception caught while reading socket(not used in Python C# client)
510Request Market Data Sending Error –
511Cancel Market Data Sending Error –
512Order Sending Error –
513Account Update Request Sending Error –
514Request For Executions Sending Error –
515Cancel Order Sending Error –
516Request Open Order Sending Error –
517Unknown contract. Verify the contract details supplied. (not used in Python C# client)
518Request Contract Data Sending Error –
519Request Market Depth Sending Error –
520Failed to create socket (not used in C# client)
521Set Server Log Level Sending Error –
522FA Information Request Sending Error –
523FA Information Replace Sending Error –
524Request Scanner Subscription Sending Error –
525Cancel Scanner Subscription Sending Error –
526Request Scanner Parameter Sending Error –
527Request Historical Data Sending Error –
528Request Historical Data Sending Error –
529Request Real-time Bar Data Sending Error –
530Cancel Real-time Bar Data Sending Error –
531Request Current Time Sending Error –
532Request Fundamental Data Sending Error –
533Cancel Fundamental Data Sending Error –
534Request Calculate Implied Volatility Sending Error –
535Request Calculate Option Price Sending Error –
536Cancel Calculate Implied Volatility Sending Error –
537Cancel Calculate Option Price Sending Error –
538Request Global Cancel Sending Error –
539Request Market Data Type Sending Error –
540Request Positions Sending Error –
541Cancel Positions Sending Error –
542Request Account Data Sending Error –
543Cancel Account Data Sending Error –
544Verify Request Sending Error –
545Verify Message Sending Error –
546Query Display Groups Sending Error –
547Subscribe To Group Events Sending Error –
548Update Display Group Sending Error –
549Unsubscribe From Group Events Sending Error –
550Start API Sending Error –
551Verify And Auth Request Sending Error –
552Verify And Auth Message Sending Error –
553Request Positions Multi Sending Error –
554Cancel Positions Multi Sending Error –
555Request Account Updates Multi Sending Error –
556Cancel Account Updates Multi Sending Error –
557Request Security Definition Option Params Sending Error –
558Request Soft Dollar Tiers Sending Error –
559Request Family Codes Sending Error –
560Request Matching Symbols Sending Error –
561Request Market Depth Exchanges Sending Error –
562Request Smart Components Sending Error –
563Request News Providers Sending Error –
564Request News Article Sending Error –
565Request Historical News Sending Error –
566Request Head Time Stamp Sending Error –
567Request Histogram Data Sending Error –
568Cancel Request Histogram Data Sending Error –
569Cancel Head Time Stamp Sending Error –
570Request Market Rule Sending Error –
571Request PnL Sending Error –
572Cancel PnL Sending Error –
573Request PnL Single Error –
574Cancel PnL Single Sending Error –
575Request Historical Ticks Error –
576Request Tick-By-Tick Data Sending Error –
577Cancel Tick-By-Tick Data Sending Error –
578Request Completed Orders Sending Error –
579Invalid symbol in string –
580Request WSH Meta Data Sending Error –
581Cancel WSH Meta Data Sending Error –
582Request WSH Event Data Sending Error –
583Cancel WSH Event Data Sending Error –
584Request User Info Sending Error –
585”FA Profile is not supported anymore, use FA Group instead""Indicates FaDataTypeEnum.PROFILES is deprecated. Use FaDataTypeEnum.GROUPS or 1 instead”
586Failed to read message because not connected (Used only in Java client)
587Request Current Time In Millis Sending Error –
588Error encoding protobuf(Used only in Java client)
589Cancel Market Depth Sending Error –
2100New account data requested from TWS. API client has been unsubscribed from account data.”The TWS only allows one IBApi.EClient.reqAccountUpdates request at a time. If the client application attempts to subscribe to a second account without canceling the previous subscription, the new request will override the old one and the TWS will send this message notifying so.”
2101Unable to subscribe to account as the following clients are subscribed to a different account.”If a client application invokes IBApi.EClient.reqAccountUpdates when there is an active subscription started by a different client, the TWS will reject the new subscription request with this message.”
2102Unable to modify this order as it is still being processed.”If you attempt to modify an order before it gets processed by the system, the modification will be rejected. Wait until the order has been fully processed before modifying it. See Placing Orders for further details.”
2103A market data farm is disconnected.”Indicates a connectivity problem to an IB server. Outside of the nightly IB server reset, this typically indicates an underlying ISP connectivity issue.”
2104Market data farm connection is OK”A notification that connection to the market data server is ok. This is a notification and not a true error condition, and is expected on first establishing connection.”
2105A historical data farm is disconnected.”Indicates a connectivity problem to an IB server. Outside of the nightly IB server reset, this typically indicates an underlying ISP connectivity issue.”
2106A historical data farm is connected.”A notification that connection to the market data server is ok. This is a notification and not a true error condition, and is expected on first establishing connection.”
2107A historical data farm connection has become inactive but should be available upon demand.”Whenever a connection to the historical data farm is not being used because there is not an active historical data request, the connection will go inactive in IB Gateway. This does not indicate any connectivity issue or problem with IB Gateway. As soon as a historical data request is made the status will change back to active.”
2108A market data farm connection has become inactive but should be available upon demand.”Whenever a connection to our data farms is not needed, it will become dormant. There is nothing abnormal nor wrong with your client application nor with the TWS. You can safely ignore this message.”
2109”Order Event Warning: Attribute “Outside Regular Trading Hours” is ignored based on the order type and destination. PlaceOrder is now processed.”Indicates the outsideRth flag was set for an order for which there is not a regular vs outside regular trading hour distinction
2110Connectivity between TWS and server is broken. It will be restored automatically.Indicates a connectivity problem between TWS or IBG and the IB server. This will usually only occur during the IB nightly server reset; cases at other times indicate a problem in the local ISP connectivity.
2111”The Start and/or End Time for algo order BUY/SELL a contract was adjusted to use the next trading date. To modify this setting, use the Auto-adjust algo order date item on the Orders configuration page”Please go to TWS Global Configuration – “Orders” – “Settings” to correct the configuration.
2119Market data farm is connecting.
2130Warning: products are trading on the basis of currency price with factor.
2137Cross Side Warning”This warning message occurs in TWS version 955 and higher. It occurs when an order will change the position in an account from long to short or from short to long. To bypass the warning, a new feature has been added to IB Gateway 956 (or higher) and TWS 957 (or higher) so that once can go to Global Configuration > Messages and disable the “Cross Side Warning”.“
2152Market depth smart depth exchanges.
2158Sec-def data farm connection is OK”A notification that connection to the Security definition data server is ok. This is a notification and not a true error condition, and is expected on first establishing connection.”
2168Etrade Only Not Supported WarningThe EtradeOnly IBApi.Order attribute is no longer supported. Error received with TWS versions 983+. Remove attribute to place order.
2169Firm Quote Only Not Supported WarningThe firmQuoteOnly IBApi.Order attribute is no longer supported. Error received with TWS versions 983+. Remove attribute to place order.
10000Cross currency combo error.
10001Cross currency vol error.
10002Invalid non-guaranteed legs.
10003IBSX not allowed.
10005Read-only models.
10006Missing parent order.The parent order ID specified cannot be found. In some cases this can occur with bracket orders if the child order is placed immediately after the parent order; a brief pause of 50 ms or less will be necessary before the child order is transmitted to TWS/IBG.
10007Invalid hedge type.
10008Invalid beta value.
10009Invalid hedge ratio.
10010Invalid delta hedge order.
10011Currency is not supported for Smart combo.
10012Invalid allocation percentageFaPercentage specified is not valid
10013Smart routing API error (Smart routing opt-out required).
10014PctChange limits.This error is deprecated
10015Trading is not allowed in the API.
10016Contract is not visible.This error is deprecated
10017Contracts are not visible.This error is deprecated
10018Orders use EV warning.
10019Trades use EV warning.
10020Display size should be smaller than order size./td>The display size should be smaller than the total quantity
10021Invalid leg2 to Mkt Offset API.This error is deprecated
10022Invalid Leg Prio API.This error is deprecated
10023Invalid combo display size API.This error is deprecated
10024Invalid don’t start next legin API.This error is deprecated
10025Invalid leg2 to Mkt time1 API.This error is deprecated
10026Invalid leg2 to Mkt time2 API.This error is deprecated
10027Invalid combo routing tag API.This error is deprecated
10089API data requires subscriptionThe market data subscribed with the user does not extend support for API use. See TWS vs API Data for more details.
10090Part of requested market data is not subscribed.Indicates that some tick types requested require additional market data subscriptions not held in the account. This commonly occurs for instance if a user has options subscriptions but not the underlying stock so the system cannot calculate the real time Greek values (other default ticks will be returned). Or alternatively, if generic tick types are specified in a market data request without the associated subscriptions.
10091Part of requested market data requires additional subscription for APIThe market data subscribed with the user does not extend support for API use. See TWS vs API Data for more details.
10147Order to be canceled was not found.
10148”OrderId that needs to be cancelled can not be cancelled, state:“An attempt was made to cancel an order that had already been filled by the system.
10186Requested market data is not subscribed. Delayed market data is not enabledSee Market Data Types on how to enable delayed data.
10187Failed to request historical ticks:No market data permissions
10189Failed to request tick-by-tick data. Invalid Real-time Query”Trading TWS session is connected from a different IP address. Or, No market data permissions”
10197No market data during competing session”Indicates that the user is logged into the paper account and live account simultaneously trying to request live market data using both the accounts. In such a scenario preference would be given to the live account, for more details please refer: https://ibkr.info/node/1719
10225”Bust event occurred, current subscription is deactivated. Please resubscribe real-time bars immediately”
10230”You have unsaved FA changes. Please retry ‘request FA’ operation later, when ‘replace FA’ operation is complete”There are pending Financial Advisor configuration changes. See Financial Advisors
10231The following Groups and/or Profiles contain invalid accounts:“If the account(s) inside Groups or Profiles is/are incorrect in xml-formatted configuration string of replaceFA request, then the error shows list of such Groups and/or Profiles.”
10233Defaults were inherited from CASH preset during the creation of this order.
10234The Decision Maker field is required and not set for this order (non-desktop).
10235The Decision Maker field is required and not set for this order (ibbot).
10236Child has to be AON if parent order is AON
10237All or None ticket can route entire unfilled size only
10238Some error occured during communication with Advisor Setup web-app
10239This order will affect one or more accounts that are flagged because they do not fit the required risk score criteria prescribed by the group/profile/model allocation.
10240You must enter a valid Price Cap.
10241Order Quantity is expressed in monetary terms. Modification is not supported via API. Please use desktop version to revise this order.
10242Fractional-sized order cannot be modified via API. Please use desktop version to revise this order.
10243Fractional-sized order cannot be placed via API. Please use desktop version to place this order.
10244Cash Quantity cannot be used for this order
10245This financial instrument does not support fractional shares trading
10246This order doesn’t support fractional shares trading
10247Only IB SmartRouting supports fractional shares
10248doesn’t have permission to trade fractional shares
10249”=""> order doesn’t support fractional shares”
10250The size does not conform to the minimum variation of for this contract
10251Fractional shares are not supported for allocation orders
10252This non-close-position order doesn’t support fractional shares trading
10253Clear Away orders are not supported for multi-leg combo with attached hedge.
10254Invalid Order: bond expired
10268The ‘EtradeOnly’ order attribute is not supportedThe EtradeOnly IBApi.Order attribute is no longer supported. Error received with TWS versions 983+
10269The ‘firmQuoteOnly’ order attribute is not supportedThe firmQuoteOnly IBApi.Order attribute is no longer supported. Error received with TWS versions 983+
10270The ‘nbboPriceCap’ order attribute is not supportedThe nbboPriceCap IBApi.Order attribute is no longer supported. Error received with TWS versions 983+
10276News feed is not allowedThe API client is not permissioned for receiving WSH news feed.
10277News feed permissions requiredThe API client is not subscribed to receive WSH news feed
10278Duplicate WSH metadata requestA request is already pending for the same API client.
10279Failed request WSH metadataA general error occurred when processing the request.
10280Failed cancel WSH metadataA general error occurred when processing the request.
10281Duplicate WSH event data requestA request is already pending for the same API client.
10282WSH metadata not requestedWSH metadata was not requested by first sending a reqWshMetaData request.
10283Fail request WSH event dataA general error occurred when processing the request.
10284Fail cancel WSH event dataA general error occurred when processing the request.
10285Your API version does not support fractional sizing rules. Please upgrade to at least version 163
10286%s field cannot contain more than %s decimals.
10287Cryptocurrency order is not confirmed
10288Market order confirmation dialog title for cryptocurrencies
10289You must set Cash Quantity for this order
10290This order only supports CashQty trading.
10291Orders to harvest Capital Loss must use the DAY time-in-force.
10292Order type/action restriction
10293Cryptocurrency Cash Quantity order cannot specify size
10294Cash quantity set on the order does not match total monetary amount of the Group.
10295Orders to harvest Capital Loss must use the DAY time-in-force.
10295Only daily resolution supported for Schedule requests
10296”The Smart Routing features “Seek Price Improvement” (aka “Route to Dark Pools”) and “Do not route to Dark Pools” are mutually exclusive. Enabling both will result in the order being rejected. Please choose only one of these commands.%s”
10297Not Held attribute is invalid for this order.
10298Cannot trade an instrument with currency different from model currency
10299Expected what to show is %splease use that instead of %s.
10300%s: The datetime
10301%s: The datetime
10302Min trade trade quantity is not allowed for this order
10303Invalid min trade quantity value (%s). It must be a positive integernot exceeding the total order size.
10304Minimum Competing Size value must be non-negative.
10305Compete against best bid or offer Offset dollar value must be positivemultiple of a cent.
10306Mid offsets are not allowed
10307Invalid MidOffsetAtWhole and/or MidOffsetAtHalf attribute values
10308Revision to Post to ATS value presence is not allowed.
10309Invalid WSH event data request.
10310The Solicited field should be used for orders initiated or recommended by the broker or advisor that were approved by the client by phone or email.
10311This order will be directly routed to %s. Direct routed orders may result in higher trade fees.
10312The order type Volatility is currently not supported for this combination of financial instrument and account type
10314%s: The datetime
10315%s: The time entered is invalid. The correct format is hh:mm:ss. E.g.: 15:00:00 in UTC. No date should be specifiedcurrent date is assumed.
10316Trigger Outside RTH was deprecated. Please upgrade your API Client software to submit order with Outside RTH attribute instead.
10317The Cash Quantity size for the below contracts does not conform to minimum variation of %s
10318This order doesn’t support fractional quantity trading
10319Placing orders for Municipal Bonds via API is currently disabled
10321Placing orders for Municipal Bonds is currently disabled for attached and OCA orders.
10322This API request for All is not supported for Dynamic Account Addition
10324Invalid parameters for OCA group for exchange %s. Overfill Protection is implied.
10325OCA group is not supported
10326OCA group revision is not allowed
10327OCA group type revision is not allowed
10328Connection lostorder data could not be resolved
10329This order will be directly routed to %s.
10330The expiry date/time format is invalid.\nThe correct format is yyyyMMdd HH:mm:ss (operator or instrument time zone) or yyyyMMdd-HH:mm:ss (UTC time zone).
10331Any stop warning
10332Cryptocurrency volatility warning
10333Option Exercise at-the-money warning
10334Confirm Omnibus Order Account
10335”Order presets cannot be applied as configured. Please review %s Settings and Rapid Order Entry Configuration for consistency.”
10336Per-leg executing broker configuration is not supported
10337Misc options key=%s is invalid in %s request. Valid keys are: %s
10338Misc options value=%s is invalid for key=%s in %s request. Valid values are: %s
10339Setting end date/time for continuous future security type is not allowed
10340The following order attribute is not supported: %s
10341Parent order id cannot be modified
10342The ‘ImbalanceOnly’ order attribute may not be specified for this order.
10343Selling Event Contracts is neither allowed directly nor as an attached profit taker.
10344Price value must be between 0.02 and 0.99 with a maximum of two decimal places.
10345You cannot trade a %s
10346Market data for %s cannot be delivered because ticker for the same financial instrument is displayed on %s
10347This security has limited liquidity. If you choose to trade this securitythere is a heightened risk that you may not be able to close your position at the time you wish
WinError 10038An operation was attempted on something that is not a socket.This indicates socket connection was closed improperly.