[docs]classOrder:def__init__(self,data:OrderResponse,client:'WTClient',auto_refresh:bool):self._OrderResponse:OrderResponse=data#: raw response data from APIself.client:'WTClient'=client#: the WTClient object that created this instanceself.auto_refresh:bool=auto_refresh#: auto_refresh toggle inherited from WTClientself.number:str=data.number#: Order numberself.broker_order_number:str=data.broker_order_number#: Broker order numberself.status:Literal["WORKING","FILLED","CANCELED","EXPIRED","REJECTED"]=data.status#: Order statusself.type:Literal["OPENING","CLOSING"]=data.type#: Order typeself.duration:Literal["GTC","DAY"]=data.duration#: Order durationself.bot:Bot=data.bot#: Bot objectself.is_paper:bool=data.is_paper#: If this is a paper orderself.symbol:str=data.symbol#: Symbol of the orderself.original_quantity:int=data.original_quantity#: Original quantity of the orderself.current_quantity:int=data.current_quantity#: Current quantity of the orderself.filled_quantity:int=data.filled_quantity#: Filled quantity of the orderself.order_price:float=data.order_price#: Order priceself.fill_price:Optional[float]=data.fill_price#: Fill priceself.broker_fee:Optional[float]=data.broker_fee#: Broker feeself.submitted_at:datetime=data.submitted_at#: Submitted atself.filled_at:Optional[datetime]=data.filled_at#: Filled atself.canceled_at:Optional[datetime]=data.canceled_at#: Canceled atself.legs:List[Leg]=data.legs#: Legs of the orderself.submissions:List[Optional[Submission]]=data.submissions#: Submissions of the orderself.fills:List[Optional[Fill]]=data.fills#: Fills of the orderdef__repr__(self)->str:returnf'<Order {self._OrderResponse}>'def__getattribute__(self,name):ifnotname.endswith('Response')andnamenotin['number','broker_order_number','bot','is_paper']andnameinself._OrderResponse.model_fieldsandself.auto_refresh:self.client.get_order(self.number)returnsuper().__getattribute__(name)