Repository navigation
Broker summaries, bandarmology and foreign flow, from public data with no login or key.
New Features
idx stocks brokerand the MCP toolget_broker_summaryshow a stock's top 10 buying and selling brokers over a day or a date range, with totals. You can filter by investor side and board. The data comes from Indo Premier (IPOT). (#62, #63)idx stocks bandarandanalyze_bandarread broker concentration as buy minus sell value for the top 1, 3, 5 and 10 brokers, and give a signal from big accumulation to big distribution. Several symbols make a ranked screen thatstocks screencan pipe into. The thresholds are heuristics. (#64)idx stocks flowandget_foreign_flowshow foreign buying, selling and net value session by session. The data comes from IPOT by default;--source idxuses IDX's trading summary for exact share counts. (#65, #68)--investor foreign|domesticnow reads one investor side inbrokerandbandar, with that side's buy and sell totals. (#67)
Bug Fixes
- Quotes and IDX screen rows now carry
behind_session: true when the last trade is from before the latest IDX session. The quote table adds a note for these quotes, so a provider still showing the previous close after the session is no longer passed off as the latest price. (#71, #50)
Improvements
- IPOT broker pages are parsed with html5ever and accepted only in IPOT's exact markup. A page that differs is rejected with an error and never misread. (#70)
- IPOT pages for dates other than those requested are rejected before caching, and so are IDX trading summaries with no rows for the requested session. (#70)
- Bandar readings use checked arithmetic, and the table says "No trades." only when no broker traded. (#70)
- Flow and broker data share caches. Past sessions are cached for days and today for 5 minutes, and offline
latestlookups skip uncached days. (#62, #65, #68) - The
analyze_bandartopparameter lists its allowed values (1, 3, 5, 10) in the MCP schema. (#70)
Notes
stocks flow --source idxneeds curl-impersonate. The default IPOT source does not.- New dependency:
scraper0.27 (html5ever). Servo'sselectors,cssparseranddtoa-shortare MPL-2.0 and used unmodified. - JSON output for quotes and screens adds the
behind_sessionfield; no existing field changed.
Full Changelog: v0.3.3...v0.4.0