idx-cli/crates/idx-core
hermes 860d4daf77 feat(cli,mcp): idx stocks broker and get_broker_summary
`idx stocks broker SYMBOL` shows the top 10 buyers and sellers of a stock
by lots for the latest session with trades, one `--date`, or a
`--from`/`--to` range, filtered by `--investor` and `--board`. The MCP
server exposes the same as get_broker_summary.

- Range and filter parsing lives in idx-core (BrokerRange::from_args,
  FromStr for the filters), so both frontends accept the same input.
- Without dates, the latest session is found by walking back over
  weekdays; offline, uncached days are skipped.
- Table output lists foreign and state-owned brokers, and says when the
  source rounded figures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
2026-10-18 05:33:12 +00:00
..
src feat(cli,mcp): idx stocks broker and get_broker_summary 2026-10-18 05:33:12 +00:00
tests/fixtures feat(core): broker summaries from IPOT 2026-10-18 04:28:38 +00:00
Cargo.toml revert: keep curl in idx's process group so Ctrl+C reaches it 2026-10-17 13:24:20 +00:00
LICENSE refactor: split into idx-core library and idx-cli binary workspace 2026-10-14 09:13:46 +00:00