ultra1971 / backtrader_ib_insync

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

Question on rtbar.open_ #5

Closed silsesquioxane closed 1 year ago

silsesquioxane commented 1 year ago

Greatly appreciate the efforts in building the ib_insync capability into backtrader. Have a small question on the following line of code under ibdata.py line 673:

AttributeError:`
            self.lines.open[0] = rtbar.open_

I do not recall bar having the property .open_. Is there a reason why you have inserted this exception?

ultra1971 commented 1 year ago

Forget about it, bad documenting practice from my side. I spent some time reviewing why but I dont find a reason. May be a IBKR contract with this attribute ?

Thanks to take your time in asking this in particular.

silsesquioxane commented 1 year ago

Thank you so much for the reply! I'm confident your code has already helped many of us 👍🏻