Introduction
This API call is used to retrieve the Bollinger Bands for the specified stock symbol up to the specified maximum date. The Bollinger Bands consist of the upper band, middle band, and lower band, and is a commonly used technical indicator in stock market analysis.
Endpoint
/bollinger-bands/:symbol/:maxDate/:period/:stddevParameters
- symbol (string, required) – The stock symbol for which to retrieve the Bollinger Bands.
- maxDate (date, required) – The maximum date to include in the calculation (in the format ‘yyyy-mm-dd’).
- period (integer, required) – The period to calculate Bollinger Bands over. Should be 20.
- stddev (integer, required) – The standard deviation to use when calculating Bollinger Bands. Should be 2.
Authentication
API key authentication is required to access this endpoint.
Example Call
Retrieve the Bollinger Bands for Apple Inc. up to April 23, 2023:
Error Handling
If no data comes back, please check for valid input parameters. This automatically returns one year of data from the maxDate and backwards
Example Response
{
"symbol":"AAPL",
"quotedate":"2022-04-04T00:00:00.000Z",
"upper":184.4415,
"middle":166.8345,
"lower":149.2275
}