Simple Moving Average

Simple Moving Average Web API Documentation

A simple moving average (SMA) adds recent prices for a specified period and divides the total by that same number of periods. SMA is typically used to indicate whether a security is in an uptrend or downtrend and can also be combined with a long-term moving average to improve the signal`s abilities.

Endpoint:
https://api-v2.intrinio.com/securities/{identifier}/prices/technicals/sma

Parameters

Name Description Example
identifier
* required
A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) AAPL
period
The number of observations, per period, to calculate Simple Moving Average 20
price_key
The Stock Price field to use when calculating Simple Moving Average
Options:
open
high
low
close
volume
show more show less
close
start_date
Return technical indicator values on or after the date 2018-01-01
end_date
Return technical indicator values on or before the date 2019-01-01
page_size
The number of results to return 100
next_page
Gets the next page of data from a previous API call -
identifier
* required
A Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID)
period
* required
The number of observations, per period, to calculate Simple Moving Average
price_key
* required
The Stock Price field to use when calculating Simple Moving Average
start_date
* required
Return technical indicator values on or after the date
end_date
* required
Return technical indicator values on or before the date
page_size
* required
The number of results to return
next_page
* required
Gets the next page of data from a previous API call

Output Fields

Name Description Type
technicals
array
date_time
The date_time of the observation string
sma
The Simple Moving Average calculation value number
indicator
The name and symbol of the technical indicator object
name
The name of the Technical Indicator string
symbol
The symbol of the Technical Indicator string
security
The Security of the Stock Price object
id
The Intrinio ID for Security string
company_id
The Intrinio ID for the Company for which the Security is issued string
name
The name of the Security string
code
A 2-3 digit code classifying the Security (reference) string
currency
The currency in which the Security is traded on the exchange string
ticker
The common/local ticker of the Security string
composite_ticker
The country-composite ticker of the Security string
figi
The OpenFIGI identifier string
composite_figi
The country-composite OpenFIGI identifier string
share_class_figi
The global-composite OpenFIGI identifier string
primary_listing
If true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange boolean
next_page The token required to request the next page of the data. If null, no further results are available. string
technicals
indicator
The name and symbol of the technical indicator
security
The Security of the Stock Price
next_page
The token required to request the next page of the data. If null, no further results are available.