A package to fetch historical stock prices from Investing.com
Project description
InvestGo
InvestGo is a Python library that allows you to fetch historical stock prices from Investing.com using a simple API. This package uses Flask for the web server and cloudscraper to handle web scraping.
Features
- Fetch historical stock prices for a given stock ID and date range
- Convert JSON responses to pandas DataFrame for easy manipulation
- Simple API endpoint to retrieve historical data
Installation
You can install InvestGo directly from PyPI:
pip install investgo
Usage
from your_project.historical_prices import historical_prices
Example parameters
stock_id = 1039381
date_from = "07072021"
date_to = "07052024"
Fetch historical data
data = historical_prices(stock_id, date_from, date_to)
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
investgo-0.2.5.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file investgo-0.2.5.tar.gz
.
File metadata
- Download URL: investgo-0.2.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b4de3b2feb45c9a6555941f43a015e65eeede5fd24d87be7323fbef43771793 |
|
MD5 | 4c6dd3a084c2fe7bcdd35e029b26487e |
|
BLAKE2b-256 | 1075ef32402fd7c7d05f2c0a10a73f05b32565f8b9ff81cb9146d061b2336c23 |
File details
Details for the file investgo-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: investgo-0.2.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 182308e201a3019273eff8d8dbe4ecc4467625e4e789ec974c422e72c9af0768 |
|
MD5 | ac0de13ed7cbce78b66f24f49c0c88ab |
|
BLAKE2b-256 | f3f76b218f61cd69bba64fcd968df729fe169cdd16b10206584f6eccfcbc0911 |