Skip to main content

Market Data Scraper and Analysis Tool

This script is designed to scrape market data from the Yahoo Finance API, calculate base indicators, and visualize the results using various plots

Installation

pip install stonks

Usage

import the run_stonks_analysis function from the stonks module and run the script:

from stonks import run_stonks_analysis

if __name__ == '__main__':
    run_stonks_analysis()

Moving Average Example

RSI Indicator Example

Candlestick Chart

Appendix

  1. Yahoo decommissioned their historical data API
  2. You should use 'EURUSD=X' instead of 'EURUSD'
  3. Not every Period, Interval will fetch data (api limitations and/or decomission)

Metadata

Release files for stonks 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stonks 0.1.5
File Size Uploaded Provenance
stonks-0.1.5.tar.gz 6.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stonks 0.1.5
File Interpreter ABI Platform
stonks-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / stonks-0.1.5.tar.gz

Download URL stonks-0.1.5.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
44ba3e5eef83871e48d1fef72641eaf8e424c94df4a08c6893668feea7751cb1
BLAKE2b-256 checksum
How to use checksums
18a19cccb05b6c7ceae29218d6b0e963fe95453bfec0d6efcc671510bede1ad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / stonks-0.1.5-py3-none-any.whl

Download URL stonks-0.1.5-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00f2a59341ab0e3e912c4cc88f6236dc159cdb2d75405f3eb2db9a4fee452b2a
BLAKE2b-256 checksum
How to use checksums
8dceb5f9a3ef8e92a5e5b14148da6e49276284af80e9a464cb325bf62e5187e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Security for stonks 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page