TradingView Reader (Read-Only)
Read TradingView desktop app for market data, news, alerts, watchlists, and screener results using opencli (read-only).
How to use it
Claude Code
- Run the line below. It pulls the whole folder into
~/.claude/skills/tradingview-reader, including the files SKILL.md points to. - Describe your job in plain words. Claude Code follows the skill from there.
npx degit himself65/finance-skills/plugins/data-providers/skills/tradingview-reader#main ~/.claude/skills/tradingview-readerFor one project only, change the path to .claude/skills/tradingview-reader. This skill also uses apps.yaml, Node.js — copying SKILL.md alone won't be enough. See the folder on GitHub.
Claude (web or desktop app)
- On this page open ⋯ → Download .md.
- Save it as SKILL.md in a folder, zip the folder, then Customize → Skills → + → Create skill → Upload a skill.
- Pick the file and Save. Claude shows the name and description and runs a security scan.
- Check the skill is switched on.
- Start a new chat and describe your job in plain words. The AI follows the skill from there.
ChatGPT or another app
- ChatGPT: make a Project and paste it into Instructions.
- Neither? Paste it at the top of a new chat — it works for that chat.
Not working?
- Check which app you pasted it into — the steps above name the right one.
- Some skills need the paid tier of Claude or ChatGPT.
Paste into Claude, ChatGPT or Cursor.
Source of TradingView Reader (Read-Only)
Show the full text223 lines
| name | description |
|---|---|
| tradingview-reader | > 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 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.
Headless alternative: for plain quotes, TA readouts, screeners, futures, or a greeks-free options chain, prefer the sibling
tradingview-mcpskill (bundled MCP server, no desktop app, no CDP relaunch). Use this skill when you need greeks / per-strike IV skew, expiries with contract counts, or account-bound data (watchlists, alerts, charts, TV news).
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 >= 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:
# 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 found |
Open any chart or symbol page in TradingView, then retry |
| Empty chain / 0 contracts | Subscription tier on the logged-in account doesn't include options for this symbol |
Step 2: Identify What the User Needs
Setup / chart inspection
| User Request | Command | Key Flags |
|---|---|---|
| Setup / connection check | opencli tradingview status |
— |
| Relaunch app with CDP | opencli tradingview launch |
--port 9222 |
| What's on the chart | opencli tradingview chart-state |
--tab <id> |
| Screenshot a chart | opencli tradingview screenshot --output ~/charts/nvda.png |
--tab <id> |
Quotes + options
| User Request | Command | Key Flags |
|---|---|---|
| Spot quote | opencli 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|put, --strikes-around-spot N |
| List expiries | opencli tradingview options-expiries --ticker X |
— |
Screener
| User Request | Command | Key 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|60","operation":"less","right":30}]' --sort volume:desc |
— |
| Top crypto by market cap | opencli tradingview screener --market coin --columns "name,close,change,market_cap_calc" --sort market_cap_calc:desc --limit 50 |
— |
| Symbol search / autocomplete | opencli tradingview search --query "nvidia" |
--type stock|funds|crypto|..., --exchange, --country |
News
| User Request | Command | Key Flags |
|---|---|---|
| Global news headlines | opencli tradingview news --limit 25 |
--category, --area, --section, --provider |
| News for a specific ticker | opencli tradingview news --symbol NASDAQ:AAPL |
--limit, --section analysis|press_release|... |
| Full story by id | opencli tradingview news --id <story-id> |
--lang en |
Watchlists + alerts
| User Request | Command | Key Flags |
|---|---|---|
| List all watchlists | opencli tradingview watchlists |
— |
| Symbols in one watchlist | opencli tradingview watchlists --id <wl-id> |
— |
| Colored-flag list (red/orange/yellow/green/blue/purple) | opencli tradingview watchlists --color red |
— |
| List all alerts | opencli tradingview alerts --type list |
— |
| Active alerts | opencli tradingview alerts --type active |
— |
| Recently triggered alerts | opencli tradingview alerts --type triggered |
— |
| Alerts that fired while offline | opencli tradingview alerts --type offline |
— |
| Full alert log | opencli 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
- Run
opencli tradingview statusfirst if connectivity is uncertain — it reports CDP connection state and active TradingView tabs. - Use
-f jsonfor programmatic processing (LLM context, downstream skills). - Filter by expiry and
--strikes-around-spot— full chains can be 3,000+ rows; an unfiltered dump is rarely what the user wants. - Default
--exchange NASDAQfor US equities; require explicit--exchangefor ETFs (e.g. SPY = NYSEARCA, QQQ = NASDAQ) or non-US listings. - For
screener,--columnsis critical — it controls both the request and the output table. Includenameand any field used in--filteror--sort. Append|TFfor an indicator's timeframe, e.g.RSI|60for 1-hour RSI. The default columns are sensible for stocks but should be replaced for crypto / forex / futures (different field catalogs). - For
screener,--filteris JSON — array of{left, operation, right}clauses. Always single-quote the JSON in shell to avoid escaping issues. Seereferences/commands.mdfor the operations cheat sheet. - For
news, narrow the feed early — the global feed is firehose-level. Use--symbol,--category,--section, or--providerbefore raising--limit. - For
search, prefer it over guessing — when the user gives an ambiguous ticker (e.g. "SPY" without exchange), runsearch --query SPYfirst to confirm the listing, then pass--exchangeto subsequent commands. - For
watchlistsandalerts, default to summary — a user asking "what's in my watchlists?" wants list names + counts, not every symbol. - 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)
| Format | Flag | Best for |
|---|---|---|
| Table | -f table (default) |
Human-readable terminal output |
| JSON | -f json |
Programmatic processing, LLM context |
| YAML | -f yaml |
Structured output, readable |
| Markdown | -f md |
Documentation, reports |
| CSV | -f csv |
Spreadsheet export |
Output columns
quote—symbol,close,change,change_abs,currency,timeoptions-chain—expiry,dte,strike,type,bid,ask,mid,iv,delta,gamma,theta,vega,rho,theo,bid_iv,ask_iv,symboloptions-expiries—expiry,dte,contracts_countscreener— dynamic; one column per--columnsentry, plussymbol. (Default:name,close,change,volume,market_cap_basic,sector.tr.)search—symbol,description,type,exchange,country,currencynews(list mode) —id,published,provider,title,urgency,related_symbols,linknews(story mode,--idset) —id,published,provider,title,body,tags,linkwatchlists—id,name,symbol_count,symbolsalerts—id,name,symbol,type,condition,value,active,status,fired_atchart-state—layout_id,symbol,interval,urlscreenshot—path,bytes
Step 4: Present the Results
- 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.
- 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.
- Highlight skew — when showing both calls and puts, note IV skew direction if material.
- For chart-state, report layout id + symbol + interval + URL succinctly; offer to screenshot.
- 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 (
--idset), the body is plain text — present it as-is, optionally trimmed. - 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.
- For alerts, group by status (active vs triggered/fired) and order recent firings by
fired_atdesc. Don't expose alert ids unless the user explicitly asks. - 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.
- Treat sessions as private — never expose CDP target IDs, cookies, or layout IDs unless the user asks.
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
| Error | Cause | Fix |
|---|---|---|
Unknown command: tradingview |
Plugin not installed | opencli plugin install github:himself65/finance-skills/tradingview |
Cannot reach CDP at http://127.0.0.1:9222 |
App launched without debug port | opencli tradingview launch |
No tradingview.com cookies found |
Logged out of TradingView | Log in inside the desktop app |
No TradingView tab found |
App open but no TradingView page loaded | Open any chart or symbol page, then retry |
scanner 400 / Empty chain / totalCount=0 |
Subscription tier doesn't cover this symbol's options | Check account tier in the desktop app |
Symbol not found |
Wrong exchange | Pass --exchange explicitly, or run opencli tradingview search --query <name> first |
| Rate limited | Too many requests | Wait a few seconds, then retry |
Reference Files
references/commands.md— Every command with all flags, output examples, and analyst workflows
| 1 | |
| 2 | name tradingview-reader |
| 3 | description > |
| 4 | Read TradingView desktop app for market data, news, alerts, watchlists, |
| 5 | and screener results using opencli (read-only). |
| 6 | Use this skill whenever the user wants quotes, options chains, options |
| 7 | expiries, screener results across stocks/crypto/forex/futures/bonds, |
| 8 | gainers/losers/movers, news headlines or full story bodies, alerts |
| 9 | (active list, fire log, offline fires), watchlists including colored |
| 10 | flag lists, symbol search/autocomplete, chart state, or screenshots |
| 11 | from their local TradingView.app. Triggers include: "options chain for |
| 12 | X", "IV on Y", "show me SNDK puts", "TV screener for Y sector", "screen |
| 13 | oversold stocks", "TV gainers", "crypto by market cap", "TradingView |
| 14 | news on AAPL", "show my watchlists", "red flag list", "list my alerts", |
| 15 | "what alerts fired", "search TV for nvidia", "what symbol is on my |
| 16 | chart", "screenshot NVDA chart", "TradingView IV skew", "TV expiries |
| 17 | for X". This skill is READ-ONLY — it does NOT place trades, modify |
| 18 | watchlists, or change chart layouts. |
| 19 | |
| 20 | |
| 21 | # TradingView Reader (Read-Only) |
| 22 | |
| 23 | 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). |
| 24 | |
| 25 | **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. |
| 26 | |
| 27 | > **Headless alternative**: for plain quotes, TA readouts, screeners, futures, or a greeks-free options chain, prefer the sibling `tradingview-mcp` skill (bundled MCP server, no desktop app, no CDP relaunch). Use *this* skill when you need greeks / per-strike IV skew, expiries with contract counts, or account-bound data (watchlists, alerts, charts, TV news). |
| 28 | |
| 29 | **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. |
| 30 | |
| 31 | **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. |
| 32 | |
| 33 | |
| 34 | |
| 35 | ## Step 1: Ensure opencli + Plugin Are Installed and Ready |
| 36 | |
| 37 | **Current environment status:** |
| 38 | |
| 39 | |
| 40 | !`(command -v opencli && opencli tradingview status 2>&1 | head -5 && echo "READY" || echo "SETUP_NEEDED") 2>/dev/null || echo "NOT_INSTALLED"` |
| 41 | |
| 42 | |
| 43 | If the status above shows `READY`, skip to Step 2. Otherwise: |
| 44 | |
| 45 | ### NOT_INSTALLED — Install opencli |
| 46 | |
| 47 | |
| 48 | npm install -g @jackwener/opencli |
| 49 | |
| 50 | |
| 51 | Requires Node.js >= 24 — the `tradingview` plugin installed in the next step declares `engines.node >= 24`. |
| 52 | |
| 53 | ### SETUP_NEEDED — Install the TradingView plugin and launch with CDP |
| 54 | |
| 55 | The TradingView adapter is **not** built into opencli — it's a separate plugin: |
| 56 | |
| 57 | |
| 58 | # Install the plugin |
| 59 | opencli plugin install github:himself65/finance-skills/tradingview |
| 60 | |
| 61 | # Relaunch TradingView.app with CDP enabled (one-time per session) |
| 62 | opencli tradingview launch |
| 63 | |
| 64 | |
| 65 | 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. |
| 66 | |
| 67 | ### Common setup issues |
| 68 | |
| 69 | | Symptom | Fix | |
| 70 | |---|---| |
| 71 | | `opencli: command not found` | `npm install -g @jackwener/opencli` (Node ≥ 24) | |
| 72 | | `Unknown command: tradingview` | `opencli plugin install github:himself65/finance-skills/tradingview` | |
| 73 | | `Cannot reach CDP at http://127.0.0.1:9222` | App not launched with debug port — run `opencli tradingview launch` | |
| 74 | | `No tradingview.com cookies found` | App is open but logged out — log in inside the desktop app | |
| 75 | | `No TradingView tab found` | Open any chart or symbol page in TradingView, then retry | |
| 76 | | Empty chain / 0 contracts | Subscription tier on the logged-in account doesn't include options for this symbol | |
| 77 | |
| 78 | |
| 79 | |
| 80 | ## Step 2: Identify What the User Needs |
| 81 | |
| 82 | ### Setup / chart inspection |
| 83 | |
| 84 | | User Request | Command | Key Flags | |
| 85 | |---|---|---| |
| 86 | | Setup / connection check | `opencli tradingview status` | — | |
| 87 | | Relaunch app with CDP | `opencli tradingview launch` | `--port 9222` | |
| 88 | | What's on the chart | `opencli tradingview chart-state` | `--tab <id>` | |
| 89 | | Screenshot a chart | `opencli tradingview screenshot --output ~/charts/nvda.png` | `--tab <id>` | |
| 90 | |
| 91 | ### Quotes + options |
| 92 | |
| 93 | | User Request | Command | Key Flags | |
| 94 | |---|---|---| |
| 95 | | Spot quote | `opencli tradingview quote --ticker X` | `--exchange NASDAQ` | |
| 96 | | Options chain (full) | `opencli tradingview options-chain --ticker X` | `--exchange` | |
| 97 | | Options chain (one expiry, ATM band) | `opencli tradingview options-chain --ticker X --expiry YYYY-MM-DD` | `--type call\|put`, `--strikes-around-spot N` | |
| 98 | | List expiries | `opencli tradingview options-expiries --ticker X` | — | |
| 99 | |
| 100 | ### Screener |
| 101 | |
| 102 | | User Request | Command | Key Flags | |
| 103 | |---|---|---| |
| 104 | | Generic screener (stocks/crypto/forex/futures/bonds) | `opencli tradingview screener --market america --columns ...` | `--filter <json>`, `--sort field:desc`, `--limit N`, `--label-product` | |
| 105 | | US stocks with RSI < 30, sorted by volume | `opencli tradingview screener --market america --columns "name,close,RSI\|60,volume" --filter '[{"left":"RSI\|60","operation":"less","right":30}]' --sort volume:desc` | — | |
| 106 | | Top crypto by market cap | `opencli tradingview screener --market coin --columns "name,close,change,market_cap_calc" --sort market_cap_calc:desc --limit 50` | — | |
| 107 | | Symbol search / autocomplete | `opencli tradingview search --query "nvidia"` | `--type stock\|funds\|crypto\|...`, `--exchange`, `--country` | |
| 108 | |
| 109 | ### News |
| 110 | |
| 111 | | User Request | Command | Key Flags | |
| 112 | |---|---|---| |
| 113 | | Global news headlines | `opencli tradingview news --limit 25` | `--category`, `--area`, `--section`, `--provider` | |
| 114 | | News for a specific ticker | `opencli tradingview news --symbol NASDAQ:AAPL` | `--limit`, `--section analysis\|press_release\|...` | |
| 115 | | Full story by id | `opencli tradingview news --id <story-id>` | `--lang en` | |
| 116 | |
| 117 | ### Watchlists + alerts |
| 118 | |
| 119 | | User Request | Command | Key Flags | |
| 120 | |---|---|---| |
| 121 | | List all watchlists | `opencli tradingview watchlists` | — | |
| 122 | | Symbols in one watchlist | `opencli tradingview watchlists --id <wl-id>` | — | |
| 123 | | Colored-flag list (red/orange/yellow/green/blue/purple) | `opencli tradingview watchlists --color red` | — | |
| 124 | | List all alerts | `opencli tradingview alerts --type list` | — | |
| 125 | | Active alerts | `opencli tradingview alerts --type active` | — | |
| 126 | | Recently triggered alerts | `opencli tradingview alerts --type triggered` | — | |
| 127 | | Alerts that fired while offline | `opencli tradingview alerts --type offline` | — | |
| 128 | | Full alert log | `opencli tradingview alerts --type log` | — | |
| 129 | |
| 130 | |
| 131 | |
| 132 | ## Step 3: Execute the Command |
| 133 | |
| 134 | ### General pattern |
| 135 | |
| 136 | |
| 137 | # Use -f json or -f yaml for structured output |
| 138 | opencli tradingview options-chain --ticker SNDK --expiry 2026-05-22 -f json |
| 139 | opencli tradingview options-chain --ticker NVDA --strikes-around-spot 8 -f csv |
| 140 | opencli tradingview quote --ticker SPY --exchange NYSEARCA -f json |
| 141 | |
| 142 | |
| 143 | ### Key rules |
| 144 | |
| 145 | **Run `opencli tradingview status` first** if connectivity is uncertain — it reports CDP connection state and active TradingView tabs. |
| 146 | **Use `-f json`** for programmatic processing (LLM context, downstream skills). |
| 147 | **Filter by expiry and `--strikes-around-spot`** — full chains can be 3,000+ rows; an unfiltered dump is rarely what the user wants. |
| 148 | **Default `--exchange NASDAQ`** for US equities; require explicit `--exchange` for ETFs (e.g. SPY = NYSEARCA, QQQ = NASDAQ) or non-US listings. |
| 149 | **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). |
| 150 | **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. |
| 151 | **For `news`, narrow the feed early** — the global feed is firehose-level. Use `--symbol`, `--category`, `--section`, or `--provider` before raising `--limit`. |
| 152 | **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. |
| 153 | **For `watchlists` and `alerts`, default to summary** — a user asking "what's in my watchlists?" wants list names + counts, not every symbol. |
| 154 | **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.). |
| 155 | |
| 156 | ### Output format flag (`-f`) |
| 157 | |
| 158 | | Format | Flag | Best for | |
| 159 | |---|---|---| |
| 160 | | Table | `-f table` (default) | Human-readable terminal output | |
| 161 | | JSON | `-f json` | Programmatic processing, LLM context | |
| 162 | | YAML | `-f yaml` | Structured output, readable | |
| 163 | | Markdown | `-f md` | Documentation, reports | |
| 164 | | CSV | `-f csv` | Spreadsheet export | |
| 165 | |
| 166 | ### Output columns |
| 167 | |
| 168 | `quote` — `symbol`, `close`, `change`, `change_abs`, `currency`, `time` |
| 169 | `options-chain` — `expiry`, `dte`, `strike`, `type`, `bid`, `ask`, `mid`, `iv`, `delta`, `gamma`, `theta`, `vega`, `rho`, `theo`, `bid_iv`, `ask_iv`, `symbol` |
| 170 | `options-expiries` — `expiry`, `dte`, `contracts_count` |
| 171 | `screener` — dynamic; one column per `--columns` entry, plus `symbol`. (Default: `name`, `close`, `change`, `volume`, `market_cap_basic`, `sector.tr`.) |
| 172 | `search` — `symbol`, `description`, `type`, `exchange`, `country`, `currency` |
| 173 | `news` (list mode) — `id`, `published`, `provider`, `title`, `urgency`, `related_symbols`, `link` |
| 174 | `news` (story mode, `--id` set) — `id`, `published`, `provider`, `title`, `body`, `tags`, `link` |
| 175 | `watchlists` — `id`, `name`, `symbol_count`, `symbols` |
| 176 | `alerts` — `id`, `name`, `symbol`, `type`, `condition`, `value`, `active`, `status`, `fired_at` |
| 177 | `chart-state` — `layout_id`, `symbol`, `interval`, `url` |
| 178 | `screenshot` — `path`, `bytes` |
| 179 | |
| 180 | |
| 181 | |
| 182 | ## Step 4: Present the Results |
| 183 | |
| 184 | **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. |
| 185 | **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. |
| 186 | **Highlight skew** — when showing both calls and puts, note IV skew direction if material. |
| 187 | **For chart-state**, report layout id + symbol + interval + URL succinctly; offer to screenshot. |
| 188 | **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. |
| 189 | **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. |
| 190 | **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. |
| 191 | **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. |
| 192 | **Treat sessions as private** — never expose CDP target IDs, cookies, or layout IDs unless the user asks. |
| 193 | |
| 194 | |
| 195 | |
| 196 | ## Step 5: Diagnostics |
| 197 | |
| 198 | |
| 199 | opencli tradingview status |
| 200 | |
| 201 | |
| 202 | Returns CDP connection state and active TradingView tabs. If CDP is down, run `opencli tradingview launch` to relaunch with the debug port. |
| 203 | |
| 204 | |
| 205 | |
| 206 | ## Error Reference |
| 207 | |
| 208 | | Error | Cause | Fix | |
| 209 | |---|---|---| |
| 210 | | `Unknown command: tradingview` | Plugin not installed | `opencli plugin install github:himself65/finance-skills/tradingview` | |
| 211 | | `Cannot reach CDP at http://127.0.0.1:9222` | App launched without debug port | `opencli tradingview launch` | |
| 212 | | `No tradingview.com cookies found` | Logged out of TradingView | Log in inside the desktop app | |
| 213 | | `No TradingView tab found` | App open but no TradingView page loaded | Open any chart or symbol page, then retry | |
| 214 | | `scanner 400 / Empty chain / totalCount=0` | Subscription tier doesn't cover this symbol's options | Check account tier in the desktop app | |
| 215 | | `Symbol not found` | Wrong exchange | Pass `--exchange` explicitly, or run `opencli tradingview search --query <name>` first | |
| 216 | | Rate limited | Too many requests | Wait a few seconds, then retry | |
| 217 | |
| 218 | |
| 219 | |
| 220 | ## Reference Files |
| 221 | |
| 222 | `references/commands.md` — Every command with all flags, output examples, and analyst workflows |
| 223 |
Discussion
Browse more free Claude skills.