For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
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?
-
@rami-ramich
you can try adding the following in your next()print('The current account value is %s' % self.broker.getvalue(self.data))
I
-
@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.