Live Data/Live Trading
-
Use the link below to go the original post
Click here to see the full blog post
-
When I tried to run this algo, It returned: AttributeError: 'IBBroker' object has no attribute 'fundmode'
What could it happened? -
That was a regression bug introduced which affect the live brokers in version
1.9.57.122
(and probably1.9.56.122
)See this Community - Broker and fundmode for a solution with
stdstats=False
for cerebroOr update to the
1.9.58.122
(released today) which addresses the problem. -
Thanks for writing the very helpful post.
Look like IBBroker doesn't support get_orders_open() at https://www.backtrader.com/docu/broker.html#backtrader.brokers.BackBroker.get_orders_open
May I know is there anyway I could retrieve the open orders such as trailing stop order?
Please advise. Thank you.
-
No. And this is because such a method could fetch orders which haven't been created by the client itself. When you create them you can keep a reference to the created orders.