Chart Market Stock Data API


OVERVIEW
This endpoint provides access to historical prices that can be used to create charts. It's updated every day and can go back 15 years in time. You can also get a more than one stock with a single request, for example: historical-price-full/AAPL,FB. If you want to get prices for indexes like Dow Jones or Nasdaq, take a look our index historical prices endpoint.

Check out our quote endpoint if you're looking for real-time prices.

Query String Parameters
to : YYYY-MM-DD
from : YYYY-MM-DD
timeseries : Number (return last x days)
serietype : line | bar

Chart Market Stock Data API


OVERVIEW
This endpoint provides access to historical prices that can be used to create charts. It's updated every day and can go back 15 years in time. You can also get a more than one stock with a single request, for example: historical-price-full/AAPL,FB. If you want to get prices for indexes like Dow Jones or Nasdaq, take a look our index historical prices endpoint.

Check out our quote endpoint if you're looking for real-time prices.

Query String Parameters
to : YYYY-MM-DD
from : YYYY-MM-DD
timeseries : Number (return last x days)
serietype : line | bar

Chart Market Stock Data

https://financialmodelingprep.com/api/v3/historical-price-full/AAPL?apikey=YOUR_API_KEY

curl https://financialmodelingprep.com/api/v3/historical-price-full/AAPL
{
  "symbol" : "AAPL",
  "historical" : [ {
      "date" : "2021-10-08",
      "open" : 144.03,
      "high" : 144.17,
      "low" : 142.56,
      "close" : 142.9,
      "adjClose" : 142.9,
      "volume" : 5.545036E7,
      "unadjustedVolume" : 5.545036E7,
      "change" : -1.13,
      "changePercent" : -0.785,
      "vwap" : 143.21,
      "label" : "October 08, 21",
      "changeOverTime" : -0.00785
    }, {
      "date" : "2021-10-07",
      "open" : 143.06,
      "high" : 144.215,
      "low" : 142.73,
      "close" : 143.29,
      "adjClose" : 143.29,
      "volume" : 6.1863761E7,
      "unadjustedVolume" : 6.1863761E7,
      "change" : 0.23,
      "changePercent" : 0.161,
      "vwap" : 143.41167,
      "label" : "October 07, 21",
      "changeOverTime" : 0.00161
    }, ...
  } ]
}

CHART_MARKET_STOCK_DATA_WITH JAVA


URL url = new URL("https://financialmodelingprep.com/api/v3/historical-price-full/AAPL?apikey=YOUR_API_KEY");

try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"))) {
    for (String line; (line = reader.readLine()) != null;) {
    System.out.println(line);
  }
}
Resource List :