Skip to content

Instantly share code, notes, and snippets.

@marsmensch
Last active September 27, 2025 09:07
Show Gist options
  • Select an option

  • Save marsmensch/655b5592a4786a349ac318d1941b9697 to your computer and use it in GitHub Desktop.

Select an option

Save marsmensch/655b5592a4786a349ac318d1941b9697 to your computer and use it in GitHub Desktop.
TradingView Ticker Extractor (LLM Prompt)

TradingView Ticker Extractor

Convert a market scanner / screener screenshot into a list of TradingView-compatible tickers using an LLM.
Output is a clean, de-duplicated watchlist you can paste or import into TradingView.

gpt

  • Prompt lives in: PROMPT.md (copy/paste into your LLM).
  • This README explains the workflow.

Why

Many scanners (Coinalyze, GeckoTerminal, CMC, etc.) don’t offer clean exports.
Manually rebuilding watchlists is slow and error-prone. This project standardizes the transformation so you can go from screenshot → ready-to-use TradingView symbols in seconds.


Files

  • PROMPT.md – The exact LLM prompt that enforces correct output (EXCHANGE:BASEQUOTE, Binance/USDT preference, de-dup, sorting, etc.).
  • README.md – You’re reading it. Workflow + import instructions.

Quick Start

  1. Take a screenshot of your market scanner / screener results.
  2. Open your LLM and paste the contents of PROMPT.md.
  3. Upload the screenshot to the same chat.
  4. Copy the LLM’s response (a plain list, one ticker per line, e.g. BINANCE:BTCUSDT).
  5. Import into TradingView (instructions below).

Example screenshot

Orion

Example Output

BINANCE:AVAXUSDT
BINANCE:BTCUSDT
BINANCE:ETHUSDT
BINANCE:SUIUSDT

The prompt prefers BINANCE and USDT, falling back to USDC or USD when needed.
If a valid Binance pair doesn’t exist, it keeps the exchange/quote shown in the screenshot.


Importing into TradingView (Step-by-Step)

There are two reliable paths. Use Path A if available on your plan; otherwise use Path B.

Path A — Import a full watchlist (Web)

  1. Open tradingview.com and log in.
  2. On the right sidebar, open Watchlists & Details.
  3. Click the (More options) menu at the top of the watchlist.
  4. Choose Import watchlist.
  5. In the dialog, paste the LLM output (one symbol per line, no bullets/code fences).
  6. Click Import.
  7. (Optional) Rename the watchlist via the watchlist title → Rename (e.g., “Scanner 2025-09-27”).

Notes

  • TradingView expects EXCHANGE:PAIR (e.g., BINANCE:BTCUSDT).
  • If any lines fail to resolve (e.g., delisted or unsupported pairs), TradingView will skip them—review and adjust those lines if needed.

Path B — Add tickers manually (Any plan)

  1. Copy the list from the LLM output.
  2. In Watchlists & Details, click + Add symbol (or press /).
  3. Paste one ticker (e.g., BINANCE:OPUSDT) into the search bar and press Enter.
  4. Repeat for the remaining tickers.

Tips for speed

  • Keep the list in your clipboard and move quickly with keyboard: / to focus search → paste → Enter/ → paste → Enter

Common Issues

  • Ticker not found → The pair may not exist on TradingView (delisted or not supported).
    → Check manually in TradingView’s symbol search.
  • Perpetual vs. Spot → Some pairs (e.g., BTCUSDT.P vs. BTCUSDT) differ by contract type. Use the correct one depending on your trading.
  • Duplicates → The LLM prompt removes duplicates automatically, but if you merge multiple lists, check again before import.

Power-User Tips

  • Preserve ranking: If your scanner is sorted by Volume/Change, tell the LLM (the prompt supports preserving order).
  • Futures vs. Spot: TradingView symbols differ for perps/futures on some venues. If your screenshot explicitly shows perps, keep that venue/contract naming.
  • De-duplication: The prompt removes duplicates; if you merge lists later, de-dup again before import.
  • Sanity check: If a symbol doesn’t resolve in TradingView, search the asset manually—venues and quotes vary across platforms.

FAQ

Q: Can I import CSV?
A: For watchlists, the most reliable method is paste-in via “Import watchlist”. CSV isn’t required.

Q: Does mobile support import?
A: Use the web app to import, then your lists sync to mobile if you use the same account.

Q: My plan doesn’t show “Import watchlist”.
A: Use Path B (manual add). It’s fast with keyboard shortcuts.


License

MIT – free to use, modify, and share.

LLM Prompt: Extract TradingView-Ready Tickers

You are a crypto market data assistant.
Your task is to extract a clean, import-ready list of tickers from a screenshot of a market scanner / screener.
The output must be directly pasteable into TradingView watchlists.


Rules

  1. Output format

    • Use TradingView symbol format: EXCHANGE:BASEQUOTE
    • Example: BINANCE:BTCUSDT
    • One symbol per line
    • No bullets, no extra text, no code fences
  2. Exchange preference

    • Default to BINANCE whenever possible
    • If Binance is not available but another exchange is explicitly shown, keep the shown exchange
  3. Quote currency preference

    • Default to USDT
    • If USDT is not available, use USDC
    • If USDC is not available, use USD
    • If the screenshot explicitly shows another quote (e.g., BTC/ETH), keep that
  4. Name → ticker mapping

    • If only an asset name is shown (e.g., “Ethereum”), map it to the standard Binance USDT pair (e.g., BINANCE:ETHUSDT) if valid
    • Do not invent non-existent tickers
    • Only return valid, commonly used symbols
  5. Ambiguity handling

    • If multiple interpretations are possible, prefer BINANCE and USDT
    • If a valid Binance pair does not exist, use the exchange/quote shown in the screenshot
  6. De-duplication and casing

    • Remove duplicates
    • Use uppercase for all tickers (e.g., BINANCE:AVAXUSDT)
  7. Sorting

    • If the screenshot implies ranking (volume, % change, score), preserve that order
    • Otherwise, sort alphabetically

Final Output

  • Return only the clean list of tickers
  • No commentary, no formatting, no headings

Example:

BINANCE:AVAXUSDT
BINANCE:BTCUSDT
BINANCE:ETHUSDT
BINANCE:SUIUSDT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment