You are given a list of timestamped prices represented as pairs of [time, price]. Your task is to generate candlestick data for fixed intervals of 10 time units. For each interval, produce a candlestick with the following information:
- Start Time: The beginning of the interval (round down the time to the nearest multiple of 10).
- Maximum Price: The highest price recorded within the interval.
- Minimum Price: The lowest price within the interval.
- Opening Price: The price corresponding to the earliest time in the interval.
- Closing Price: The price corresponding to the latest time in the interval.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected