Add pricing experiment suite and cache measurement#61
Open
JaeLeex wants to merge 2 commits into
Open
Conversation
Introduce pricing_loop, cache_savings_experiment, validate_combined_ledger, and pricing_experiment_suite; improve funded combined runs with cache metrics and fill polling; allow hl trade --dry-run without a private key. Co-authored-by: Cursor <cursoragent@cursor.com>
Include market whitelist and pulse webhook modules, HOUSE-Jump preset config, railpack metadata, and web-auth/Hyperliquid action test coverage for the pricing experiment suite. Co-authored-by: Cursor <cursoragent@cursor.com>
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
pricing_loop,pricing_experiment_suite,cache_savings_experiment, andvalidate_combined_ledger.funded_btcswp_combined_run.pywith OpenRouter cache metrics, optional fill polling, and ledger validation hooks.modules/openrouter_usage.pyfor shared cache metric extraction.strategies/llm_monitoring.pyfor monitoring/hedge-heartbeat qualification runs.hl trade --dry-runso it no longer requires a private key when--priceis explicit.Experiment commands
Validation
python3 -m pytest tests/test_openrouter_usage.py tests/test_validate_combined_ledger.py tests/test_trade_command.py tests/test_cost_metering.py— passpython3 scripts/pricing_experiment_suite.py --suite combined_dry_run --skip-live— passStack
Made with Cursor