HIstorical data not getting fetched

Course Name: Automated Trading with IBridgePy using Interactive Brokers Platform, Section No: 5, Unit No: 5, Unit type: Video

 

line 31 - 

with open("configuration.txt") as f:

    script = f.read()

 

Error message: [Errno 2] No such file or directory: 'configuration.txt'

Hi Tanul,



The configuration file that you are trying to read does not exist. I think you are trying to copy the code from the video, but this "configuration.txt" file is not included anymore in the IBridgePy framework.



You must have noticed when you first download the IBridgePy file this code snippet was not there. 

with open("configuration.txt") as f:

    script = f.read()

You can also go ahead and skip this line of code. And thank you so much for bringing this to our attention. We will update this in our video too. 







Now all you need to do is RUN_ME.py file is to set the account code. 

accountCode = <your account code>

And enter the name of the python (i.e. .py file).  Like this.
fileName = 'example_show_positions.py'

These steps are mentioned in detail in Section 2, Unit 4 of Automated Trading with IBridgePy using Interactive Brokers Platform course. 

Hope this helps.
Thanks