ultra1971 / backtrader_ib_insync

Async integration between backtrader and Interactive brokers.
GNU General Public License v3.0
67 stars 34 forks source link

Error 10314, reqId 4: End Date/Time: The date, time, or time-zone entered is invalid. #6

Open aaronli2k opened 1 year ago

aaronli2k commented 1 year ago

Dear,

I tried to run the example code ibdemo.py with latest IB TWS. It met with below error, anyone has any idea to solve it?

Regard Aaron

backtrader_ib_insync-main\examples> py .\ibdemo.py Using New IBstore Data added to cerebro Error 10314, reqId 4: End Date/Time: The date, time, or time-zone entered is invalid. The correct format is yyyymmdd hh:mm:ss xx/xxxx where yyyymmdd and xx/xxxx 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., contract: Contract(secType='CASH', conId=12087792, symbol='EUR', exchange='IDEALPRO', currency='USD', localSymbol='EUR.USD', tradingClass='EUR.USD') DATA NOTIF: DELAYED DATA NOTIF: LIVE

biofer76 commented 1 year ago

Same error!

ultra1971 commented 1 year ago

Fixed timezone on historical data request. Pls check again, but also use minutes or higher timeframe.