market-generic


Namemarket-generic JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/sharmasourab93/market-generic
SummaryA Generic Python Package for Stock Market Analysis and Trading
upload_time2024-07-02 13:24:22
maintainerNone
docs_urlNone
authorSourab S Sharma
requires_pythonNone
licenseNone
keywords market trade analysis
VCS
bugtrack_url
requirements No requirements were recorded.
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/ce/5d/02b49830a25a646872c1ff2479662a1d6168418d36ab288172b09114e053/market_generic-0.5.0.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.5.0",
    "project_urls": {
        "Homepage": "https://github.com/sharmasourab93/market-generic"
    },
    "split_keywords": [
        "market",
        " trade",
        " analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3a088a7b8e23a83d8df04f034a7c7238b3fc87702da65a3a3b2f6a5b7b9978c",
                "md5": "357bcfd9e97ed490c31357d43fd5e06f",
                "sha256": "de678e051a713c33917daba33d96f442f1989c855f9586b83466227bd6a3ff7d"
            },
            "downloads": -1,
            "filename": "market_generic-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "357bcfd9e97ed490c31357d43fd5e06f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 53250,
            "upload_time": "2024-07-02T13:24:20",
            "upload_time_iso_8601": "2024-07-02T13:24:20.801682Z",
            "url": "https://files.pythonhosted.org/packages/d3/a0/88a7b8e23a83d8df04f034a7c7238b3fc87702da65a3a3b2f6a5b7b9978c/market_generic-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ce5d02b49830a25a646872c1ff2479662a1d6168418d36ab288172b09114e053",
                "md5": "6272c6dd0ccd2e9d7bba9d7644d4a2d8",
                "sha256": "daef1d244344c96c4e6d764c3655e8b2d3e7d36ba3b4e590e9d496dd2b686fb7"
            },
            "downloads": -1,
            "filename": "market_generic-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6272c6dd0ccd2e9d7bba9d7644d4a2d8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 36475,
            "upload_time": "2024-07-02T13:24:22",
            "upload_time_iso_8601": "2024-07-02T13:24:22.248136Z",
            "url": "https://files.pythonhosted.org/packages/ce/5d/02b49830a25a646872c1ff2479662a1d6168418d36ab288172b09114e053/market_generic-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-02 13:24:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sharmasourab93",
    "github_project": "market-generic",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "lcname": "market-generic"
}
        
Elapsed time: 0.26386s