IB TWS Plugin Error 2174 on connecting

I am getting the error message 2174 from TWS/API when Amibroker connects to IB TWS (V 10.19.1g) - complaining about time zone (date-time attributes) in requests. Not sure if this is from the last upgrade of TWS. I only update stable version of TWS. AB still gets the quotes to update charts - but I am wondering if this will eventually stop working.
AB Version: 6.40.4 64bit
IB Plugin Version: 2.11.0

Is it possible to increase the display time of the error message?

@Ge55S, FWIW, I'm using the following version and everything seems to work as expected (no unexpected error messages):

Build 10.20.1c, Nov 11, 2022 3:52:25 PM
Jolt Build 1.18.9, Jul 5, 2022 05:27:19 PM
Nia Build 2.24.2, Jan 17, 2022 05:48:10
PM ModelNav Build 1.13.2, Jan 24, 2022 04:59:21
PM Riskfeed Build 2.45.3, Jul 25, 2022 06:42:42 PM

But I tested it with older versions of the IB plugin (2.10 or 2.08)

Thank you. It happens consistently with 64bit and 32bit versions of Amibroker.

My TWS version:
Build 10.19.1g, Nov 15, 2022 2:39:03 PM
Jolt Build 1.18.9, Jul 5, 2022 05:27:19 PM
Nia Build 2.24.2, Jan 17, 2022 05:48:10 PM
ModelNav Build 1.13.2, Jan 24, 2022 04:59:21 PM
Riskfeed Build 2.45.3, Jul 25, 2022 06:42:42 PM

I will try older versions of the plugin to see if it makes a difference.

Error Msg: (seems to be truncated, as the last line is incomplete).
Error 2174: You submitted request with date-time attributes without explicit time zone. Please switch to use yyyymmdd-hh:mm:ss in UTC or use instrument timezone, like US/Eastern. Implied time zone functionally will be removed in the 6CONN

Do you really mean the plugin? Plugin does not place the orders.
You probably mean IBController, not plugin.
Just add the time zone to your time strings in PlaceOrder, like UTC at the end.

I do mean the plugin. I am not placing orders via the API. This Plugin Status error message appears as soon as Amibroker connects to TWS for realtime quotes. First message from TWS is Connected Okay to data farm. Error 2174 appears immediately thereafter. Is there anyway of I can log the messages from TWS? Or increase the display time?

Message 2174 IS NOT AN ERROR.

Of course they "forgot" to document it:
https://interactivebrokers.github.io/tws-api/message_codes.html

but everything in the range 2000-2999 is INFORMATIONAL message, not an error. You can just ignore it.

For example they send 2105 after some inactivity time. The message says it closed connection but this connection will be re-open on next request.

Thank you for the clarification. Thankfully it appears only once when the plug-in connects initially.

No worry about it. In case somebody would like to know what this warning 2174 is about to get rid of it, here's the complete message:

2174 : Warning: You submitted request with date-time attributes without explicit time zone. Please switch to use yyyymmdd-hh:mm:ss in UTC or use instrument time zone, like US/Eastern. Implied time zone functionality will be removed in the next API release

Another similar one you could meet if you ever use IBController:

10314 : End Date/Time: 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 US/Eastern Note that there is a space between the date and time, and between the time and time-zone. If no date is specified, current date is assumed. If no time-zone is specified, local time-zone is assumed(deprecated). You can also provide yyyymmddd-hh:mm:ss time is in UTC. Note that there is a dash between the date and time in UTC notation.

10314 is an error. note the difference between both formats is the '-' (and timezone after...)
Cheers.

2 Likes

I was okay with the warning Msg 2174, but with the recent update to: Build 10.19.1i, Dec 13, 2022 (I use only the stable version of TWS), the behavior has changed. Now the error message persists instead of displaying once with Message Count increasing to 50, 60 and so on. Backfill function no longer works with AB saying that Backfill timeout due to IB throttling. I will attempt to go back to older TWS version and the latest version too, as this is no longer usable for intraday charting . The pop up cycles between Msg 2174 & Backfill timeout & Retry. Chart updates from the time of connection.

Hi @beppe
i noticed you're using IB Gateway,
would you mind let us know,
whether you are succeed getting IB Forex real time data.
i didn't get some of my forex data since 01-Sep-2023.
Thank You.

i'm using amibroker 6.30 (64bit)
with latest IB gateway 10.19

(just downloaded and install, since gateway 981 is no longer work/connected).

981

already replace IB Plugin with 2.0.9 as well,
209

( try to replace the IB Plugin with 2.0.10 or 11, but it won't show up in
amibroker , the best i can get is ver 2.0.9)
https://www.amibroker.com/bin/ib211x64/IB.dll
https://www.amibroker.com/bin/ib210x64/IB.dll

@ab-ami, I do not trade forex with real time data.

Anyway, FWIW, today I launched the latest IB gateway

image

Connected AB 6.43.1 with IB Plugin 2.11 and tried to get some forex quotations.
I saw this IB Gateway message:

I then changed this IB Gateway setting:

image

and then I was able to backfill the requested currency pairs data.

I don't know if this also affects live data but you could give it a try.

1 Like

Hi @beppe

your solution work perfectly
you saved my life

Thank You so much :pray: :pray: :pray:

1 Like