INNER CODE UNIT · Python
get_market_profile
Spoofkapoof/TradingViewMCPServer · tradingview_mcp/server.py:895
def get_market_profile(symbol: str, timeframe: str = "1h") -> dict:
"""
Get market profile analysis with TPO, POC, and value areas.
Args:
symbol: Symbol (e.g., 'EURUSD', 'AAPL', 'BTC')
timeframe: Time interval ('5m', '15m', '1h', '4h', '1d')
Returns:
Market profile with POC, value area high/low, and TPO data
"""
hist_data = get_historical_data(symbol, timeframe)
if not hist_data.get("success"):
return hist_data
profile = calculate_market_profile(hist_data["data"])