Quick Start
Prerequisites
- Go 1.24+ — install
- Chromium or Google Chrome — the browser that tv_controller drives
- just — task runner —
cargo install justor other methods - Claude Code — install with
npm install -g @anthropic-ai/claude-code(requires a Claude account with a Max plan or API access)
For the WatchlistManagerAgent's Python A2A layer (optional):
- Python 3.11+
- uv — Python package manager —
curl -LsSf https://astral.sh/uv/install.sh | sh - Anthropic API key — get one at console.anthropic.com
Option A: Use with an Agent
The fastest way to get started. The MaudeViewWatchlistManagerAgent wraps the REST API into MCP tools that Claude can use to control TradingView.
1. Clone
git clone https://github.com/Fomo-Driven-Development/MaudeViewWatchlistManagerAgent.git
cd MaudeViewWatchlistManagerAgent
2. Configure
Edit .env and add your Anthropic API key (needed for the Claude agent):
3. Setup
This builds the Go MCP binary, installs Python dependencies, and installs the tv_controller binary from MaudeViewTVCore.
4. Start the Controller
This launches Chromium and starts the REST API server. Log into TradingView in the browser that opens.
5. Start the Agent (New Terminal)
If you have Claude Code installed, you can use the MCP tools directly in your terminal:
Claude Code will discover the MCP server via .mcp.json and have access to all 50 watchlist and chart tools.
Option B: Use the Core Directly
Install just the tv_controller binary and make API calls yourself — with curl, scripts, or your own tools.
1. Install
Download a pre-built binary from the latest release:
2. Configure
Create a .env file in your working directory:
CHROMIUM_CDP_ADDRESS=127.0.0.1
CHROMIUM_CDP_PORT=9220
CHROMIUM_START_URL=https://www.tradingview.com/
CHROMIUM_PROFILE_DIR=./chromium-profile
CONTROLLER_BIND_ADDR=127.0.0.1:8188
CONTROLLER_LAUNCH_BROWSER=true
CONTROLLER_TAB_URL_FILTER=tradingview.com
CONTROLLER_EVAL_TIMEOUT_MS=5000
CONTROLLER_LOG_LEVEL=info
CONTROLLER_LOG_FILE=logs/tv_controller.log
3. Run
This launches Chromium with CDP enabled and starts the API server. Log into TradingView in the browser that opens.
4. Make Your First API Call
# Health check
curl http://127.0.0.1:8188/health
# Get current symbol
curl http://127.0.0.1:8188/api/v1/charts/active
# Change symbol to AAPL
curl -X PUT http://127.0.0.1:8188/api/v1/chart/active/symbol \
-H "Content-Type: application/json" \
-d '{"symbol": "AAPL"}'
# List watchlists
curl http://127.0.0.1:8188/api/v1/watchlists
5. Browse All Endpoints
Open http://127.0.0.1:8188/docs for the interactive API reference, or see the API Reference page.
Stopping
Press Ctrl+C in the controller terminal. The API server shuts down and the browser is terminated automatically.
If you need to kill orphaned processes: