Carabain Digital Apify Actors

Stock Price History & Technical Indicators

Stock Price History & Technical Indicators returns daily, weekly or monthly open, high, low, close and volume for shares, ETFs and indices worldwide, by Yahoo Finance ticker or ISIN, with adjusted close, dividends and splits. An optional add-on adds RSI, MACD, moving averages, Bollinger bands, ATR, pivots and support and resistance to every bar.

Run it on ApifyCreate a free Apify account

The Apify Free plan includes $5 of credit every month, no credit card needed.

One price bar in your dataset
symbol
Yahoo Finance symbol the prices belong to (the primary listing when you gave an ISIN)
date
Day of the bar in the exchange's local time, YYYY-MM-DD. For weekly and monthly bars the day Yahoo dates the bar
open
Opening price
high
Highest price of the bar
low
Lowest price of the bar
close
Closing price, adjusted for splits but not for dividends
adj_close
Closing price adjusted for splits and dividends (a total-return series). Equals close when nothing was paid after the bar
volume
Shares traded in the bar (0 or null for indices)

and 33 more fields, see Output

Who it is for

Quant hobbyists and traders who backtest strategies and run screeners. Developers of portfolio trackers, charts and trading bots who need clean bars without a market data contract. European investors who know their holdings by ISIN rather than by ticker.

What you can do with the data

Backtest on total-return prices

Request the full history with an early from_date such as 1970-01-01. Use adj_close for returns, since it includes dividends, and close for price levels. Dividends and splits sit on the bar where they take effect.

Screen for RSI and moving-average signals

Turn on technicalIndicators for a watch list and filter the newest bar per symbol on rsi_14 below 30, sma_50 above sma_200, or a close near support. The Actor fetches 300 earlier bars as warm-up, so the first row you get already has values when the symbol has that much history.

Track a European portfolio by ISIN

Paste ISINs from your broker statement; each is mapped to the share's primary listing. Prices come in the trading currency, and London pence, Johannesburg cents and Tel Aviv agorot are converted to GBP, ZAR and ILS.

Feed a daily trading bot

Schedule a task with a from_date a week back. The id combines symbol and date, so you can upsert rows; the latest bar can still change until the market closes.

Tutorial

How to get five years of weekly prices for European blue chips

  1. Create an Apify account for free and launch the Actor with the Run it on Apify button on this page.
  2. In symbols, paste tickers or ISINs, one per line, such as ASML.AS, SAP.DE, MC.PA and NL0010273215. Up to 500 fit in one run.
  3. Set interval to 1wk and from_date to a date five years back, such as 2021-12-01.
  4. Turn on technicalIndicators if you want RSI, MACD and moving averages on each week.
  5. Start the run. Rows come newest first per symbol; symbols Yahoo does not know are skipped and logged.
  6. Export to CSV or Excel for charts, or read the dataset by API into your backtest.

Examples

US big tech daily prices with RSI, MACD and SMAs

One year of daily prices for Apple, Microsoft, Nvidia, Alphabet, Amazon, Meta and Tesla with RSI 14, MACD, SMA 20/50/200, Bollinger bands, ATR, pivot points and support/resistance levels on every row. Export to JSON, CSV or Excel.

{
  "symbols": [
    "AAPL",
    "MSFT",
    "NVDA",
    "GOOGL",
    "AMZN",
    "META",
    "TSLA"
  ],
  "interval": "1d",
  "technicalIndicators": true
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~stock-prices/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"symbols": ["AAPL", "MSFT", "NVDA", "GOOGL", "AMZN", "META", "TSLA"], "interval": "1d", "technicalIndicators": true}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/stock-prices").call(run_input={'symbols': ['AAPL', 'MSFT', 'NVDA', 'GOOGL', 'AMZN', 'META', 'TSLA'], 'interval': '1d', 'technicalIndicators': True})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Asian and European blue chips: 5 years of weekly prices

Five years of weekly OHLCV with adjusted close, dividends and splits for Toyota, Tencent, ASML, SAP, Nestle, LVMH and Samsung, by ticker or ISIN, in the local currency. Handy for backtests and cross-market charts. Export to JSON, CSV or Excel.

