fix(polymarket): force live-history backtests and remove fixture overrides#66
Merged
fix(polymarket): force live-history backtests and remove fixture overrides#66
Conversation
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
This PR now enforces a strict backtest data-source policy for Polymarket maker skills and replaces weak-performing/removed strategies.
Current strategy set in this PR:
polymarket/high-throughput-paired-basis-makerpolymarket/paired-market-basis-makerpolymarket/liquidity-paired-basis-makerpolymarket/maker-rebate-botpolymarket/news-shock-guard-makerpolymarket/resolution-decay-makerData Source Enforcement (No Drift)
All backtests in the maker set are now locked to the Seren Polymarket Publisher, not direct Polymarket endpoints.
Runtime policy guards
SEREN_POLYMARKET_PUBLISHER_PREFIXhard checks in maker runtimes.policy_violation: backtest data source must use Seren Polymarket publisher ...Authorization: Bearer $SEREN_API_KEYmissing_seren_api_key: set SEREN_API_KEY to query Seren publishers.Config lock
https://api.serendb.com/publishers/polymarket-data/marketshttps://api.serendb.com/publishers/polymarket-data/prices-historyCI policy gate
.github/workflows/enforce-seren-polymarket-publisher.ymlgamma-api.polymarket.com/clob.polymarket.comURLs appear in maker runtimes/configsOther Reliability Fixes Retained
events >= min_events)total_return_pct >= -100%,max_drawdown_pct <= 100%)Validation
python3 -m py_compile polymarket/maker-rebate-bot/scripts/agent.py polymarket/paired-market-basis-maker/scripts/agent.py polymarket/liquidity-paired-basis-maker/scripts/agent.py polymarket/high-throughput-paired-basis-maker/scripts/agent.pypytest --import-mode=importlib polymarket/maker-rebate-bot/tests/test_smoke.py polymarket/paired-market-basis-maker/tests/test_smoke.py polymarket/liquidity-paired-basis-maker/tests/test_smoke.py polymarket/high-throughput-paired-basis-maker/tests/test_smoke.py