idx-cli/crates/idx-core/src
0xrsydn 43ff4aa433 feat: corporate actions from the Stockbit session (stocks actions, stocks calendar)
`idx stocks actions SYM [--kind ...]`: one stock's cash and stock
dividends, bonus shares, rights, warrants, splits and reverse splits,
meetings, public exposes and tender offers (`--kind ipo` adds its IPO),
newest first. `idx stocks calendar [--from] [--to] [--kind ...]`: the
market's actions dated in the range (default today and 30 days ahead),
oldest first. MCP: get_corporate_actions, get_corporate_calendar.

Stockbit's `/corpaction/{type}` serves one kind per request; each type has
its own field prefix and list key, so entitlements are read by field
suffix. An action's `date` is the cum date for entitlements, else the
event's first day. Dividends keep their decimals. One request per kind,
cached 6 hours. AUTHERROR without a session.

Fixtures are the 2026-11-03 recordings (market-wide ones trimmed to
October-December). Goldens added; help-stocks and completions-bash gain
the two subcommands, MCP tools.json the two tools (regenerated with
UPDATE_GOLDEN=1). The MCP docs counted 17 tools without stockbit_login;
now 20.

Claude-Session: https://claude.ai/code/session_01RqPPVeVDrnLoP7NUZmLRxY
2026-11-03 14:35:20 +07:00
..
analysis feat: Stockbit login for the order book, live quotes and daily history 2026-10-23 08:35:57 +00:00
api feat: corporate actions from the Stockbit session (stocks actions, stocks calendar) 2026-11-03 14:35:20 +07:00
broker fix(core): reject broker and trading pages that would misreport a session 2026-10-18 11:48:00 +00:00
corporate feat: corporate actions from the Stockbit session (stocks actions, stocks calendar) 2026-11-03 14:35:20 +07:00
flow fix(core): reject broker and trading pages that would misreport a session 2026-10-18 11:48:00 +00:00
ownership fix(cli): output contract, terminal-safe text, char-safe truncation, cache symlinks 2026-10-17 13:24:28 +00:00
cache.rs fix(cli): output contract, terminal-safe text, char-safe truncation, cache symlinks 2026-10-17 13:24:28 +00:00
client.rs feat: corporate actions from the Stockbit session (stocks actions, stocks calendar) 2026-11-03 14:35:20 +07:00
config.rs feat: Stockbit login for the order book, live quotes and daily history 2026-10-23 08:35:57 +00:00
curl_impersonate.rs revert: keep curl in idx's process group so Ctrl+C reaches it 2026-10-17 13:24:20 +00:00
error.rs feat: login-free Stockbit intraday and quote provider 2026-10-23 04:58:32 +00:00
financial.rs feat(news): rank this company's news first and label each item 2026-10-16 09:54:30 +00:00
investor.rs fix(cli): output contract, terminal-safe text, char-safe truncation, cache symlinks 2026-10-17 13:24:28 +00:00
lib.rs feat: corporate actions from the Stockbit session (stocks actions, stocks calendar) 2026-11-03 14:35:20 +07:00
market.rs feat: Stockbit login for the order book, live quotes and daily history 2026-10-23 08:35:57 +00:00
text.rs fix(cli): sanitize errors and diagnostics at their choke points 2026-10-17 13:24:28 +00:00