Skip to content

olkuznetsov/trading-assistant-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading Assistant — Claude (Chrome extension)

A Manifest V3 side-panel extension that lets you chat with Claude about your live trading screen. With each message it captures your active tab and reads the page's on-screen text, so Claude analyzes exact numbers (PnL, entry, liquidation price, order book) instead of squinting at a screenshot.

Serverless — no backend to run. Your API key lives in chrome.storage.local and is sent only to api.anthropic.com.

Install (load unpacked)

  1. Open chrome://extensions in Chrome (or any Chromium browser — Edge, Brave, Arc).
  2. Toggle Developer mode on (top-right).
  3. Click Load unpacked and select this folder: ~/myFolder/Programming/trading-assistant-extension
  4. Pin the extension (puzzle-piece icon → pin) for one-click access.

Setup

  1. Get an API key at console.anthropic.com.
  2. Click the extension icon — the side panel opens.
  3. Click , paste your key, pick a model (Sonnet or Haiku for low cost), Save.
  4. (Optional) Only if you want the paid 🌐 Web deep-search toggle: enable web search in the Console → Privacy settings. The 🎯 Trade bias button uses free news and needs nothing here.

Use

  1. Go to your Bybit / TradingView / Binance tab.
  2. Click the extension icon to open the panel beside the chart.
  3. Ask away — "What's my risk on this ETH long?", "Is this a valid breakout?", "Where's the next support?". The green dot means it's working.

Enter sends · Shift+Enter adds a newline.

Quick actions (chips above the input)

  • ⚡ Position risk — reads the open position and computes liquidation distance + R:R.
  • 🎯 Trade bias — a Long / Short / Stand-aside read with conviction, trigger, and invalidation level. Pulls free crypto-news headlines (Cointelegraph + Decrypt RSS) for catalysts — no per-call fee. Stand-aside is a valid, expected answer.
  • 🌐 Web — toggle on to add Anthropic's paid web search to your typed messages (off by default; for deep questions free headlines can't answer).

The paid web search (🌐 only) costs ~1¢ per search + the tokens of the pages it pulls in. The 🎯 button avoids it entirely by injecting ~12 free RSS headlines instead.

Cost

There's no free Claude tier, so the model itself always costs a little, but it's tuned to stay cheap:

  • Model drives most of it — Sonnet 4.6 (~½ Opus) or Haiku 4.5 (~⅕ Opus). Pick in ⚙.
  • News is free (RSS), market data is free (Bybit/CoinGecko/Fear&Greed public APIs).
  • Screenshot is downscaled to 1280px and page text capped at 2500 chars to trim tokens.
  • A typical Trade bias call lands around 1–4¢ depending on model (vs ~20¢ with paid search on Opus). The 🌐 paid toggle is the only thing that adds real cost — leave it off.

Live Bybit market data

When the active tab is a Bybit trade page (symbol parsed from the URL), every message also pulls an exact market snapshot from Bybit's public v5 API — last/mark/index price, 24h %/high/low, funding rate (with the correct interval, e.g. 4h vs 8h), open interest, 24h volume, and top-25 order-book imbalance. Claude treats this as the authoritative source for market numbers, and uses the screenshot + page text for your own open position and chart annotations. No API key needed — it's public market data.

📒 Trade-bias log

Every 🎯 Trade bias call is saved (locally, in chrome.storage). Open the 📒 log in the header to review past calls — each shows the symbol, the bias + conviction, the price when called, and the move since (re-fetched live from Bybit), scored ✓/✗ against the direction so you can see whether the reads actually aged well. Expand "full read" for the original analysis. Delete individual entries or Clear all.

Settings

  • Model — Opus 4.8 (most accurate chart/number reads) or Sonnet 4.6 (faster/cheaper). Uses adaptive thinking either way.
  • Attach screenshot — sends a downscaled JPEG of the active tab.
  • Read on-page text — extracts the page's visible text for exact numbers.
  • Market-regime context — injects a cached snapshot (Fear & Greed index, BTC dominance, total-market 24h change) into every call. Free, no key, refreshed hourly via chrome.storage. Gives Claude macro backdrop the screen doesn't show.

Supported sites

Works on any site — Bybit, TradingView, Binance, OKX, and anywhere else you trade. The extension requests <all_urls> because chrome.tabs.captureVisibleTab (the screenshot API) only works with <all_urls> or activeTab; a per-site permission authorizes page-text scraping but not screen capture. That's why it needs broad host access — capture would otherwise silently fail on whichever site you're on.

Notes

  • Analysis only. It reads and advises — it cannot and will not place orders.
  • The key is stored locally in your browser profile. Don't load this unpacked build on a shared machine.
  • Screenshots are sent to Anthropic with the message but are not kept in the conversation history (only your typed text is), to keep token cost down.

About

AI-powered Chrome extension: analyze live Bybit/TradingView charts with Claude

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors