Home Scrape historical stock data using MATLAB
Reply: 0

Scrape historical stock data using MATLAB

user835
1#
user835 Published in May 24, 2018, 11:26 pm

What's the easiest way of scraping historical stock prices in an easy-to-use format using MATLAB? For Yahoo, the following URL works only when I manually click the download link button.

symbol = FANG
url = ['https://query1.finance.yahoo.com/v7/finance/download/'...
    symbol '?period1=1523854870&period2=1526446870&interval=1d&events=history&crumb=edOIX0.EyGl'];
websave('data.csv',url);

Error using websave (line 103)
The server returned the message: "Unauthorized" for URL,
'https://query1.finance.yahoo.com/v7/finance/download/FANG?period1=1523854870&period2=1526446870&interval=1d&events=history&crumb=edOIX0.EyGl'
(with HTTP response code 401).

Most of the solutions for scrapping data from Google is out of data after they changed their API.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.320594 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO