Error codes
Interactive Brokers API error codes
511 decoded error codes for Interactive Brokers. Each page gives the exact error text and what it means. 184 of them carry a fix or a next step, and each of those rows is marked Fix recorded. Where the source gives no remedy, the page says so.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
TWS API message codes
466 codes
In the TWS API, not in the Web API and not in an HTTP status.
0 (internal server error)Fix recorded Listed by the vendor as "Internal server error".100 (max message rate exceeded)Fix recorded Max rate of messages per second has been exceeded.101 (max tickers reached)Fix recorded Listed by the vendor as "Max number of tickers has been reached".102 (duplicate ticker id)Fix recorded Listed by the vendor as "Duplicate ticker ID".103 (duplicate order id)Fix recorded Listed by the vendor as "Duplicate order ID".104 (cant modify filled order)Listed by the vendor as "Can't modify a filled order".105 (order does not match)Fix recorded Listed by the vendor as "Order being modified does not match original order".106 (cant transmit order id)Listed by the vendor as "Can't transmit order ID:".107 (incomplete order)Fix recorded Listed by the vendor as "Cannot transmit incomplete order".109 (price out of percent range)Fix recorded Listed by the vendor as "Price is out of the range defined by the Percentage setting at order defaults frame.110 (price min variation)Fix recorded Listed by the vendor as "The price does not conform to the minimum price variation for this contract".111 (tif order type incompatible)Fix recorded Listed by the vendor as "The TIF (Tif type) and the order type are incompatible".113 (tif day for moc loc)Fix recorded Listed by the vendor as "The Tif option should be set to DAY for MOC and LOC orders".114 (relative orders stocks only)Listed by the vendor as "Relative orders are valid for stocks only".115 (relative orders us routing)Listed by the vendor as "Relative orders for US stocks can only be submitted to SMART, SMART_ECN, INSTINET, or PRIMEX".116 (dead exchange)Fix recorded Listed by the vendor as "The order cannot be transmitted to a dead exchange".117 (block order size min 50)Listed by the vendor as "The block order size must be at least 50".118 (vwap orders vwap exchange)Listed by the vendor as "VWAP orders must be routed through the VWAP exchange".119 (only vwap on vwap exchange)Fix recorded Listed by the vendor as "Only VWAP orders may be placed on the VWAP exchange".120 (too late for vwap today)Listed by the vendor as "It is too late to place a VWAP order for today".121 (invalid bd flag)Interactive Brokers lists TWS API error code 121 with the text "Invalid BD flag for the order.122 (no request tag for order)Listed by the vendor as "No request tag has been found for order:".123 (no record for conid)Listed by the vendor as "No record is available for conid:".124 (no market rule for conid)Listed by the vendor as "No market rule is available for conid:".125 (buy price must match ask)Listed by the vendor as "Buy price must be the same as the best asking price".126 (sell price must match bid)Listed by the vendor as "Sell price must be the same as the best bidding price".129 (vwap three minutes before)Listed by the vendor as "VWAP orders must be submitted at least three minutes before the start time".131 (sweep to fill ignored)Listed by the vendor as "The sweep-to-fill flag and display size are only valid for US stocks routed through SMART, and will be ignored".132 (no clearing account)Listed by the vendor as "This order cannot be transmitted without a clearing account".133 (submit new order failed)Listed by the vendor as "Submit new order failed".134 (modify order failed)Listed by the vendor as "Modify order failed".135 (cant find order)Fix recorded Listed by the vendor as "Can't find order with ID =".136 (order cannot be cancelled)Listed by the vendor as "This order cannot be cancelled".137 (vwap cancel three minutes)Listed by the vendor as "VWAP orders can only be cancelled up to three minutes before the start time".138 (cant parse ticker request)Listed by the vendor as "Could not parse ticker request:".139 (parsing error)Listed by the vendor as "Parsing error:".140 (size should be integer)Fix recorded Listed by the vendor as "The size value should be an integer:".141 (price should be double)Fix recorded Listed by the vendor as "The price value should be a double:".142 (no account info)Listed by the vendor as "Institutional customer account does not have account info".143 (requested id not integer)Fix recorded Listed by the vendor as "Requested ID is not an integer number".144 (size not share allocation)Interactive Brokers lists TWS API message code 144 with a text that begins "Order size does not match total share allocation." (the vendor's wording) and goes on to say how to adjust the share allocation from the order in TWS.145 (error validating fields)Listed by the vendor as "Error in validating entry fields -".146 (invalid trigger method)Fix recorded Listed by the vendor as "Invalid trigger method".147 (conditional info incomplete)Listed by the vendor as "The conditional contract info is incomplete".148 (conditional limit or market)Interactive Brokers lists TWS API error code 148 with a text that begins "Conditional submission of orders is supported for" (the vendor's wording) and names Limit, Market, MidPrice, Relative and Snap order types.151 (no user name)Fix recorded Listed by the vendor as "This order cannot be transmitted without a user name".152 (hidden attribute not allowed)Fix recorded Interactive Brokers lists TWS API error code 152 with the text "The "hidden" order attribute may not be specified for this order." (the vendor's wording).153 (efps limit orders only)Listed by the vendor as "EFPs can only be limit orders".154 (halted security)Listed by the vendor as "Orders cannot be transmitted for a halted security".155 (sizeop user name account)Listed by the vendor as "A sizeOp order must have a user name and account".156 (sizeop must go to ibsx)Listed by the vendor as "A SizeOp order must go to IBSX".157 (iceberg or discretionary)Fix recorded Listed by the vendor as "An order can be EITHER Iceberg or Discretionary.158 (offset amount or percent)Fix recorded Listed by the vendor as "You must specify an offset amount or a percent offset value".159 (percent offset 0 to 100)Fix recorded Listed by the vendor as "The percent offset value must be between 0% and 100%".160 (size cannot be zero)Fix recorded Listed by the vendor as "The size value cannot be zero".161 (not in cancellable state)Listed by the vendor as "Cancel attempted when order is not in a cancellable state.162 (historical data service error)Fix recorded Historical market data Service error message.163 (price percent constraint)Fix recorded Listed by the vendor as "The price specified would violate the percentage constraint specified in the default order settings".164 (no data for percent check)Listed by the vendor as "There is no market data to check price percent violations".165 (historical data query msg)Fix recorded Listed by the vendor as "Historical market Data Service query message".166 (hmds expired contract)Listed by the vendor as "HMDS Expired Contract Violation".167 (vwap time must be future)Fix recorded Listed by the vendor as "VWAP order time must be in the future".168 (discretionary min variation)Fix recorded Listed by the vendor as "Discretionary amount does not conform to the minimum price variation for this contract".200 (no security definition)Fix recorded No security definition has been found for the request.201 (order rejected)Fix recorded Order rejected - Reason:.202 (order cancelled)Fix recorded Listed by the vendor as "Order cancelled - Reason:".203 (security not allowed)Listed by the vendor as "The security <security> is not available or allowed for this account".300 (cant find eid ticker id)Fix recorded Listed by the vendor as "Can't find EId with ticker Id:".301 (invalid ticker action)Listed by the vendor as "Invalid ticker action:".302 (error parsing stop ticker)Listed by the vendor as "Error parsing stop ticker string:".303 (invalid action)Fix recorded Listed by the vendor as "Invalid action:".304 (invalid account value action)Listed by the vendor as "Invalid account value action:".305 (request parsing error)Fix recorded Listed by the vendor as "Request parsing error, the request has been ignored".306 (error processing dde)Listed by the vendor as "Error processing DDE request:".307 (invalid request topic)Fix recorded Listed by the vendor as "Invalid request topic:".308 (max api pages)Listed by the vendor as "Unable to create the 'API' page in TWS as the maximum number of pages already exists".309 (max market depth requests)Fix recorded Interactive Brokers lists TWS API error code 309 with a text that begins "Max number (3) of market depth requests has been reached." (the vendor's wording).310 (cant find market depth)Fix recorded Listed by the vendor as "Can't find the subscribed market depth with tickerId:".311 (origin invalid)Fix recorded Listed by the vendor as "The origin is invalid".312 (combo details invalid)Fix recorded Listed by the vendor as "The combo details are invalid".313 (combo leg details invalid)Fix recorded Listed by the vendor as "The combo details for leg '<leg number>' are invalid".314 (bag requires combo legs)Fix recorded Listed by the vendor as "Security type 'BAG' requires combo leg details".315 (stock combo legs smart)Fix recorded Listed by the vendor as "Stock combo legs are restricted to SMART order routing".316 (market depth halted)Fix recorded Listed by the vendor as "Market depth data has been HALTED.317 (market depth reset)Fix recorded Listed by the vendor as "Market depth data has been RESET.319 (invalid log level)Fix recorded Listed by the vendor as "Invalid log level <log level>".320 (server error reading)Listed by the vendor as "Server error when reading an API client request".321 (server error validating)Listed by the vendor as "Server error when validating an API client request".322 (server error processing)Listed by the vendor as "Server error when processing an API client request".323 (server error cause)Listed by the vendor as "Server error: cause - s".324 (server error reading dde)Fix recorded Listed by the vendor as "Server error when reading a DDE client request (missing information)".325 (discretionary unsupported)Fix recorded Listed by the vendor as "Discretionary orders are not supported for this combination of exchange and order type".326 (client id in use)Fix recorded Listed by the vendor as "Unable to connect as the client id is already in use.327 (auto bind client id 0)Listed by the vendor as "Only API connections with clientId set to 0 can set the auto bind TWS orders property".328 (trailing stop attach)Fix recorded Listed by the vendor as "Trailing stop orders can be attached to limit or stop-limit orders only".329 (cannot change order type)Listed by the vendor as "Order modify failed.330 (fa or stl only)Listed by the vendor as "Only FA or STL customers can request managed accounts list".331 (no managed accounts)Listed by the vendor as "Internal error.332 (invalid account codes)Fix recorded Listed by the vendor as "The account codes for the order profile are invalid".333 (invalid share allocation)Listed by the vendor as "Invalid share allocation syntax".334 (invalid good till date)Fix recorded Listed by the vendor as "Invalid Good Till Date order".335 (invalid delta 0 to 100)Listed by the vendor as "Invalid delta: The delta must be between 0 and 100".336 (invalid time or time zone)Fix recorded Interactive Brokers lists TWS API error code 336 with a text that begins "The time or time zone is invalid." (the vendor's wording).337 (invalid date time zone)Fix recorded Interactive Brokers lists TWS API error code 337 with a text that begins "The date, time, or time-zone entered is invalid." (the vendor's wording).338 (good after time disabled)Listed by the vendor as "Good After Time orders are currently disabled on this exchange".339 (futures spread unsupported)Fix recorded Listed by the vendor as "Futures spread are no longer supported.340 (invalid improvement amount)Listed by the vendor as "Invalid improvement amount for box auction strategy".341 (invalid delta 1 to 100)Interactive Brokers lists TWS API error code 341 with a text that begins "Invalid delta." (the vendor's wording).342 (pegged order unsupported)Fix recorded Listed by the vendor as "Pegged order is not supported on this exchange".343 (invalid date time format)Fix recorded Listed by the vendor as "The date, time, or time-zone entered is invalid.344 (not an fa account)Listed by the vendor as "The account logged into is not a financial advisor account".345 (generic combo not for fa)Listed by the vendor as "Generic combo is not supported for FA advisor account".346 (not institutional account)Listed by the vendor as "Not an institutional account or an away clearing account".347 (short sale slot 1 or 2)Fix recorded Listed by the vendor as "Short sale slot value must be 1 (broker holds shares) or 2 (delivered from elsewhere)".348 (not a short sale)Fix recorded Interactive Brokers lists TWS API message code 348 with a text that begins "Order not a short sale" (the vendor's wording) and goes on to say that the type must be SSHORT to specify a short sale slot.349 (combo no good after)Interactive Brokers lists TWS API error code 349 with the text "Generic combo does not support "Good After" attribute." (the vendor's wording).350 (min qty best combo)Listed by the vendor as "Minimum quantity is not supported for best combo order".351 (rth only flag not valid)Interactive Brokers lists TWS API error code 351 with the text "The "Regular Trading Hours only" flag is not valid for this order." (the vendor's wording).352 (slot 2 requires location)Fix recorded Listed by the vendor as "Short sale slot value of 2 (delivered from elsewhere) requires location".353 (slot 1 no location)Fix recorded Listed by the vendor as "Short sale slot value of 1 requires no location be specified".354 (market data not subscribed)Interactive Brokers lists TWS API error code 354 with a text that begins "Requested market data is not subscribed." (the vendor's wording) and goes on to say where in the Account menu to check the API status and the availability of delayed data.355 (order size market rule)Fix recorded Listed by the vendor as "Order size does not conform to market rule".356 (smart combo no oca)Fix recorded Listed by the vendor as "Smart-combo order does not support OCA group".357 (client version out of date)Listed by the vendor as "Your client version is out of date".358 (smart combo child order)Listed by the vendor as "Smart combo child order not supported".359 (combo reduce on fill)Listed by the vendor as "Combo order only supports reduce on fill without block(OCA)".360 (no whatif for smart combo)Listed by the vendor as "No whatif check support for smart combo order".361 (invalid trigger price)Listed by the vendor as "Invalid trigger price".362 (invalid adjusted stop)Listed by the vendor as "Invalid adjusted stop price".363 (invalid adjusted stop limit)Listed by the vendor as "Invalid adjusted stop limit price".364 (invalid adjusted trailing)Listed by the vendor as "Invalid adjusted trailing amount".365 (no scanner subscription)Listed by the vendor as "No scanner subscription found for ticker id:".366 (no historical data query)Listed by the vendor as "No historical data query found for ticker id:".367 (volatility type 1 or 2)Listed by the vendor as "Volatility type if set must be 1 or 2 for VOL orders.368 (reference price type 1 or 2)Listed by the vendor as "Reference Price Type must be 1 or 2 for dynamic volatility management.369 (vol orders us options only)Fix recorded Listed by the vendor as "Volatility orders are only valid for US options".370 (dynamic vol smart routed)Listed by the vendor as "Dynamic Volatility orders must be SMART routed, or trade on a Price Improvement Exchange".371 (vol order needs volatility)Listed by the vendor as "VOL order requires positive floating point value for volatility.372 (dynamic vol on non vol)Fix recorded Listed by the vendor as "Cannot set dynamic VOL attribute on non-VOL order".373 (stock range attribute)Listed by the vendor as "Can only set stock range attribute on VOL or RELATIVE TO STOCK order".374 (stock range lower upper)Listed by the vendor as "If both are set, the lower stock range attribute must be less than the upper stock range attribute".375 (stock range negative)Listed by the vendor as "Stock range attributes cannot be negative".376 (not eligible continuous)Listed by the vendor as "The order is not eligible for continuous update.377 (delta hedge aux price)Listed by the vendor as "Must specify valid delta hedge order aux. price".378 (delta hedge needs aux price)Fix recorded Listed by the vendor as "Delta hedge order type requires delta hedge aux. price to be specified".379 (delta hedge no aux price)Fix recorded Listed by the vendor as "Delta hedge order type requires that no delta hedge aux. price be specified".380 (delta hedge order type)Fix recorded Listed by the vendor as "This order type is not allowed for delta hedge orders".381 (dde dll needs upgrade)Listed by the vendor as "Your DDE.dll needs to be upgraded".382 (price ticks constraint)Listed by the vendor as "The price specified violates the number of ticks constraint specified in the default order settings".383 (size constraint)Listed by the vendor as "The size specified violates the size constraint specified in the default order settings".384 (invalid dde array request)Listed by the vendor as "Invalid DDE array request".385 (duplicate scanner ticker id)Fix recorded Listed by the vendor as "Duplicate ticker ID for API scanner subscription".386 (duplicate hist ticker id)Fix recorded Listed by the vendor as "Duplicate ticker ID for API historical data query".387 (unsupported order type)Fix recorded Listed by the vendor as "Unsupported order type for this exchange and security type".388 (order size below minimum)Fix recorded Listed by the vendor as "Order size is smaller than the minimum requirement".389 (routed order id not unique)Listed by the vendor as "Supplied routed order ID is not unique".390 (routed order id invalid)Listed by the vendor as "Supplied routed order ID is invalid".391 (invalid time format)Fix recorded Listed by the vendor as "The time or time-zone entered is invalid.392 (contract expired)Listed by the vendor as "Invalid order: contract expired".393 (short sale slot delta hedge)Listed by the vendor as "Short sale slot may be specified for delta hedge orders only".394 (invalid process time)Listed by the vendor as "Invalid Process Time: must be integer number of milliseconds between 100 and 2000.395 (oca orders not accepted)Fix recorded Listed by the vendor as "Due to system problems, orders with OCA groups are currently not being accepted".396 (market and limit only)Fix recorded Listed by the vendor as "Due to system problems, application is currently accepting only Market and Limit orders for this contract".397 (market limit only contract)Listed by the vendor as "Due to system problems, application is currently accepting only Market and Limit orders for this contract".398 (invalid condition trigger)Fix recorded Listed by the vendor as "< > cannot be used as a condition trigger".399 (order message error)Listed by the vendor as "Order message error".400 (algo order error)Listed by the vendor as "Algo order error".401 (length restriction)Listed by the vendor as "Length restriction".402 (conditions not allowed)Listed by the vendor as "Conditions are not allowed for this contract".403 (invalid stop price)Listed by the vendor as "Invalid stop price".404 (shares not available short)Listed by the vendor as "Shares for this order are not immediately available for short sale.405 (child qty parent size)Listed by the vendor as "The child order quantity should be equivalent to the parent order size".406 (currency not allowed)Fix recorded Listed by the vendor as "The currency < > is not allowed".407 (symbol non unicode)Fix recorded Listed by the vendor as "The symbol should contain valid non-unicode characters only".408 (invalid scale increment)Listed by the vendor as "Invalid scale order increment".409 (scale component size)Listed by the vendor as "Invalid scale order.410 (scale subsequent size)Listed by the vendor as "Invalid subsequent component size for scale order".411 (outside rth not valid)Interactive Brokers lists TWS API error code 411 with the text "The "Outside Regular Trading Hours" flag is not valid for this order." (the vendor's wording).412 (contract not available)Listed by the vendor as "The contract is not available for trading".413 (what if transmit flag)Fix recorded Listed by the vendor as "What-if order should have the transmit flag set to true".414 (snapshot generic ticks)Fix recorded Listed by the vendor as "Snapshot market data subscription is not applicable to generic ticks".415 (wait for previous rfq)Fix recorded Listed by the vendor as "Wait until previous RFQ finishes and try again".416 (rfq not applicable)Listed by the vendor as "RFQ is not applicable for the contract.417 (scale initial size invalid)Listed by the vendor as "Invalid initial component size for scale order".418 (scale profit offset invalid)Listed by the vendor as "Invalid scale order profit offset".419 (scale initial size missing)Fix recorded Listed by the vendor as "Missing initial component size for scale order".420 (invalid real time query)Listed by the vendor as "Invalid real-time query".421 (invalid route)Listed by the vendor as "Invalid route".422 (account clearing attributes)Listed by the vendor as "The account and clearing attributes on this order may not be changed".423 (cross order rfq expired)Listed by the vendor as "Cross order RFQ has been expired.424 (fa order needs allocation)Listed by the vendor as "FA Order requires allocation to be specified".425 (fa manual allocations)Listed by the vendor as "FA Order requires per-account manual allocations because there is no common clearing instruction.426 (not enough shares)Listed by the vendor as "None of the accounts have enough shares".427 (mutual fund needs value)Listed by the vendor as "Mutual Fund order requires monetary value to be specified".428 (mutual fund sell shares)Listed by the vendor as "Mutual Fund Sell order requires shares to be specified".429 (delta neutral combos only)Listed by the vendor as "Delta neutral orders are only supported for combos (BAG security type)".430 (fundamentals not available)Listed by the vendor as "We are sorry, but fundamentals data for the security specified is not available".431 (what to show missing)Listed by the vendor as "What to show field is missing or incorrect".432 (commission not negative)Listed by the vendor as "Commission must not be negative".433 (invalid restore size)Interactive Brokers lists TWS API error code 433 with the text "Invalid "Restore size after taking profit" for multiple account allocation scale order." (the vendor's wording).434 (order size cannot be zero)Listed by the vendor as "The order size cannot be zero".435 (must specify account)Fix recorded Listed by the vendor as "You must specify an account".436 (must specify allocation)Fix recorded Listed by the vendor as "You must specify an allocation (either a single account, group, or profile)".437 (outside rth or preopen)Listed by the vendor as "Order can have only one flag Outside RTH or Allow PreOpen".438 (application locked)Listed by the vendor as "The application is now locked".439 (algo definition not found)Fix recorded Listed by the vendor as "Order processing failed.440 (algo cannot be modified)Listed by the vendor as "Order modify failed.441 (algo validation failed)Fix recorded Listed by the vendor as "Algo attributes validation failed:".442 (algorithm not allowed)Listed by the vendor as "Specified algorithm is not allowed for this order".443 (unknown algo attribute)Fix recorded Listed by the vendor as "Order processing failed.444 (vol combo not acknowledged)Listed by the vendor as "Volatility Combo order is not yet acknowledged.445 (rfq no longer valid)Listed by the vendor as "The RFQ for this order is no longer valid".446 (scale profit offset missing)Listed by the vendor as "Missing scale order profit offset".447 (scale price adjust missing)Listed by the vendor as "Missing scale price adjustment amount or interval".448 (scale adjust interval)Listed by the vendor as "Invalid scale price adjustment interval".449 (scale adjust unexpected)Listed by the vendor as "Unexpected scale price adjustment amount or interval".456 (max number of)Fix recorded Listed by the vendor as "Max number of real time requests has been reached".481 (order size reduced)Listed by the vendor as "Order size reduced".501 (already connected)Interactive Brokers lists TWS API client error code 501 with the text "Already Connected." (the vendor's wording).502 (cannot connect to tws)Fix recorded Couldn't connect to TWS.503 (tws out of date)Fix recorded Interactive Brokers lists TWS API client error code 503 with the text "The TWS is out of date and must be upgraded." (the vendor's wording).504 (not connected)Fix recorded Not connected.505 (fatal error unknown)Listed by the vendor as "Fatal Error: Unknown message id".506 (unsupported version)Listed by the vendor as "Unsupported Version".507 (bad message length)Fix recorded Listed by the vendor as "Bad Message Length (Java-only)".508 (bad message)Listed by the vendor as "Bad Message".509 (exception caught while)Listed by the vendor as "Exception caught while reading socket".510 (request market data)Listed by the vendor as "Request Market Data Sending Error".511 (cancel market data)Listed by the vendor as "Cancel Market Data Sending Error".512 (order)Listed by the vendor as "Order Sending Error".513 (account update request)Listed by the vendor as "Account Update Request Sending Error".514 (request for executions)Listed by the vendor as "Request For Executions Sending Error".515 (cancel order)Listed by the vendor as "Cancel Order Sending Error".516 (request open order)Listed by the vendor as "Request Open Order Sending Error".517 (unknown contract verify)Fix recorded Listed by the vendor as "Unknown contract.518 (request contract data)Listed by the vendor as "Request Contract Data Sending Error".519 (request market depth)Listed by the vendor as "Request Market Depth Sending Error".520 (failed to create)Listed by the vendor as "Failed to create socket".521 (set server log)Listed by the vendor as "Set Server Log Level Sending Error".522 (fa information request)Listed by the vendor as "FA Information Request Sending Error".523 (fa information replace)Listed by the vendor as "FA Information Replace Sending Error".524 (request scanner subscription)Listed by the vendor as "Request Scanner Subscription Sending Error".525 (cancel scanner subscription)Listed by the vendor as "Cancel Scanner Subscription Sending Error".526 (request scanner parameter)Listed by the vendor as "Request Scanner Parameter Sending Error".527 (request historical data)Listed by the vendor as "Request Historical Data Sending Error".528 (request historical data)Listed by the vendor as "Request Historical Data Sending Error".529 (request real time)Listed by the vendor as "Request Real-time Bar Data Sending Error".530 (cancel real time)Listed by the vendor as "Cancel Real-time Bar Data Sending Error".531 (request current time)Listed by the vendor as "Request Current Time Sending Error".532 (request fundamental data)Listed by the vendor as "Request Fundamental Data Sending Error".533 (cancel fundamental data)Listed by the vendor as "Cancel Fundamental Data Sending Error".534 (request calculate implied)Listed by the vendor as "Request Calculate Implied Volatility Sending Error".535 (request calculate option)Listed by the vendor as "Request Calculate Option Price Sending Error".536 (cancel calculate implied)Listed by the vendor as "Cancel Calculate Implied Volatility Sending Error".537 (cancel calculate option)Listed by the vendor as "Cancel Calculate Option Price Sending Error".538 (request global cancel)Listed by the vendor as "Request Global Cancel Sending Error".539 (request market data)Listed by the vendor as "Request Market Data Type Sending Error".540 (request positions)Listed by the vendor as "Request Positions Sending Error".541 (cancel positions)Listed by the vendor as "Cancel Positions Sending Error".542 (request account data)Listed by the vendor as "Request Account Data Sending Error".543 (cancel account data)Listed by the vendor as "Cancel Account Data Sending Error".544 (verify request)Listed by the vendor as "Verify Request Sending Error".545 (verify message)Listed by the vendor as "Verify Message Sending Error".546 (query display groups)Listed by the vendor as "Query Display Groups Sending Error".547 (subscribe to group)Listed by the vendor as "Subscribe To Group Events Sending Error".548 (update display group)Listed by the vendor as "Update Display Group Sending Error".549 (unsubscribe from group)Listed by the vendor as "Unsubscribe From Group Events Sending Error".550 (start api)Listed by the vendor as "Start API Sending Error".551 (verify and auth)Listed by the vendor as "Verify And Auth Request Sending Error".552 (verify and auth)Listed by the vendor as "Verify And Auth Message Sending Error".553 (request positions multi)Listed by the vendor as "Request Positions Multi Sending Error".554 (cancel positions multi)Listed by the vendor as "Cancel Positions Multi Sending Error".555 (request account updates)Listed by the vendor as "Request Account Updates Multi Sending Error".556 (cancel account updates)Listed by the vendor as "Cancel Account Updates Multi Sending Error".557 (request security definition)Listed by the vendor as "Request Security Definition Option Params Sending Error".558 (request soft dollar)Listed by the vendor as "Request Soft Dollar Tiers Sending Error".559 (request family codes)Listed by the vendor as "Request Family Codes Sending Error".560 (request matching symbols)Listed by the vendor as "Request Matching Symbols Sending Error".561 (request market depth)Listed by the vendor as "Request Market Depth Exchanges Sending Error".562 (request smart components)Listed by the vendor as "Request Smart Components Sending Error".563 (request news providers)Listed by the vendor as "Request News Providers Sending Error".564 (request news article)Listed by the vendor as "Request News Article Sending Error".565 (request historical news)Listed by the vendor as "Request Historical News Sending Error".566 (request head time)Listed by the vendor as "Request Head Time Stamp Sending Error".567 (request histogram data)Listed by the vendor as "Request Histogram Data Sending Error".568 (cancel request histogram)Listed by the vendor as "Cancel Request Histogram Data Sending Error".569 (cancel head time)Listed by the vendor as "Cancel Head Time Stamp Sending Error".570 (request market rule)Listed by the vendor as "Request Market Rule Sending Error".571 (request pnl)Listed by the vendor as "Request PnL Sending Error".572 (cancel pnl)Listed by the vendor as "Cancel PnL Sending Error".573 (request pnl single)Listed by the vendor as "Request PnL Single Error".574 (cancel pnl single)Listed by the vendor as "Cancel PnL Single Sending Error".575 (request historical ticks)Listed by the vendor as "Request Historical Ticks Error".576 (request tick by)Listed by the vendor as "Request Tick-By-Tick Data Sending Error".577 (cancel tick by)Listed by the vendor as "Cancel Tick-By-Tick Data Sending Error".578 (request completed orders)Listed by the vendor as "Request Completed Orders Sending Error".579 (invalid symbol in)Listed by the vendor as "Invalid symbol in string".580 (request wsh meta)Listed by the vendor as "Request WSH Meta Data Sending Error".581 (cancel wsh meta)Listed by the vendor as "Cancel WSH Meta Data Sending Error".582 (request wsh event)Listed by the vendor as "Request WSH Event Data Sending Error".583 (cancel wsh event)Listed by the vendor as "Cancel WSH Event Data Sending Error".584 (request user info)Listed by the vendor as "Request User Info Sending Error".585 (fa profile is)Fix recorded Listed by the vendor as "FA Profile is not supported anymore, use FA Group instead".586 (failed to read)Listed by the vendor as "Failed to read message because not connected".587 (request current time)Listed by the vendor as "Request Current Time In Millis Sending Error".588 (error encoding protobuf)Listed by the vendor as "Error encoding protobuf".589 (cancel market depth)Listed by the vendor as "Cancel Market Depth Sending Error".1100 (connectivity lost)Fix recorded Connectivity between IB and the TWS has been lost.1101 (connectivity restored data lost)Fix recorded Connectivity between IB and TWS has been restored- data lost.1102 (connectivity restored data maintained)Fix recorded Connectivity between IB and TWS has been restored- data maintained.1300 (socket port reset)Fix recorded Interactive Brokers lists TWS API system message code 1300 with the text "TWS socket port has been reset and this connection is being dropped.2100 (account data unsubscribed)Fix recorded Interactive Brokers lists TWS API warning message code 2100 with the text "New account data requested from TWS.2101 (cannot subscribe to account)Interactive Brokers lists TWS API warning message code 2101 with the text "Unable to subscribe to account as the following clients are subscribed to a different account." (the vendor's wording).2102 (order still being processed)Fix recorded Interactive Brokers lists TWS API warning message code 2102 with the text "Unable to modify this order as it is still being processed." (the vendor's wording).2103 (market data farm disconnect)Fix recorded Interactive Brokers lists TWS API warning message code 2103 with the text "A market data farm is disconnected." (the vendor's wording).2104 (market data farm ok)Fix recorded Market data farm connection is OK.2105 (hist data farm disconnected)Fix recorded Interactive Brokers lists TWS API warning message code 2105 with the text "A historical data farm is disconnected." (the vendor's wording).2106 (historical data farm connected)Fix recorded A historical data farm is connected.2107 (hist data farm inactive)Fix recorded Interactive Brokers lists TWS API warning message code 2107 with the text "A historical data farm connection has become inactive but should be available upon demand." (the vendor's wording).2108 (market data farm inactive)Fix recorded Interactive Brokers lists TWS API warning message code 2108 with the text "A market data farm connection has become inactive but should be available upon demand." (the vendor's wording).2109 (outside rth ignored)Fix recorded Interactive Brokers lists TWS API warning message code 2109 with the text "Order Event Warning: Attribute "Outside Regular Trading Hours" is ignored based on the order type and destination.2110 (tws server link broken)Fix recorded Interactive Brokers lists TWS API warning message code 2110 with the text "Connectivity between TWS and server is broken.2111 (algo order time adjusted)Fix recorded TWS API error 2111 begins "The Start and/or End Time for algo order".2119 (market data farm)Listed by the vendor as "Market data farm is connecting".2130 (warning products are)Listed by the vendor as "Warning: products are trading on the basis of currency price with factor".2137 (cross side warning)Fix recorded Interactive Brokers lists TWS API warning message code 2137 with the text "Cross Side Warning" (the vendor's wording).2152 (market depth smart)Listed by the vendor as "Market depth smart depth exchanges".2158 (sec def data farm ok)Fix recorded Sec-def data farm connection is OK.2168 (etradeonly not supported)Fix recorded Interactive Brokers lists TWS API warning message code 2168 with the text "Etrade Only Not Supported Warning" (the vendor's wording).2169 (firmquoteonly not supported)Fix recorded Interactive Brokers lists TWS API warning message code 2169 with the text "Firm Quote Only Not Supported Warning" (the vendor's wording).2188 (up to the)Fix recorded Listed by the vendor as "Up-to-the-second historical data requires additional subscription for the API".10000 (cross currency combo)Listed by the vendor as "Cross currency combo error".10001 (cross currency vol)Listed by the vendor as "Cross currency vol error".10002 (non guaranteed legs)Listed by the vendor as "Invalid non-guaranteed legs".10003 (ibsx not allowed)Listed by the vendor as "IBSX not allowed".10005 (read only models)Listed by the vendor as "Read-only models".10006 (missing parent order)Fix recorded Listed by the vendor as "Missing parent order".10007 (invalid hedge type)Listed by the vendor as "Invalid hedge type".10008 (invalid beta value)Listed by the vendor as "Invalid beta value".10009 (invalid hedge ratio)Listed by the vendor as "Invalid hedge ratio".10010 (invalid delta hedge order)Listed by the vendor as "Invalid delta hedge order".10011 (currency smart combo)Listed by the vendor as "Currency is not supported for Smart combo".10012 (invalid allocation percent)Listed by the vendor as "Invalid allocation percentage".10013 (smart routing api error)Listed by the vendor as "Smart routing API error (Smart routing opt-out required)".10014 (pctchange limits)Listed by the vendor as "PctChange limits".10015 (trading not allowed in api)Listed by the vendor as "Trading is not allowed in the API".10016 (contract not visible)Listed by the vendor as "Contract is not visible".10017 (contracts not visible)Listed by the vendor as "Contracts are not visible".10018 (orders use ev warning)Listed by the vendor as "Orders use EV warning".10019 (trades use ev warning)Listed by the vendor as "Trades use EV warning".10020 (display size order size)Fix recorded Interactive Brokers lists TWS API message code 10020 with the text "Display size should be smaller than order size." (the vendor's wording).10021 (invalid leg2 mkt offset)Listed by the vendor as "Invalid leg2 to Mkt Offset API".10022 (invalid leg prio)Listed by the vendor as "Invalid Leg Prio API".10023 (invalid combo display size)Listed by the vendor as "Invalid combo display size API".10024 (invalid dont start next)Listed by the vendor as "Invalid don't start next legin API".10025 (invalid leg2 mkt time1)Listed by the vendor as "Invalid leg2 to Mkt time1 API".10026 (invalid leg2 mkt time2)Listed by the vendor as "Invalid leg2 to Mkt time2 API".10027 (invalid combo routing tag)Listed by the vendor as "Invalid combo routing tag API".10089 (api data requires)Fix recorded Listed by the vendor as "API data requires subscription".10090 (part data not subscribed)Listed by the vendor as "Part of requested market data is not subscribed".10091 (part of requested)Fix recorded Listed by the vendor as "Part of requested market data requires additional subscription for API".10147 (order to be)Listed by the vendor as "Order to be canceled was not found".10148 (order cannot be cancelled)Listed by the vendor as "OrderId <OrderId> that needs to be cancelled can not be cancelled, state:".10186 (data not subscribed delayed)Fix recorded Listed by the vendor as "Requested market data is not subscribed.10187 (failed to request)Listed by the vendor as "Failed to request historical ticks:No market data permissions".10189 (failed to request)Listed by the vendor as "Failed to request tick-by-tick data.10197 (no data competing session)Listed by the vendor as "No market data during competing session".10213 (regulatory snapshot restricted)TWS API error 10213 begins "API access is restricted on regulatory snapshot for".10225 (bust event occurred)Fix recorded Listed by the vendor as "Bust event occurred, current subscription is deactivated.10230 (unsaved fa changes)Fix recorded Listed by the vendor as "You have unsaved FA changes.10231 (groups invalid accounts)Fix recorded Listed by the vendor as "The following Groups and/or Profiles contain invalid accounts: <list of groups/profiles>".10233 (defaults from cash preset)Listed by the vendor as "Defaults were inherited from CASH preset during the creation of this order".10234 (decision maker non desktop)Listed by the vendor as "The Decision Maker field is required and not set for this order (non-desktop)".10235 (decision maker ibbot)Listed by the vendor as "The Decision Maker field is required and not set for this order (ibbot)".10236 (child aon if parent aon)Listed by the vendor as "Child has to be AON if parent order is AON".10237 (aon entire unfilled size)Listed by the vendor as "All or None ticket can route entire unfilled size only".10238 (advisor setup web app)Listed by the vendor as "Some error occured during communication with Advisor Setup web-app".10239 (risk score criteria)Listed by the vendor as "This 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".10240 (valid price cap)Listed by the vendor as "You must enter a valid Price Cap".10241 (monetary quantity modify)Listed by the vendor as "Order Quantity is expressed in monetary terms.10242 (fractional order modify)Listed by the vendor as "Fractional-sized order cannot be modified via API.10243 (fractional order place)Listed by the vendor as "Fractional-sized order cannot be placed via API.10244 (cash quantity not allowed)Listed by the vendor as "Cash Quantity cannot be used for this order".10245 (no fractional instrument)Listed by the vendor as "This financial instrument does not support fractional shares trading".10246 (order no fractional)Listed by the vendor as "This order doesn't support fractional shares trading".10247 (fractional smartrouting)Listed by the vendor as "Only IB SmartRouting supports fractional shares".10248 (no fractional permission)Listed by the vendor as "<Account> doesn't have permission to trade fractional shares".10249 (order type no fractional)Interactive Brokers lists TWS API message code 10249 with a text that names the order type and then says it "doesn't support fractional shares" (the vendor's wording).10250 (size minimum variation)Listed by the vendor as "The size does not conform to the minimum variation of for this contract".10251 (fractional allocation)Listed by the vendor as "Fractional shares are not supported for allocation orders".10252 (non close no fractional)Listed by the vendor as "This non-close-position order doesn't support fractional shares trading".10253 (clear away combo hedge)Listed by the vendor as "Clear Away orders are not supported for multi-leg combo with attached hedge".10254 (bond expired)Listed by the vendor as "Invalid Order: bond expired".10268 (etradeonly attribute)Fix recorded Listed by the vendor as "The 'EtradeOnly' order attribute is not supported".10269 (firmquoteonly attribute)Fix recorded Listed by the vendor as "The 'firmQuoteOnly' order attribute is not supported".10270 (nbbopricecap attribute)Fix recorded Listed by the vendor as "The 'nbboPriceCap' order attribute is not supported".10276 (news feed not allowed)Listed by the vendor as "News feed is not allowed".10277 (news feed permissions)Listed by the vendor as "News feed permissions required".10278 (duplicate wsh metadata)Fix recorded Listed by the vendor as "Duplicate WSH metadata request".10279 (failed wsh metadata)Listed by the vendor as "Failed request WSH metadata".10280 (failed cancel wsh metadata)Listed by the vendor as "Failed cancel WSH metadata".10281 (duplicate wsh event data)Fix recorded Listed by the vendor as "Duplicate WSH event data request".10282 (wsh metadata not requested)Fix recorded Listed by the vendor as "WSH metadata not requested".10283 (fail wsh event data)Listed by the vendor as "Fail request WSH event data".10284 (fail cancel wsh event data)Listed by the vendor as "Fail cancel WSH event data".10285 (fractional sizing rules version)Fix recorded TWS API error 10285 begins "Your API version does not support fractional sizing rules." The words in quotes are Interactive Brokers' own.10286 (field too many decimals)Listed by the vendor as "%s field cannot contain more than %s decimals".10287 (cryptocurrency order is)Listed by the vendor as "Cryptocurrency order is not confirmed".10288 (market order confirmation)Listed by the vendor as "Market order confirmation dialog title for cryptocurrencies".10289 (you must set)Fix recorded Listed by the vendor as "You must set Cash Quantity for this order".10290 (this order only)Listed by the vendor as "This order only supports CashQty trading".10291 (orders to harvest)Fix recorded Listed by the vendor as "Orders to harvest Capital Loss must use the DAY time-in-force".10292 (order type action)Listed by the vendor as "Order type/action restriction".10293 (cryptocurrency cash quantity)Listed by the vendor as "Cryptocurrency Cash Quantity order cannot specify size".10294 (cash quantity set)Listed by the vendor as "Cash quantity set on the order does not match total monetary amount of the Group".10295 (schedule daily resolution only)Listed by the vendor as "Only daily resolution supported for Schedule requests".10296 (dark pool routing exclusive)Fix recorded TWS API error 10296 begins "The Smart Routing features".10297 (not held attribute)Listed by the vendor as "Not Held attribute is invalid for this order".10298 (cannot trade an)Listed by the vendor as "Cannot trade an instrument with currency different from model currency".10299 (expected what to show)Fix recorded Listed by the vendor as "Expected what to show is %s". on the vendor's page, with "please use that instead of %s." in the notes column.10300 (date time row cut short)TWS API error 10300 has a row that is cut short on the vendor's page.10301 (date time row cut short)TWS API error 10301 has a row that is cut short on the vendor's page.10302 (min trade quantity not allowed)Listed by the vendor as "Min trade trade quantity is not allowed for this order".10303 (invalid min trade quantity)Fix recorded Listed by the vendor as "Invalid min trade quantity value (%s).10304 (minimum competing size)Listed by the vendor as "Minimum Competing Size value must be non-negative".10305 (compete offset value)Listed by the vendor as "Compete against best bid or offer Offset dollar value must be positive". on the vendor's page, with "multiple of a cent." in the notes column.10306 (mid offsets are)Listed by the vendor as "Mid offsets are not allowed".10307 (invalid midoffsetatwhole and)Listed by the vendor as "Invalid MidOffsetAtWhole and/or MidOffsetAtHalf attribute values".10308 (revision to post)Listed by the vendor as "Revision to Post to ATS value presence is not allowed".10309 (invalid wsh event)Listed by the vendor as "Invalid WSH event data request".10310 (solicited field)TWS API error 10310 begins "The Solicited field should be used for orders initiated or recommended by the broker or advisor".10311 (direct routed higher fees)TWS API error 10311 begins "This order will be directly routed to %s." The words in quotes are Interactive Brokers' own.10312 (volatility order not supported)TWS API error 10312 begins "The order type Volatility is currently not supported".10314 (date time row cut short)TWS API error 10314 has a row that is cut short on the vendor's page.10315 (invalid time format)Fix recorded Listed by the vendor as "%s: The time entered is invalid.10316 (trigger outside rth deprecated)Fix recorded TWS API error 10316 begins "Trigger Outside RTH was deprecated." The words in quotes are Interactive Brokers' own.10317 (cash quantity minimum variation)Listed by the vendor as "The Cash Quantity size for the below contracts does not conform to minimum variation of %s".10318 (this order doesn)Listed by the vendor as "This order doesn't support fractional quantity trading".10319 (placing orders for)Listed by the vendor as "Placing orders for Municipal Bonds via API is currently disabled".10321 (placing orders for)Listed by the vendor as "Placing orders for Municipal Bonds is currently disabled for attached and OCA orders".10322 (this api request)Listed by the vendor as "This API request for All is not supported for Dynamic Account Addition".10324 (invalid oca group parameters)Listed by the vendor as "Invalid parameters for OCA group for exchange %s.10325 (oca group is)Listed by the vendor as "OCA group is not supported".10326 (oca group revision)Listed by the vendor as "OCA group revision is not allowed".10327 (oca group type)Listed by the vendor as "OCA group type revision is not allowed".10328 (connection lost order data)Listed by the vendor as "Connection lost". on the vendor's page, with "order data could not be resolved" in the notes column.10329 (order directly routed)Listed by the vendor as "This order will be directly routed to %s".10330 (expiry date time format)Fix recorded TWS API error 10330 begins "The expiry date/time format is invalid." The words in quotes are Interactive Brokers' own.10331 (any stop warning)Listed by the vendor as "Any stop warning".10332 (cryptocurrency volatility warning)Listed by the vendor as "Cryptocurrency volatility warning".10333 (option exercise at)Listed by the vendor as "Option Exercise at-the-money warning".10334 (confirm omnibus order)Listed by the vendor as "Confirm Omnibus Order Account".10335 (order presets not applied)Fix recorded TWS API error 10335 begins "Order presets cannot be applied as configured." The words in quotes are Interactive Brokers' own.10336 (per leg executing)Listed by the vendor as "Per-leg executing broker configuration is not supported".10337 (misc options key invalid)Fix recorded Listed by the vendor as "Misc options key=%s is invalid in %s request.10338 (misc options value invalid)Fix recorded Listed by the vendor as "Misc options value=%s is invalid for key=%s in %s request.10339 (setting end date)Listed by the vendor as "Setting end date/time for continuous future security type is not allowed".10340 (order attribute not supported)Listed by the vendor as "The following order attribute is not supported: %s".10341 (parent order id)Listed by the vendor as "Parent order id cannot be modified".10342 (the imbalanceonly order)Listed by the vendor as "The 'ImbalanceOnly' order attribute may not be specified for this order".10343 (selling event contracts)Listed by the vendor as "Selling Event Contracts is neither allowed directly nor as an attached profit taker".10344 (price value must)Fix recorded Listed by the vendor as "Price value must be between 0.02 and 0.99 with a maximum of two decimal places".10345 (you cannot trade)Listed by the vendor as "You cannot trade a %s".10346 (market data ticker displayed elsewhere)Listed by the vendor as "Market data for %s cannot be delivered because ticker for the same financial instrument is displayed on %s".10347 (limited liquidity warning)TWS API error 10347 begins "This security has limited liquidity." The words in quotes are Interactive Brokers' own.The contract description specified for %S is ambiguous; you must specify the currencyFix recorded Interactive Brokers prints this message, in the vendor's wording, as a second row under code 203 in its TWS API error table.
HTTP 200
30 codes
Invalid order price fieldsFix recorded Web API status 200 OK, with the error message "Invalid order price fields" (the vendor's wording).no sec defs returnedFix recorded Web API status 200 OK, with an error message that begins "no sec defs returned" (the vendor's wording).null time in force is not supported for this orderFix recorded Web API status 200 OK, with the error message "null time in force is not supported for this order" (the vendor's wording).o163Fix recorded o163 is an IBKR Web API order reply message id.o354Fix recorded o354 is an IBKR Web API order reply message id.o382Fix recorded o382 is an IBKR Web API order reply message id.o383Fix recorded o383 is an IBKR Web API order reply message id.o403Fix recorded o403 is an IBKR Web API order reply message id.o451Fix recorded o451 is an IBKR Web API order reply message id.o2136Fix recorded o2136 is an IBKR Web API order reply message id.o2137Fix recorded o2137 is an IBKR Web API order reply message id.o2165Fix recorded o2165 is an IBKR Web API order reply message id.o10082Fix recorded o10082 is an IBKR Web API order reply message id.o10138Fix recorded o10138 is an IBKR Web API order reply message id.o10151Fix recorded o10151 is an IBKR Web API order reply message id.o10152Fix recorded o10152 is an IBKR Web API order reply message id.o10153Fix recorded o10153 is an IBKR Web API order reply message id.o10164Fix recorded o10164 is an IBKR Web API order reply message id.o10223Fix recorded o10223 is an IBKR Web API order reply message id.o10288Fix recorded o10288 is an IBKR Web API order reply message id.o10331Fix recorded o10331 is an IBKR Web API order reply message id.o10332Fix recorded o10332 is an IBKR Web API order reply message id.o10333Fix recorded o10333 is an IBKR Web API order reply message id.o10334Fix recorded o10334 is an IBKR Web API order reply message id.o10335Fix recorded o10335 is an IBKR Web API order reply message id.o10336Fix recorded o10336 is an IBKR Web API order reply message id.Order reject objectFix recorded On the Web API, Interactive Brokers says that an order which cannot be completed because of account details, such as trading permissions or funds, gets a 200 OK response carrying an error field that explains the issue.Order reply messageFix recorded On the Web API, an order submission can come back with status 200 OK and, instead of an acknowledgement, an object holding an id, a message, isSuppressed, messageIds and, on the error details page, messageOptions.p6Fix recorded p6 is an IBKR Web API order reply message id.p12Fix recorded p12 is an IBKR Web API order reply message id.
HTTP 400
6 codes
Bad Request ErrorFix recorded On the Client Portal Web API, Interactive Brokers says some endpoints may return a Bad Request when the JSON body is invalid, for instance when it contains carriage returns or newlines.conid or conidex is requiredFix recorded Web API status 400 BadRequest, with the error message "conid or conidex is required" (the vendor's wording).Failed to parse body as JSONFix recorded Web API status 400 BadRequest, with an error message that begins "Failed to parse body as JSON" (the vendor's wording).Invalid SideFix recorded Web API status 400 BadRequest, with the error message "Invalid Side (must be 'BUY' or 'SELL')." (the vendor's wording).orders request includes parameter with incorrect typeFix recorded Web API status 400 BadRequest, with the error message "orders request includes parameter with incorrect type" (the vendor's wording).Unknown order typeWeb API status 400 BadRequest, with the error message "Unknown order type" (the vendor's wording).
HTTP 503
2 codes
No HTTP status recorded
4 codes
Invalid SSL certificateFix recorded The Client Portal Web API gateway runs on your own premises, so Interactive Brokers says its certificate has to be created and self signed by you, or officially signed by a trusted third party.Network Error while accessing endpointsFix recorded On the Client Portal Web API, Interactive Brokers describes this for the endpoints and websockets functionality of its documentation page when used inside a web browser: Cross Origin Resource Blocking (CORB) in the browser gets in the way.The contract description specified for <Symbol> is ambiguousFix recorded Interactive Brokers prints this message, in the vendor's wording, in its TWS error table directly under code 200 and without a code number of its own.WinError 10038Interactive Brokers lists the TWS API client error WinError 10038 with the text "An operation was attempted on something that is not a socket." (the vendor's wording).
Written up at length
How to cite this
Interactive Brokers API error codes. Broker API Hub, https://openbrokerapi.com/errors/ibkr, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.