changed yfinance requirement to 0.1.62
This commit is contained in:
parent
48204c0c55
commit
5a163a65a8
@ -173,12 +173,12 @@ class Stocks(inkycal_module):
|
||||
def percentageStr(number):
|
||||
return '({:+.2f}%)'.format(number)
|
||||
|
||||
def gainStr(number):
|
||||
return '{:+.3f}'.format(number)
|
||||
def gainStr(precision, number):
|
||||
return "%+.*f" % (precision, number)
|
||||
|
||||
stockNameLine = '{} ({})'.format(stockName, stockCurrency)
|
||||
stockCurrentValueLine = '{} {} {}'.format(
|
||||
floatStr(precision, currentQuote), gainStr(currentGain), percentageStr(currentGainPercentage))
|
||||
floatStr(precision, currentQuote), gainStr(precision, currentGain), percentageStr(currentGainPercentage))
|
||||
stockDayValueLine = '1d OHL: {}/{}/{}'.format(
|
||||
floatStr(precision, currentOpen), floatStr(precision, currentHigh), floatStr(precision, currentLow))
|
||||
maxQuote = max(stockHistory.High)
|
||||
|
@ -8,4 +8,4 @@ arrow==0.17.0 # time operations
|
||||
Flask==1.1.2 # webserver
|
||||
Flask-WTF==0.14.3 # webforms
|
||||
todoist-python==8.1.2 # todoist api
|
||||
yfinance>=0.1.60 # yahoo stocks
|
||||
yfinance>=0.1.62 # yahoo stocks
|
||||
|
Loading…
Reference in New Issue
Block a user