Polymarket Bitcoin Simulator Bot

Job ID: 40534896

Budget: $30 – $250 USD

I need a lightweight Python script that connects to Polymarket’s public data feed, watches the “Bitcoin 5m” market in real time and, in simulation mode only, places a hypothetical $1 UP trade whenever the maximum profit price for the UP side is ≤ $0.10.
Once the trade is opened the script must keep monitoring the same five-minute candle, decide win vs. loss at expiry, and maintain running totals of wins and losses for the entire session.

Core flow
• Pull live order-book or price snapshot for “Bitcoin 5m”.
• On every tick inside the five-minute window, check whether the UP contract is priced at ten cents or below; if so, simulate the $1 buy and lock that instance until resolution.
• At market resolution log whether the simulated position won or lost, increment the appropriate counter, then wait for the next five-minute period.

Logging & reporting
Enable full activity logging—time-stamped entries for price checks, trade entry, resolution result, and any errors—using Python’s logging module at INFO level by default.
Persist the outcome summary in a simple CSV or JSON file so I can review performance later.

Deliverables
1. Clean, well-commented Python code (.py) ready to run with `python3 main.py`
2. Requirements.txt for dependencies (requests, websockets, pandas or similar if you prefer)
3. Sample output file showing stored results and console log excerpt
4. Read-me outlining setup, configuration options (API endpoint, logging level, output file path) and how to start/stop the bot

Acceptance criteria
• Executes continuously without blocking or memory leaks for at least two hours in test.
• Correctly respects the ≤ $0.10 entry rule and never places more than one trade per five-minute round.
• Win/loss counters match the individual stored trade outcomes.

No live orders or wallet keys are involved—everything stays strictly in simulation.