market-generic


Namemarket-generic JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/sharmasourab93/market-generic
SummaryA Generic Python Package for Stock Market Analysis and Trading
upload_time2024-06-03 07:16:28
maintainerNone
docs_urlNone
authorSourab S Sharma
requires_pythonNone
licenseNone
keywords market trade analysis
VCS
bugtrack_url
requirements black isort numpy pandas dateutils gspread python-telegram-bot yfinance requests pytz setuptools beautifulsoup4 openpyxl pandas-ta
Travis-CI No Travis.
coveralls test coverage
            # market-generic - A Generic Python Package for Stock Market Analysis and Trading

### Overview

`market-generic` is a powerful and flexible Python library designed to simplify the process of working with stock market data. It provides a comprehensive set of tools and utilities to handle, analyze, and visualize stock data, enabling developers and analysts to build dynamic stock scanners, trading strategies, and other financial applications with ease.


### Key Features
- <b>Data Handling</b>: Seamless integration with popular data sources (e.g., Yahoo Finance, NSE APIs) to fetch and manage stock data.
- <b>Technical Indicators</b>: A wide range of technical indicators (e.g., Moving Averages, Pivot Points, RSI, MACD) for in-depth market analysis.
- <b>Generic Strategy Abstractions</b>: Tools to dynamically create trading strategies on the fly based on user-defined parameters.
- <b>Extensibility</b>: Modular design allows for easy integration with other Python libraries and frameworks.


### Installation
To install the AlgoTrade package, use pip:

```commandline
pip install market-generic
```

### Usage

Here's a simple example of how to use the Trade package to fetch and analyze stock data:
python

```python 
>>from trade.nse import NSEStock
>>stock = NSEStock("RELIANCE", "17-May-2024")
>>stock.symbol == "RELIANCE"
True 
>>stock.curr_ohlc 
# Will Display Reliance's latest Bhav 
{
"open": 2860.7,
"low": ...,
"high":...,
 "close": ...,
 "volume": ...
 "pct_change": ...
}
```

`AllNSEStocks` uses `NSEStock` module underneath to utilize stock functions.

```python
>>from trade.nse import AllNSEStocks
>>all_stocks = AllNSEStocks("17-May-2024", ["RELIANCE", "SBIN"])
>>all_stocks.symbols[0] == "RELIANCE"
True
>>all_stocks.symbols[1] == "SBIN"
True 
>>all_stocks.symbols[0].curr_ohlc
# Will Display Reliance's latest Bhav 
{
"open": 2860.7,
"low": ...,
"high":...,
 "close": ...,
 "volume": ...
 "pct_change": ...
}
```


### Documentation

