feat(synth-overlay): expand to 5min/15min markets and ETH/SOL assets#13
Open
bitloi wants to merge 1 commit intoentrius:mainfrom
Open
feat(synth-overlay): expand to 5min/15min markets and ETH/SOL assets#13bitloi wants to merge 1 commit intoentrius:mainfrom
bitloi wants to merge 1 commit intoentrius:mainfrom
Conversation
- Add get_polymarket_5min() and get_polymarket_15min() methods to SynthClient - Add asset parameter to get_polymarket_daily() and get_polymarket_hourly() - Update matcher.py with MARKET_5MIN and MARKET_15MIN type detection - Add short asset prefixes (btc-, eth-, sol-) to asset detection - Preserve dual-horizon analysis (1h vs 24h) for daily/hourly markets - Add analyze_single_horizon() with cross-horizon reference for 5min/15min - Update Chrome extension UI for dynamic horizon labels and asset display - Add mock data for 5min/15min markets and ETH/SOL daily/hourly - 80 tests passing including 6 new analyzer + 8 new server tests Closes entrius#11
Contributor
Author
|
Hi @e35ventura Please check the pr and give me your feedback. |
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
Expand the synth-overlay Chrome extension tool to support:
This implementation preserves the existing dual-horizon analysis (1h vs 24h cross-comparison) for daily/hourly markets while adding single-horizon analysis with reference-horizon context for the new 5min/15min markets.
Key Changes
synth_client/client.pyget_polymarket_5min(),get_polymarket_15min(); addedassetparam to daily/hourly methodstools/synth-overlay/matcher.pyMARKET_5MIN,MARKET_15MINdetection; added short prefixes (btc-, eth-, sol-) for asset extractiontools/synth-overlay/server.pytools/synth-overlay/analyzer.pyanalyze_single_horizon()with cross-horizon reference and horizon-appropriate invalidation texttools/synth-overlay/extension/mock_data/polymarket/Demo Video
https://screenrec.com/share/oGic2vSunU
Demo covers:
Related Issues
Closes #11
Type of Change
Testing
Test Results
.venv/bin/python -m pytest tools/synth-overlay/tests/ -v # 80 passed, 1 warning in 0.19sNew tests added:
TestSingleHorizonAnalysis(6 tests) — covers single-horizon edge extraction, reference confirmation/conflict, horizon-specific invalidation textVerification Steps
Start the server:
Test API endpoints:
Load extension in Chrome:
tools/synth-overlay/extensionChecklist
Files Changed
synth_client/client.pytools/synth-overlay/server.pytools/synth-overlay/analyzer.pyanalyze_single_horizon()with reference contexttools/synth-overlay/matcher.pytools/synth-overlay/extension/sidepanel.htmltools/synth-overlay/extension/sidepanel.jstools/synth-overlay/README.mdtools/synth-overlay/tests/test_analyzer.pytools/synth-overlay/tests/test_matcher.pytools/synth-overlay/tests/test_server.pymock_data/polymarket/*.json