Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
himself65 avatar

Tradingview Reader

  • 841 installs
  • 3.1k repo stars
  • Updated July 21, 2026
  • himself65/finance-skills

tradingview-reader is a Claude Code skill that pulls real-time and historical market data, indicators, and charts from TradingView into agents or scripts for developers who automate financial data access.

About

tradingview-reader is a Claude Code skill from himself65/finance-skills that connects agents and scripts to TradingView market data, technical indicators, and chart outputs. The skill targets developers building trading dashboards, signal bots, or research automations that need live quotes and historical series without manual browser copying. tradingview-reader lists 518 installs on skills.sh and ranks in the finance-skills collection for agent-side market data retrieval. Reach for this skill when wiring OHLCV feeds, indicator values, or chart snapshots into Python or agent workflows backed by TradingView sources.

  • Fetches real-time and historical price data from TradingView
  • Retrieves technical indicators, screeners, and chart metadata
  • Exposes structured JSON output for agent consumption
  • Supports symbol search and multiple timeframes
  • Runs as a lightweight MCP-compatible skill

Tradingview Reader by the numbers

  • 841 all-time installs (skills.sh)
  • +39 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #177 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/himself65/finance-skills --skill tradingview-reader

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs841
repo stars3.1k
Last updatedJuly 21, 2026
Repositoryhimself65/finance-skills

How do you fetch TradingView market data in code?

Pull real-time and historical market data, indicators, and charts directly into their own agents or scripts.

Who is it for?

Developers building trading bots, market dashboards, or quantitative research agents that need TradingView-sourced quotes and indicators programmatically.

Skip if: Teams requiring licensed exchange direct feeds, compliance-audited market data vendors, or non-TradingView data sources only.

When should I use this skill?

A developer asks to read TradingView charts, pull live or historical market data, or embed indicator values into an agent workflow.

What you get

Market data payloads, indicator readings, and chart data structures ready for agent or script consumption.

  • quote payloads
  • indicator series
  • chart data exports

By the numbers

  • 518 installs listed on skills.sh
  • Source repository: himself65/finance-skills

Files

SKILL.mdMarkdownGitHub ↗

TradingView Reader (Read-Only)

Reads TradingView's desktop macOS app for quotes, options chains, and chart state via opencli and a CDP attach to the running TradingView.app process. Powered by the tradingview plugin in this repo's `opencli-plugins/tradingview` tree (a separate plugin from opencli's built-in adapters, installed via opencli's monorepo subpath syntax).

This skill is read-only. Designed for analysis: pulling options chains, checking IV/greeks, capturing chart state. It does NOT place trades, post ideas, modify watchlists, or change chart layouts.

Important: Unlike browser-based opencli readers (twitter, linkedin), this one talks directly to a running TradingView desktop app over Chrome DevTools Protocol. The user must (a) have TradingView.app installed, and (b) be logged in inside that app. The plugin handles relaunching with the debug port.

How it works: data commands harvest session cookies via CDP Storage.getCookies, then fire HTTP requests from Node directly. Page-context fetch is blocked by browser CORS preflight even from TradingView's own pages — the desktop app uses Electron's main process (Node network stack) to bypass this, and we replicate that path. No Browser Bridge extension required, no apps.yaml registration needed.

---

Step 1: Ensure opencli + Plugin Are Installed and Ready

Current environment status:

!`(command -v opencli && opencli tradingview status 2>&1 | head -5 && echo "READY" || echo "SETUP_NEEDED") 2>/dev/null || echo "NOT_INSTALLED"`

If the status above shows READY, skip to Step 2. Otherwise:

NOT_INSTALLED — Install opencli

npm install -g @jackwener/opencli

Requires Node.js >= 21 (or Bun >= 1.0).

SETUP_NEEDED — Install the TradingView plugin and launch with CDP

The TradingView adapter is not built into opencli — it's a separate plugin:

# Install the plugin
opencli plugin install github:himself65/finance-skills/tradingview

# Relaunch TradingView.app with CDP enabled (one-time per session)
opencli tradingview launch

The launch step quits the running TradingView and reopens it with --remote-debugging-port=9222. Warn the user to save chart layouts first if they have unsaved drawings.

Common setup issues

