mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 01:35:36 +00:00
fix(ownership): accept the register's new CONTROLLER_OR_AFFILIATE column
IDX's above-1% register as of 30 Oct 2026 (peng-2026-10-00029) inserts a CONTROLLER_OR_AFFILIATE column after INVESTOR_CLASSIFICATION. The header check rejected any column it did not know, so `ownership import` failed with PARSEERROR and `releases`/`ticker` had nothing to show. Accept that one column by name and skip it; any other unknown column is still rejected, so the above-5% and investor-type workbooks stay out. Storing the flag is a follow-up (ROADMAP). The fixture is an 11-row excerpt of the real October workbook (disclaimer rows, header, BBCA and ZYRX). The full file imports 7,149 rows across 961 tickers; live ownership smoke: 4 passed, 0 failed, no 403. Claude-Session: https://claude.ai/code/session_01RqPPVeVDrnLoP7NUZmLRxY
This commit is contained in:
parent
018d9ba936
commit
1cd8a4b191
5 changed files with 107 additions and 4 deletions
|
|
@ -197,7 +197,8 @@ payload, `%PDF`, or `PK` zip magic). `IDX_CURL_IMPERSONATE_BIN` pins a single pr
|
|||
|
||||
### Parser Pipeline
|
||||
```
|
||||
KSEI XLSX → zip + quick-xml (sharedStrings + sheet1) → exact 12-column header check
|
||||
KSEI XLSX → zip + quick-xml (sharedStrings + sheet1) → header check by name (12 columns;
|
||||
October 2026 added CONTROLLER_OR_AFFILIATE, accepted but not stored yet)
|
||||
→ KseiHoldingDraft (Excel serial dates, numeric shares, percent → bps)
|
||||
→ SQLite INSERT (within transaction)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue