This section lists all of the API Error, System and Warning message codes and their descriptions.
|
Code |
Description |
|
100 |
Max rate of messages per second has been exceeded. |
|
101 |
Max number of tickers has been reached. |
|
102 |
Duplicate ticker ID. |
|
103 |
Duplicate order ID. |
|
104 |
Can't modify a filled order. |
|
105 |
Order being modified does not match original order. |
|
106 |
Can't transmit order ID. |
|
107 |
Cannot transmit incomplete order. |
|
109 |
Price is out of the range defined by the Percent Setting at order defaults frame. The order will not be transmitted. |
|
110 |
The price does not conform to the minimum price variation for this contract. |
|
111 |
The Time in force (tif type) and the order type are incompatible. |
|
113 |
The Tif option should be set to DAY for MOC and LOC orders. |
|
114 |
Relative orders are valid for stocks only. |
|
115 |
Relative orders for US stocks can only be submitted to SMART, SMART_ECN, INSTINET, or PRIMEX. |
|
116 |
The order cannot be transmitted to a dead exchange. |
|
117 |
The block order size must be at least 50. |
|
118 |
VWAP orders must be routed through the VWAP exchange. |
|
119 |
Only VWAP orders may be placed on the VWAP exchange. |
|
120 |
It is too late to place a VWAP order for today. |
|
121 |
Invalid BD flag for the order. Check "Destination" and "BD" flag. |
|
122 |
No request tag has been found for order: |
|
123 |
No record is available for conid: |
|
124 |
No market rule is available for conid: |
|
125 |
Buy price must be the same as the best asking price. |
|
126 |
Sell price must be the same as the best bidding price. |
|
127 |
Linkage orders are not supported on this exchange. |
|
128 |
Linkage customers cannot submit non-linkage orders for options. |
|
129 |
VWAP orders must be submitted at least three minutes before the start time. |
|
131 |
The sweep-to-fill flag and display size are only valid for US stocks routed through SMART, and will be ignored. |
|
132 |
This order cannot be transmitted without a clearing account. |
|
133 |
Submit new order failed. |
|
134 |
Modify order failed. |
|
135 |
Can't find order with ID = |
|
136 |
This order cannot be cancelled. |
|
137 |
VWAP orders can only be cancelled up to three minutes before the start time. |
|
138 |
Could not parse ticker request. |
|
139 |
Parsing error: |
|
140 |
The size value should be an integer: |
|
141 |
The price value should be a double: |
|
142 |
Institutional customer account does not have account info |
|
143 |
Requested ID is not an integer number. |
|
144 |
Order size does not match total share allocation. |
|
145 |
Error in validating entry fields. |
|
146 |
Invalid trigger method. |
|
147 |
The conditional contract info is incomplete. |
|
148 |
A conditional order can only be submitted when the order type is set to limit or market. |
|
151 |
This order cannot be transmitted without a user name. |
|
152 |
The "hidden" order attribute may not be specified for this order. |
|
153 |
EFPs can only be limit orders. |
|
154 |
Orders cannot be transmitted for a halted security. |
|
155 |
A sizeOp order must have a username and account. |
|
156 |
A SizeOp order must go to IBSX |
|
157 |
An order can be EITHER Iceberg or Discretionary. Please remove either the Discretionary amount or the Display size. |
|
158 |
You must specify an offset amount or a percent offset value. |
|
159 |
The percent offset value must be between 0% and 100%. |
|
160 |
The size value cannot be zero. |
|
161 |
Cancel attempted when order is not in a cancellable state. Order permId = |
|
162 |
Historical market data Service error message. |
|
165 |
Historical market Data Service query message. |
|
166 |
HMDS Expired Contract Violation. |
|
167 |
VWAP order time must be in the future. |
|
168 |
Discretionary amount does not conform to the minimum price variation for this contract. |
|
Code |
Description |
|
200 |
No security definition has been found for the request. |
|
201 |
Order rejected - Reason: |
|
202 |
Order cancelled - Reason: |
|
203 |
The security ( ) is not available or allowed for this account. |
|
Code |
Description |
|
300 |
Can't find EId with ticker Id: |
|
301 |
Invalid ticker action: |
|
302 |
Error parsing stop ticker string |
|
303 |
Invalid action: |
|
304 |
Invalid acct. value action: |
|
305 |
Request parsing error, the request has been ignored. |
|
306 |
Error processing DDE request. |
|
307 |
Invalid request topic. |
|
308 |
Unable to create the 'API' page in TWS as the maximum number of pages already exists. |
|
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. |
|
310 |
Can't find the subscribed market depth with tickerId: |
|
311 |
The origin is invalid. |
|
312 |
The combo details are invalid. |
|
313 |
The combo details for leg '<leg number>' are invalid. |
|
314 |
Security type 'BAG' requires combo leg details. |
|
315 |
Stock combo legs are restricted to SMART order routing. |
|
316 |
Market depth data has been HALTED. Please re-subscribe. |
|
317 |
Market depth data has been RESET. Please empty deep book contents before applying any new entries. |
|
318 |
Advisors cannot modify partially filled orders. |
|
319 |
Attempt to set the server log level failed as the log level was invalid. |
|
320 |
Server error when reading an API client request. |
|
321 |
Server error when validating an API client request. |
|
322 |
Server error when processing an API client request. |
|
323 |
Server error: cause - %s |
|
324 |
Server error when reading a DDE client request - missing data. |
|
325 |
Discretionary orders are not supported for this combination of exchange and order type. |
|
326 |
Unable connect as the client id is already in use. Retry with a unique client id. |
|
327 |
Only API connections with clientId set to 0 can set the auto bind TWS orders property. |
|
328 |
Trailing stop orders can be attached to limit or stop-limit orders only. |
|
329 |
Order modify failed. Cannot change to the new order type. |
|
330 |
Only FA or STL customers can request managed accounts list. |
|
331 |
Internal error. FA or STL does not have any managed accounts. |
|
332 |
The account codes for the order profile are invalid. |
|
333 |
Invalid share allocation syntax. |
|
334 |
Invalid Good Till Date order |
|
335 |
Invalid delta: The delta must be between 0 and 100. |
|
336 |
Invalid Expiration Time. |
|
337 |
Invalid Good After Time. |
|
338 |
Good After Time Disabled. |
|
339 |
Futures spread no longer supported. |
|
340 |
Invalid improvement amount. |
|
341 |
Invalid delta. |
|
342 |
Invalid Peg. |
|
343 |
Invalid Good Till Date. |
|
344 |
The account is not a financial advisor account |
|
345 |
Invalid FA inter-market combo order. |
|
346 |
Not an institutional account. |
|
347 |
Invalid short slot value. |
|
348 |
Not a short sale. |
|
349 |
Invalid GAT inter-market combo. |
|
350 |
Invalid minimum quantity for inter-market combo. |
|
351 |
Invalid RTH only designation. |
|
352 |
Bad short slot location. |
|
353 |
Short slot location specified. |
|
354 |
Not subscribed to market data. |
|
355 |
Order size incorrect. |
|
356 |
Smart-combo OCA not supported. |
|
357 |
Your client version is out of date. |
|
358 |
Smart combo child not supported. |
|
359 |
Native combo OCA is incompatible. |
|
360 |
What- if check not supported for this Smart inter-market combo. |
|
361 |
Invalid trigger price. |
|
362 |
Invalid adjusted stop price. |
|
363 |
Invalid adjusted stop limit price. |
|
364 |
Invalid adjusted trailing amount. |
|
365 |
No scanner subscription found for ticker id: |
|
366 |
No historical data query found for ticker id: |
|
367 |
Volatility type if set must be 1 or 2 for VOL orders. |
|
368 |
Reference Price Type must be 1 or 2 for dynamic volatility management. |
|
369 |
Volatility orders are only valid for US options. |
|
370 |
Dynamic Volatility orders must be SMART routed, or trade on a Price Improvement Exchange. |
|
371 |
VOL order requires positive floating point value for volatility. |
|
372 |
Cannot set dynamic VOL attribute on non-VOL order. |
|
373 |
Can only set stock range attribute on VOL or PEGGED TO STOCK order. |
|
374 |
If both are set, the lower stock range attribute must be less than the upper stock range attribute. |
|
375 |
Stock range attributes cannot be negative. |
|
376 |
The order is not eligible for continuous update. The option must trade on a cheap-to-reroute exchange. |
|
377 |
Must specify valid delta hedge order aux. price. |
|
378 |
Delta hedge order type requires delta hedge aux. price to be specified. |
|
379 |
Delta hedge order type requires that no delta hedge aux. price be specified. |
|
380 |
This order type is not allowed for delta hedge orders. |
|
381 |
Your DDE.dll needs to be upgraded. |
|
382 |
The price specified violates the number of ticks constraint specified in the default order settings. |
|
383 |
The size specified violates the size constraint specified in the default order settings. |
|
384 |
Invalid DDE array request. |
|
385 |
Duplicate ticker ID for API scanner subscription. |
|
386 |
Duplicate ticker ID for API historical data query. |
|
387 |
Unsupported order type for this exchange and security type. |
|
388 |
Order size is smaller than the minimum requirement. |
|
389 |
Supplied routed order ID is not unique. |
|
390 |
Supplied routed order ID is invalid. |
|
391 |
Invalid date for GTD. |
|
392 |
This order is invalid since is uses an expired contract. |
|
393 |
The short slot order has not delta hedge order type. |
|
394 |
Invalid process time. |
|
395 |
Direct routed OCA error. |
|
396 |
Direct routed order type error. |
|
397 |
Region order type error. |
|
398 |
Direct routed condition error placeholder. |
|
399 |
Order message error |
|
Code |
Description |
|
400 |
Algo order error. |
|
401 |
Length restriction. |
|
402 |
Conditions are not allowed for this contract. |
|
403 |
Invalid stop price. |
|
404 |
Allowed quantity message. |
|
405 |
The child order quantity should be equivalent to the parent order size. |
|
406 |
The currency ( ) is not allowed. |
|
407 |
The symbol should contain valid non-unicode characters only. |
|
408 |
Invalid scale order increment. |
|
409 |
Invalid scale order. You must specify order component size. |
|
410 |
Invalid subsequent component size for scale order. |
|
411 |
Invalid outside RTH. |
|
412 |
The contract is not available for trading. |
|
413 |
What-if order should have the transmit flag set to true. |
|
414 |
Do not use generic ticks for snapshot market data. |
|
415 |
RFQ already sent for the conid. |
|
416 |
RFQ not applicable for the contract. Order ID: |
|
417 |
Invalid initial component size for scale order. |
|
418 |
Invalid scale order profit offset. |
|
419 |
Missing initial component size for scale order. |
|
420 |
Invalid real-time query. |
|
421 |
Invalid route. |
|
422 |
Invalid OMS component attributes. |
|
Code |
Description |
|
501 |
Already connected. |
|
502 |
Couldn't connect to TWS. Confirm that API is enabled in TWS via the Configure>API menu command. |
|
503 |
Your version of TWS is out of date and must be upgraded. |
|
504 |
Not connected. |
|
505 |
Fatal error: Unknown message id. |
|
510 |
Request market data - sending error: |
|
511 |
Cancel market data - sending error: |
|
512 |
Order - sending error: |
|
513 |
Account update request - sending error: |
|
514 |
Request for executions - sending error: |
|
515 |
Cancel order - sending error: |
|
516 |
Request open order - sending error: |
|
517 |
Unknown contract. Verify the contract details supplied. |
|
518 |
Request contract data - sending error: |
|
519 |
Request market depth - sending error: |
|
520 |
Cancel market depth - sending error: |
|
521 |
Set server log level - sending error: |
|
522 |
FA Information Request - sending error: |
|
523 |
FA Information Replace - sending error: |
|
524 |
Request Scanner subscription - sending error: |
|
525 |
Cancel Scanner subscription - sending error: |
|
526 |
Request Scanner parameter - sending error: |
|
527 |
Request Historical data - sending error: |
|
528 |
Cancel Historical data - sending error: |
|
529 |
Request real-time bar data - sending error: |
|
530 |
Cancel real-time bar data - sending error: |
|
531 |
Request Current Time - Sending error: |
|
Code |
Description |
|
1100 |
Connectivity between IB and TWS has been lost. |
|
1101 |
Connectivity between IB and TWS has been restored- data lost.* |
|
1102 |
Connectivity between IB and TWS has been restored- data maintained. |
|
1300 |
TWS socket port has been reset and this connection is being dropped. Please reconnect on the new port - <port_num> |
|
*Market and account data subscription requests must be resubmitted |
|
|
Code |
Description |
|
2100 |
New account data requested from TWS. API client has been unsubscribed from account data. |
|
2101 |
Unable to subscribe to account as the following clients are subscribed to a different account. |
|
2102 |
Unable to modify this order as it is still being processed. |
|
2103 |
A market data farm is disconnected. |
|
2104 |
A market data farm is connected. |
|
2105 |
A historical data farm is disconnected. |
|
2106 |
A historical data farm is connected. |
|
2107 |
A historical data farm connection has become inactive but should be available upon demand. |
|
2108 |
A market data farm connection has become inactive but should be available upon demand. |