Coder Social home page Coder Social logo

yahoo-finance-metrics's Introduction

โš ๏ธ Might break, still need to do some testing do not use in production or expect reliability

Yahoo Finance Metrics for portfolios

Grafana Dashboard

This is a simple python script that scrapes the Yahoo Finance website for the current price current value of your portfolio and tells you some key metrics about it.

Info

  • yahoo_finance_total_holding_value ($)
  • yahoo_finance_daily_gain_percent_value (%)
  • yahoo_finance_daily_gain_value ($)
  • yahoo_finance_total_gain_value ($)
  • yahoo_finance_total_gain_percent_value (%)

Prerequisites

In order to use this you must get the cookies for your Yahoo Finance account. You can do this by logging into your account and then using the developer tools in your browser to get the cookies.

Running

Docker

docker pull np3d/yahoo-finance-metrics
# create a new directory to store the config file
mkdir /yourfolder
cd /yourfolder
# copy the example config
## Development
wget https://github.com/NeoPrint3D/yahoo-finance-metrics/blob/master/config_example.json?raw=true -O config.json

docker run -d --name=np3d/yahoo-finance-metrics -p 9101:8080 -v $(pwd)/config.json:/etc/yahoo-finance-metrics/config.json yahoo-finance-metrics
  1. Clone this repo
  2. Install the requirements
  3. Run the script
git clone
cd yahoo-finance-metrics

Docker Usage

docker build -t yahoo-finance-metrics .
sh run.sh

Rust Usage

  • Must have rustup installed with cargo and rustc
  • Must place the config.jsonn file into /etc/yahoo-finance-metrics/config.json
cargo build --release
# Run the binary
./target/release/yahoo-finance-metrics

TODO

  • Add more metrics
  • Only scrapes when the market is open
  • Add more support for different OS's
  • Add more support for more than one portfolios (currently only supports one which is the first one in the list)
  • public docker container

yahoo-finance-metrics's People

Contributors

neoprint3d avatar

Stargazers

Lubomir Anastasov avatar Valera avatar Robert Oswald avatar

Watchers

 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.