Bad Data loaded from yahoo for app chart and also for yahoo chart - yahoo-finance

I have an app I bought that used yahoo stock data. It works fine for most tickers except ^ndx. It has a jump in the data at 01/09/12- 01/10/12 that is false from there backwards, ie, the prices displayed are all way too high compared to the correct data.
Same thing when I use the same symbol directly in yahoo chart! But the historical data downloaded from yahoo is correct!
I have talked to the developer of the app, and he says he does NOT have this problem. He uses the IOS data from Yahoo for his app.
What can account for these conflicting results.
Oh, and if I bring up a fresh copy of the app, or after it has been sitting there for a time, the data for the same ticker looks good!! But the yahoo chart is always bad.

Look at this:
http://ichart.finance.yahoo.com/b?s=%5endx
%5E is a caret encoded.

Related

IMPORTHTML-function in Google Sheets pulls wrong data

I am trying to scrape the current gas prices in a German city by using the IMPORTHTML-function in Google Sheets. The function seems to work, at least the data is being imported into my sheet. When taking a closer look, one recognizes, that the data inserted into the sheet differs from the current data displayed on the webpage I am scraping.
This is the function I inserted into my Google sheet:=IMPORTHTML("https://www.benzinpreis.de/aktuell/super_e5/deutschland/nordrhein-westfalen/koeln/koeln/koeln"; "table";4)
I took a screenshot of the differing values:
Does anyone have an idea where I made a mistake?
You may consider using external tools which can render JS website OR debug if the website makes some AJAX call, and get raw JSON instead of trying to fight with HTML.
It looks like the website uses this xhr request to get the actual data in JSON:
https://www.benzinpreis.de/bpmap-callback.php?lat_min=50.86707808969461&lat_max=51.01850632466553&lng_min=6.700286865234375&lng_max=7.215270996093751&action=getTankstellen
( see Chrome Dev Tools Network tab for detailed information )
then you might use ImportJSON to import data into your Google Sheet.
https://workspace.google.com/marketplace/app/importjson_import_json_data_into_google/782573720506
Discovering hidden APIs using Chrome Dev Tools:
https://www.youtube.com/watch?v=kPe3wtA9aPM

Google sheets IMPORTXML Could not fetch url

I am using IMPORTXML to get information on USPS tracking numbers for my orders and I have been using it for about a month or so, it used to work on and off, sometimes it would not work and all I had to do was either refresh the page or add/remove the "S" on https, and it would work again but it has been about 5 days that it is not working at all no matter what I do, and it is a very tedious task to do manually, external 3rd party tracking apps won't work either because we need everyone to use just the sheet we have because not only contains the tracking info but also everything else. So is there any other way I can import some contents of the USPS tracking website that is reliable and won't stop working, I've seen some scripts here and there but haven't been able to apply them to my needs. Also if that script or workaround could work with other websites like UPS and Fedex it would be awesome as IMPORTXML doesn't work with them (it always says that the content is empty). Thanks in advance.

Yahoo Finance API finally dead? Using ichart GET call?

It looks like the party is over with regard to historical data from the Yahoo Finance API. I've followed previous answers and nothing is working. The previous code was of the format:
http://ichart.yahoo.com/table.csv?s=AAPL
and even https.
https://ichart.yahoo.com/table.csv?s=AAPL
None of these resolve in browser or can be requested. For historical data is there any API in existence for Yahoo Finance? It's possible to get current data points with the following calls:
http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=e
However no history. Any suggestions or functioning work around?
Try the spreadsheets here:
Bulk Yahoo historical stock quote downloader
Historical stock prices from Yahoo
Yahoo finance now uses a cookie-crumb pair. The VBA in the spreadsheets
gets the cookie-crumb pair from Yahoo for a junk call
uses the cookie-crumb pair to download historical data
uses the cookie-crumb pair to download historical data.
The first spreadsheet lets you download bulk data. The second spreadsheet contains a wrapper function that converts old Yahoo Finance API calls to a format that still works
The VBA is more involved (not a clean API call anymore), and Yahoo may shut off this route without notice. But, for now, you can still get historical data.

Yahoo Finance YQL query not working. Did something change?

For the past year I have been able to use Yahoo YQL Rest query to obtain the currency exchange rates; however, today it has stopped working for some odd reason.
https://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys#h=select+*+from+yahoo.finance.xchange+where+pair+in+(%22USDCAD%22)
https://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22CADUSD%22%2C%20%22USDCAD%22%2C%20%22EURUSD%22%2C%20%22EURCAD%22%2C%20%22GBPUSD%22%2C%20%22GBPCAD%22)&diagnostics=false&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
Has something changed? How can I find out what happened?
Is there an alternative solution I can use to obtain this data?
There seems to be an issue with http://datatables.org/ at the moment, which is the basis for the "Community Tables" (such as the Yahoo Finance table) on YQL. I haven't been able to find any more information on why it's down, but hopefully it comes back up soon.

Foursquare KML feed shows ONLY recent posts

For years, I had been using my Foursquare KML url to populate a Google Map that I then placed on my website.
A few months ago, I noticed that the feed would not load check-ins in the feed for earlier events and instead only the recent check-ins. The result has been a near empty map that goes back only a few months rather than 4 years.
I've checked with support many times over the past 6-7 months and the response is always quite general. Nobody has actually looked at my account to see what the issue is.
And the last response was to come here and ask you all.
So that's my issue:
The Foursquare KML feed only will populate a map with recent check-ins.
I've refreshed the feed URLs on the foursuare.com/feeds page and tried with that new url
When I go into my Foursquare.com/user/history page on a desktop, all my check-ins are there and are populated on that map which uses Mapbox/OpenStreetMaps.
If anyone has any advice as to how to get this problem fixed, please let me know. And if someone knows of a work-around to instead get whatever feed Foursqure is using to populate Mapbox/OpenStreetMaps, that would work great too!
Thanks again!
Have you tried adding ?count=500 to your KML feed URL? By default it seems limited to the last 10.

Resources