Skip to content
MagicMirror module for displaying stock price with Alphavantage API
JavaScript CSS
Branch: master
Clone or download
lavolp3 Update README.md
Added missing commas in detailed config
Latest commit 53c6300 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Merge branch 'decimals' into master Jan 22, 2019
LICENSE Initial commit Sep 25, 2018
MMM-AVStock.css first Sep 27, 2018
MMM-AVStock.js 1.1.0 Jan 25, 2019
README.md Update README.md Mar 19, 2019
node_helper.js 1.1.0 Jan 25, 2019
package.json 1.1.0 Jan 25, 2019
sc_series.png first Sep 27, 2018
sc_table.png first Sep 27, 2018
sc_ticker.png first Sep 27, 2018

README.md

MMM-AVStock

MagicMirror module for displaying stock price with Alphavantage API

Screenshot

  • mode:table ScreenShot for Table

  • mode:ticker ScreenShot for Ticker

  • mode:series ScreenShot for Series

UPDATES

** 1.1.0 **

  • Fixed : Alphavantage has changed their API quota rule for free Account. (500 requests limit per day)
  • included decimals option and optimized loading time (by @lavolp3)
  • included candle stick charts for series graph(by @lavolp3)

Installation

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

Alphavantage Key

https://www.alphavantage.co/

Free account has a limit of quota (5 request per minute). Since Dec 28, 2018, 500 requests per day limit is added

Configuration

Simple

{
  //disabled:true,
  module: "MMM-AVStock",
  position: "top_right",
  config: {
    apiKey : "YOUR_ALPHAVANTAGE_KEY",
    symbols : ["aapl", "GOOGL", "005930.KS"],
  }
},

Details and Defaults Values

{
  module: "MMM-AVStock",
  position: "top_right", //"bottom_bar" is better for `mode:ticker`
  config: {
    apiKey : "YOUR_ALPHAVANTAGE_KEY", // https://www.alphavantage.co/
    timeFormat: "YYYY-MM-DD HH:mm:ss",
    symbols : ["aapl", "GOOGL", "005930.KS"],
    alias: ["APPLE", "", "SAMSUNG Electronics"], //Easy name of each symbol. When you use `alias`, the number of symbols and alias should be the same. If value is null or "", symbol string will be used by default.
    tickerDuration: 60, // Ticker will be cycled once per this second.
    chartDays: 90, //For `mode:series`, how much daily data will be taken. (max. 90)
    poolInterval : 1000*15, // (Changed in ver 1.1.0) - Only For Premium Account
    mode : "table", // "table", "ticker", "series"
    decimals: 4, // number o decimals for all values including decimals (prices, price changes, change%...)
    candleSticks : false, //show candle sticks if mode is Series
    coloredCandles : false, //colored bars: red and green for negative and positive candles
    premiumAccount: false, // To change poolInterval, set this to true - Only For Premium Account
  }
},
You can’t perform that action at this time.