Closed EngAhmedElkady closed 1 year ago
when try to return pnl , give me this Daily PnL: [PnL(account='my account number', modelCode='', dailyPnL=nan, unrealizedPnL=nan, realizedPnL=nan)]
why the dailyPnl is nan, this is code pnl = self.ib.pnl()
Call this method first:
https://ib-insync.readthedocs.io/api.html#ib_insync.ib.IB.reqPnL
when try to return pnl , give me this Daily PnL: [PnL(account='my account number', modelCode='', dailyPnL=nan, unrealizedPnL=nan, realizedPnL=nan)]
why the dailyPnl is nan, this is code pnl = self.ib.pnl()