mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
feat: login-free Stockbit intraday and quote provider
Read Stockbit's public symbol page (__NEXT_DATA__) with a plain ureq request and an honest user agent: `stocks intraday` (today by the minute, any provider), `--provider stockbit` quotes with the best bid/offer only while the market is open, and MCP `get_intraday`. - UPSTREAMBLOCKED error (exit 4) for a CDN 403; never retried - requests paced 1 s apart across idx processes, 5 s snapshot cache - global --provider flag (yahoo, msn, stockbit) - roadmap: L1 ships from Stockbit; depth stays a login follow-on
This commit is contained in:
parent
018d9ba936
commit
74e5bb0536
65 changed files with 2320 additions and 381 deletions
11
README.md
11
README.md
|
|
@ -71,6 +71,7 @@ idx stocks history BBCA --period 3mo
|
|||
idx stocks technical BBCA
|
||||
idx stocks fundamental BBCA
|
||||
idx stocks compare BBCA BBRI BMRI
|
||||
idx stocks intraday BBCA # today by the minute (Stockbit, delayed)
|
||||
idx -o json stocks quote BBCA
|
||||
|
||||
# Ownership: download the maintained snapshot once, then query locally
|
||||
|
|
@ -90,8 +91,12 @@ idx ownership changes --from 2026-07-31 --to 2026-08-31
|
|||
- Analysis: `technical`, `growth`, `valuation`, `risk`, and a combined
|
||||
`fundamental` report; multi-symbol `compare`; MSN stock `screen`
|
||||
- Providers: MSN is the default for quotes, fundamentals, and screening;
|
||||
Yahoo serves history. Switch with `IDX_PROVIDER=msn|yahoo` and
|
||||
Yahoo serves history. Switch with `--provider`/`IDX_PROVIDER=msn|yahoo` and
|
||||
`IDX_HISTORY_PROVIDER=auto|yahoo|msn`
|
||||
- Stockbit, opt-in and without a login: `stocks intraday` (today's price by
|
||||
the minute) and `--provider stockbit` quotes with the best bid/offer while
|
||||
the market is open. Delayed at least 10 minutes, for personal use under
|
||||
Stockbit's terms; see the [Stockbit page](https://idx.rasyidanaf.com/cli/stockbit/)
|
||||
- Local file cache with TTL, and `--offline` mode with stale-cache fallback
|
||||
|
||||
### Ownership (KSEI shareholders above 1%)
|
||||
|
|
@ -158,8 +163,8 @@ change it to `auto` with `idx config set general.output auto`.
|
|||
|
||||
## MCP server
|
||||
|
||||
`idx-mcp` serves the same data to MCP clients over stdio, as 14 tools:
|
||||
`get_quotes`, `get_price_history`, `screen_stocks`, `get_company`,
|
||||
`idx-mcp` serves the same data to MCP clients over stdio, as 15 tools:
|
||||
`get_quotes`, `get_intraday`, `get_price_history`, `screen_stocks`, `get_company`,
|
||||
`analyze_stock`, `compare_stocks`, `get_broker_summary`, `analyze_bandar`,
|
||||
`get_foreign_flow`, `get_shareholders`, `get_investor_holdings`,
|
||||
`search_investors`, `get_ownership_changes`, and `ownership_status`. Live results come wrapped as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue