thess / MMM-MktIndex

MagicMirror module for displaying market indicies using (free) Yahoo Finance API
MIT License
4 stars 2 forks source link
finance free magic-mirror-modules magicmirror2 yahoo-finance

MMM-MktIndex

MagicMirror module for displaying market indicies using Yahoo Finance Quotes.

Note: Module currently assumes the US Eastern time-zone calculating market open times and locales.

Screenshot

Installation

cd ~/MagicMirror/modules
git clone https://github.com/thess/MMM-MktIndex
cd MMM-MktIndex
npm install

API Key

None required.

Configuration

Simple

{
  //disabled: true,
  module: "MMM-MktIndex",
  position: "top_right",
  config: {
    timeFormat: "YYYY-MM-DD HH:mm:ss"
  }
},

Details and Defaults Values

{
  module: "MMM-MktIndex",
  position: "top_right",
  config: {
    timeFormat: "DD-MM HH:mm",
    symbols: ["^DJI", "^IXIC", "^GSPC", "^TNX", "CL=F", "EURUSD=X"],
    // Label name for each symbol. When you use `alias`, the number of symbols and aliases should be the same.
    // If value is null or "", symbol string will be used by default.
    alias: ["DOW 30", "Nasdaq", "S&P 500", "10yr Bond", "Crude Oil", "EUR/USD"],
    updateInterval: 180,    // Query interval in seconds
  }
},