code: def check_triggers(self, price, dt):
          
          stop_reached, limit_reached, sl_stop_reached = \
              self.check_order_triggers(price)
          if (stop_reached, limit_reached) \
                  != (self.stop_reached, self.limit_reached):
              self.dt = dt
          self.stop_reached = stop_reached
          self.limit_reached = limit_reached
          if sl_stop_reached:
              # Change the STOP LIMIT order into a LIMIT order
              self.stop = None
docs: Update internal state based on price triggers and the
          trade event's price.