docstr: Update internal state based on price triggers and the
  trade event's price.
docstr_tok: ["Update","internal","state","based","on","price","triggers","and","the","trade","event","'s","price","."]
code: def check_triggers(self, price, dt):
      """
      Update internal state based on price triggers and the
      trade event's price.
      """
      (
          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
  
imports: import math
  import uuid
  from six import text_type
  import catalyst.protocol
  from catalyst.assets import Asset
  from catalyst.utils.enum import enum
  from catalyst.utils.input_validation import expect_types
label_desc: Use image node_id 6 for calling the Order obj's underlying member method code with example usage: obj.check_triggers(price, dt) without return types