From 284ba403212dc33696f62ca76b6421f840e2f91b Mon Sep 17 00:00:00 2001 From: Bruno Natalicio Date: Wed, 11 Mar 2026 11:06:51 -0300 Subject: [PATCH] feat(dex): add DEX vendor routing to interface Add DEX vendor constants and tool categories for DEX data routing. Includes coingecko, defillama, and birdeye as vendors with their default tool mappings. Co-Authored-By: Claude Opus 4.6 --- tradingagents/dataflows/interface.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tradingagents/dataflows/interface.py b/tradingagents/dataflows/interface.py index 0caf4b68..8710b637 100644 --- a/tradingagents/dataflows/interface.py +++ b/tradingagents/dataflows/interface.py @@ -65,6 +65,33 @@ VENDOR_LIST = [ "alpha_vantage", ] +# DEX vendors for crypto/decentralized exchange data +DEX_VENDOR_LIST = ["coingecko", "defillama", "birdeye"] + +# Tool categories for DEX +DEX_TOOLS_CATEGORIES = { + "core_token_apis": { + "tools": ["get_token_ohlcv"], + "default": "coingecko" + }, + "token_info": { + "tools": ["get_token_info"], + "default": "coingecko" + }, + "technical_indicators": { + "tools": ["get_token_indicators"], + "default": "coingecko" + }, + "defi_fundamentals": { + "tools": ["get_pool_data", "get_token_info"], + "default": "defillama" + }, + "whale_tracking": { + "tools": ["get_whale_transactions"], + "default": "birdeye" + }, +} + # Mapping of methods to their vendor-specific implementations VENDOR_METHODS = { # core_stock_apis