# Getting a list of stocks that match certain criteria?

**URL:** <https://community.wolfram.com/t/getting-a-list-of-stocks-that-match-certain-criteria/1638>\
**Category:** Questions\
**Tags:** finance, mathematica\
**Created:** [March 4, 2014, 2:36am UTC](https://community.wolfram.com/t/getting-a-list-of-stocks-that-match-certain-criteria/1638 "2014-03-04T02:36:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolframalpha1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframalpha1/32/8394_2.png) [@wolframalpha1](https://community.wolfram.com/u/wolframalpha1)\
**Post date:** [March 4, 2014, 2:36am UTC](https://community.wolfram.com/t/getting-a-list-of-stocks-that-match-certain-criteria/1638/1 "2014-03-04T02:36:33Z")

</div>

Hi,

If I wanted to get a list of stocks that matched a certain criteria (timeframe: now), how could I best do that?

For instance, if I wanted to see all the stocks (in the world) with a PE greater than 50 but less than 100, with a positive income growth, positive sales growth, and a market capitalision of greater than 2 billion, is that possible? What would such a thing look like? I know I can use the FinancialData construct to get individual stock data but have no idea how to ‘go the other direction’ as it were.

I’m new to Mathematica but absolutely capitvated by the possibilities!

Thanks!

---

<div class="post-metadata">

**Author:** ![dzviovich](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dzviovich/32/27395_2.png) [@dzviovich](https://community.wolfram.com/u/dzviovich)\
**Post date:** [March 4, 2014, 1:19pm UTC](https://community.wolfram.com/t/getting-a-list-of-stocks-that-match-certain-criteria/1638/2 "2014-03-04T13:19:13Z")

</div>

Thomas, please check the help for FinancialData.

[http://reference.wolfram.com/mathematica/ref/FinancialData.html](http://reference.wolfram.com/mathematica/ref/FinancialData.html)

As part of the examples under Examples \> Scope \> Stock Screens we can adapt it to your needs. (I left out certain conditions out for you to explore by looking at the available indicators under FinancialData[“Properties”]

```auto
Select[FinancialData["^DJI", "Members"], 
 FinancialData[#, "PERatio"] >50 && 
   FinancialData[#, "PERatio"] < 100 && FinancialData[#, "MarketCap"] > 2 10^9&]

```
