Get official TradingView OHLCV history
tradingview_get_historyFetch historical OHLCV data for TradingView symbols and intervals, returning a compact summary by default or full bars on request, with CSV archiving.
Instructions
Open an official TradingView symbol/interval, export chart data through Supercharts, archive the CSV, and return a compact summary by default. Set includeBars only when raw OHLCV must enter model context. The browser closes after the operation unless keepBrowserOpen is true. Supports minute, daily, weekly, and monthly intervals. No account upgrade action is attempted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | Maximum number of most-recent OHLCV bars to return. | |
| symbol | Yes | TradingView symbol, for example NASDAQ:AAPL or CME_MINI:ES1!. | |
| interval | No | TradingView interval, including 1-minute, 240-minute, D, W, and M bars. | D |
| layoutId | No | ||
| loadChart | No | Also replace the local viewer data with the returned bars. | |
| outputName | No | Optional archive filename without directories. | |
| includeBars | No | Include every OHLCV bar in the MCP result. Keep false for a compact summary; the full CSV is still archived locally. | |
| keepBrowserOpen | No | Keep the managed browser alive for follow-up interactive tools. |