Get currency by ID

        :param id_code: set, like "R01305"
        :return: currency or None.

def get_by_id(self, id_code: str) -> Currency or None:
        """ Get currency by ID

        :param id_code: set, like "R01305"
        :return: currency or None.
        """
        try:
            return [_ for _ in self.currencies if _.id == id_code][0]
        except IndexError:
            return None