Whenever you're ready, walk me through how you'd approach this.
Given the following database + data, please build a simple API that accepts a date range and ticker(s) and returns a JSON payload with company name, ticker, date, high price, low price, and closing price grouped by day, with an optional flag to group weekly.