JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
911 stars 215 forks source link

get_ten_day_avg_volume reports wrong values #94

Open jumpinjoey222 opened 3 years ago

jumpinjoey222 commented 3 years ago

when using the function get_ten_day_avg_volume it returns a value that differs from the sum of the last 10 days volume divided by 10.

sylvandb commented 3 years ago

That is not being calculated by this module, but retrieved from yahoo. Is this module reporting the same value as yahoo? It's possible that instead of a simple average (arithmetic mean) you calculated, that the value is a 10-day moving average or perhaps less likely a geometric mean.