fix: thread mainnet through cfi_hedge and clean up strategy registry#65
Open
JaeLeex wants to merge 2 commits into
Open
fix: thread mainnet through cfi_hedge and clean up strategy registry#65JaeLeex wants to merge 2 commits into
JaeLeex wants to merge 2 commits into
Conversation
Route BTCSWP hedge legs to para:BTCSWP/BTCSWP-PARA on mainnet and YEX/OSRS on testnet via resolve_instrument; fix hedge_agent param name, funding_arb description, and registry count test. Co-authored-by: Cursor <cursoragent@cursor.com>
Add para:BTCSWP/BTCSWP-PARA assertions for mainnet hedge paths, align README/skill hedge_agent and funding_arb descriptions with registry. Co-authored-by: Cursor <cursoragent@cursor.com>
0c4a42a to
1cb89c1
Compare
This was referenced Jul 1, 2026
2 tasks
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
cfi_hedgeBTCSWP hedge legs by network: mainnet usespara:BTCSWP/BTCSWP-PARA; testnet defaults to YEX and honors OSRS viaresolve_instrument.mainnet(and optionalhedge_instrument) throughhl run,hl hedge, andCfiHedgeAgent.hedge_agentregistry param (inventory_threshold), clarifyfunding_arbis HL-only (registry + README + skill + code comment), and update registry count test (19 strategies).btcswp_profile,build_cfi_hedge_proposal, andCfiHedgeAgent→BTCSWP-PARA.Stacked on #63 (
jl/osrs-para-btcswp-mainnet-markets).Test plan
pytest tests/test_hedge_margin_port.py tests/test_strategy_registry.py tests/test_instrument_registry.py tests/test_strategy*.py -q(202 passed)