الخميس، 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: Declarative PostgreSQL query cache using Node.js https://ift.tt/2pCxHhT Show HN: Declarative PostgreSQL query cache using Node.js ...
-
Show HN: Tmux Super Fingers https://ift.tt/3y6qCmV August 23, 2021 at 08:32PM
-
Show HN: OOTB Code-Server, Easiest “VSCode on Browser” + HTTPS and GitHub Auth https://ift.tt/3kbyYDi September 14, 2020 at 03:20AM
-
Show HN: tmux.nvim – turning Neovim into a terminal multiplexer https://ift.tt/IjKzCle April 9, 2022 at 11:53PM
-
Show HN: ReactJS – Iframe component with maximise to fullscreen button https://ift.tt/38tGyUy February 14, 2020 at 06:45AM
-
Show HN: Declarative PostgreSQL query cache using Node.js https://ift.tt/2pCxHhT Show HN: Declarative PostgreSQL query cache using Node.js ...
-
Show HN: Verilog2factorio https://ift.tt/3ng8nYA April 25, 2021 at 03:31AM
-
https://ift.tt/2IfSrSh via /r/aww https://ift.tt/39uj8P2
ليست هناك تعليقات:
إرسال تعليق