Login Page - Create Account

Support Board


Date/Time: Wed, 02 Jul 2025 23:13:04 +0000



IB TWS returned data download error code 366

View Count: 836

[2021-03-22 15:24:47]
User269894 - Posts: 6
Hi Support,

I tried to download from TWS for SPI futures data at SNFE exchange, but TWS returned error code 366:

"Triggering next historical data download in queue. | 2021-03-22 02:52:34.384
No download requests in the queue to start downloads for. | 2021-03-22 02:52:34.384
Message from IB: No historical data query found for ticker id:200609. IB Error Code: 366. Request ID: 200609. | 2021-03-22 02:52:34.388
SPI-202106-SNFE-AUD-25 1 Min #1 | Reloading chart. | 2021-03-22 02:52:34.441
SPI-202106-SNFE-AUD-25 5 Min #2 | Reloading chart. | 2021-03-22 02:52:34.451
SPI-202106-SNFE-AUD-25 1 Min #1 | Currently no data in file to display. Will start historical data download and real-time updates. File: G:\SierraChart\Data\SPI-202106-SNFE-AUD-25.scid | 2021-03-22 02:52:34.456
SPI-202106-SNFE-AUD-25 5 Min #2 | Currently no data in file to display. Will start historical data download and real-time updates. File: G:\SierraChart\Data\SPI-202106-SNFE-AUD-25.scid | 2021-03-22 02:52:34.457
SPI-202106-SNFE-AUD-25 1 Min #1 | StartDateTimeForLoadingOrderFills: 2021-03-08 02:52:36 | 2021-03-22 02:52:36.442
SPI-202106-SNFE-AUD-25 5 Min #2 | StartDateTimeForLoadingOrderFills: 2021-03-08 02:52:36 | 2021-03-22 02:52:36.456
Opened cached Intraday file: G:\SierraChart\Data\SPI-202106-SNFE-AUD-25.scid. Thread ID: 8288 | 2021-03-22 02:52:38.127
Message from IB: Market data farm connection is OK:usfarm.nj. IB Error Code: 2104. Request ID: -1. | 2021-03-22 02:55:50.775
"

I submit the ticket to TWS technical support, below were reply from their support:

"
as per the API log, your API cancel the request before the data return
and you cancel time it's less than 1 sec after making the request
that's point 1
and point 2
you are request 30 secs bar, which violate the historical data limitation
I think the behaviour is normal as per the log"

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account