Stock Indicators API Reference.

Getting Started

All indicators follow a base URL format. Remember, you must be subscribed to this service in the Azure Data Market before you can use it.

https://api.datamarket.azure.com/InnovativeEdgeGroup/StockIndicators/v1/{indicatorName}?symbol={symbol}

Example: https://api.datamarket.azure.com/InnovativeEdgeGroup/StockIndicators/v1/GetMACDByDuration?symbol=MSFT

Determine the Indicator Name By Time Period

Once you have an indicator and a symbol, you need to select a time period for that indicator. Each indicator may be invoked by duration, date range or year-to-date. Below is a list of the available indicators, indicator names (based on time period) and an example URL.

Available Indicators

Indicator IndicatorName Example
Bollinger Bands GetBollingerBandsByDuration
GetBollingerBandsByDateRange
GetBollingerBandsByYearToDate
/GetBollingerBandsByDuration?symbol=MSFT
/GetBollingerBandsByDateRange?symbol=MSFT
/GetBollingerBandsByYearToDate?symbol=MSFT
CCI GetCCIByDuration
GetCCIByDateRange
GetCCIByYearToDate
/GetCCIByDuration?symbol=MSFT
/GetCCIByDateRange?symbol=MSFT
/GetCCIByYearToDate?symbol=MSFT
Fast Stochastic GetFastStochasticByDuration
GetFastStochasticByDateRange
GetFastStochasticByYearToDate
/GetFastStochasticByDuration?symbol=MSFT
/GetFastStochasticByDateRange?symbol=MSFT
/GetFastStochasticByYearToDate?symbol=MSFT
MACD GetMACDByDuration
GetMACDByDateRange
GetMACDByYearToDate
/GetMACDByDuration?symbol=MSFT
/GetMACDByDateRange?symbol=MSFT
/GetMACDByYearToDate?symbol=MSFT
MFI GetMFIByDuration
GetMFIByDateRange
GetMFIByYearToDate
/GetMFIByDuration?symbol=MSFT
/GetMFIByDateRange?symbol=MSFT
/GetMFIByYearToDate?symbol=MSFT
MovingAverage GetMovingAverageByDuration
GetMovingAverageByDateRange
GetMovingAverageByYearToDate
/GetMovingAverageByDuration?symbol=MSFT
/GetMovingAverageByDateRange?symbol=MSFT
/GetMovingAverageByYearToDate?symbol=MSFT
RSI GetRSIByDuration
GetRSIByDateRange
GetRSIByYearToDate
/GetRSIByDuration?symbol=MSFT
/GetRSIByDateRange?symbol=MSFT
/GetRSIByYearToDate?symbol=MSFT
Slow Stochastic GetSlowStochasticByDuration
GetSlowStochasticByDateRange
GetSlowStochasticByYearToDate
/GetSlowStochasticByDuration?symbol=MSFT
/GetSlowStochasticByDateRange?symbol=MSFT
/GetSlowStochasticByYearToDate?symbol=MSFT

Time Period Parameters

Duration

A duration will always start with the most recent time period and go back according to the duration specified.

/{indicatorName}?symbol={symbol}&duration={duration}&unit={unit}

Duration requires two values. The duration parameter is an integer and the unit parameter is the type. You can select year, month or day.

Duration Unit Value Description Example
y year /GetMFIByDuration?symbol=MSFT&duration=5&unit=y
m month /GetMFIByDuration?symbol=MSFT&duration=1&unit=m
d day /GetMFIByDuration?symbol=MSFT&duration=15&unit=d

Date Range

The date format must be mm-dd-yyyy

/{indicatorName}?symbol={symbol}&startDate={startDate}&endDate={endDate}

Example: /GetMFIByDateRange?symbol=MSFT&startDate=1-1-2012&endDate=6-1-2012

Indicator Parameters

Each indicator requires unique parameters.  They should also be added as name/value pairs at the end of your request.

Bollinger Bands

Example: /GetBollingerBandsByDuration?symbol=MSFT&duration=1&unit=y&period=20&deviation=2

Parameter Data Type
Period Int32
Deviation Int32

CCI

Example: /GetCCIByDuration?symbol=MSFT&duration=1&unit=y&period=14

Parameter Data Type
Period Int32

Fast Stochastic

Example: /GetFastStochasticByDuration?symbol=MSFT&duration=1&unit=y&k=12&d=3

Parameter Data Type
K Int32
D Int32

MACD

Example: /GetMACDByDuration?symbol=MSFT&duration=1&unit=y&slow=26&fast=12&signal=9

Parameter Data Type
Slow Int32
Fast Int32
Signal Int32

MFI

Example: /GetMFIByDuration?symbol=MSFT&duration=1&unit=y&period=15

Parameter Data Type
Period Int32

Moving Average

Example: /GetMovingAverageByDuration?symbol=MSFT&duration=1&unit=y&period=20&type=Simple

Parameter Data Type
Period Int32
Type Enum [Simple,Exponential]

RSI

Example: /GetRSIByDuration?symbol=MSFT&duration=1&unit=y&period=15

Parameter Data Type
Period Int32

Slow Stochastic

Example: /GetSlowStochasticByDuration?symbol=MSFT&duration=1&unit=y&k=12&d=3

Parameter Data Type
K Int32
D Int32