fix(core): non-regular share is of all trading

IDX's Value is regular-board turnover, so NonRegularValue / Value gave
non-regular over regular (BBRI 2026-10-14: 50.91%) instead of the share of
all trading (33.74%). non_regular_bps now divides by regular plus
non-regular value, with a regression test on that fixture. The docs now say
volume, value and the foreign figures are the regular board: IPOT's
regular total matches Value, and in a week of every stock no foreign figure
exceeded regular volume, even with non-regular volume above twice it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
hermes 2026-10-18 05:41:55 +00:00
commit 83783684cb
13 changed files with 50 additions and 27 deletions

View file

@ -115,7 +115,11 @@ WIB as the fallback.
- `GET https://www.idx.co.id/primary/TradingSummary/GetStockSummary`
`?length=9999&start=0&date=YYYYMMDD` answers one JSON row per stock for the
session: prices, volume, value, `ForeignBuy`/`ForeignSell` (shares) and
non-regular volume and value. A day without trading has no rows; rows dated
non-regular volume and value. `Volume`, `Value` and the foreign figures are
the regular board only: IPOT's regular-board total for BBCA on 2026-10-16
matches `Value`, and in a week of every stock no foreign figure exceeded
regular volume. `non_regular_bps` is therefore over regular plus
non-regular value. A day without trading has no rows; rows dated
another day are dropped. `api/idx/parse.rs` parses it purely.
- Cloudflare rejects most TLS fingerprints (in October 2026 only
`curl_safari184` passed), so the request uses curl-impersonate's profile