<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pnl_in_range(self, min_pnl, max_pnl):
 """ Check if instrument pnl is within given range :Parameters: min_pnl : flaot minimum session pnl (in USD / IB currency) max_pnl : flaot maximum session pnl (in USD / IB currency) :Retruns: status : bool if pnl is within range """

        portfolio = self.get_portfolio()
        return -abs(min_pnl) < portfolio['totalPNL'] < abs(max_pnl)