PKNSETools


NamePKNSETools JSON
Version 0.1.20241008.131 PyPI version JSON
download
home_pagehttps://github.com/pkjmesra/PKNSETools
SummaryA Python-based data downloader for NSE, India
upload_time2024-10-08 08:56:55
maintainerNone
docs_urlNone
authorpkjmesra
requires_pythonNone
licenseOSI Approved (MIT)
keywords nse stocks data download
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # National Stock Exchange (India) Web-Scraping For getting Required Data

## WebSite-Url : [https://www.nseindia.com/](https://www.nseindia.com/)

## gereral.py
That uses NSE private search api for getting id of a stock

example tata moors (Common name) :- TATAMOTORSEQN (ID assigned by NSE)
```python
from general import getId
id = getId('tata motors')
```


## today_all_stock.py
Gives all data of all companies including NIFTY, and you save it as CSV file.
getTodayData() returns tuple in the form of (nifty_data, Company_data)

```python
from today_all_stocks import getTodayData
nifty_data, companies_data = getTodayData() 
```

## intra_day.py
if you call the function intraDay(company_id) or nifty_intraDay(nifty_type) to get live data i.e., from 09:00:00 AM to till now

For Companies use like this,
```python
from intra_day import Intra_Day
ID = Intra_Day('TATA MOTORS')
timeStamp, dataPoints = ID.intraDay()
```

and for NIFTY use,

```python
from intra_day import Intra_Day
ID = Intra_Day('NIFTY 50')
timeStamp, dataPoints = ID.nifty_intraDay()
```

call nifty_intraday() or intraDay() as many times you need


## individual_company_stock.py
This will give you the historical data of that stock. max 3 years 

```python
from individual_company_stock import getHistoryData
getHistoryData('SHREECEM',from_date='30-04-2020',to_date='30-04-2021') 
# Default params : from_date = today's date in last year DD-MM-(YYYY-1), to_date=today's date DD-MM-YYYY
# for example today is 30-04-2021; from_date = 30-04-2020 to_date = 30-04-2021
```

```python
from individual_company_stock import niftyHistoryData
niftyHistoryData('NIFTY 50') 
# Default params : from_date = today's date in last year DD-MM-(YYYY-1), to_date=today's date DD-MM-YYYY
# for example today is 30-04-2021; from_date = 30-04-2020 to_date = 30-04-2021
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pkjmesra/PKNSETools",
    "name": "PKNSETools",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "NSE, Stocks, Data Download",
    "author": "pkjmesra",
    "author_email": "pkjmesra@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/18/79/404ce2fda8d4a18613366ef8dfd9ad02966665f27e49663b2312789223f7/PKNSETools-0.1.20241008.131.tar.gz",
    "platform": null,
    "description": "# National Stock Exchange (India) Web-Scraping For getting Required Data\r\n\r\n## WebSite-Url : [https://www.nseindia.com/](https://www.nseindia.com/)\r\n\r\n## gereral.py\r\nThat uses NSE private search api for getting id of a stock\r\n\r\nexample tata moors (Common name) :- TATAMOTORSEQN (ID assigned by NSE)\r\n```python\r\nfrom general import getId\r\nid = getId('tata motors')\r\n```\r\n\r\n\r\n## today_all_stock.py\r\nGives all data of all companies including NIFTY, and you save it as CSV file.\r\ngetTodayData() returns tuple in the form of (nifty_data, Company_data)\r\n\r\n```python\r\nfrom today_all_stocks import getTodayData\r\nnifty_data, companies_data = getTodayData() \r\n```\r\n\r\n## intra_day.py\r\nif you call the function intraDay(company_id) or nifty_intraDay(nifty_type) to get live data i.e., from 09:00:00 AM to till now\r\n\r\nFor Companies use like this,\r\n```python\r\nfrom intra_day import Intra_Day\r\nID = Intra_Day('TATA MOTORS')\r\ntimeStamp, dataPoints = ID.intraDay()\r\n```\r\n\r\nand for NIFTY use,\r\n\r\n```python\r\nfrom intra_day import Intra_Day\r\nID = Intra_Day('NIFTY 50')\r\ntimeStamp, dataPoints = ID.nifty_intraDay()\r\n```\r\n\r\ncall nifty_intraday() or intraDay() as many times you need\r\n\r\n\r\n## individual_company_stock.py\r\nThis will give you the historical data of that stock. max 3 years \r\n\r\n```python\r\nfrom individual_company_stock import getHistoryData\r\ngetHistoryData('SHREECEM',from_date='30-04-2020',to_date='30-04-2021') \r\n# Default params : from_date = today's date in last year DD-MM-(YYYY-1), to_date=today's date DD-MM-YYYY\r\n# for example today is 30-04-2021; from_date = 30-04-2020 to_date = 30-04-2021\r\n```\r\n\r\n```python\r\nfrom individual_company_stock import niftyHistoryData\r\nniftyHistoryData('NIFTY 50') \r\n# Default params : from_date = today's date in last year DD-MM-(YYYY-1), to_date=today's date DD-MM-YYYY\r\n# for example today is 30-04-2021; from_date = 30-04-2020 to_date = 30-04-2021\r\n```\r\n",
    "bugtrack_url": null,
    "license": "OSI Approved (MIT)",
    "summary": "A Python-based data downloader for NSE, India",
    "version": "0.1.20241008.131",
    "project_urls": {
        "Download": "https://github.com/pkjmesra/PKNSETools/archive/v0.1.20241008.131.zip",
        "Homepage": "https://github.com/pkjmesra/PKNSETools"
    },
    "split_keywords": [
        "nse",
        " stocks",
        " data download"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb5f165b9f3f412629ff771e4fbcd75df2746b2216a633b69f8f96aa1ba8381c",
                "md5": "c9b09f275c4c38e5528c368d7b1fe8a7",
                "sha256": "700e2ef5cb279d9430ad0a7c04dbdfe836dac8c2f1bdf1b3defd4aacc8d89533"
            },
            "downloads": -1,
            "filename": "PKNSETools-0.1.20241008.131-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9b09f275c4c38e5528c368d7b1fe8a7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 82761,
            "upload_time": "2024-10-08T08:56:54",
            "upload_time_iso_8601": "2024-10-08T08:56:54.222263Z",
            "url": "https://files.pythonhosted.org/packages/cb/5f/165b9f3f412629ff771e4fbcd75df2746b2216a633b69f8f96aa1ba8381c/PKNSETools-0.1.20241008.131-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1879404ce2fda8d4a18613366ef8dfd9ad02966665f27e49663b2312789223f7",
                "md5": "c412513bbafa3d5044276378d6939196",
                "sha256": "ced9b00deea5e59202c602878ded9659c18d0f024255957b98340450570168a9"
            },
            "downloads": -1,
            "filename": "PKNSETools-0.1.20241008.131.tar.gz",
            "has_sig": false,
            "md5_digest": "c412513bbafa3d5044276378d6939196",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 67768,
            "upload_time": "2024-10-08T08:56:55",
            "upload_time_iso_8601": "2024-10-08T08:56:55.951365Z",
            "url": "https://files.pythonhosted.org/packages/18/79/404ce2fda8d4a18613366ef8dfd9ad02966665f27e49663b2312789223f7/PKNSETools-0.1.20241008.131.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-08 08:56:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pkjmesra",
    "github_project": "PKNSETools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pknsetools"
}
        
Elapsed time: 0.37248s