INNER CODE UNIT · Python
analyze_pair
Spoofkapoof/TradingViewMCPServer · tradingview_mcp/server.py:356
def analyze_pair(symbol: str, timeframe: str = "1h") -> dict:
"""
Comprehensive technical analysis for any symbol.
Args:
symbol: Symbol (e.g., 'EURUSD', 'AAPL', 'BTC')
timeframe: Time interval ('5m', '15m', '1h', '4h', '1d')
Returns:
Detailed analysis including price, indicators, and trading recommendation
"""
# Get current price
quote = get_quote(symbol)
if "error" in quote:
return quote
asset_type = quote.get("asset_type", "unknown")