An open API service indexing awesome lists of open source software.

https://github.com/zack-ashen/polystock

Displays stock prices on polybar...
https://github.com/zack-ashen/polystock

finance polybar polybar-scripts python

Last synced: 25 days ago
JSON representation

Displays stock prices on polybar...

Awesome Lists containing this project

README

          

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

## Example
![polystock](screenshots/1.png)

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
```ini
[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

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