الخميس، 24 نوفمبر 2022
Show HN: Google Sheets GOOGLEFINANCE() reliability enhancement https://ift.tt/lNhKftV
Show HN: Google Sheets GOOGLEFINANCE() reliability enhancement Anyone who uses GOOGLEFINANCE() for stock/ETF prices and then logs your total portfolio assets daily (by trigger), knows that it is not 100% reliable. What I wanted was something that would use the last good data point if GOOGLEFINANCE was failing. So I added caching to solve this problem. There is also another issue that GOOGLEFINANCE is particularly bad with Canadian stock symbols. It also does not find stock/etf dividend yields. For this I query a few finance websites to pull in the missing info. Now the problem looking up a couple hundred symbols using =CACHEFINANCE() (my custom function) was the dreaded 'Loading' error, which would also cause asset tracking to fail - so... I also added the capability to run as a trigger function, so it has now been 100% success for my logging. The app script will create a trigger for each job required (i.e. pricing is one, yieldpct is another, etc.). It will also automatically exit and re-start the trigger if it can't get through all requests before the 6 minute mark (a Google restriction). This is especially needed with the 'Yieldpct' because all data is found using URL fetch - which is much slower than a working GOOGLEFINANCE. I have made this an open source project if you want to use the Google Apps Script. Please let me know of any suggestions to help improve going forward. This version works for me, but of course the first person using other than me will probably find something wrong. I'm sure my README.md could use some further enhancements. https://ift.tt/Ils4F7H November 25, 2022 at 01:42AM
الاشتراك في:
تعليقات الرسالة (Atom)
������ �����
خدمات طبيه https://www.cut-titles.com/Y4ZR
-
Show HN: A Network of Knowledge Feeds Hi Everyone, I wanted to talk to this community about a particular story from my experience to see how...
-
Show HN: A WYSIWYM Markdown editor and brainstorming tool on the web https://ift.tt/yj6vCnJ July 31, 2022 at 09:18PM
-
Show HN: All-in-one open source tool for data pipelines https://ift.tt/EU7SnGz September 29, 2022 at 12:06AM
-
Show HN: Strada – Embed accounting automation with one API Hi HN, we’ve been working on an API that makes it easy to add a full set of accou...
-
Show HN: I developed a native macOS client for EC2/S3 console Hello HN: Here is the link https://ift.tt/3kuuEAS After forgetting to turn off...