SymptomFix
opencli: command not foundnpm install -g @jackwener/opencli (Node ≥ 22 for built-in WebSocket)
Unknown command: tradingviewopencli plugin install github:himself65/finance-skills/tradingview
Cannot reach CDP at http://127.0.0.1:9222App not launched with debug port — run opencli tradingview launch
No tradingview.com cookies foundApp is open but logged out — log in inside the desktop app
No TradingView tab foundOpen any chart or symbol page in TradingView, then retry
Empty chain / 0 contractsSubscription tier on the logged-in account doesn't include options for this symbol

---

Step 2: Identify What the User Needs

Setup / chart inspection

User RequestCommandKey Flags
Setup / connection checkopencli tradingview status
Relaunch app with CDPopencli tradingview launch--port 9222
What's on the chartopencli tradingview chart-state--tab <id>
Screenshot a chartopencli tradingview screenshot --output ~/charts/nvda.png--tab <id>

Quotes + options

User RequestCommandKey Flags
Spot quoteopencli tradingview quote --ticker X--exchange NASDAQ
Options chain (full)opencli tradingview options-chain --ticker X--exchange
Options chain (one expiry, ATM band)opencli tradingview options-chain --ticker X --expiry YYYY-MM-DD`--type call\
List expiriesopencli tradingview options-expiries --ticker X

Screener

User RequestCommandKey Flags
Generic screener (stocks/crypto/forex/futures/bonds)opencli tradingview screener --market america --columns ...--filter <json>, --sort field:desc, --limit N, --label-product
US stocks with RSI < 30, sorted by volume`opencli tradingview screener --market america --columns "name,close,RSI\60,volume" --filter '[{"left":"RSI\
Top crypto by market capopencli tradingview screener --market coin --columns "name,close,change,market_cap_calc" --sort market_cap_calc:desc --limit 50
Symbol search / autocompleteopencli tradingview search --query "nvidia"`--type stock\

News

User RequestCommandKey Flags
Global news headlinesopencli tradingview news --limit 25--category, --area, --section, --provider
News for a specific tickeropencli tradingview news --symbol NASDAQ:AAPL--limit, `--section analysis\
Full story by idopencli tradingview news --id <story-id>--lang en

Watchlists + alerts

User RequestCommandKey Flags
List all watchlistsopencli tradingview watchlists
Symbols in one watchlistopencli tradingview watchlists --id <wl-id>
Colored-flag list (red/orange/yellow/green/blue/purple)opencli tradingview watchlists --color red
List all alertsopencli tradingview alerts --type list
Active alertsopencli tradingview alerts --type active
Recently triggered alertsopencli tradingview alerts --type triggered
Alerts that fired while offlineopencli tradingview alerts --type offline
Full alert logopencli tradingview alerts --type log

---

Step 3: Execute the Command

General pattern

# Use -f json or -f yaml for structured output
opencli tradingview options-chain --ticker SNDK --expiry 2026-05-22 -f json
opencli tradingview options-chain --ticker NVDA --strikes-around-spot 8 -f csv
opencli tradingview quote --ticker SPY --exchange NYSEARCA -f json

Key rules

1. Run `opencli tradingview status` first if connectivity is uncertain — it reports CDP connection state and active TradingView tabs. 2. Use `-f json` for programmatic processing (LLM context, downstream skills). 3. Filter by expiry and `--strikes-around-spot` — full chains can be 3,000+ rows; an unfiltered dump is rarely what the user wants. 4. Default `--exchange NASDAQ` for US equities; require explicit --exchange for ETFs (e.g. SPY = NYSEARCA, QQQ = NASDAQ) or non-US listings. 5. For `screener`, `--columns` is critical — it controls both the request and the output table. Include name and any field used in --filter or --sort. Append |TF for an indicator's timeframe, e.g. RSI|60 for 1-hour RSI. The default columns are sensible for stocks but should be replaced for crypto / forex / futures (different field catalogs). 6. For `screener`, `--filter` is JSON — array of {left, operation, right} clauses. Always single-quote the JSON in shell to avoid escaping issues. See references/commands.md for the operations cheat sheet. 7. For `news`, narrow the feed early — the global feed is firehose-level. Use --symbol, --category, --section, or --provider before raising --limit. 8. For `search`, prefer it over guessing — when the user gives an ambiguous ticker (e.g. "SPY" without exchange), run search --query SPY first to confirm the listing, then pass --exchange to subsequent commands. 9. For `watchlists` and `alerts`, default to summary — a user asking "what's in my watchlists?" wants list names + counts, not every symbol. 10. NEVER call any write operation. This skill is read-only — no trades, no watchlist edits, no alert creation/deletion, no chart writes. The plugin intentionally does not expose write endpoints (/append, /replace, /create_alert, etc.).