For detailed documentation, examples, and API reference, please visit the 
[market-generic 
GitHub repository](https://github.com/sharmasourab93/market-generic).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sharmasourab93/market-generic",
    "name": "market-generic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Market, Trade, Analysis",
    "author": "Sourab S Sharma",
    "author_email": "sharmasourab93@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0f/9e/1977ef47e35df377e6636387a646b142a4238e554aabe8677323a7e7f433/market_generic-0.2.3.tar.gz",
    "platform": null,
    "description": "# market-generic - A Generic Python Package for Stock Market Analysis and Trading\n\n### Overview\n\n`market-generic` is a powerful and flexible Python library designed to simplify the process of working with stock market data. It provides a comprehensive set of tools and utilities to handle, analyze, and visualize stock data, enabling developers and analysts to build dynamic stock scanners, trading strategies, and other financial applications with ease.\n\n\n### Key Features\n- <b>Data Handling</b>: Seamless integration with popular data sources (e.g., Yahoo Finance, NSE APIs) to fetch and manage stock data.\n- <b>Technical Indicators</b>: A wide range of technical indicators (e.g., Moving Averages, Pivot Points, RSI, MACD) for in-depth market analysis.\n- <b>Generic Strategy Abstractions</b>: Tools to dynamically create trading strategies on the fly based on user-defined parameters.\n- <b>Extensibility</b>: Modular design allows for easy integration with other Python libraries and frameworks.\n\n\n### Installation\nTo install the AlgoTrade package, use pip:\n\n```commandline\npip install market-generic\n```\n\n### Usage\n\nHere's a simple example of how to use the Trade package to fetch and analyze stock data:\npython\n\n```python \n>>from trade.nse import NSEStock\n>>stock = NSEStock(\"RELIANCE\", \"17-May-2024\")\n>>stock.symbol == \"RELIANCE\"\nTrue \n>>stock.curr_ohlc \n# Will Display Reliance's latest Bhav \n{\n\"open\": 2860.7,\n\"low\": ...,\n\"high\":...,\n \"close\": ...,\n \"volume\": ...\n \"pct_change\": ...\n}\n```\n\n`AllNSEStocks` uses `NSEStock` module underneath to utilize stock functions.\n\n```python\n>>from trade.nse import AllNSEStocks\n>>all_stocks = AllNSEStocks(\"17-May-2024\", [\"RELIANCE\", \"SBIN\"])\n>>all_stocks.symbols[0] == \"RELIANCE\"\nTrue\n>>all_stocks.symbols[1] == \"SBIN\"\nTrue \n>>all_stocks.symbols[0].curr_ohlc\n# Will Display Reliance's latest Bhav \n{\n\"open\": 2860.7,\n\"low\": ...,\n\"high\":...,\n \"close\": ...,\n \"volume\": ...\n \"pct_change\": ...\n}\n```\n\n\n### Documentation\n\nFor detailed documentation, examples, and API reference, please visit the \n[market-generic \nGitHub repository](https://github.com/sharmasourab93/market-generic).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Generic Python Package for Stock Market Analysis and Trading",
    "version": "0.2.3",
    "project_urls": {
        "Homepage": "https://github.com/sharmasourab93/market-generic"
    },
    "split_keywords": [
        "market",
        " trade",
        " analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5342746ae4e6341e0942e254e815f3b44dae0114d40b48c0ad24dcc1ffa89199",
                "md5": "312d9b43c4bd75e5badc15fd99380a0f",
                "sha256": "57e3ceb03dd69d6e233016fdc3cf4522a53f0b5c827059f61f731aba65cd1c63"
            },
            "downloads": -1,
            "filename": "market_generic-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "312d9b43c4bd75e5badc15fd99380a0f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 37274,
            "upload_time": "2024-06-03T07:16:27",
            "upload_time_iso_8601": "2024-06-03T07:16:27.031916Z",
            "url": "https://files.pythonhosted.org/packages/53/42/746ae4e6341e0942e254e815f3b44dae0114d40b48c0ad24dcc1ffa89199/market_generic-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f9e1977ef47e35df377e6636387a646b142a4238e554aabe8677323a7e7f433",
                "md5": "274a3df41497572e732d121b3fe8a1f1",
                "sha256": "f708390f8aac4383ac17eebd8857c716cbf9bb0d6d01e5d4fd42cc1a3a48fdc6"
            },
            "downloads": -1,
            "filename": "market_generic-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "274a3df41497572e732d121b3fe8a1f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 26713,
            "upload_time": "2024-06-03T07:16:28",
            "upload_time_iso_8601": "2024-06-03T07:16:28.637916Z",
            "url": "https://files.pythonhosted.org/packages/0f/9e/1977ef47e35df377e6636387a646b142a4238e554aabe8677323a7e7f433/market_generic-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-03 07:16:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sharmasourab93",
    "github_project": "market-generic",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "black",
            "specs": [
                [
                    "==",
                    "24.4.2"
                ]
            ]
        },
        {
            "name": "isort",
            "specs": [
                [
                    "==",
                    "5.13.2"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.26.4"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "2.2.2"
                ]
            ]
        },
        {
            "name": "dateutils",
            "specs": [
                [
                    "==",
                    "0.6.12"
                ]
            ]
        },
        {
            "name": "gspread",
            "specs": [
                [
                    "==",
                    "6.1.0"
                ]
            ]
        },
        {
            "name": "python-telegram-bot",
            "specs": [
                [
                    "==",
                    "21.1.1"
                ]
            ]
        },
        {
            "name": "yfinance",
            "specs": [
                [
                    "==",
                    "0.2.38"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "~=",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    "~=",
                    "2024.1"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "~=",
                    "69.5.1"
                ]
            ]
        },
        {
            "name": "beautifulsoup4",
            "specs": [
                [
                    "==",
                    "4.12.3"
                ]
            ]
        },
        {
            "name": "openpyxl",
            "specs": [
                [
                    "==",
                    "3.1.2"
                ]
            ]
        },
        {
            "name": "pandas-ta",
            "specs": [
                [
                    "==",
                    "0.3.14b0"
                ]
            ]
        }
    ],
    "lcname": "market-generic"
}
        
Elapsed time: 0.25902s