tradingview-mcp-server: Command for Claude Code

.claude/commands/due-diligence.md

due-diligence is a command for Claude Code from fiale-plus/tradingview-mcp-server. It costs 21 tokens per session (934 once invoked), scanned A, original, MIT.

A command that creates a structured due-diligence report for one stock. Due diligence is the process of checking a potential investment's finances, valuation, risks, and price behavior before making a decision.

In plain words
What is it for?
Use it to examine profitability, growth, debt, cash flow, dividends, valuation, price trends, volatility, sector, and industry for a stock symbol.
Why use it?
It organizes fundamental and technical measures in one repeatable report, so important checks are less likely to be missed.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is fiale-plus/tradingview-mcp-server's own configuration. It tells Claude Code how to work on tradingview-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tradingview-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fiale-plus/tradingview-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fiale-plus/tradingview-mcp-server/main/.claude/commands/due-diligence.md
Clone the repo
git clone --depth 1 https://github.com/fiale-plus/tradingview-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for due-diligence

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/due-diligence/github.svg)](https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/due-diligence)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/due-diligence"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/due-diligence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for due-diligence

Your own site · 80×15
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/due-diligence"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/due-diligence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 934 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00934
Opus 5 $0.00010 $0.00467
Sonnet 5 $0.00004 $0.00187
Haiku 4.5 $0.00002 $0.00093

Measured 9d ago against content hash 13c97e7dcc5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

due-diligence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/due-diligence.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Due Diligence Report

Generate a comprehensive due diligence report for a single stock symbol, covering fundamentals, technicals, and a checklist assessment.

Steps:

  1. Parse the symbol from $ARGUMENTS

    • Accept formats like AAPL, NASDAQ:AAPL, NYSE:JPM
    • If no exchange prefix provided, try common exchanges: NASDAQ:, NYSE:
    • Use the first successfully resolved symbol
  2. Fetch data using mcp__tradingview__lookup_symbols

    • symbols: [normalized symbol, e.g. "NASDAQ:AAPL"]
    • columns:
      • name, close, change, volume, market_cap_basic
      • return_on_equity, price_earnings_ttm, price_book_fq, price_sales_current
      • debt_to_equity, net_margin_ttm, gross_margin_ttm, operating_margin_ttm
      • free_cash_flow_ttm, free_cash_flow_margin_ttm
      • total_revenue_yoy_growth_ttm, earnings_per_share_diluted_yoy_growth_ttm
      • dividends_yield_current, dividend_payout_ratio_ttm
      • RSI, SMA50, SMA200, ATR, beta_1_year
      • Perf.W, Perf.1M, Perf.3M, Perf.Y, Perf.YTD
      • all_time_high, price_52_week_high, price_52_week_low
      • sector, industry, exchange
  3. Present results as a structured due diligence report with the following sections:

    Overview

    • Company name, current price, market cap (formatted: B/T), sector, and industry
    • Exchange and today's price change %

    Valuation

    • P/E (TTM), P/B, P/S, FCF Yield (FCF TTM / Market Cap * 100)
    • Compare to rough benchmarks: P/E <15 cheap, 15-25 fair, >25 premium

    Quality

    • ROE, Gross Margin, Net Margin, Operating Margin, FCF Margin
    • Higher is generally better; flag if any margin is negative

    Growth

    • Revenue YoY Growth % (TTM)
    • EPS Diluted YoY Growth % (TTM)
    • Flag if growth is negative

    Balance Sheet

    • Debt/Equity ratio
    • <0.5 = conservative, 0.5-1 = moderate, >1 = elevated, >2 = high risk

    Dividends

    • Dividend Yield % (current)
    • Payout Ratio %
    • Note if no dividend is paid

    Technical

    • RSI (14): <30 oversold, 30-70 neutral, >70 overbought
    • Price vs SMA50: show % above/below
    • Price vs SMA200: show % above/below (golden/death cross context)
    • ATR (volatility measure), Beta (market sensitivity)

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 86 lines · 21 tokens per session scan A 13c97e7dcc5f

Subscribe to this mod's changes

due-diligence is a command published in the GitHub repository fiale-plus/tradingview-mcp-server (50 stars, last pushed 18d ago), licensed MIT. It adds 21 tokens to every session and 934 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.