Extracting Historical Symbol Data within Specific Dates via History API

How can I use the History API to obtain historical data for a symbol within a certain date range?

The History API is your go-to resource for retrieving historical data (referred to as 'candles') for any symbol within a designated date range.

To use this API effectively, you need to specify several parameters such as the symbol, candle resolution (e.g., '1D' for daily candles), the date format (either epoch or 'yyyy-mm-dd'), and the start and end dates for the period you're interested in. The API will respond with a dataset containing the open, high, low, close, and volume data for each candle within the specified range.