TradingAgents/tradingagents/dataflows
Tomortec 375b09b0e9 feat: get crypto data from Binance 2025-06-26 21:47:12 +08:00
..
README.md feat: get news from Blockbeats and CoinDesk 2025-06-26 21:42:33 +08:00
__init__.py feat: get crypto data from Binance 2025-06-26 21:47:12 +08:00
binance_utils.py feat: get crypto data from Binance 2025-06-26 21:47:12 +08:00
blockbeats_utils.py feat: get news from Blockbeats and CoinDesk 2025-06-26 21:42:33 +08:00
coindesk_utils.py feat: get news from Blockbeats and CoinDesk 2025-06-26 21:42:33 +08:00
config.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
finnhub_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
googlenews_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
interface.py feat: get crypto data from Binance 2025-06-26 21:47:12 +08:00
reddit_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
stockstats_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
yfin_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00

README.md

Dataflows

To add a new data source

  1. create a file with filename [sth]_utils.py and fetch data in it
  2. go to interface.py and wrap your utility in a function returning a str
  3. go to __init__.py and expose your function in interface.py
  4. go to agent_utils.py and wrap your function in class Toolkit with the following template:
    @staticmethod
    @tool
    def get_sth(params: Annotated[type, "comments"]):
        """docs"""
        return interface.your_func(params)
    
  5. modify _create_tool_nodes in trading_graph.py and news_analyst_node in each analyst creation file in tradingagents/agents/analysts/[sth]_analyst.py
  6. (OPTIONAL) modify prompts to tell models when to use the utility