Introduction
This API call is designed to provide the Relative Strength Index (RSI) for a specified stock symbol over a specified period. The RSI is a technical analysis indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions in the price of a stock or other asset. This API call takes in the stock symbol, the maximum date to include in the calculation, and the length of the period over which to calculate the RSI. The results are returned in JSON format.
Endpoint
/rsi/:symbol/:maxDate
Parameters
- symbol (string, required) – The stock symbol for which to retrieve RSI data.
- maxDate (date, required) – The maximum date to include in the calculation. Format: ‘yyyy-mm-dd’.
Examples
List of several example calls, URLs, and responses to show users how to interact with the API call. These examples should include a variety of input parameters to demonstrate the different scenarios that the API call can handle.
- https://api.deltaneutral.net/rsi/AAPL/2023-04-23?apikey=DEMOAPIKEY
- https://api.deltaneutral.net/rsi/GOOG/2023-04-23?apikey=DEMOAPIKEY
Related Calls
None
Error Handling and Hints
If no data comes back, please check for valid input parameters. In this API, RSI is always for a period of 14 and returns 1 year of data.
Example Response
{
"symbol":"AAPL",
"quotedate":
"2022-04-18T00:00:00.000Z",
"rsi_14":43.9807
}