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

Uploaded Source

Built Distribution

investgo-0.2.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for investgo-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b4b88c84a04519a76970c655eaba8c3740e8f9c242ecfe5dfed7ca2465f49992
MD5 6835423899e39ae117fbaa953313e7eb
BLAKE2b-256 5b1b854d36356cd5cf34a769db7359ac0f7578304e25de8d69a02229f8262f87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: investgo-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for investgo-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6082393cc85fe48e427d6ef9b0b87c0bc39999477b066332699459196d5e2bf1
MD5 a06d6de34c4b0a70ed326d369b3700c1
BLAKE2b-256 2947fd7e80ae1630eb2b51fea0fb3e7b345b23bb180b00ca27f8da20009e612b

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