INNER CODE UNIT · Python

list_available_pairs

Spoofkapoof/TradingViewMCPServer · tradingview_mcp/server.py:296

def list_available_pairs() -> dict:
    """
    List all available forex pairs organized by category.

    Returns:
        Dictionary with majors, crosses, exotics, and commodities
    """
    majors = [p for p in MAJOR_PAIRS if p in FOREX_PAIRS]
    exotics = ["USDTRY", "USDZAR", "USDMXN", "USDBRL"]
    commodities = ["XAUUSD"]
    crosses = [
        p
        for p in FOREX_PAIRS
        if p not in majors and p not in exotics and p not in commodities
    ]

    return {
        "total_pairs": len(FOREX_PAIRS),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…