Skip to content

Commit

Permalink
Replace gnc-fq-helper entirely
Browse files Browse the repository at this point in the history
The GnuCash helper utility requires an outrageous number of Perl modules
simply to hit a public API & parse JSON. On Mac (when Homebrew installs
GnuCash), `Finance::Quote` must be installed manually, and is a huge
pain. Worse, this Perl-heavy module uses Lisp S-expressions when the
data is *already* in simple structured JSON. This is basically to work
well within the GnuCash ecosystem, which runs on Guile.

However, this whole repo is working on the assumption that the SQLite
format can be read and written directly.

This replaces another replacement
=================================
I've been using a simple drop-in Python replacement for `gnc-fq-helper`:
https://github.com/yegord/gnc-fq-helper

That drop-in solves the same core problem -- who wants a ton of Perl
modules when you can hit APIs in a much simpler manner.

However, that replacement is still a tad convoluted -- it just makes an
API request & converts the JSON to S expressions (which my Rust code has
been dutifully converting *back* to simple structures). It's an amazing
drop-in for using the GnuCash GUI, but I don't bother with the GUI.

May need to move away from AlphaVantage entirely
================================================
On testing this change, it's been revealed that AlphaVantage now limits
free use to 25 API calls per day. In a portfolio with enough different
funds, this causes some problems.

We should look at instead using
https://github.com/fbriden/yahoo-finance-rs
  • Loading branch information
DavidCain committed Jan 6, 2024
1 parent 6a86683 commit 4c5e656
Show file tree
Hide file tree
Showing 4 changed files with 813 additions and 123 deletions.
Loading

0 comments on commit 4c5e656

Please sign in to comment.