ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.93k stars 2.45k forks source link

Typo in `pct_string = f'{percent_done}%%'` #2019

Closed tylerlong closed 3 months ago

tylerlong commented 3 months ago

Describe bug

https://github.com/ranaroussi/yfinance/blob/30abd894748c1e47113f5b2938b28fec02195847/yfinance/utils.py#L888

Why two %?

should it be pct_string = f'{percent_done}%' ?

Simple code that reproduces your problem

import yfinance as yf
yf.download('GE')

Debug log

[*********************100%%**********************]  1 of 1 completed

It should be

[*********************100%**********************]  1 of 1 completed

Bad data proof

No response

yfinance version

0.2.41

Python version

No response

Operating system

No response