We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9792eeb commit 7527ae4Copy full SHA for 7527ae4
1 file changed
onchain/analytics/analytics_tools.py
@@ -472,7 +472,7 @@ def get_coingecko_price_data(
472
@tool()
473
@track_tool_usage("analyze_price_trend")
474
def analyze_price_trend(
475
- token_symbol: str, candle_interval: str, num_candles: int
+ token_symbol: str, num_days: int = 90
476
) -> Dict[str, Any]:
477
"""
478
Analyzes price trend for a token including moving averages, volatility metrics,
@@ -482,8 +482,8 @@ def analyze_price_trend(
482
# Get the price history first
483
price_data = get_coingecko_price_data(
484
token_symbol=token_symbol,
485
- candle_interval=candle_interval,
486
- num_candles=num_candles,
+ candle_interval=CandleInterval.DAY,
+ num_candles=num_days,
487
)
488
489
# Check for errors in price data
0 commit comments