Skip to main content

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.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

investgo-1.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file investgo-1.0.0.tar.gz.

File metadata

  • Download URL: investgo-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for investgo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 22a375eee8c73a90b6c517e1819b8cf168ec3335914aa2361103e57110f07794
MD5 73986a805d66d933de8b783d4a978745
BLAKE2b-256 a4cf4e1b7cc41b9f3974304caf93393e231a652bf506109dd39e47ac38ce74ce

See more details on using hashes here.

File details

Details for the file investgo-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: investgo-1.0.0-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

Hashes for investgo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b32eb41012a6e360b789581945aeb9cec95f6eefdff40dbe0809b465884489e2
MD5 92fa61c0728de4a3583cd44576bce7d8
BLAKE2b-256 fa70629134f4d271feb93663a017324cabdb7970d35a8503d0430632627882d4

See more details on using hashes here.

Supported by

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