Closed henchiyb closed 1 year ago
We need a way to calculate the moving average of the specific time range, so I added this method to calculate moving average of a stock by close price get from stock_historical_data
Local
calculate_moving_average('VNM', date.today().strftime('%Y-%m-%d'), 10) => 73530.0
PR Description
We need a way to calculate the moving average of the specific time range, so I added this method to calculate moving average of a stock by close price get from stock_historical_data
Check list
How did I test it?
Local
Screenshots or Test results
Reviewer Considerations