idx-cli/scripts
hermes 29f143fa1b feat: foreign flow (idx stocks flow, get_foreign_flow)
`idx stocks flow SYMBOL` shows what foreign investors bought and sold of a
stock, session by session, from IDX's own daily trading summary: foreign
buy, sell and net volume, net value at the session's average price, and
the share of value traded outside the regular board, with range totals.
Latest 10 sessions by default (--days, at most 60) or --from/--to. The MCP
server exposes it as get_foreign_flow.

- api/idx: pure parser for GetStockSummary (rows dated another session
  are dropped) and a provider over curl-impersonate's profile fallback
  with a 30 s limit; Cloudflare passes only some fingerprints.
- flow: each session is cached whole by date, so other stocks' flows for
  the same sessions need no request. Weekends are never requested.
- Idx::idx_code is shared by broker and flow for the .JK-only check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
2026-10-18 05:39:12 +00:00
..
audit-msn-fundamentals.sh fix(release): robust publisher fields, WAL-safe copy, installer tag order, pinned actions 2026-10-18 02:16:18 +00:00
build-latest-ownership-snapshot.sh fix(publisher): require the jq and bash it uses; pin CI actions 2026-10-18 02:16:18 +00:00
build-ownership-snapshot.sh fix(release): robust publisher fields, WAL-safe copy, installer tag order, pinned actions 2026-10-18 02:16:18 +00:00
check-ownership-snapshot-freshness.sh fix(ownership): make publisher RESULT contract hold on every path 2026-09-24 21:50:51 +00:00
idx.js fix(npm): absolute cache root, per-arch cache dir, SIGINT during install 2026-10-16 09:54:30 +00:00
install-sh-test.sh fix(release): robust publisher fields, WAL-safe copy, installer tag order, pinned actions 2026-10-18 02:16:18 +00:00
install.js fix(npm): no cache fallback without an absolute home directory 2026-10-16 09:54:30 +00:00
live-smoke.sh feat: foreign flow (idx stocks flow, get_foreign_flow) 2026-10-18 05:39:12 +00:00
npm-smoke.sh test(npm): plant the macOS cache layout too 2026-10-16 09:54:30 +00:00
publish-ownership-snapshot-test.sh fix(ownership): update syncs when a same-date snapshot is rebuilt 2026-10-14 18:52:13 +00:00
publish-ownership-snapshot.sh fix: address final review (path traversal, sync races, MCP limits) 2026-10-14 21:58:37 +00:00