INNER CODE UNIT · Python
list_supported_assets
Spoofkapoof/TradingViewMCPServer · tradingview_mcp/server.py:323
def list_supported_assets() -> dict:
"""
List all supported assets by category.
Returns:
Forex pairs, popular stocks, cryptocurrencies
"""
return {
"forex": {
"count": len(FOREX_PAIRS),
"majors": FOREX_PAIRS[:7],
"crosses": FOREX_PAIRS[7:16],
"exotics": FOREX_PAIRS[16:20],
"commodities": ["XAUUSD"],
},
"stocks": {
"count": len(POPULAR_STOCKS),
"popular": POPULAR_STOCKS[:20],