# TradingView Stock Fundamentals Card (`saffron_discussion/tradingview-fundamentals`) Actor

Fetch company profile, valuation, analyst targets, dividends and financials per symbol. Batch fundamentals cards for research, CRM and AI agents.

- **URL**: https://apify.com/saffron\_discussion/tradingview-fundamentals.md
- **Developed by:** [barry Alan](https://apify.com/saffron_discussion) (community)
- **Categories:** Developer tools, AI, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 fundamentals cards

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TradingView Stock Fundamentals Card

Export a **fundamentals card** for every ticker in one Actor run: company profile, valuation, analyst targets, dividends, and (optionally) full financial history.

This is a **batch Dataset export** on top of [TradingView Data API](https://www.tradingviewapi.com) (`GET /api/market-data/{symbol}/…`). It is **not** an official TradingView product and **not** a live WebSocket/SSE feed.

### What you get

Pass a list of `EXCHANGE:TICKER` symbols. The Actor loops the **single-symbol** upstream endpoints and writes **one Dataset row per symbol** — so you can enrich a watchlist, CRM, or agent in one job without calling the HTTP API yourself.

| Mode | What it fetches | Best for |
|------|-----------------|----------|
| `light` (default) | `company`, `indicators`, `analyst-recommendations`, `dividend`, `forecast` | CRM, screeners, AI research packs |
| `full` | Entire `/api/market-data/{symbol}` bundle (including financial history) | Deep dives; larger payloads |
| `sections` | Only the blocks listed in `sections` | Custom / cheaper runs |

Each row includes summary columns plus the raw `data` object:

| Field | Meaning |
|-------|---------|
| `symbol` | e.g. `NASDAQ:AAPL` |
| `companyName`, `sector` | From company profile |
| `marketCap`, `peRatio` | From indicators |
| `priceTargetAverage` | Analyst / forecast target |
| `data` | Nested blocks (company, indicators, …) |
| `scrapedAt` | ISO timestamp for this row |

### How to use

1. Open the Actor and set `symbols` (one or many).
2. Keep `mode` = `light` unless you need history (`full`) or a custom subset (`sections`).
3. Set `maxSymbols` if you want a safety cap (default 20, max **50**).
4. Run. Download the Dataset as JSON, CSV, or Excel. Schedule it from Apify, or call it from Make / n8n / your own API.

#### Example

```json
{
  "symbols": ["NASDAQ:AAPL", "NASDAQ:MSFT"],
  "mode": "light",
  "maxSymbols": 10
}
```

That run hits upstream **twice** (once per symbol) and produces **two** Dataset rows.

### Input

| Field | Required | Description |
|-------|----------|-------------|
| `symbols` | yes | `EXCHANGE:TICKER` list |
| `mode` | no | `light` | `full` | `sections` |
| `sections` | no | When `mode=sections`: e.g. `company`, `indicators`, `forecast` |
| `maxSymbols` | no | Cap (default 20, max 50) |

You do **not** need to paste an API key. Upstream credentials are configured by the Actor owner.

### Pricing (pay per event)

| Event | When |
|-------|------|
| `fundamental-card` | Once per symbol processed |

Ten tickers ⇒ ten `fundamental-card` events (plus the platform Actor-start event). A run that hits your charge budget stops early and still keeps the rows already written.

### Limits and notes

- Snapshot / delayed fundamentals — not tick-level quotes.
- `full` responses can be hundreds of KB per symbol.
- Failed symbols are still written as a row with `error` so the Dataset stays complete.
- Not investment advice. Data comes from [TradingView Data API](https://www.tradingviewapi.com).

### Related Actors

- [Screener Export](https://apify.com/saffron_discussion/tradingview-screener)
- [Quote + TA Batch](https://apify.com/saffron_discussion/tradingview-quote-ta)
- [Leaderboard Snapshot](https://apify.com/saffron_discussion/tradingview-leaderboard)
- [News & Calendar Digest](https://apify.com/saffron_discussion/tradingview-news-calendar)

# Actor input Schema

## `symbols` (type: `array`):

Symbols in EXCHANGE:TICKER format (e.g. NASDAQ:AAPL, NYSE:MSFT).

## `mode` (type: `string`):

light = company + indicators + analyst + dividend + forecast (~fast). full = entire market-data bundle including financial history. sections = only the blocks listed in sections.

## `sections` (type: `array`):

Sub-resources under /api/market-data/{symbol}/… e.g. company, indicators, ttm, dividend, analyst-recommendations, forecast, overview, financials-annual.

## `maxSymbols` (type: `integer`):

Safety cap (also limited by your run charge budget).

## `apiKey` (type: `string`):

Optional RapidAPI / TradingView Data API key. Prefer Actor env RAPIDAPI\_KEY for production; use this only for testing.

## Actor input object example

```json
{
  "symbols": [
    "NASDAQ:AAPL",
    "NASDAQ:MSFT"
  ],
  "mode": "light",
  "sections": [
    "company",
    "indicators",
    "analyst-recommendations",
    "dividend",
    "forecast"
  ],
  "maxSymbols": 20
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset with one fundamentals card per symbol.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "symbols": [
        "NASDAQ:AAPL",
        "NASDAQ:MSFT"
    ],
    "mode": "light"
};

// Run the Actor and wait for it to finish
const run = await client.actor("saffron_discussion/tradingview-fundamentals").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "symbols": [
        "NASDAQ:AAPL",
        "NASDAQ:MSFT",
    ],
    "mode": "light",
}

# Run the Actor and wait for it to finish
run = client.actor("saffron_discussion/tradingview-fundamentals").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "symbols": [
    "NASDAQ:AAPL",
    "NASDAQ:MSFT"
  ],
  "mode": "light"
}' |
apify call saffron_discussion/tradingview-fundamentals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saffron_discussion/tradingview-fundamentals"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/t0HMOxKsKBEJCCBhv/builds/HY77PYx5B0Rieuas3/openapi.json
