Rod-Persky / investoscope-easy-update

Updates Investoscope 3 end of day quotes
GNU General Public License v3.0
6 stars 3 forks source link

Current date Close price and Volume not uploading correctly #18

Open Henry-Walpole opened 4 years ago

Henry-Walpole commented 4 years ago

I've noticed when using this utility that the current days closing price and volume (and sometimes other fields) for the current date do not match what is showing on Yahoo.

For example https://finance.yahoo.com/quote/SDRY.L/history shows:

Screen Shot 2019-12-11 at 19 45 54

If after running Investoscope-easy-update I look at the historical quote data loaded to Investoscope I see the following:

Screen Shot 2019-12-11 at 19 47 28

It can be seen that for current date (in this case 11-Dec-19) the Close, Volume and Low figures in Investoscope do not match what is showing on Yahoo. The High and Open figures are correct. For all other dates the data is correct.

I have checked with several stocks and they all seem to exhibit this problem.

I ran the updater around 19:45 long after the market had closed, however I have run the updater a couple of times during the day so perhaps this is some issue where an earlier update is not being refreshed?

Henry-Walpole commented 4 years ago

Actually it looks like only one update per day is allowed (via function check_item_outdate)? So in my case the run I did during the day captured the price and volume at that point but for today's end of day price and volume I will need to run it again tomorrow. Best to run it once per day after the market closes. I'm guessing this restriction was put in to avoid hitting Yahoo too heavily?