Introduction
This API call is used to retrieve the Average Directional Movement Index for the specified stock symbol up to the specified maximum date. The Average Directional Movement Index (ADX) is a technical analysis tool that measures the strength of a stock’s trend. It is typically used in combination with the Positive Directional Indicator (+DI) and the Negative Directional Indicator (-DI) to determine whether a stock is trending up or down.
Endpoint
/adx/:symbol/:maxDateParameters
- symbol (string, required) – The stock symbol for which to retrieve the ADX.
- maxDate (date, required) – The maximum date to include in the calculation (in the format ‘yyyy-mm-dd’).
- period (integer, required) – The period of time to be used for the calculation. Must be 14.
Authentication
API key authentication is required to access this endpoint.
Example Call
Retrieve the ADX for Microsoft Corporation 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":"MSFT",
"quotedate":"2022-04-14T00:00:00.000Z",
"adx":23.21
}