Skip to content

fork-my-spoons/stocks.spoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stocks

Build GitHub issues GitHub all releases

A menu bar app showing stock prices for selected stocks based of yahoofinanceapi.com:

Installation

  • install Hammerspoon - a powerfull automation tool for OS X

    • Manually:

      Download the latest release, and drag Hammerspoon.app from your Downloads folder to Applications.

    • Homebrew:

      brew install hammerspoon --cask

  • get a "basic" api key from https://www.yahoofinanceapi.com/pricing

  • download stocks.spoon, unzip and double click on a .spoon file. It will be installed under ~/.hammerspoon/Spoons folder.

  • open ~/.hammerspoon/init.lua and add the following snippet, with your repositories:

-- Stocks
hs.loadSpoon('stocks')
spoon['stocks']:setup({
  api_key = 'your api key',
  stocks = 'aapl,msft' # comma-separated list of stocks you want to follow
})
spoon['stocks']:start()

This app uses icons, to properly display them, install a feather-font by downloading this .ttf font and installing it.