DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to screen about 950 IDX stocks by valuation and sector with Idx

Filter the IDX universe with one expression, for example low P/E financial stocks.

Who it is forAn analyst or investor building a shortlist of Indonesian stocks that match a valuation rule and a sector.

The problemFinding stocks that meet a P/E limit and a sector label means checking hundreds of tickers by hand.

The outcomeA ranked list of matching IDX tickers with their key valuation figures, produced from one filter string.

What you need first

  • Rust 1.88 or newer for cargo install, or Node.js and npm for the npm route
  • An internet connection for the first run (offline mode serves cached data only)
  • A terminal on Linux, macOS or Windows

Steps

  1. Install Idx with npm install -g github:fzn0x/idx or cargo install ihsg-cli.
  2. Run idx stocks screen -f "pe 15,sector=financial" to get stocks with P/E under 15 in the financial sector. (inferred, check the README)
  3. Add -o json before stocks to save the result for a spreadsheet or script, for example idx -o json stocks screen -f "pe 15,sector=financial". (inferred, check the README)
  4. Run idx stocks fundamental <TICKER> on one of the results to read the rules behind its verdict. (inferred, check the README)

Prompt for your agent

Use the idx tool from the fzn0x/idx repo to run `idx -o json stocks screen -f "<filter>"` where <filter> is a rule such as pe 15,sector=financial. Return the matching tickers with their P/E and sector as a table. Verify that the count of results matches the length of the returned data array.

Caveat. The screener caps per-company fundamentals at a set number of tickers, largest first, so smaller stocks may not be checked.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page