Time Series Lab

Data Sourcing Lab

Learn how to fetch historical stock data for your time series analysis

Yahoo Finance

Free historical data with easy CSV downloads

  • Daily OHLCV data
  • Dividends & splits
  • No API key needed
  • Global markets

Google Sheets

Use GOOGLEFINANCE() for live data in spreadsheets

  • Real-time prices
  • Built-in function
  • Auto-updates
  • Easy export to CSV

Alpha Vantage API

Free API for programmatic access to market data

  • REST API
  • Free tier available
  • JSON/CSV formats
  • Technical indicators

Ticker Helper

Search company name to find symbols

Yahoo Finance Guide

3 steps to download historical data

1

Go to Yahoo Finance

Visit finance.yahoo.com and search for your ticker

2

Click Historical Data

Navigate to the 'Historical Data' tab on the stock page

3

Download CSV

Click 'Download' to get your .csv file

Open Yahoo Finance

Google Sheets Formula

Fetch live data directly in Sheets

=GOOGLEFINANCE("0700.HK", "all", DATE(2024,1,1), TODAY(), "DAILY")

Replace 0700.HK with your ticker

Returns: Date, Open, High, Low, Close, Volume

Quick Start with Sample Data

Download a clean CSV with Apple vs. Tencent data (100 days) ready for the Sandbox

AAPL (Apple)TCEHY (Tencent ADR)100 data pointsClean format