Skip to content

Commit 32cb424

Browse files
authored
fix(counter): Drop stale ETF/US/SPCX from the embedded directory (#576)
`SPCX.US` resolved to `ETF/US/SPCX` instead of `ST/US/SPCX`, so every counter_id-based endpoint queried the wrong instrument type: ``` $ longbridge financial-statement SPCX.US --kind IS --report qf Error: openapi error: code=2601400: internal server error ``` SPCX used to be the AXS SPAC and New Issue ETF, which has since delisted; the ticker now belongs to SpaceX (a stock). The embedded directory in `rust/src/utils/US-ETF.csv` is a static snapshot and is consulted before the remote-resolved cache, so the stale entry always won and the backend's correct answer never applied. Removing the entry lets the symbol fall back to the default `ST/` prefix. Verified against the live API — `financial-statement`, which previously failed, now returns SpaceX's quarterly income statement. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 266d923 commit 32cb424

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

rust/src/utils/US-ETF.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5916,7 +5916,6 @@ ETF/US/SPCI
59165916
ETF/US/SPCK
59175917
ETF/US/SPCL
59185918
ETF/US/SPCT
5919-
ETF/US/SPCX
59205919
ETF/US/SPCY
59215920
ETF/US/SPCZ
59225921
ETF/US/SPD

0 commit comments

Comments
 (0)