Add Polymarket bot scaffold with Kronos adapter, decision engine, executor, and logger#1
Merged
client1429 merged 1 commit intomasterfrom May 6, 2026
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.
Motivation
Description
polymarket_bot/README.mdexplaining the scaffold and how to run the demo withpython -m polymarket_bot.main(defaults todry_run=True).polymarket_bot/config/settings.pyforRiskConfig,StrategyConfig, andRuntimeConfigwith sensible defaults and safety limits.polymarket_bot/data/collector.pythat returns syntheticMarketStatesamples and history for local development.DecisionEngineinpolymarket_bot/decision/engine.pythat computes a Kelly-based size, EV, and simple gating rules based on liquidity and minimum probability.ExecutionEngineinpolymarket_bot/execution/executor.pywith retry logic and adry_runsimulated fill mode, and leave a TODO for real API integration.polymarket_bot/model/kronos_adapter.pythat wrapsKronos,KronosTokenizer, andKronosPredictorto produce a heuristic probability from predicted next price.TradeLoggerinpolymarket_bot/monitoring/logger.pythat appends JSON lines with UTC timestamps to a log file.polymarket_bot/main.pywithrun_once()to wire collector, predictor, decision engine, executor, and logger into an end-to-end demo pipeline.Testing
Codex Task