gnosis / prediction-market-agent

GNU Lesser General Public License v3.0
32 stars 6 forks source link

Implement dynamic betting intervals for long-running markets #524

Closed coderabbitai[bot] closed 3 weeks ago

coderabbitai[bot] commented 1 month ago

As per this comment, @evangriffiths suggested that for long-running markets, we might want to define betting intervals dynamically based on the duration of the market. Instead of using a fixed time interval, consider having max_bets_per_market: int = 10, and check if a timedelta of market_duration / 10 has elapsed since the last bet.

This approach would space out bets uniformly over the market's duration.

PR: https://github.com/gnosis/prediction-market-agent/pull/523 Comment: https://github.com/gnosis/prediction-market-agent/pull/523#discussion_r1806623151 Requested by: @kongzii

evangriffiths commented 3 weeks ago

Fixed by https://github.com/gnosis/prediction-market-agent-tooling/pull/531