stonks


Namestonks JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/DanielLasota/Stonks
Summarystonks stonks stonks
upload_time2024-09-12 06:20:10
maintainerNone
docs_urlNone
authorDaniel Lasota
requires_python<3.9,>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements pytest pandas yfinance matplotlib mplfinance matplotlib
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```bash
pip install stonks
```

## Usage

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

```python
from stonks import run_stonks_analysis

if __name__ == '__main__':
    run_stonks_analysis()
```

![Moving Average Example](https://github.com/user-attachments/assets/197e4219-a829-4aae-a785-52a60020a8ea)

![RSI Indicator Example](https://github.com/user-attachments/assets/a8252ae8-071b-48b7-ab23-fd1f555d3d5a)

![Candlestick Chart](https://github.com/user-attachments/assets/16833b84-a5ed-4d83-8ef5-ea1c5564d0a1)

# 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)
4. 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DanielLasota/Stonks",
    "name": "stonks",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.9,>=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Daniel Lasota",
    "author_email": "grossmann.root@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/18/a1/9cccb05b6c7ceae29218d6b0e963fe95453bfec0d6efcc671510bede1ad5/stonks-0.1.5.tar.gz",
    "platform": null,
    "description": "# Market Data Scraper and Analysis Tool\r\n\r\nThis script is designed to scrape market data from the Yahoo Finance API, calculate base indicators, and visualize the results using various plots\r\n\r\n## Installation\r\n\r\n```bash\r\npip install stonks\r\n```\r\n\r\n## Usage\r\n\r\nimport the `run_stonks_analysis` function from the `stonks` module and run the script:\r\n\r\n```python\r\nfrom stonks import run_stonks_analysis\r\n\r\nif __name__ == '__main__':\r\n    run_stonks_analysis()\r\n```\r\n\r\n![Moving Average Example](https://github.com/user-attachments/assets/197e4219-a829-4aae-a785-52a60020a8ea)\r\n\r\n![RSI Indicator Example](https://github.com/user-attachments/assets/a8252ae8-071b-48b7-ab23-fd1f555d3d5a)\r\n\r\n![Candlestick Chart](https://github.com/user-attachments/assets/16833b84-a5ed-4d83-8ef5-ea1c5564d0a1)\r\n\r\n# Appendix\r\n1. Yahoo decommissioned their historical data API\r\n2. You should use 'EURUSD=X' instead of 'EURUSD'\r\n3. Not every Period, Interval will fetch data (api limitations and/or decomission)\r\n4. \r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "stonks stonks stonks",
    "version": "0.1.5",
    "project_urls": {
        "Homepage": "https://github.com/DanielLasota/Stonks"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8dceb5f9a3ef8e92a5e5b14148da6e49276284af80e9a464cb325bf62e5187e1",
                "md5": "481f6e4b3947c4f0c401827a9c19e5e6",
                "sha256": "00f2a59341ab0e3e912c4cc88f6236dc159cdb2d75405f3eb2db9a4fee452b2a"
            },
            "downloads": -1,
            "filename": "stonks-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "481f6e4b3947c4f0c401827a9c19e5e6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.9,>=3.8",
            "size": 7229,
            "upload_time": "2024-09-12T06:20:09",
            "upload_time_iso_8601": "2024-09-12T06:20:09.172428Z",
            "url": "https://files.pythonhosted.org/packages/8d/ce/b5f9a3ef8e92a5e5b14148da6e49276284af80e9a464cb325bf62e5187e1/stonks-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18a19cccb05b6c7ceae29218d6b0e963fe95453bfec0d6efcc671510bede1ad5",
                "md5": "714f4d72a958be57be08837853e09d1f",
                "sha256": "44ba3e5eef83871e48d1fef72641eaf8e424c94df4a08c6893668feea7751cb1"
            },
            "downloads": -1,
            "filename": "stonks-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "714f4d72a958be57be08837853e09d1f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.9,>=3.8",
            "size": 6217,
            "upload_time": "2024-09-12T06:20:10",
            "upload_time_iso_8601": "2024-09-12T06:20:10.777350Z",
            "url": "https://files.pythonhosted.org/packages/18/a1/9cccb05b6c7ceae29218d6b0e963fe95453bfec0d6efcc671510bede1ad5/stonks-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-12 06:20:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DanielLasota",
    "github_project": "Stonks",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "8.3.2"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "2.0.3"
                ]
            ]
        },
        {
            "name": "yfinance",
            "specs": [
                [
                    "==",
                    "0.2.43"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    "==",
                    "3.7.5"
                ]
            ]
        },
        {
            "name": "mplfinance",
            "specs": [
                [
                    "==",
                    "0.12.10b0"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    "==",
                    "3.7.5"
                ]
            ]
        }
    ],
    "lcname": "stonks"
}
        
Elapsed time: 0.60544s