A simplistic endpoint app to deliver historical BTCEUR prices, into e.g. LibreOffice Calc.
Save your App_ID to OPENEXCHANGERATES, then
make virtualenv
source .venv/bin/activate
python -m btceurhist startserver
rm .venv -r
make virtualenv
source .venv/bin/activate
make docs
rm .venv -r
Note that this is the first time that I have been using the python-project-template
suggested by github, and there are tons of files which I haven't even touched. See e.g. README_template.md.
My stuff is in these folders: btceurhist/, views/, static/, and in docs/.
Problems: LibreOffice can still not process JSON answers, crazily. Plus, Coindesk gives BTCUSD not BTCEUR historical data. Now, with this little project we provide the simplest possible "BTCEUR price on day XYZ" in LibreOffice, using its =WEBSERVICE(url) command:
First time with github actions, very exciting. Learning by doing this with the standard Python project template was another reason for this project.
And yessss ... eventually I got the linter and the tests all returning with no issues.
And that means, the CI action (continous integration) is succeeding for my project, on Feb 15th 2022.
Hoooray.
Change the caching, so that not only the final result (BTCEUR) but also the intermediate steps (BTCUSD, USDEUR) are appended to and retrieved from the cache.