investpy icon indicating copy to clipboard operation
investpy copied to clipboard

Add get_stock_ratios method

Open gjover opened this issue 4 years ago • 4 comments

This new method parses stock ratio information from investing.com and return the result as a dataframe or a dictionary. This method is based on already existing get_stocks_information.

I hope it is useful. Cheers!

gjover avatar Jan 23 '21 19:01 gjover

Codecov Report

Merging #274 (a546194) into master (0ce10ea) will decrease coverage by 1.20%. The diff coverage is 2.98%.

@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
- Coverage   90.98%   89.78%   -1.21%     
==========================================
  Files          26       26              
  Lines        4904     4971      +67     
==========================================
+ Hits         4462     4463       +1     
- Misses        442      508      +66     

codecov[bot] avatar Jan 23 '21 19:01 codecov[bot]

This new method parses stock ratio information from investing.com and return the result as a dataframe or a dictionary. This method is based on already existing get_stocks_information.

I hope it is useful. Cheers!

Thanks a lot for the method! Very helpful! I use it but I noticed that for double entries (for example Return on Investment TTM and Return on Investment 5YA) it can't find the value.

giannicor avatar Mar 10 '21 22:03 giannicor

Thank you for this function @gjover! I'll try to review this either this week or the next one so that we can include it in the v1.0.5 release! 💪🏻

alvarobartt avatar Mar 11 '21 08:03 alvarobartt

Hi Alvaro I am using investpy 1.0.8 and I am unable to use this function. Any update if this has been included? Regards

srijuk avatar Mar 19 '23 12:03 srijuk