Skip to content

jmhakvoort/polystock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%