FMP

FMP

Enter

Simple Moving Average API

The FMP SMA endpoint provides the simple moving average of a security's closing price over a specified period of time.

About Simple Moving Average API

The FMP SMA endpoint provides the simple moving average of a security's closing price over a specified period of time. SMAs are calculated by adding the closing prices of a security over a specified period of time and then dividing that figure by the number of periods. SMAs can also be used to identify support and resistance levels. Support levels are prices at which the stock price is likely to find support, while resistance levels are prices at which the stock price is likely to face resistance. The FMP SMA endpoint is a valuable tool for investors who need to:
  • Identify trends in a security's price
  • Identify support and resistance levels
  • Develop trading strategies based on technical analysis
  • How it works

    How-it-works Signup

    Get Started: Sign Up Today!

    Begin your data journey by signing up and accessing our API endpoints. Get instant access to a vast array of financial data to power your applications and analyses.

    How-it-works Free plan

    Dive into Data: Free Plan Access

    Explore our free data plan and access a wide range of financial data through our API endpoints. Start integrating real-time data into your applications and projects.

    How-it-works Upgrade-Premium

    Unlock Premium Data: Upgrade Now!

    Upgrade to our premium plan for exclusive access to advanced financial datasets via our API endpoints. Take your analyses to the next level and gain a competitive edge in the market.

    Related Simple Moving Average APIs

    link-image
    Double EMA

    The FMP DEMA endpoint provides the double exponential moving average of a security's closing price over a specified period of time. Read more

    link-image
    Williams

    The FMP Williams endpoint provides the Williams %R indicator for a security over a specified period of time. Read more

    link-image
    Weighted Moving Average

    The FMP WMA endpoint provides the weighted moving average of a security's closing price over a specified period of time. Read more

    link-image
    Technical Indicators Daily

    Daily technical indicators such as the SMA, EMA, and RSI are available, all options are displayed below. Use them to make advanced charts that will assist you in analyzing price changes or trading. Read more

    link-image
    Triple EMA

    The FMP TEMA endpoint provides the triple exponential moving average of a security's closing price over a specified period of time. Read more

    Simple Moving Average API FAQs

    How do you calculate the Exponential Moving Average (EMA) data on the Technical Indicators endpoint?

    For the Exponential Moving Average (EMA), the period calculates the ema over the 13 most recent daily intervals. It aligns with the indicator period. For example, if you used the daily technical indicator and set the period to 13, it would calculate EMA using data from the last 13 days.

    What does the “period=” parameter mean on the Technical Indicator endpoints?

    The “period=” parameter is a period for the type, for example, “sma” is a simple moving average, so if the period is 20 (period=20), it will be on the last 20 candles like the last 20 periods.

    Which Exponential Moving Average (EMA) do you use?

    The "EMA" corresponds to the period you set for the technical indicator.

    Is the Intraday price adjusted?

    Yes, the intraday data is adjusted for split.

    How can I retrieve historical intraday price data for more than 1 month?

    To retrieve historical intraday price data for more than 1 month, you will need to implement a loop that iterates over day intervals covering the entire desired time range. This approach ensures a suitable response speed for the data being returned. For example, if you require more than 1 month of 30-minute data, you can make queries over day intervals to cover the entire desired time range. Here is an example link for retrieving 1-minute data: https://financialmodelingprep.com/api/v3/historical-chart/1min/AAPL?from=2024-12-04&to=2024-12-06&apikey=YOUR-API-KEY

    Where can I find information on using weekly or monthly resolutions for historical chart data?

    You can find information on using weekly or monthly resolutions for historical chart data in the Intraday chart API documentation. Visit the following link for more details: https://site.financialmodelingprep.com/developer/docs#chart-intraday

    Does the intraday historical market cover pre-market and after hours?

    Yes, the historical market data for pre-market and post-market data can be found here https://financialmodelingprep.com/api/v4/historical-price/AAPL/1/minute/2021-06-11/2021-06-11?apikey=your_api_key or https://financialmodelingprep.com/api/v3/historical-chart/1min/AAPL?from=2021-06-11&to=2021-06-11&extended=true&apikey=your_api_key

    Unlock Premium Financial Insights Today!

    Join Financial Modeling Prep now to access real-time data, in-depth analysis, and personalized insights tailored to your financial goals. Stay ahead of the game and make informed decisions with our comprehensive tools and dedicated support. Sign up today and take the first step towards financial success!

    Start Your Journey Now!
    FMP

    FMP

    Financial Modeling Prep API provides real time stock price, company financial statements, major index prices, stock historical data, forex real time rate and cryptocurrencies. Financial Modeling Prep stock price API is in real time, the company reports can be found in quarter or annual format, and goes back 30 years in history.
    twitterlinkedin
    2017-2025 © Financial Modeling Prep