Skip to content

Instantly share code, notes, and snippets.

@vrischmann
Last active July 11, 2020 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrischmann/fad7c79b21af3e9a5fc724a8136ff89c to your computer and use it in GitHub Desktop.
Save vrischmann/fad7c79b21af3e9a5fc724a8136ff89c to your computer and use it in GitHub Desktop.
IEX Cloud international stock prices

How to use IEX Cloud to fetch international stock prices with Beancount

  1. Create a free IEX Cloud account and note your secret token.
  2. Get the symbol data for your region (for example fr).
  3. Clone Beancount.
  4. Replace the beancount/sources/iex.py with this one which uses IEX Cloud instead of the old API.
  5. Mark your commidities using the symbol data, for example:
2018-01-01 commodity EDF
  name: "Electricité de France"
  price: "EUR:iex/EDF-FP"
  1. Export your secre token in the IEX_TOKEN variable and call bean-price ledger.beancount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment