Skip to main content

Fetch stock data via Google Finance

Project description

Stock-Snap

Stock-Snap is a Python library for extracting real-time stock market data. It provides an easy-to-use interface for fetching stock quote details across various exchanges.

Features

  • Fetch Real-Time Data: Retrieve real-time stock quotes for any ticker symbol.

  • Multi-Exchange Support: Get stock data from multiple exchanges.

  • Easy Integration: Simple and efficient methods to integrate into your projects.

Installation

Install the package using pip:

pip install stock-snap

Fetching Stock Details

ticker_symbol = 'AAPL'

details = stock_snap.fetch_details(ticker_symbol)

print(details)

ticker_symbol = 'GOOGL'

exchange_symbol = 'NASDAQ'

details = stock_snap.fetch_details_by_exchange(ticker_symbol, exchange_symbol)

Example Output

The fetch_details method returns a dictionary with exchange symbols as keys and their corresponding stock quote details as values.

Requirements

  • Python 3.12

Contributing

Contributions are welcome! Follow these steps to contribute:

  1. Fork the repository.

  2. Create a new branch (git checkout -b feature-branch).

  3. Make your changes and commit them (git commit -m 'Add new feature').

  4. Push to the branch (git push origin feature-branch).

  5. Create a pull request.

Demo

Youtube Tutorial

This project is licensed under the MIT License.

Contact

For any issues or questions, please open an issue on this repository.

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

stocksnap-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stocksnap-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file stocksnap-0.1.1.tar.gz.

File metadata

  • Download URL: stocksnap-0.1.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.4

File hashes

Hashes for stocksnap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7039def56524dfdd10b7ac57eeeb0c47a350b73d439d73c2d82180686204da01
MD5 38f161d40b2bdb02424a5c6a115bb6a7
BLAKE2b-256 967549b8815e21f77b32f64ade67281daa0b037b182def82f6d1ea675df7806f

See more details on using hashes here.

File details

Details for the file stocksnap-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for stocksnap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0d3e2f6e81d639e789f651749cfc1b3e14440c63a6f7029c70a13d768666c09
MD5 2a2058c9ee94ddbc09ce1dd88f317412
BLAKE2b-256 78aa0aec5710ab9c35deb3ee7d251ec227a047c85d61fa59e0dbb9c197b6aa6c

See more details on using hashes here.

Supported by

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