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...
- Host: GitHub
- URL: https://github.com/zack-ashen/polystock
- Owner: zack-ashen
- License: mit
- Created: 2020-05-12T02:23:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T20:13:01.000Z (almost 2 years ago)
- Last Synced: 2024-05-06T17:23:00.551Z (almost 2 years ago)
- Topics: finance, polybar, polybar-scripts, python
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 18
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

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