DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

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.

Short answer: Install Idx with npm install -g github:fzn0x/idx or cargo install ihsg-cli; then run idx stocks screen -f "pe 15,sector=financial" to get stocks with P/E under 15 in the financial sector; 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". All steps.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for fzn0x/idx and "Screen about 950 IDX stocks by valuation and sector"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer