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 investgo import pair_id, historical_prices
Example parameters
stock_id = pair_id('QQQ')
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-1.0.1.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file investgo-1.0.1.tar.gz
.
File metadata
- Download URL: investgo-1.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 517bda3905383aacd778388c7fb1211bcf190109c8e5aacd65365c2dc8e93272 |
|
MD5 | a50097f0902c143af849d57fa696dbce |
|
BLAKE2b-256 | f938e2d386e190ddd95faebfacab2293c84e2c793983e0d3c8dcee2895584973 |
File details
Details for the file investgo-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: investgo-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9874cf7f1360aa18505327f0a44ba971067718bf0569194b27ff817f97052652 |
|
MD5 | 1638f692f2b15fed2fa757e0ad971e93 |
|
BLAKE2b-256 | e0e1d72eb032f166e7839c50941f4fb0d84b27ba4acb82b6dbea525b9016168c |