def METHOD_NAME(
    self, instrument_code: str, contract_str: str
) -> list:
    order_id_list = self.get_list_of_order_ids()
    key_list = [
        self.mongo_data.get_result_dict_for_key(order_id)["key"]
        for order_id in order_id_list
    ]
    contract_strategies = [
        futuresContractStrategy.from_key(key) for key in key_list
    ]
    def _contains_both(
        futures_contract_strategy: futuresContractStrategy,
        instrument_code: str,
        contract_str: str,
    ):
        list_of_date_str = futures_contract_strategy.contract_date.list_of_date_str
        if (
            futures_contract_strategy.instrument_code == instrument_code
            and contract_str in list_of_date_str
        ):
            return True
        else:
            return False
    order_ids = [
        orderid
        for orderid, futures_contract_strategy in zip(
            order_id_list, contract_strategies
        )
        if _contains_both(
            futures_contract_strategy,
            instrument_code=instrument_code,
            contract_str=contract_str,
        )
    ]
    return order_ids