Skip to main content

Fetch large amounts of historical stock data from Tiingo for free.

Project description

📈 Tiingo Fetcher - A Python Library for Fetching Market Data

PyPI version License

📌 About

tiingo_fetcher is a lightweight Python library that helps you fetch large amounts of historical stock data for free using the Tiingo API.

🚀 Unlike other APIs that limit minute-level data to 7 days, Tiingo Fetcher allows you to retrieve up to 9 years of minute, hourly, and daily data efficiently.


📦 Installation

Before using the package, you need to install it via pip:

pip install tiingo-fetcher


🔑 Setup: Get a Tiingo API Key
Sign up for a free Tiingo account: https://www.tiingo.com/

Generate your API key from the Account  API Section.


env
Copy
Edit
TIINGO_API_KEY=your_actual_api_key_here
🚀 Usage
1️⃣ Fetching Historical Stock Data
You can use the package to fetch minute, hourly, or daily stock data.

python
Copy
Edit
from tiingo_fetcher.data_fetcher import fetch_stock

data = fetch_stock("AAPL", "2023-01-01", "2023-02-01", "1min")
print(data.head())
📖 Example Usage in CLI
You can also run it from the command line:

bash
Copy
Edit
python example_usage/test.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiingo_fetcher-0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiingo_fetcher-0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file tiingo_fetcher-0.1.tar.gz.

File metadata

  • Download URL: tiingo_fetcher-0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tiingo_fetcher-0.1.tar.gz
Algorithm Hash digest
SHA256 1d2a5e866c952c29601abcedb95acdf2d49ee0aed54ffa568022d2b607cbd8a9
MD5 6e8fddad0099399d2821100db5374b45
BLAKE2b-256 862df52d96bd4ef303ccee4df5311964401d772dfa4661819d2ba6170befcc78

See more details on using hashes here.

File details

Details for the file tiingo_fetcher-0.1-py3-none-any.whl.

File metadata

  • Download URL: tiingo_fetcher-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for tiingo_fetcher-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 befc6eb5721bb37c420d8e9473207b979f0e5be7abda97d39876d7dc49835886
MD5 917ae2545f9f91bd38496768db2c6f92
BLAKE2b-256 1717f10d63da3431ccaad4a837ba2bb17cae2fa74cedf1bb8de207632c6449ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page