Skill detail

tradingview-reader

Reads TradingView market data, options, alerts, and screeners.

MatchDirectReviewed for trading
Sourcehimself65/finance-skillsExternal source
Reported installs894Popularity signal only

Inspect before use

Automated review checks relevance, not safety or endorsement. Read the source instructions before using this skill.

Saved source preview

SKILL.md

The saved excerpt is a snapshot from review. The external source remains the complete and most current version.

---
name: tradingview-reader
description: >
  Read TradingView desktop app for market data, news, alerts, watchlists,
  and screener results using opencli (read-only).
  Use this skill whenever the user wants quotes, options chains, options
  expiries, screener results across stocks/crypto/forex/futures/bonds,
  gainers/losers/movers, news headlines or full story bodies, alerts
  (active list, fire log, offline fires), watchlists including colored
  flag lists, symbol search/autocomplete, chart state, or screenshots
  from their local TradingView.app. Triggers include: "options chain for
  X", "IV on Y", "show me SNDK puts", "TV screener for Y sector", "screen
  oversold stocks", "TV gainers", "crypto by market cap", "TradingView
  news on AAPL", "show my watchlists", "red flag list", "list my alerts",
  "what alerts fired", "search TV for nvidia", "what symbol is on my
  chart", "screenshot NVDA chart", "TradingView IV skew", "TV expiries
  for X". This skill is READ-ONLY — it does NOT place trades, modify
  watchlists, or change chart layouts.
---

# TradingView Reader (Read-Only)

Reads TradingView's desktop macOS app for quotes, options chains, and chart state via [opencli](https://github.com/jackwener/opencli) and a CDP attach to the running TradingView.app process. Powered by the `tradingview` plugin in this repo's [`opencli-plugins/tradingview`](https://github.com/himself65/finance-skills/tree/main/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

```bash
npm install -g @jackwener/opencli
```

Requires Node.js >= 24 — the `tradingview` plugin installed in the next step declares `engines.node >= 24`.

### SETUP_NEEDED — Install the TradingView plugin and launch with CDP

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

```bash
# 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

| Symptom | Fix |
|---|---|
| `opencli: command not found` | `npm install -g @jackwener/opencli` (Node ≥ 24) |
| `Unknown command: tradingview` | `opencli plugin install github:himself65/finance-skills/tradingview` |
| `Cannot reach CDP at http://127.0.0.1:9222` | App not launched with debug port — run `opencli tradingview launch` |
| `No tradingview.com cookies found` | App is open but logged out — log in inside the desktop app |
| `No TradingView tab f
Read the full source on GitHub (opens external page)
Context

Related work