Repository navigation
Add get_cot(..., listing=) to read one listing of a summed market - #132
Merged
Merged
Conversation
listing="primary" returns the stitched primary series without sum_codes (the E-mini alone for ES/NQ/YM/RTY); a sum_codes code returns that listing alone, unscaled. The default (None) is unchanged. cotmetrics uses this to index the E-mini and Micro separately, matching the CMR sheet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
mspinola
added a commit
to mspinola/cotmetrics
that referenced
this pull request
Nov 21, 2026
* Add a CMR index family and E-mini/Micro/Combined equity twins New per-instrument CmrLookbackWeeks (falls back to CustomLookbackWeeks) drives "CMR" index columns for all three legs. For ES/NQ/YM/RTY the CMR column indexes the E-mini alone, with CMR Micro and CMR Combined twins at the same lookback, each listing indexed over its own history. Existing Custom/26/52 columns are unchanged. METRICS_CACHE_VERSION bumped to 2. Requires cotdata get_cot(..., listing=) (mspinola/cotdata#132). Co-Authored-By: Claude Opus 5.5 <[email protected]> * Raise the cotdata floor to 0.5.0 for get_cot(..., listing=) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- 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
get_cot(name, report, combined, listing=None):"primary"reads the stitched primary series without thesum_codeslistings; asum_codescode reads that listing alone, unscaled. Unknown codes and non-registry names raiseValueError.Tests
tests/test_cot_sum.py; full suite 273 passed.Follow-up at release: bump the version so cotmetrics can raise its
cotdatafloor.🤖 Generated with Claude Code