Skip to content

Commit 7527ae4

Browse files
Adam BaloghAdam Balogh
authored andcommitted
simplify
1 parent 9792eeb commit 7527ae4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

onchain/analytics/analytics_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def get_coingecko_price_data(
472472
@tool()
473473
@track_tool_usage("analyze_price_trend")
474474
def analyze_price_trend(
475-
token_symbol: str, candle_interval: str, num_candles: int
475+
token_symbol: str, num_days: int = 90
476476
) -> Dict[str, Any]:
477477
"""
478478
Analyzes price trend for a token including moving averages, volatility metrics,
@@ -482,8 +482,8 @@ def analyze_price_trend(
482482
# Get the price history first
483483
price_data = get_coingecko_price_data(
484484
token_symbol=token_symbol,
485-
candle_interval=candle_interval,
486-
num_candles=num_candles,
485+
candle_interval=CandleInterval.DAY,
486+
num_candles=num_days,
487487
)
488488

489489
# Check for errors in price data

0 commit comments

Comments
 (0)