Skip to content

fix: thread mainnet through cfi_hedge and clean up strategy registry#65

Open
JaeLeex wants to merge 2 commits into
jl/readme-cleanupfrom
jl/strategy-cleanup-cfi-para
Open

fix: thread mainnet through cfi_hedge and clean up strategy registry#65
JaeLeex wants to merge 2 commits into
jl/readme-cleanupfrom
jl/strategy-cleanup-cfi-para

Conversation

@JaeLeex

@JaeLeex JaeLeex commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Route cfi_hedge BTCSWP hedge legs by network: mainnet uses para:BTCSWP / BTCSWP-PARA; testnet defaults to YEX and honors OSRS via resolve_instrument.
  • Thread mainnet (and optional hedge_instrument) through hl run, hl hedge, and CfiHedgeAgent.
  • Fix hedge_agent registry param (inventory_threshold), clarify funding_arb is HL-only (registry + README + skill + code comment), and update registry count test (19 strategies).
  • Add mainnet assertions: btcswp_profile, build_cfi_hedge_proposal, and CfiHedgeAgentBTCSWP-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)

JaeLeex and others added 2 commits July 1, 2026 12:38
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>
@JaeLeex JaeLeex force-pushed the jl/strategy-cleanup-cfi-para branch from 0c4a42a to 1cb89c1 Compare July 1, 2026 16:39
@JaeLeex JaeLeex changed the base branch from jl/osrs-para-btcswp-mainnet-markets to jl/readme-cleanup July 1, 2026 16:40
@JaeLeex

JaeLeex commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Merge order (stacked chain): #63#64#65#66

Rebased onto #64 (jl/readme-cleanup); base updated. #66 adds docs/deploy cleanup (RUN_MODE=mcp, skill.md sync, BTCSWP market map).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant