I am using ibpy to get the positions of my portfolio. I understand that I can do:
from ib.opt import ibConnection tws = ibConnection( host = 'localhost',port= 7496, clientId = 123) tws.reqAccountUpdates(True,'accountnumber')
and then I am supposed to use
updatePortfolio() in some way, but I don't know how.