Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 06:12:54 +0000



Post From: Sierra needs to handle IB pacing violations more gracefully

[2016-07-05 09:53:17]
Jagui - Posts: 19 Invalid SC Account Name.
Ok... but the error is still happening:

=> see attached log file "log1.txt".

What it's strange is that the error happens only if there are more than one historical chart in a chart book.
The first historical chart gets correctly updated:

HD Request # 2 | Downloading Historical Daily chart data for IBUS30-CFD-SMART-USD-BAAVG. Starting date: 2016-07-01. Service: ib | 2016-07-05 11:35:24
HD Request # 2 | Requesting 14 days of historical Daily data for IBUS30-CFD-SMART-USD with end date 2016-07-15 | 2016-07-05 11:35:24
HD Request # 2 | Processing historical data message from TWS | 2016-07-05 11:35:26
HD Request # 2 | Receiving historical Daily data for IBUS30-CFD-SMART-USD-BAAVG starting at 2016-07-01 | 2016-07-05 11:35:26
HD Request # 2 | Writing historical Daily data to the file IBUS30-CFD-SMART-USD-BAAVG.dly | 2016-07-05 11:35:26
HD Request # 2 | Received 6 records and wrote 2 records from 2016-06-27 00:00:00 to 2016-07-05 00:00:00. | 2016-07-05 11:35:26
HD Request # 2 | Received 6 records from 2016-07-01 00:00:00 to 2016-07-05 00:00:00 (5.0 days) and wrote 2 records for IBUS30-CFD-SMART-USD-BAAVG | 2016-07-05 11:35:26
HD Request # 2 | Daily download COMPLETE for IBUS30-CFD-SMART-USD-BAAVG. Completion time: 1s. Unique request ID: 1 | 2016-07-05 11:35:26
Removed historical data download ID 1 | 2016-07-05 11:35:26

Then the second chart generates the error:

HD Request # 3 | Downloading Historical Daily chart data for IBDE30-CFD-SMART-EUR-BAAVG. Starting date: 2016-07-04. Service: ib | 2016-07-05 11:35:26
HD Request # 3 | Requesting 11 days of historical Daily data for IBDE30-CFD-SMART-EUR with end date 2016-07-15 | 2016-07-05 11:35:26
Message from IB: Error reading request:Message type 10. Unable to parse data. java.lang.NumberFormatException: For input string: "CFD". IB Error Code: 320. Request ID: 10. | 2016-07-05 11:35:26
Socket (4) | Closed. No error. | 2016-07-05 11:35:26

and the updating stops, without any retry.

If there is only one historical chart in the chartbook, no error is generated => see attached log file "log2.txt".

This makes me think that SC make a correct call to IB to retrieve historical data for the first chart and then, for whatever reason, the call for the second chart is incorrect... it might be just a wrong handling of a variabile into a cycle... just guessing, sorry if I do... only try to help.
Date Time Of Last Edit: 2016-07-05 09:54:37
attachmentlog1.txt - Attached On 2016-07-05 09:47:01 UTC - Size: 16.44 KB - 761 views
attachmentlog2.txt - Attached On 2016-07-05 09:47:04 UTC - Size: 7.13 KB - 322 views