Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd
Search
Shrewd'm.com Merry shrewd investors
Search
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd


The week's question
In December 2024, in the thread "Re: BRK: Why Not XOM?", BreckHutHigh asked the members: "What about the long road trips with kids?" This week it is put to everyone again. The button below opens the small thread re-asking it - read what others have said so far, then give your own answer as an ordinary reply.
Answer this questionContinue to Shrewd'mThis note won't appear again
Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (2) |
Author: rayvt 🐝  😊 😞
Number: of 6132 
Subject: Downloading Yahoo quotes--broken again
Date: 04/20/23 5:28 PM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 4
In late April 2023 Yahoo again changed the API procedure for
downloading quotes. Sometimes the old way works, sometimes it
doesn't. Speculation is that whether it works or not depends on which
yahoo server gets your request.

The previous time, sometime around 2017, you could just download from:
Yahoo Finance: V7 Finance Quote{SYMBS}
Where SYMBS is a comma separated list of symbols.

and to get stock historical price data you had to use curl with --cookie-jar
and parse that to get the CrumbStore (crumb). Then to do the query
you have to use the cookie and append "&crumb=[the crumb]"
But now the cookie-jar is empty and it works with an empty crumb.

So they unprotected historical prices and kinda protected quote data.

To get the quotes you need a crumb.
To get the crumb you have to do "Yahoo Finance: V1 Test Getcrumb"
But to do that, you need the cookie that Yahoo gave you from before????
But doing that in a browser works, I cannot figure out yet how to get that in curl.
Now you need to append "&crumb=$crumb" to the above URL.

Most of the free places that had an API to download stock prices are
defunct or are no longer free.

Tiingo is still up and free, but does not have index data, like
yahoo's ^GSPC for S&P500 index.
Post New | Post Reply | Report Post | Recommend It!
Print the post
Members reply directly to rayvt here — and replies get answered. Reading is free; so is joining the conversation. Join Shrewd'm »
This community has written 6,115 posts about Mechanical Investing. The article-length ones it recommended most:
Dividend investing · 52 recs · 2025
Non-Mag7 screen · 34 recs · 2025
OT - Div yields and returns · 32 recs · 2024
Using AI to generate backtesting programs · 30 recs · 2025
Rankings for 19Dec2022 · 29 recs · 2022
Unthreaded | Threaded | Whole Thread (2) |


Announcements
Mechanical Investing FAQ
Contact Shrewd'm
Contact the developer of these message boards.

Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds | Open Questions | Moving a community