Quick Start

The Technical Indicator API is available under ‘All World Extended’ and ‘All-In-One’ data packages. Each Technical API request consumes 5 API calls. To get technical indicators data for every equity we have in our data set, use the following URL:

https://eodhistoricaldata.com/api/technical/AAPL.US?api_token=YOUR_API_KEY&order=d&fmt=json&from=2017-08-01&to=2020-01-01&function=sma&period=50

  • AAPL.US consists of two parts: {SYMBOL_NAME}.{EXCHANGE_ID}, then you can use, for example, AAPL.MX for Mexican Stock Exchange. or AAPL.US for NASDAQ. Check the list of supported exchanges to get more information about stock markets we do support.
  • api_token – your own API KEY, which you will get after you subscribe to our services.
  • function – the function that will be applied to data series to get technical indicator data. The list of possible functions with additional parameters you get below.
  • period – the number of data points used to calculate each moving average value. Valid range from 2 to 100000 with the default value – 50.
  • from and to – you can use these parameters with format ‘YYYY-MM-DD’. For example, if you need to get data only from Jan 5, 2017 to Feb 10, 2017, you need to use from=2017-01-05 and to=2017-02-10.
  • order – use ‘a’ for ascending dates (from old to new) and ‘d’ for descending dates (from new to old). By default, dates are shown in descending order.
  • fmt – the output format, could be ‘json’ for JSON and ‘csv’ for CSV output. The default value is ‘json’.

Register & Get Data

An example of output for SMA function for AAPL

Technical Indicator Functions

For all functions you can use the following parameters as described above: to, from, order and fmt. In addition, you should use function parameter, we described the specific usage for each function below.

Split Adjusted Data

It’s not a technical indicator itself, but we added this function to our API. By default Open, High, Low and Close values (OHLC) we provide in raw values and adjust neither for splits nor for dividends. While ‘adjusted_close’ values are adjusted both to splits and dividends. However, if you need only split-adjusted closes, you can use this function to get the desired time series.

API Parameters

function [required] – splitadjusted.

Average Volume (avgvol)

This function returns the Average Trading Volume. The average volume of a security over a longer period of time is the total amount traded in that period, divided by the length of the period.

API Parameters

  • function [required] – avgvol.
  • period [optional] – the number of data points used to calculate each average trading volume value. Valid range from 2 to 100000 with the default value – 50.

SMA (sma)

This function returns the Simple Moving Average indicator. More information on Wikipedia SMA article.

API Parameters

  • function [required] – sma.
  • period [optional] – the number of data points used to calculate each simple moving average value. Valid range from 2 to 100000 with the default value – 50.

EMA (ema)

This function returns the Exponential Moving Average indicator. More information on Wikipedia EMA article.

API Parameters

  • function [required] – ema.
  • period [optional] – the number of data points used to calculate each exponential moving average value. Valid range from 2 to 100000 with the default value – 50.

WMA (wma)

This function returns the Weighted Moving Average technical indicator. More information on Wikipedia WMA article.

API Parameters

  • function [required] – wma.
  • period [optional] – the number of data points used to calculate each weighted moving average value. Valid range from 2 to 100000 with the default value – 50.

Relative Strength Index (rsi)

This function returns the Relative Strength Index (RSI) technical indicator. More information on Wikipedia RSI article.

API PArameters

  • function [required] – rsi.
  • period [optional] – the number of data points used to calculate each relative strength index value. Valid range from 2 to 100000 with the default value – 50.

Register & Get Data

Important Notes

Please note that each API request for Technical API consumes 5 API calls. We are also open to any feedback and ready to add any function you are interested in our Technical API. Just send us an email to support@eodhistoricaldata.com.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.