InteractiverBrokers get portfolio info?
hello, how to get account/portfolio information with all details from IB - any sample there?
@rami-ramich try cerebro.broker.getvalue() ?
@backtrader, i added support to select the default account
fix for ibbroker.py
that allows setting default account for portfolio information
cerebro.broker = store.getbroker(account = "U7348923")
could you please merge into branch?
you can try adding the following in your next()
print('The current account value is %s' % self.broker.getvalue(self.data))
@sylvain this will work only for 1st account, not for any other.
@rami-ramich I see your question now. After reading through the source code, I feel in your case some customized code needed to accomplish this.