agents
agents copied to clipboard
add dollar-cost averaging strategy
Adds a simple example demonstrating a DCA trading loop, showing how to use the client to select a market and repeatedly place small orders.
[!NOTE] Introduces a minimal DCA strategy example demonstrating periodic order placement flow.
- New
agents/examples/dca_strategy.pyusesPolymarketclient to fetch markets and pick the target viamin(..., key=lambda m: m.spread)- Configurable
amount_per_purchaseandinterval_seconds; runs an infinite loop printing intended buys (placeholder forclient.place_order(...))Written by Cursor Bugbot for commit a7f444aa3c96d01305cde45326b4895aee7afac9. This will update automatically on new commits. Configure here.