Output format flag (-f)

FormatFlagBest for
Table-f table (default)Human-readable terminal output
JSON-f jsonProgrammatic processing, LLM context
YAML-f yamlStructured output, readable
Markdown-f mdDocumentation, reports
CSV-f csvSpreadsheet export

Output columns

  • quotesymbol, close, change, change_abs, currency, time
  • options-chainexpiry, dte, strike, type, bid, ask, mid, iv, delta, gamma, theta, vega, rho, theo, bid_iv, ask_iv, symbol
  • options-expiriesexpiry, dte, contracts_count
  • screener — dynamic; one column per --columns entry, plus symbol. (Default: name, close, change, volume, market_cap_basic, sector.tr.)
  • searchsymbol, description, type, exchange, country, currency
  • news (list mode) — id, published, provider, title, urgency, related_symbols, link
  • news (story mode, --id set) — id, published, provider, title, body, tags, link
  • watchlistsid, name, symbol_count, symbols
  • alertsid, name, symbol, type, condition, value, active, status, fired_at
  • chart-statelayout_id, symbol, interval, url
  • screenshotpath, bytes

---

Step 4: Present the Results

1. Lead with the structure summary — for an options chain, state spot price, expiry being shown, ATM strike, and IV regime first; then the table. For a screener, lead with the count of matches and the filters applied. 2. Filter aggressively before showing — never paste a 3,000-row chain or a 500-row screener. Default to ATM ± 6 strikes per expiry for chains; for screeners cap to top 20 unless the user asks for more. 3. Highlight skew — when showing both calls and puts, note IV skew direction if material. 4. For chart-state, report layout id + symbol + interval + URL succinctly; offer to screenshot. 5. For news (list mode), group by provider and lead with timestamps in the user's likely timezone (or always UTC ISO if uncertain). Include the link so the user can open the story. For story mode (--id set), the body is plain text — present it as-is, optionally trimmed. 6. For watchlists, summarize counts before listing symbols (e.g. "3 watchlists: Earnings (24 syms), AI plays (12 syms), Hedges (8 syms)"). Don't dump 100-symbol watchlist contents unless asked. 7. For alerts, group by status (active vs triggered/fired) and order recent firings by fired_at desc. Don't expose alert ids unless the user explicitly asks. 8. For screener results, surface the top movers / extreme values in plain prose first (e.g. "highest market cap NVDA at $4.2T, 12 names below the RSI<30 threshold"), then the table. 9. Treat sessions as private — never expose CDP target IDs, cookies, or layout IDs unless the user asks. 10. Cross-reference with Funda when the user is making a trade decision — TradingView's options/screener data is convenient but can lag; for trade entry analysis, also fetch from the funda-data skill and reconcile.

---

Step 5: Diagnostics

opencli tradingview status

Returns CDP connection state and active TradingView tabs. If CDP is down, run opencli tradingview launch to relaunch with the debug port.

---

Error Reference

ErrorCauseFix
Unknown command: tradingviewPlugin not installedopencli plugin install github:himself65/finance-skills/tradingview
Cannot reach CDP at http://127.0.0.1:9222App launched without debug portopencli tradingview launch
No tradingview.com cookies foundLogged out of TradingViewLog in inside the desktop app
No TradingView tab foundApp open but no TradingView page loadedOpen any chart or symbol page, then retry
scanner 400 / Empty chain / totalCount=0Subscription tier doesn't cover this symbol's optionsCheck account tier in the desktop app
Symbol not foundWrong exchangePass --exchange explicitly, or run opencli tradingview search --query <name> first
Rate limitedToo many requestsWait a few seconds, then retry

---

Reference Files

  • references/commands.md — Every command with all flags, output examples, and analyst workflows

Related skills

How it compares

Use tradingview-reader when TradingView is already the charting source of truth and you need agent-accessible quotes instead of building a separate vendor API integration.

FAQ

What data can tradingview-reader retrieve?

tradingview-reader pulls real-time and historical market data, technical indicators, and chart information from TradingView into agents or scripts. Outputs are structured for downstream trading dashboards, bots, or research pipelines.

Who maintains the tradingview-reader skill?

tradingview-reader ships from the himself65/finance-skills repository on skills.sh, where the listing shows 518 installs. Developers invoke it when automating TradingView-sourced quotes and indicators.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.