Repository navigation
registry: stitch RB's unleaded gasoline predecessor; pin HE unstitched - #127
Merged
Merged
Conversation
RB adds 111652 (NY Harbor unleaded, to 2006-12-05) at scale 1. Unleaded to RBOB is a product change on the same 42,000 gal contract and hedger base: a 43-week migration through 2006 in which combined open interest holds between 127k and 172k and traders move across. The larger-OI rule switches on 2006-08-29. RB now starts 1986. HE's 1996 live-to-lean switch is deliberately left unstitched (the carcass basis changes what a position means); a registry test pins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
111652(NY Harbor unleaded gasoline, 1986 to 2006-12-05) at scale 1. Unleaded to RBOB is a product change on the same 42,000 gal contract and the same hedger base: a 43-week migration through 2006 in which combined open interest holds between 127k and 172k and reportable traders move from one code to the other. The larger-OI rule from get_cot: overlap weeks keep the larger scaled open interest #122 switches on 2006-08-29. RB now starts 1986 (was 2006-02).Verification
Producer run for both codes into a scratch store: RB 1986-01-15 to 2026-10-13, 1,937 weeks, no duplicate dates, one code label. Open interest is continuous at the switch (69,327 then 68,285). The reportable trader count drops at the switch (123 to 71) because traders were split across the two codes mid-migration; it recovers to 97 within four weeks. Anything reading
Traders_Tot_Allacross 2006 should expect that dip.Test plan
test_rb_stitched_he_deliberately_notruff check src tests scriptscleanDeployment
Windows box pulls, next
--cotrun writes one new file, then clear and rebuild the cotmetrics cache for RB.🤖 Generated with Claude Code