[go: nahoru, domu]

Skip to content

Download stock and currency quotes from Alpha Vantage and save it to GnuCash

License

Notifications You must be signed in to change notification settings

belidzs/gnucash_quotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpha Vantage to GnuCash quote downloader

This script can import daily stock and forex quotes from Alpha Vantage and insert them into GnuCash's database.

Features

  • Connect to any type of GnuCash data source supported by piecash (*.gnucash files, relational databases, plain XML, etc)
  • It can run even without GnuCash installed
  • Automatic throttling to avoid over-polling
  • Ignores price if it was already downloaded that day

Requirements

Install requirements

Just run pip install -r requirements.txt

It is recommended to install dependencies inside a dedicated virtualenv.

Usage

Edit script to set up

  • Alpha Vantage API key
  • Connection parameters
  • Namespace - currency pairs

Run: python gnucash_quotes.pty