Overview
Trade intervals determine how often your agent can place bets on the same market. This prevents overtrading, manages capital efficiently, and respects market dynamics.Without trade intervals, an agent might continuously bet on the same market every time it runs, wasting gas fees and potentially moving the price against itself.
Why Trade Intervals Matter
Capital Efficiency
Avoid locking too much capital in the same market
Gas Optimization
Reduce unnecessary transaction costs
Price Impact
Give markets time to incorporate new information
Risk Management
Prevent over-concentration in single markets
Available Interval Types
The framework provides two main types of trade intervals:FixedInterval
Wait a fixed amount of time before trading on the same market again.timedelta
required
Time to wait before trading the same market again
MarketLifetimeProportionalInterval
Trade multiple times based on market lifetime, spacing trades proportionally.int
required
Maximum number of trades to place over the market’s lifetime
If a market runs for 28 days and
max_trades=4, the agent will trade roughly every 7 days (28/4).Common Patterns
One-Time Trading
Never trade on the same market twice:Weekly Rebalancing
Trade on markets once per week:- Markets with evolving information
- Long-running markets (>1 month)
- Rebalancing based on new data
Bi-Weekly Updates
Trade every two weeks:Proportional to Market Lifetime
Trade multiple times, spaced evenly across market’s life:- Market open for 8 days → trade every ~2 days
- Market open for 40 days → trade every ~10 days
- Market open for 365 days → trade every ~91 days
Choosing the Right Interval
High-Frequency (< 1 day)
High-Frequency (< 1 day)
When to use:Risks:
- Markets with rapidly changing information
- Scalping strategies
- Arbitrage opportunities
- High gas costs
- Price impact from frequent trading
- Capital concentration
Weekly (7 days)
Weekly (7 days)
When to use:Best for:
- General-purpose trading
- Markets with moderate information flow
- Balanced approach
- Most production agents
- Good balance of updates vs. costs
- Standard rebalancing frequency
Bi-Weekly (14 days)
Bi-Weekly (14 days)
When to use:Best for:
- Long-term markets
- Lower-frequency strategies
- Capital preservation
- Conservative agents
- High-liquidity focus
- Cost-conscious strategies
One-Time (never repeat)
One-Time (never repeat)
When to use:Best for:
- Initial mispricing capture
- Maximum diversification
- Capital-constrained agents
- New market strategies
- Wide market coverage
- Minimal gas usage
Proportional (Market Lifetime)
Proportional (Market Lifetime)
When to use:Best for:
- Mixed market durations
- Adaptive update frequency
- Long-term position management
- Markets of varying durations
- Balanced update strategy
- Dynamic rebalancing
Combining Intervals with Other Settings
High Volume, One-Time Trading
Focused, Frequent Updates
Adaptive to Market Duration
Real-World Examples
Example 1: Market Creator Stalker
Targets specific market creators with moderate update frequency:Example 2: GPT Researcher Agent
High-quality research with weekly rebalancing:Example 3: Statistical Skew Agent
Maximize coverage, never repeat:Advanced: Custom Interval Logic
For complex scenarios, override interval checking:Trade Interval Best Practices
1
Start Conservative
Begin with longer intervals (14+ days) when testing new agents:
2
Monitor Gas Costs
Calculate total gas costs vs. potential profit. More trades aren’t always better.
3
Consider Market Dynamics
- Fast-moving news: Shorter intervals (1-3 days)
- Long-term forecasts: Longer intervals (14+ days)
- Fixed events: One-time bets
4
Balance Capital
Default Behavior
If you don’t specify a trade interval, the default is:Performance Considerations
Testing Trade Intervals
Test different intervals to find optimal settings:Next Steps
Agent Architecture
Understand the full agent lifecycle
Betting Strategies
Optimize bet sizes with Kelly criterion
Supported Markets
Learn about different market platforms