Introduction

This API call is used to retrieve the Moving Average Convergence Divergence (MACD) index for the specified stock symbol up to the specified maximum date. The MACD index consists of the fast line, slow line, and signal line, and is a commonly used technical indicator in stock market analysis.

Endpoint

/macd/:symbol/:maxDate

Parameters

  • symbol (string, required) – The stock symbol for which to retrieve the MACD index.
  • maxDate (date, required) – The maximum date to include in the calculation (in the format ‘yyyy-mm-dd’).

Authentication

API key authentication is required to access this endpoint.

Example Call

Retrieve the MACD index 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-19T00:00:00.000Z",
        "fastline":-0.0599,
        "slowline":-1.068,
        "signalline":1.0081
    }