zack-ashen / polystock

Displays stock prices on polybar...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PolyStock

A ticker displayer for polybar. Displays the days highest gainer, biggest loser,top crypto or any custom stock ticker.

Example

polystock

In the example I have two seperate modules with --biggestloser on left and --mostactive on the right.

Dependencies

  • python

Python Modules

  • yahoo_fin
  • argparse
  • pandas
  • requests_html

Module

[module/polystock]
type = custom/script
;Arguments for output:
;   --biggestloser: Prints the stock with the biggest drop in a given day.
;   --biggestgainer: Prints the stock with the biggest gain in a given day.
;   --mostactive: Prints the most active stock in a given day.
;   --topcrypto: Prints the top cryptocurrency by market cap in a given day.
;   --customticker: Takes a stock ticker (ex. AAPL, GOOGL, VZ) and outputs the live price of that stock.
exec = ~/polybar-scripts/polystock.py --biggestloser --biggestgainer --mostactive --topcrypto --customticker AAPL
;For continuous updates
tail = true
label = %output%

Configuration

polystock.py

# How many decimal place to show in stock price.
roundNumber = 1

About

Displays stock prices on polybar...

License:MIT License


Languages

Language:Python 100.0%