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.2.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file investgo-1.0.2.tar.gz
.
File metadata
- Download URL: investgo-1.0.2.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 | 125726561df3fe61d080c55fe42993e40dad1e657b76b889514417bc45732790 |
|
MD5 | 5c1502802016ef08b278620f47259ee2 |
|
BLAKE2b-256 | 548cc960ca802f3f05e533bd9524ea813b53f59457f9603799991dd36f746f54 |
File details
Details for the file investgo-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: investgo-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 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 | 907b1fa3a81e6a253c0cd3b58db91080f22bf37530cf2422c7fd716b217426ed |
|
MD5 | 1144046d193f26551a15e15d01135430 |
|
BLAKE2b-256 | db859aa4fb8597308e0a2a023b351b27066680604945a4fea9d8d3a0e798d2c7 |