fix(assets): guard symbol-change merges against recycled tickers #89

Merged
gertjan merged 1 commit from fix/rename-recycled-ticker-guard into main 2026-07-15 20:14:28 +00:00
Owner

The FMP symbol-change feed can miss the reverse entry when a ticker is
later reassigned: SPCX was renamed to SPCK in April, then SPCX was given
to a different company (Space Exploration Technologies) in June with no
feed entry. Applying the April change would deactivate the new listing
and re-key its bars into the ETF.

  • refresh_symbol_changes: skip any change whose old symbol still has
    daily bars more than 14 days past the change date — the old ticker is
    still alive (recycled, or FMP feed inconsistency). Flagged as
    needs_review in the returned actions instead of applied. Fresh changes
    are mathematically unaffected, so the daily task behaves the same.
  • New exclude parameter / --exclude CLI option to skip named symbols.
  • CLI reports applied vs needs-review separately.

Verified read-only against production: a 260-day dry run now plans 185
clean actions and flags 59 for review (SPCX->SPCK among them).

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

The FMP symbol-change feed can miss the reverse entry when a ticker is later reassigned: SPCX was renamed to SPCK in April, then SPCX was given to a different company (Space Exploration Technologies) in June with no feed entry. Applying the April change would deactivate the new listing and re-key its bars into the ETF. - refresh_symbol_changes: skip any change whose old symbol still has daily bars more than 14 days past the change date — the old ticker is still alive (recycled, or FMP feed inconsistency). Flagged as needs_review in the returned actions instead of applied. Fresh changes are mathematically unaffected, so the daily task behaves the same. - New exclude parameter / --exclude CLI option to skip named symbols. - CLI reports applied vs needs-review separately. Verified read-only against production: a 260-day dry run now plans 185 clean actions and flags 59 for review (SPCX->SPCK among them). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix(assets): guard symbol-change merges against recycled tickers
All checks were successful
Deploy / check (pull_request) Successful in 3m25s
Deploy / deploy (pull_request) Has been skipped
5e98ceba1a
The FMP symbol-change feed can miss the reverse entry when a ticker is
later reassigned: SPCX was renamed to SPCK in April, then SPCX was given
to a different company (Space Exploration Technologies) in June with no
feed entry. Applying the April change would deactivate the new listing
and re-key its bars into the ETF.

- refresh_symbol_changes: skip any change whose old symbol still has
  daily bars more than 14 days past the change date — the old ticker is
  still alive (recycled, or FMP feed inconsistency). Flagged as
  needs_review in the returned actions instead of applied. Fresh changes
  are mathematically unaffected, so the daily task behaves the same.
- New exclude parameter / --exclude CLI option to skip named symbols.
- CLI reports applied vs needs-review separately.

Verified read-only against production: a 260-day dry run now plans 185
clean actions and flags 59 for review (SPCX->SPCK among them).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
gertjan deleted branch fix/rename-recycled-ticker-guard 2026-07-15 20:14:28 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gertjan/bodega!89
No description provided.