{
  "symbols": [
    "7203.T",
    "0700.HK",
    "ASML.AS",
    "SAP.DE",
    "NESN.SW",
    "MC.PA",
    "005930.KS"
  ],
  "interval": "1wk",
  "from_date": "2021-11-01"
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~stock-prices/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"symbols": ["7203.T", "0700.HK", "ASML.AS", "SAP.DE", "NESN.SW", "MC.PA", "005930.KS"], "interval": "1wk", "from_date": "2021-11-01"}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/stock-prices").call(run_input={'symbols': ['7203.T', '0700.HK', 'ASML.AS', 'SAP.DE', 'NESN.SW', 'MC.PA', '005930.KS'], 'interval': '1wk', 'from_date': '2021-11-01'})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Set APIFY_TOKEN to your token from Apify Console, Settings, Integrations. The curl call waits up to 5 minutes; for bigger runs see running from the API and Python. AI agents can call it through the Apify MCP server: https://mcp.apify.com/?actors=carabain-digital/stock-prices.

Input

FieldTypeWhat it does
symbols
Symbols (tickers or ISINs)
arrayYahoo Finance tickers or ISINs, one per line, mixed is fine. Examples: AAPL, MSFT, ASML.AS (Amsterdam), SAP.DE (Xetra), 7203.T (Tokyo), 0700.HK (Hong Kong), RELIANCE.NS (India), BHP.AX (Australia), SHOP.TO (Toronto), ^GSPC (S&P 500), NL0010273215 (ASML by ISIN). An ISIN is mapped to the share's primary listing. Up to 500 per run; symbols Yahoo does not know are skipped and logged.
interval
Bar size
stringOne row per day (1d), week (1wk) or month (1mo). Example: 1wk for 5 years of weekly bars.
Values: 1d, 1wk, 1mo
Default: "1d"
from_date
From date (optional)
stringFirst day to return, YYYY-MM-DD. Example: 2020-01-01. Leave empty for the last 12 months. For the full history use an early date such as 1970-01-01: Yahoo returns everything it has (large caps go back to the 1980s or earlier).
to_date
To date (optional)
stringLast day to return, YYYY-MM-DD. Example: 2025-12-31. Leave empty for today.
technicalIndicators
Technical indicators (add-on)
booleanAdds SMA 20/50/200, EMA 12/26, RSI 14, MACD (12/26/9), Bollinger bands (20, 2), ATR 14, classic pivot points with R1-R3 / S1-S3, and swing-point support and resistance levels to every row. Computed on the close, with 300 earlier bars as warm-up so the values are valid from the first row. Charged as a separate add-on event per row.
Default: false
limit
Max rows
integerStop after this many rows in total. Example: 5000. Leave empty for all rows of all symbols.

Output

One dataset item per price bar. Export the dataset as JSON, CSV, Excel or XML from Apify Console or the API.

