    Create a python style format comment for this method. Provide a thorough description of the code - explain the purpose of the code and its main functionality. List all arguments, return value, thrown exceptions and describe them.

An example to follow:
"""
Here goes the general description of the function.

Arguments:
    first_argument (str): The description of the first argument.
    second_argument (str): The description of the second argument.
Returns:
    Description of the return value.

Raises:
    ErrorName: Describing when is the exception thrown.

Functionality:
    1. Step by step description.
    2. What happens in the execution.
    3. And the result
"""
--- CODE ---
@staticmethod
    @timeit
    def get_floor_price_history(orderstate_history: List[Dict[str, Any]], start_timestamp: int, end_timestamp: int,
                                initial_floor: float, initial_order_hash: Optional[str] = None, is_history_reduced: Optional[bool] = True) -> List[TimePoint]:
        history = [TimePoint(timestamp=start_timestamp, value=initial_floor, event_id=initial_order_hash)]
        has_inserted = False
        active_listings_sorted = SortedDict()

        for state in orderstate_history:
            cur_state_time_from = state['time_from'].timestamp()
            cur_state_price = float(state['price'])

            if state['order_state'] == 'open':
                active_listings_sorted[(cur_state_price, state['time_to'].timestamp())] = state['order_id']
                has_inserted = True
            else:
                try:
                    active_listings_sorted.pop((cur_state_price, state['time_from'].timestamp()))
                except KeyError:
                    pass
            if len(active_listings_sorted) == 0:
                if has_inserted and is_history_reduced:
                    # subset of listings limited by price might not be sufficient
                    raise NoActiveListingsException()
                else:
                    if has_inserted and history and history[-1].value:
                        history.append(TimePoint(
                            timestamp=int(cur_state_time_from),
                            value=None,
                            event_id=None
                        ))
                    continue
            cur_top = active_listings_sorted.peekitem(0)    # (price, time_to), order_id tuple with the current floor
            cur_floor = cur_top[0][0]  # the floor price
            if (cur_floor != history[
                    -1].value if histor The response should be in all capital letters.
user