One thing I find myself doing every once in a while is trying to find out the $AAPL share price for a given date. This usually requires a trip to Google Finance or Yahoo Finance and a need to download a data table to find what I need.
Wouldn’t it be nice if this information was in my journal?
So I spun up a simple Slogger plugin to do it. This plugin:
- Takes Yahoo data as at the time it runs (so theoretically you could run it multiple times a day). It does nothing on weekends, but it will run on holidays.
- Allows you to choose a list of tickers to report on.
- You can choose a detailed log or a simple one.
Given that it uses the Yahoo real-time API, it cannot be used to back fill data.
Warning: This plugin is alpha code, so assume the usual no warranty legaleze, basically proceed at your own peril.
Installing the Plugin
- Save Gist 4185229 as
plugins/yahoofinancelogger.rb(or copy it from
./slogger -o Yahooto create the
- Edit the tickers list in
slogger_configfor the ones you want.
- Choose whether you want
show_detailstrue or false
Here’s what it looks like with and without details:
Some ticker ideas
^DJIDow Jones Industrials
AUDUSD=XAUD/USD Exchange Rate