# TradingView API: Get technical rating

> Returns TradingView's buy, sell and neutral technical indicator summary for a stock, cryptocurrency or currency pair. Not investment advice.

Unofficial. Not affiliated with or endorsed by TradingView.

- Page: https://fous.com/methods/tradingview.com/get-technical-rating
- Method: `tradingview.com/get_technical_rating`, version 1
- Website: tradingview.com
- Returns: overall, moving averages and oscillators signals, indicator counts, RSI, MACD, SMAs, price and TradingView link
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `asset` | string | yes | `"Bitcoin"` | Stock, cryptocurrency, or currency pair name or symbol, such as Apple, Bitcoin, or EUR/USD. |
| `timeframe` | string | no | `"4_hours"` | Timeframe for the indicators, for example 4_hours. One of "1_hour", "4_hours", "1_day", "1_week", "1_month". Default "1_day". |

## Output

From a run on Oct 23, 2026. Its input:

```json
{
  "asset": "Bitcoin",
  "timeframe": "4_hours"
}
```

Its output:

```json
{
  "name": "Bitcoin",
  "price": 81661.84,
  "rsi_14": 44.83099332090769,
  "sma_20": 82431.26600000009,
  "sma_50": 82026.25399999997,
  "symbol": "BTCUSD",
  "sma_200": 83458.69945000003,
  "currency": "USD",
  "exchange": "BITSTAMP",
  "buy_count": 3,
  "timeframe": "4_hours",
  "macd_level": -176.05143201154715,
  "sell_count": 14,
  "full_symbol": "BITSTAMP:BTCUSD",
  "neutral_count": 9,
  "overall_signal": "Sell",
  "macd_signal_line": 10.781677057627725,
  "tradingview_link": "https://www.tradingview.com/symbols/BITSTAMP-BTCUSD/technicals/",
  "oscillators_signal": "Neutral",
  "overall_rating_score": -0.35454545454545455,
  "moving_averages_signal": "Strong sell",
  "oscillators_rating_score": 0.09090909090909091,
  "moving_averages_rating_score": -0.8
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"tradingview.com/get_technical_rating","input":{"asset":"Bitcoin","timeframe":"4_hours"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- What's the buy or sell signal for Tesla on the daily chart right now?
- Give me the technical rating for Bitcoin over the 4 hour timeframe, including RSI and MACD.
- Is the EUR/USD pair showing a neutral or bullish technical summary on the weekly chart?
- Check the moving average and oscillator signals for Nvidia stock on a 1 hour timeframe on TradingView.
- Summarize the indicator counts and overall rating for Ethereum on the monthly timeframe.

## Input schema

```json
{
  "type": "object",
  "required": [
    "asset"
  ],
  "properties": {
    "asset": {
      "type": "string",
      "examples": [
        "Apple"
      ],
      "description": "Stock, cryptocurrency, or currency pair name or symbol, such as Apple, Bitcoin, or EUR/USD."
    },
    "timeframe": {
      "enum": [
        "1_hour",
        "4_hours",
        "1_day",
        "1_week",
        "1_month"
      ],
      "type": "string",
      "default": "1_day",
      "examples": [
        "4_hours"
      ],
      "description": "Timeframe for the indicators, for example 4_hours."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "name",
    "symbol",
    "exchange",
    "price",
    "currency",
    "timeframe",
    "overall_signal",
    "moving_averages_signal",
    "oscillators_signal",
    "buy_count",
    "neutral_count",
    "sell_count",
    "rsi_14",
    "macd_level",
    "macd_signal_line",
    "sma_20",
    "sma_50",
    "sma_200",
    "tradingview_link",
    "overall_rating_score",
    "moving_averages_rating_score",
    "oscillators_rating_score",
    "full_symbol"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Asset name."
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "Latest price for the selected timeframe."
    },
    "rsi_14": {
      "type": [
        "number",
        "null"
      ],
      "description": "Relative strength index (14)."
    },
    "sma_20": {
      "type": [
        "number",
        "null"
      ],
      "description": "20-period simple moving average."
    },
    "sma_50": {
      "type": [
        "number",
        "null"
      ],
      "description": "50-period simple moving average."
    },
    "symbol": {
      "type": "string",
      "description": "Trading symbol."
    },
    "sma_200": {
      "type": [
        "number",
        "null"
      ],
      "description": "200-period simple moving average."
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "Currency of the price."
    },
    "exchange": {
      "type": "string",
      "description": "Listing venue."
    },
    "buy_count": {
      "type": "integer",
      "description": "Number of buy indicators."
    },
    "timeframe": {
      "type": "string",
      "description": "Selected analysis timeframe."
    },
    "macd_level": {
      "type": [
        "number",
        "null"
      ],
      "description": "MACD level (12, 26)."
    },
    "sell_count": {
      "type": "integer",
      "description": "Number of sell indicators."
    },
    "full_symbol": {
      "type": "string",
      "description": "TradingView exchange-prefixed symbol.",
      "x-fous-developer": true
    },
    "neutral_count": {
      "type": "integer",
      "description": "Number of neutral indicators."
    },
    "overall_signal": {
      "type": "string",
      "description": "Summary signal."
    },
    "macd_signal_line": {
      "type": [
        "number",
        "null"
      ],
      "description": "MACD signal line."
    },
    "tradingview_link": {
      "type": "string",
      "description": "TradingView technicals page."
    },
    "oscillators_signal": {
      "type": [
        "string",
        "null"
      ],
      "description": "Oscillators signal."
    },
    "overall_rating_score": {
      "type": [
        "number",
        "null"
      ],
      "description": "Raw summary score (-1 to 1).",
      "x-fous-developer": true
    },
    "moving_averages_signal": {
      "type": [
        "string",
        "null"
      ],
      "description": "Moving averages signal."
    },
    "oscillators_rating_score": {
      "type": [
        "number",
        "null"
      ],
      "description": "Raw oscillators score (-1 to 1).",
      "x-fous-developer": true
    },
    "moving_averages_rating_score": {
      "type": [
        "number",
        "null"
      ],
      "description": "Raw moving averages score (-1 to 1).",
      "x-fous-developer": true
    }
  }
}
```

## See more

- [TradingView API: Screen stocks by country, sector and size](https://fous.com/methods/tradingview.com/screen-stocks.md): Finds publicly listed stocks in a country, filtered by sector, US-dollar market cap band and minimum dividend yield, in the requested order. Quotes may be delayed.
- [Yahoo API: Get quote](https://fous.com/methods/finance.yahoo.com/get-quote.md): Looks up a stock, fund, index, or cryptocurrency by name or ticker and returns its latest displayed price and key statistics. Unavailable figures are null; quotes may be delayed.
- [Google API: Get quote](https://fous.com/methods/google.com/get-quote.md): Gets the current quoted price and key figures for a stock, fund, index, or cryptocurrency on Google Finance, by name or ticker. Prices may be delayed, and figures Google does not show are null.
- [Yahoo API: Get price history](https://fous.com/methods/finance.yahoo.com/get-price-history.md): Returns Yahoo Finance daily, weekly or monthly price history and total adjusted-close return for a stock, fund, index or cryptocurrency.
- [Finviz API: Get stock snapshot](https://fous.com/methods/finviz.com/get-stock-snapshot.md): Get a delayed US-listed stock snapshot from its ticker or company name. Analyst labels summarize Finviz's 1-5 mean score; dividend yield uses the estimated dividend when available. Missing metrics return null.
- [Trading Economics API: Get country economic overview](https://fous.com/methods/tradingeconomics.com/get-country-overview.md): Returns seven key economic indicators for a country from its public Trading Economics overview: GDP growth rate, inflation rate, interest rate, unemployment rate, government debt to GDP, currency and stock market. Indicators absent from the overview are null; the US dollar index is not reported as a USD exchange rate.
- [Yahoo API: Get analyst ratings](https://fous.com/methods/finance.yahoo.com/get-analyst-ratings.md): Shows analyst recommendations, price targets, earnings estimates and recent rating changes for a public company on Yahoo Finance.
- [Macrotrends API: Get long-term price history](https://fous.com/methods/macrotrends.net/get-long-term-price-history.md): Gets decades of yearly commodity or stock-index price history from Macrotrends: yearly average, open, high, low, close, annual change and inflation-adjusted value for gold, silver, crude oil, natural gas, copper, Dow Jones, S&P 500 and Nasdaq. The current year may be incomplete.
- [All TradingView methods](https://fous.com/methods/tradingview.com.md)
