3 views

TauricResearch/TradingAgents

TradingAgents: Multi-Agents LLM Financial Trading Framework

Python★ 116,449+1,395 that day#2 on trending

Analyzed October 27, 2026 at e8f5503 (main) with jscpd v5 in 1.1s. Code duplication went from 1.34% on Sep 10 to 1.75% on Oct 27.

B83.6/100
Project health28,231 lines of code (M)
Duplication89
1.3% in python, docker
Dead code98
0%
Complexity67
29.3%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

1.75%duplicated code · 183 of 10,484 lines
16clones in code
64code files of 185 scanned
1.26%duplicated over all files · 40 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.

Largest clones in the code

  • 30 lines in 2 placespython117 tokens
    51    + """ Make sure to append a Markdown table at the end of the report to organize key points in the report, organized and easy to read."""
    52    + get_language_instruction()
    53)
    54
    55prompt = ChatPromptTemplate.from_messages(
    56    [
    57        (
    58            "system",
    59            "You are a helpful AI assistant, collaborating with other assistants."
    60            " Use the provided tools to progress towards answering the question."
    

    First 10 of 30 lines.

  • 8 lines in 3 placespython57 tokens
    115def get_balance_sheet(
    116    ticker: Annotated[str, InjectedState("company_of_interest")],
    117    freq: Annotated[str, "reporting frequency: annual/quarterly"] = "quarterly",
    118    curr_date: Annotated[str, "current date you are trading at, yyyy-mm-dd"] = None,
    119    trade_date: Annotated[str, InjectedState("trade_date")] = "",
    120) -> str:
    121    """
    122    Retrieve balance sheet data for the instrument under analysis.
    
    134def get_cashflow(
    135    ticker: Annotated[str, InjectedState("company_of_interest")],
    136    freq: Annotated[str, "reporting frequency: annual/quarterly"] = "quarterly",
    137    curr_date: Annotated[str, "current date you are trading at, yyyy-mm-dd"] = None,
    138    trade_date: Annotated[str, InjectedState("trade_date")] = "",
    139) -> str:
    140    """
    141    Retrieve cash flow statement data for the instrument under analysis.
    
  • 29 lines in 2 placespython113 tokens
    32    + get_language_instruction()
    33)
    34
    35prompt = ChatPromptTemplate.from_messages(
    36    [
    37        (
    38            "system",
    39            "You are a helpful AI assistant, collaborating with other assistants."
    40            " Use the provided tools to progress towards answering the question."
    41            " If you are unable to fully answer, that's OK; another assistant with different tools"
    

    First 10 of 29 lines.

7 more
Largest clones over all files, tests and data included
  • 8 lines in 3 placespythontests69 tokens
    517with patch("yfinance.Ticker") as mock_ticker_cls:
    518    def _make_ticker(sym):
    519        m = MagicMock()
    520        m.history.return_value = _price_df(spy_prices if sym == "SPY" else stock_prices)
    521        return m
    522    mock_ticker_cls.side_effect = _make_ticker
    523    raw, alpha, days, resolved = settlement.fetch_returns("NVDA", "2026-01-05")
    524assert raw is not None and alpha is not None and days is not None
    
    553with patch("yfinance.Ticker") as mock_ticker_cls:
    554    def _make_ticker(sym):
    555        m = MagicMock()
    556        m.history.return_value = _price_df(spy_prices if sym == "SPY" else stock_prices)
    557        return m
    558    mock_ticker_cls.side_effect = _make_ticker
    559    raw, alpha, days, resolved = settlement.fetch_returns("NVDA", "2026-01-05")
    560assert raw is not None and alpha is not None
    
  • 10 lines in 2 placespythontests128 tokens
    53})
    54
    55with mock.patch.dict(os.environ, env, clear=False), \
    56     mock.patch.object(cli_selections, "DEFAULT_CONFIG", fake_cfg), \
    57     mock.patch.object(cli_selections.updates, "enabled", return_value=False), \
    58     mock.patch.object(cli_selections, "get_ticker", return_value="AAPL"), \
    59     mock.patch.object(cli_selections, "get_analysis_date", return_value="2026-05-29"), \
    60     mock.patch.object(cli_selections, "select_analysts", return_value=[]), \
    61     mock.patch.object(cli_selections, "select_research_depth", return_value=1), \
    62     mock.patch.object(cli_selections, "ensure_api_key") as ensure_key, \
    
    122fake_cfg.update({"openai_reasoning_effort": "high"})
    123
    124with mock.patch.dict(os.environ, env, clear=False), \
    125     mock.patch.object(cli_selections, "DEFAULT_CONFIG", fake_cfg), \
    126     mock.patch.object(cli_selections.updates, "enabled", return_value=False), \
    127     mock.patch.object(cli_selections, "get_ticker", return_value="AAPL"), \
    128     mock.patch.object(cli_selections, "get_analysis_date", return_value="2026-05-29"), \
    129     mock.patch.object(cli_selections, "select_analysts", return_value=[]), \
    130     mock.patch.object(cli_selections, "select_research_depth", return_value=1), \
    131     mock.patch.object(cli_selections, "ensure_api_key"), \
    
  • 30 lines in 2 placespython117 tokens
    51    + """ Make sure to append a Markdown table at the end of the report to organize key points in the report, organized and easy to read."""
    52    + get_language_instruction()
    53)
    54
    55prompt = ChatPromptTemplate.from_messages(
    56    [
    57        (
    58            "system",
    59            "You are a helpful AI assistant, collaborating with other assistants."
    60            " Use the provided tools to progress towards answering the question."
    

    First 10 of 30 lines.

  • 8 lines in 3 placespython57 tokens
  • 29 lines in 2 placespython113 tokens
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python6410,484161831.75%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
python17028,241403781.34%
markdown21,155000%
yaml7305000%
toml189000%
markup167000%
bash139000%
docker130000%
text19000%
txt17000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Oct 27, 2026#2116,449 (+1,395)18529,942401.26%1.75%B 83.6e8f5503
Oct 26, 2026#3114,871 (+381)18529,942401.26%1.75%B 83.6e8f5503
Sep 15, 2026#9106,305 (+745)15720,349201.19%1.34%—be952b8
Sep 10, 2026#6104,143 (+367)15720,349201.19%1.34%—be952b8

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.