dotfiles/.config/i3/scripts/xrate.py
2021-06-29 01:21:14 +02:00

6 lines
151 B
Python
Executable file

#!/usr/bin/python3.8
import yfinance as yf
import sys
eurzar = yf.Ticker(sys.argv[1])
print(round(eurzar.history(period="1m").Close.to_list()[0], 4))