I am able to download market cap data from Yahoo using the QuantMod package in R.
getQuote("MSFT", what = yahooQF(c("Market Capitalization")))
While that works well for some stocks, the Market Cap seems off for others.
For example, consider this same stock via google and yahoo:
https://ca.finance.yahoo.com/quote/TRYP.CN/
Yahoo shows NA while google shows $51MM. Is there a compatible function in R where I can get the google market cap data?