8000 GitHub - theRAAPster/MMM-AVStock: MagicMirror module for displaying stock price with Alphavantage API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

theRAAPster/MMM-AVStock

 
 

Repository files navigation

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
  }
},

About

MagicMirror module for displaying stock price with Alphavantage API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • CSS 11.5%
0