MATLAB Stock API Example

MatLab Stock API Example

It’s easy to use our API with MatLab, below you can find a very simple example with explanations for MatLab users. url = ‘http://eodhistoricaldata.com/api/table.csv?s=AAPL.US&api_token=YOUR_API_KEY&a=0&b=1&c=2000&d=5&e=16&f=2017&g=d’; [s,status] = urlread(url,’Timeout’,60); C = textscan(s, ‘%s%f%f%f%f%f%f’, ‘HeaderLines’, 1, ‘delimiter’, ‘,’, ‘CollectOutput’, 0); disp(C) For testing purposes you can use this API Key: api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX. Works with AAPL.US only. As you see, it’s easy […]

Read More

Stock Price Data API (End-Of-Day)

Quick Start To get historical stock price data with use the following URL https://eodhistoricaldata.com/api/eod/AAPL.US?api_token={your_api_key} AAPL.US consists of two parts: {SYMBOL_NAME}.{EXCHANGE_ID}, then you can use, for example, AAPL.MX for Mexican Stock Exchange. or AAPL.US for NASDAQ. Check the list of supported exchanges to get more information about stock markets we do support. api_token – your own API KEY, […]

Read More