I am trying to extract the current value of the 200-day moving average from Yahoo Finance (so far, I have been parsing finviz.com, Yahoo seems to be faster because of the JSON output).
For example, the 200 day MA can be found at https://finance.yahoo.com/quote/AAPL/key-statistics?p=AAPL -> Trading information -> Stock price history -> 200-day moving average
This solution is very helpful: Using BeautifulSoup to Search Through Yahoo Finance
The request URL looks like this: https://query2.finance.yahoo.com/v10/finance/quoteSummary/AAPL?formatted=true&crumb=8ldhetOu7RJ&lang=en-US®ion=US&modules=defaultKeyStatistics%2CfinancialData%2CcalendarEvents&corsDomain=finance.yahoo.com'
I tried different modules (found a list of the modules here: Yahoo Finance URL not working)
However, I can't find the 200 day MA in any of the modules.
I'd kindly appreciate any hints or suggestions!