Back to Blog

Historical stock price data is the most popular financial data in 2020. Especially for trade applications, investment platforms, and wealth management platforms are using historical stock data as an analysis of users' portfolios.

Historical stock data spares at the two way trade and real-time. Every historical stock data has some time intervals like 1-minute data to 1-day data.

Finage offering seconds and milliseconds aggregate historical stock data via API and WebSocket connection. You can use these data for downloading, excel, or CVS also you can use directly at your platform.

Where is the usage area of Historical Stock Data API in 2020


Not old like ancient cities or old books but finage can offer up to 30 years of Us Stock data as an end of day data. You can use this data for bulk downloads as in your computer excel, CSV, and more. You can also use to take statistical way to analyze specific companies and make a future estimation by connecting to dots by looking at the past.

Historical stock data creates lots of options to offer an investment solution for your customers and users. In all in one package you can access stocks, forex, and crypto historical stock data at the same time: 

You can call our historical stock data EOD with the API given below:

https://api.finage.co.uk/history?currency=EURUSD&from=2015-01-05&to=2015-01-07&apikey=YOUR_API_KEY

  • Queries
    • currency = Requested currency
    • from = Start date (YYYY-MM-dd)
    • to = End date (YYYY-MM-dd)
    • apikey = Your API key


Response

An example response is given below when you make a historical API request.

1
2
3
4
5
[
    { "symbol":"EURUSD","ask":1.19454,"bid":1.19495,"timestamp":1420416000},
    { "symbol":"EURUSD","ask":1.19318,"bid":1.19344,"timestamp":1420502400},
    { "symbol":"EURUSD","ask":1.18889,"bid":1.18907,"timestamp":1420588800}
]


Historical Stock Data API (End of Day)

It’s simple to use Finage’s end of day historical stock data API. 

If you want to get a full U.S. coverage stock data package, please contact us via E-Mail or live chat. 

https://api.finage.co.uk/history/stock/open-close?stock=AAPL&date=2005-02-03&apikey=YOUR_API_KEY

  • Queries
    • stock = Requested stock
    • date = Requested date (YYYY-MM-dd)
    • apikey = Your API key


Response

1
2
3
4
5
6
7
8
9
10
11
[
    {
        "symbol":"AAPL",
        "open":79.1,
        "high":79.43,
        "low":77.33,
        "close":77.81,
        "volume":13089041,
        "from":"2005-02-03"
    }
]


Historical All Stock Data API

With this API, you can get a very single trade with one API request.

If you want to get a full U.S. coverage stock data package, please contact us via E-Mail or live chat. 

https://api.finage.co.uk/history/stock/all?stock=AAPL&date=2005-02-03&ts=1107347400000000000&te=1107347401000

000000&limit=5&apikey=YOUR_API_KEY

  • Queries
    • stock = Requested stock
    • date = Requested date (YYYY-MM-dd)
    • ts = Timestamp Start (optional)
    • te = Timestamp End (optional)
    • limit = Limit the number of prices
    • apikey = Your API key

TS and TE queries are used to restrict content.


Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
    "results": [
        {
            "timestamp": 1107347400000000000,
            "ask": 77.6,
            "bid": 77.63,
            "bsize": 20,
            "asize": 2
        },
        {
            "timestamp": 1107347401000000000,
            "ask": 77.6,
            "bid": 78,
            "bsize": 1,
            "asize": 2
        }
  ]
]
  • Parameters
    • timestamp = SIP Unix Timestamp
    • ask = Ask price
    • bid = Bid price
    • bsize = Bid size [lots]
    • asize = Ask size [lots]


This is the examples of historical stock data usage by API and responses with finage you can get All US Stock market Historical Data over 25.000 symbols. We are also providing Forex with 1.300 symbols and Cryptocurrency over 15 years of milliseconds, seconds, minutes, and day aggregated historical data.

You can easily start to use our Historical Data API at the link given below:

Get your free Historical Stock Data API