Fetch open orders and holdings directly from Interactive Brokers. Any holdings that are present in the brokerage account but missing in the QuantConnect because those trades were place outside QuantConnect. I am trying to use below methods for getting all open orders from IB but I get this log “Brokerage connection not available. Cannot fetch IB orders.”. Below is my implementaiton for fetching the orders which were placed outside QC

def fetch_ib_order_details(self):

        brokerage = getattr(self, "Brokerage", None)
        if brokerage is None:
            self.Debug("Brokerage connection not available. Cannot fetch IB orders.")
            return

        # --- Retrieve open orders ---
        try:
            orders = brokerage.GetOpenOrders()
        except Exception as e:
            self.Debug(f"Failed to retrieve open orders from brokerage: {str(e)}")
            orders = []