class_docstr: Trade keeps track of an order, its status and all its fills.
  
  Events:
      * ``statusEvent`` (trade: :class:`.Trade`)
      * ``modifyEvent`` (trade: :class:`.Trade`)
      * ``fillEvent`` (trade: :class:`.Trade`, fill: :class:`.Fill`)
      * ``commissionReportEvent`` (trade: :class:`.Trade`,
        fill: :class:`.Fill`, commissionReport: :class:`.CommissionReport`)
      * ``filledEvent`` (trade: :class:`.Trade`)
      * ``cancelEvent`` (trade: :class:`.Trade`)
      * ``cancelledEvent`` (trade: :class:`.Trade`)
class_docstr_tok: ["Trade","keeps","track","of","an","order",",","its","status","and","all","its","fills",".","Events",":","*","``","statusEvent","``","(","trade",":",":","class",":","`",".Trade","`",")","*","``","modifyEvent","``","(","trade",":",":","class",":","`",".Trade","`",")","*","``","fillEvent","``","(","trade",":",":","class",":","`",".Trade","`",",","fill",":",":","class",":","`",".Fill","`",")","*","``","commissionReportEvent","``","(","trade",":",":","class",":","`",".Trade","`",",","fill",":",":","class",":","`",".Fill","`",",","commissionReport",":",":","class",":","`",".CommissionReport","`",")","*","``","filledEvent","``","(","trade",":",":","class",":","`",".Trade","`",")","*","``","cancelEvent","``","(","trade",":",":","class",":","`",".Trade","`",")","*","``","cancelledEvent","``","(","trade",":",":","class",":","`",".Trade","`",")"]
docstr: True if eligible for execution, false otherwise.
docstr_tok: ["True","if","eligible","for","execution",",","false","otherwise","."]
code: def isActive(self) -> bool:
      """True if eligible for execution, false otherwise."""
      return self.orderStatus.status in OrderStatus.ActiveStates
  
imports: from dataclasses import dataclass, field
  from typing import ClassVar, FrozenSet, List, NamedTuple
  from eventkit import Event
  from .contract import Contract, TagValue
  from .objects import Fill, SoftDollarTier, TradeLogEntry
  from .util import UNSET_DOUBLE, UNSET_INTEGER, dataclassNonDefaults
label_desc: Use image node_id 2 for calling the Trade obj's underlying member method code with example usage: obj.isActive() and returns: unknown