# Yahoo Finance Stock Prices, History & Indicators (`adaptive_labs/stock-price-history-indicators`) Actor

Free stock price data from Yahoo Finance: live price, returns, 52-week range, dividends, RSI, SMA, MACD and trend signals, or full daily history. Stocks, ETFs, crypto, FX.

- **URL**: https://apify.com/adaptive_labs/stock-price-history-indicators.md
- **Developed by:** [Adaptive Labs](https://apify.com/adaptive_labs) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yahoo Finance Stock Prices, History & Technical Indicators

Get clean stock market data from **Yahoo Finance** for any list of tickers in seconds: live price, daily change, **returns** (1 week to 1 year and YTD), **52-week high and low**, volatility, max drawdown, **dividends and yield**, and technical signals such as **RSI 14, SMA 20/50/200, golden cross and trend**. Switch to History mode for **daily, weekly or monthly OHLCV price history** with indicators on every row.

Works for US, UK, European and Asian stocks, ETFs, indices, crypto and currencies. No API key, no login and no proxy needed.

### What you get

- Summary mode: one tidy row per symbol, ready for a spreadsheet or dashboard
- Price, previous close, day change, day range, volume and 30-day average volume
- Returns: 1 week, 1 month, 3 months, 6 months, year to date and 1 year
- Risk: annualised 1-year volatility and maximum drawdown
- Technicals: SMA 20/50/200, RSI 14 with overbought/oversold signal, above-SMA flags, golden and death cross, trend label
- Dividends paid in the last 12 months, trailing dividend yield and last dividend
- History mode: OHLCV and adjusted close per day, week or month, back to the first trading day, with SMA, EMA, RSI and MACD
- Type a company name (for example Tesla) and the ticker is found for you; sector and industry are added where available

### Who uses it

- **Investors and traders**: screen a watchlist each morning for trend, RSI and distance from 52-week highs
- **Spreadsheet and Notion users**: pull prices into Google Sheets or Excel on a schedule
- **Analysts and students**: download long price histories for backtests and coursework
- **Fintech and content builders**: power dashboards, newsletters and AI agents with fresh market data
- **Finance teams**: track FX rates (GBPUSD=X, EURUSD=X) and index levels

### Quick start (under a minute)

1. Enter tickers in **Symbols or company names** (the example list works out of the box).
2. Pick **Summary** for one row per symbol, or **Price history** for full OHLCV data.
3. Click **Start**. Results appear within seconds.
4. Schedule it daily and connect Google Sheets, Slack or a webhook to get updates automatically.

### Input example

```json
{
  "symbols": [
    "AAPL",
    "MSFT",
    "VOD.L",
    "SAP.DE",
    "BTC-USD",
    "GBPUSD=X",
    "^GSPC"
  ],
  "outputMode": "summary"
}
```

#### Input fields

- **symbols**: Yahoo Finance tickers. Add the exchange suffix outside the US: .L London, .DE Xetra, .PA Paris, .AS Amsterdam, .TO Toronto, .AX Sydney, .T Tokyo, .HK Hong Kong.
- **outputMode**: summary or history.
- **range and interval**: History only: range 1mo to max; interval 1d, 1wk or 1mo.

### Output example

```json
{
  "symbol": "AAPL",
  "name": "Apple Inc.",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "instrumentType": "EQUITY",
  "sector": "Technology",
  "industry": "Consumer Electronics",
  "price": 347.18,
  "previousClose": 350.69,
  "changePercent": -1,
  "fiftyTwoWeekHigh": 355.38,
  "fiftyTwoWeekLow": 243.42,
  "percentFrom52wHigh": -2.31,
  "return1mPercent": 3.13,
  "returnYtdPercent": 28.05,
  "return1yPercent": 29.21,
  "volatility1yPercent": 24.98,
  "maxDrawdown1yPercent": -13.8,
  "sma50": 337.24,
  "sma200": 299.51,
  "rsi14": 54.48,
  "aboveSma200": true,
  "goldenCross": false,
  "trend": "uptrend",
  "rsiSignal": "neutral",
  "dividendsLast12m": 0.8,
  "dividendYieldPercent": 0.23,
  "marketTime": "2026-11-10T15:34:18.000Z",
  "yahooUrl": "https://finance.yahoo.com/quote/AAPL",
  "scrapedAt": "2026-11-10T15:34:19.764Z"
}
```

#### Output fields

- **changePercent and return fields**: Percentages, for example 3.13 means +3.13%.
- **currency**: Trading currency. London prices are often in pence (GBp).
- **trend**: uptrend when price > SMA50 > SMA200, downtrend when the reverse, otherwise mixed.
- **error**: Present only if a symbol could not be found.

### Example: history row

```json
{"symbol":"MSFT","date":"2026-11-10","open":543.41,"high":544.15,"low":538.84,"close":543.38,"adjClose":543.38,"volume":3542521,"changePercent":-0.33,"sma20":531.61,"sma50":518.0,"sma200":439.64,"ema12":534.33,"ema26":528.63,"rsi14":56.63,"macd":5.70,"macdSignal":5.16,"interval":"1d","range":"1y"}
```

### Use it from your code or tools

**Apify API (cURL)**: start a run and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/adaptive_labs~stock-price-history-indicators/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"symbols": ["AAPL", "MSFT", "NVDA"], "outputMode": "summary"}'
```

**JavaScript / TypeScript**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('adaptive_labs/stock-price-history-indicators').call({
  "symbols": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "outputMode": "summary"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("adaptive_labs/stock-price-history-indicators").call(run_input={
  "symbols": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "outputMode": "summary"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**No-code and AI agents**

- **Make, Zapier, n8n, Google Sheets, Slack**: use the Apify integration for your tool, pick this Actor and map the dataset fields.
- **Schedules and webhooks**: add the Actor to an Apify schedule (for example every morning) and send results anywhere with a webhook.
- **AI agents and MCP**: this Actor works with the Apify MCP server, so Claude, ChatGPT, Cursor and other MCP clients can call it as a tool. Clean, flat JSON output is easy for LLMs to read.
- **Export**: download results as JSON, CSV, Excel, XML or HTML from the Storage tab.

### FAQ

**Is the data real time?**
Prices come from Yahoo Finance's public chart data at the time of the run. Exchanges may delay quotes by up to 15 to 20 minutes for some markets.

**Which markets are covered?**
Anything listed on Yahoo Finance: stocks, ETFs, mutual funds, indices, crypto pairs and currency pairs worldwide.

**Do I need a Yahoo account or API key?**
No.

**How are the indicators calculated?**
From adjusted daily closes: simple moving averages, exponential moving averages, Wilder's RSI 14 and MACD (12, 26, 9). Volatility is the annualised standard deviation of daily log returns over the last year.

**Is this investment advice?**
No. The data and signals are for information and research only. Always do your own research.

**How many symbols can I run?**
Up to 500 per run. Large watchlists are processed three at a time to stay polite.

### Pricing

This Actor is **free to use**. You only pay for your own Apify platform usage (compute), and small runs use very little compute, so light use fits within the free monthly credit on Apify's free plan.

### Feedback and support

We build and maintain this Actor at **Adaptive Labs** and we read every message.

- If it helped you, please **leave a quick review** on the Actor page. It really helps other people find it.
- Feature requests, bugs or a source you would like added: email **support@adaptivelabs.app** or open an issue on the Issues tab.

### Responsible use

This Actor reads Yahoo Finance's publicly available chart data. Use it for personal research, analysis and internal tools, follow Yahoo's terms, and do not resell raw market data. Nothing here is financial advice. This Actor is not affiliated with or endorsed by Yahoo.

# Actor input Schema

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

Yahoo Finance tickers, one per line: AAPL, MSFT, VOD.L (London), SAP.DE (Frankfurt), BTC-USD (crypto), GBPUSD=X (currency), ^GSPC (S\&P 500), SPY (ETF). You can also type a company name such as Tesla and the Actor finds the ticker.

## `outputMode` (type: `string`):

Summary gives one row per symbol with price, returns, risk and technical signals. History gives one row per day, week or month with OHLCV and indicators.

## `range` (type: `string`):

How far back to go in History mode.

## `interval` (type: `string`):

Bar size in History mode.

## `includeIndicators` (type: `boolean`):

Add SMA 20/50/200, EMA 12/26, RSI 14 and MACD to each history row.

## Actor input object example

```json
{
  "symbols": [
    "AAPL",
    "MSFT",
    "NVDA",
    "VOD.L",
    "BTC-USD"
  ],
  "outputMode": "summary",
  "range": "1y",
  "interval": "1d",
  "includeIndicators": true
}
```

# Actor output Schema

## `summary` (type: `string`):

One row per symbol (Summary mode).

## `history` (type: `string`):

One row per bar (History mode).

# 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": [
        "AAPL",
        "MSFT",
        "NVDA",
        "VOD.L",
        "BTC-USD"
    ],
    "outputMode": "summary"
};

// Run the Actor and wait for it to finish
const run = await client.actor("adaptive_labs/stock-price-history-indicators").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": [
        "AAPL",
        "MSFT",
        "NVDA",
        "VOD.L",
        "BTC-USD",
    ],
    "outputMode": "summary",
}

# Run the Actor and wait for it to finish
run = client.actor("adaptive_labs/stock-price-history-indicators").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": [
    "AAPL",
    "MSFT",
    "NVDA",
    "VOD.L",
    "BTC-USD"
  ],
  "outputMode": "summary"
}' |
apify call adaptive_labs/stock-price-history-indicators --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,adaptive_labs/stock-price-history-indicators"
        }
    }
}
```

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/t68rJDR9VM3mZiat9/builds/rCynzLncXekpwkjWJ/openapi.json
