Support Board
Date/Time: Fri, 28 Mar 2025 10:55:14 +0000
Post From: Can not download intrady data with TWS
[2022-11-21 02:49:21] |
Userhl - Posts: 3 |
Hi, I using Intractive brokers, but can not download intrady data, and the messdge log is downbelow: HD Request # 12 | Message from IB: Error validating request:-'bT' : cause - Historical data query end date/time string [20221121-03:23:47] is invalid. Format is 'YYYYMMDD{SPACE}hh:mm:ss[{SPACE}TMZ]'. IB Error Code: 321. Request ID: 200004. | 2022-11-20 21:13:47.681 HD Request # 12 | Received 0 Intraday data records from 00:00:00.000000 to 00:00:00.000000 (0.0 seconds) and wrote 0 records for EUR-202212-CME | 2022-11-20 21:13:47.681 HD Request # 12 | Completion time: 0s. | 2022-11-20 21:13:47.681 HD Request # 12 | Intraday data download complete for EUR-202212-CME. Unique request ID: 12 | 2022-11-20 21:13:47.681 Removing historical data download ID 12. | 2022-11-20 21:13:47.681 Real-time Intraday chart data file updates started for EUR-202212-CME | 2022-11-20 21:13:47.681 Opened cached Intraday file: C:\SierraChart\Data\EUR-202212-CME.scid. Thread ID: 11480 | 2022-11-20 21:13:47.682 Intraday chart data file opened for EUR-202212-CME | 2022-11-20 21:13:47.682 I know the IBAPI is suck, but I think the datetime format of the request function is wrong, because I have also developed some applications using IBAPI, if you are using the same IBAPI as me,https://interactivebrokers.github.io/tws-api/classIBApi_1_1EClient.html#aad87a15294377608e59aec1d87420594 |