TradingAgents/tradingagents/dataflows
Tomortec 977873dd47 fix: KEY 2025-07-02 18:07:14 +08:00
..
README.md feat: get news from Blockbeats and CoinDesk 2025-06-26 21:42:33 +08:00
__init__.py feat: fetch posts from Reddit 2025-07-02 17:46:48 +08:00
alternativeme_utils.py feat: add fear and greed index dataflow 2025-07-01 18:14:06 +08:00
binance_utils.py feat: add fear and greed index dataflow 2025-07-01 18:14:06 +08:00
blockbeats_utils.py fix: unexpected recusion caused by same name functions 2025-06-27 23:32:47 +08:00
coindesk_utils.py fix: unexpected recusion caused by same name functions 2025-06-27 23:32:47 +08:00
coinstats_utils.py fix: KEY 2025-07-02 18:07:14 +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 feat: deprecate stock utilities 2025-06-27 23:34:48 +08: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: fetch posts from Reddit 2025-07-02 17:46:48 +08:00
reddit_utils.py feat: fetch posts from Reddit 2025-07-02 17:46:48 +08:00
stockstats_utils.py refactor: replace 'company' naming with 'asset' 2025-07-02 00:09:26 +08:00
taapi_utils.py feat: get ta indicators from taapi 2025-07-01 20:39:11 +08:00
utils.py feat: get ta indicators from taapi 2025-07-01 20:39:11 +08:00
yfin_utils.py refactor: replace 'company' naming with 'asset' 2025-07-02 00:09:26 +08: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