FieldTypeDescription
idstringStable ID, yahoo:<symbol>:<date>
symbolstringYahoo Finance symbol the prices belong to (the primary listing when you gave an ISIN)
isinstringISIN you asked for; null when you gave a ticker
namestringCompany, fund or index name
exchangestringExchange of the listing, as Yahoo names it
currencystringTrading currency, ISO code (quotes in pence, cents or agorot are converted: GBp -> GBP, ZAc -> ZAR, ILA -> ILS)
datestringDay of the bar in the exchange's local time, YYYY-MM-DD. For weekly and monthly bars the day Yahoo dates the bar
opennumberOpening price
highnumberHighest price of the bar
lownumberLowest price of the bar
closenumberClosing price, adjusted for splits but not for dividends
adj_closenumberClosing price adjusted for splits and dividends (a total-return series). Equals close when nothing was paid after the bar
volumeintegerShares traded in the bar (0 or null for indices)
dividendnumberDividend per share (trading currency) when an ex-date falls in this bar, else null
split_ratiostringSplit ratio new:old when a split took effect in this bar, e.g. 4:1 or 1:10 (reverse split), else null
change_pctnumberClose versus the previous bar's close in percent; null for the first bar of the history
scraped_atstringWhen the run collected the bar, UTC ISO 8601
sma_20numberSimple moving average of the last 20 closes. Only with the Technical indicators add-on; null otherwise or when there is not enough history
sma_50numberSimple moving average of the last 50 closes. Only with the Technical indicators add-on; null otherwise or when there is not enough history
sma_200numberSimple moving average of the last 200 closes. Only with the Technical indicators add-on; null otherwise or when there is not enough history
ema_12numberExponential moving average of the close, 12 bars. Only with the Technical indicators add-on; null otherwise or when there is not enough history
ema_26numberExponential moving average of the close, 26 bars. Only with the Technical indicators add-on; null otherwise or when there is not enough history
rsi_14numberRelative strength index, 14 bars, Wilder smoothing (0-100). Only with the Technical indicators add-on; null otherwise or when there is not enough history
macdnumberMACD line: EMA 12 minus EMA 26. Only with the Technical indicators add-on; null otherwise or when there is not enough history
macd_signalnumberMACD signal line: 9-bar EMA of the MACD line. Only with the Technical indicators add-on; null otherwise or when there is not enough history
macd_histnumberMACD histogram: MACD minus signal. Only with the Technical indicators add-on; null otherwise or when there is not enough history
bb_uppernumberBollinger upper band: SMA 20 plus 2 standard deviations. Only with the Technical indicators add-on; null otherwise or when there is not enough history
bb_middlenumberBollinger middle band: SMA 20. Only with the Technical indicators add-on; null otherwise or when there is not enough history
bb_lowernumberBollinger lower band: SMA 20 minus 2 standard deviations. Only with the Technical indicators add-on; null otherwise or when there is not enough history
atr_14numberAverage true range, 14 bars, Wilder smoothing (in price units). Only with the Technical indicators add-on; null otherwise or when there is not enough history
pivotnumberClassic floor pivot point (H+L+C)/3 from the PREVIOUS bar's high, low and close. Only with the Technical indicators add-on; null otherwise or when there is not enough history
r1numberResistance 1 from the previous bar: 2*pivot - low. Only with the Technical indicators add-on; null otherwise or when there is not enough history
r2numberResistance 2 from the previous bar: pivot + (high - low). Only with the Technical indicators add-on; null otherwise or when there is not enough history
r3numberResistance 3 from the previous bar: high + 2*(pivot - low). Only with the Technical indicators add-on; null otherwise or when there is not enough history
s1numberSupport 1 from the previous bar: 2*pivot - high. Only with the Technical indicators add-on; null otherwise or when there is not enough history
s2numberSupport 2 from the previous bar: pivot - (high - low). Only with the Technical indicators add-on; null otherwise or when there is not enough history
s3numberSupport 3 from the previous bar: low - 2*(high - pivot). Only with the Technical indicators add-on; null otherwise or when there is not enough history
supportnumberNearest swing-point support level below the close (cluster mean of 5-bar swing highs and lows of the last 120 bars; only swings confirmed 2 bars earlier are used, so there is no lookahead). Null if none. Only with the Technical indicators add-on; null otherwise or when there is not enough history
support_touchesintegerHow many swing points form the support level. Only with the Technical indicators add-on; null otherwise or when there is not enough history
resistancenumberNearest swing-point resistance level above the close, built like support. Null if none. Only with the Technical indicators add-on; null otherwise or when there is not enough history
resistance_touchesintegerHow many swing points form the resistance level. Only with the Technical indicators add-on; null otherwise or when there is not enough history

Frequently asked questions

What does a year of prices for 100 shares cost?

Each bar costs $0.30 per 1,000. A year of daily bars is about 250 rows per share, so 100 shares come to about 25,000 bars, or $7.50. With Technical indicators on, each bar that gets at least one indicator value is billed again at $0.30 per 1,000, which brings the same job to about $15.

Do I need a proxy or a data subscription?

No subscription and no login. The source is Yahoo Finance's public chart data, read through the Apify datacenter proxy by default. Switch to residential only if runs get blocked.

Is this real-time data?

No. It is end-of-period bars, not a licensed real-time feed, and the newest bar can still be forming while the market is open. Do not use it for trading that needs exchange-grade data.

Which ISIN listing do I get?

An ISIN is resolved through Yahoo's search to one listing, usually the home exchange. For another listing, give its ticker instead, such as ASML for Nasdaq or ASML.AS for Amsterdam. Listings differ in price because each trades in its own currency.

How far back does the history go?

As far as Yahoo has data for the symbol: IBM goes back to 1962, and many large caps to the 1980s. Without a from_date, you get the last 12 months.

Do support and resistance look into the future?

No. A swing point is confirmed only two bars later, and each row uses only swing points known on that date. A backtest that reads support and resistance sees what a trader could have seen then.

Is it legal to use this stock data?

The Actor reads only publicly visible market data, without a login, and it holds no data about people. If you combine it with client data, rules such as the GDPR apply. Yahoo's terms can limit commercial redistribution, so check your use case with a lawyer. Background: Is web scraping legal?