GithubHelp home page GithubHelp logo

andreasredeker / stock-widget.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wickenico/stock-widget.js

0.0 0.0 0.0 5.61 MB

A Scriptable widget that shows stock prices from yahoo finance api.

JavaScript 100.00%

stock-widget.js's Introduction

stock-widget.js

A Scriptable widget that shows stock prices and the percentual change from yahoo finance api. Also works with cryptocurrencies.

stock-widget-homescreen.small

GitHub last commit GitHub commit activity

SetupUsageLinksContribution

Setup

  1. (if not done yet) Download the scriptable app form AppStore
  2. In Scriptable create a new script
  3. Copy the code from script file stock-widget.js
  4. Create a new widget on homescreen and select this script in scriptable

stock-widget-homescreen

Usage

You can select your stock symbols in 2 different ways:

  1. You select the stocks which you want to display in the app through the parameter field. Separate them with "," stock-widget-settings

  2. You can code the stocks directly in the code in function getStockData():

  if(args.widgetParameter == null) {
    // EDIT: Insert your symbols between the quotation marks 
    stocks = ["AAPL", "22UA.DE", "GC=F", "BTC-USD"];
  } else {
    stocks = args.widgetParameter.split(",");
  }

Links

Yahoo Finance: https://finance.yahoo.com/

Contribution

If you have any ideas for extensions or changes just let me know.

stock-widget.js's People

Contributors

wickenico avatar saiteja09 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.