Robert Riches <
spamt...@jacob21819.net> wrote:
>
> As I think has been mentioned in other branches of this thread,
> Yahoo appears to have dropped reporting the Dow Jones 30. Is
> there some other symbol, perhaps an ETF, that is based on the Dow
> (perhaps scaled by some constant of proportionality) and is
> sufficient for a simple chart?
>
> By the way, as of a few days ago, the CSV historical data now
> requires fetching an HTML page and supplying a 'crumb' to
> download the CSV.
>
> Thanks.
>
You can still get csv data for the current day but that is unreliable.
If a given stock is not traded on that day you will miss an entry.
After 2017-05-12 Yahoo has delisted a number (something like 200)
stocks that were traded on on the previous Friday.
As you have noticed, to be sure of updating your stocks you
have to download the historical data. Formerly you could
specify starting/ending dates when requesting historical
data, but that is no longer true. Now, unless you use
a browser to mark MAX, you get the last 100 days of
data.
I have written a small C program to fetch the current historical
data and pull out the lines that fill in the missing data since
the last recorded trade. As another nuisance, the historical
data has changed the date form from, for example, 2017-05-15
to May 5, 2017.
With the new system you can start updating your historical
records about half an hour after the market closes. Formerly
it took five hours or more for the current (historical) data
to be made available.
You have to be careful with the current historical data:
the format sometimes changes the position between the
closing price and the actual closing price. Formerly
the data was Date, Open, High, Low, Close, Volume,
Actual Close (not considering splits). Now the
Close and Actual Close are sometimes reversed. So far this
has only happened when I used a browser to fetch the
data.
If you do use a browser you know that the URL for fetching
all the data has two "magic" numbers and does not contain
the stock symbol. If we could figure out the two magic
numbers we could fetch historical data as before the
change.
The first two magic numbers I encountered happened to
differ by 365*86,400 which is the number of seconds
in a year. I thought I was onto something but that
was just a fluke.
Thanks for responding.