LiveCandles


NameLiveCandles JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/ronitmagar/tradinBot/blob/main/liveOHLCFeed.py
SummaryAPI for getting live OHLC candle-stick data of Indian Stocks for free
upload_time2024-02-15 22:40:04
maintainer
docs_urlNone
authorRonit Magar
requires_python>=3.9.6
license
keywords ohlc feed stock candle stick stock market
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            API for live OHLC feed

[![PyPI version](https://badge.fury.io/py/your-project-name.svg)](https://badge.fury.io/py/your-project-name)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## Installation

You can install project using pip:

```python
pip install LiveCandles
```

## Description

Use this API for getting live OHLC candle-stick for free, it will relay the data of time intervals from 5 to 59 minutes starting from the next mutiple for 5 minute. 

It has two modes for getting data as shown below:

1. It simply web scraps the google finance webpage to get live current price and converts in to OHLC candle. Code for it is

```python
data  = LiveCandles.ohlcStream('5minutes',indexCode = "NIFTY_50")

while True:
    price = data.stream()
    #use price as per your need
    print(price)
```

2. It will use multiprocessing to set open, high, low, close values simultaneously  

```python
from LiveCandles import ohlcStream

if __name__ == '__main__':    
    data = ohlcStream("5minutes", indexCode = "NIFTY_50")

    while True:
        price = (data.streamMP())
        #use price as per your need
        print(price)
```

## Arguments: 
1. First argument is interval should be specified as '5minutes' number can be anything from 5 to 59

2. indexCode(optional) to be specified to get index candle as per google finance code

3. stockCode(optional) to be specified to get stock candle as per google finance code

## DISCLAIMER

Data generated is not very accurate, due to netwrok latency, call restriction. Avoid using for taking order placing decsions on it's basis. One can override getCurrentPrice() method for more reliable price fetching.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ronitmagar/tradinBot/blob/main/liveOHLCFeed.py",
    "name": "LiveCandles",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9.6",
    "maintainer_email": "",
    "keywords": "OHLC feed,stock,candle stick,stock market",
    "author": "Ronit Magar",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/db/7e/dbe0634dfc1f7c2bcbf8da0f59ad7b5fe3d6b114e02d45a54d59b7f6db00/LiveCandles-0.0.2.tar.gz",
    "platform": null,
    "description": "API for live OHLC feed\n\n[![PyPI version](https://badge.fury.io/py/your-project-name.svg)](https://badge.fury.io/py/your-project-name)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Installation\n\nYou can install project using pip:\n\n```python\npip install LiveCandles\n```\n\n## Description\n\nUse this API for getting live OHLC candle-stick for free, it will relay the data of time intervals from 5 to 59 minutes starting from the next mutiple for 5 minute. \n\nIt has two modes for getting data as shown below:\n\n1. It simply web scraps the google finance webpage to get live current price and converts in to OHLC candle. Code for it is\n\n```python\ndata  = LiveCandles.ohlcStream('5minutes',indexCode = \"NIFTY_50\")\n\nwhile True:\n    price = data.stream()\n    #use price as per your need\n    print(price)\n```\n\n2. It will use multiprocessing to set open, high, low, close values simultaneously  \n\n```python\nfrom LiveCandles import ohlcStream\n\nif __name__ == '__main__':    \n    data = ohlcStream(\"5minutes\", indexCode = \"NIFTY_50\")\n\n    while True:\n        price = (data.streamMP())\n        #use price as per your need\n        print(price)\n```\n\n## Arguments: \n1. First argument is interval should be specified as '5minutes' number can be anything from 5 to 59\n\n2. indexCode(optional) to be specified to get index candle as per google finance code\n\n3. stockCode(optional) to be specified to get stock candle as per google finance code\n\n## DISCLAIMER\n\nData generated is not very accurate, due to netwrok latency, call restriction. Avoid using for taking order placing decsions on it's basis. One can override getCurrentPrice() method for more reliable price fetching.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "API for getting live OHLC candle-stick data of Indian Stocks for free",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/ronitmagar/tradinBot/blob/main/liveOHLCFeed.py"
    },
    "split_keywords": [
        "ohlc feed",
        "stock",
        "candle stick",
        "stock market"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "177775441cd385d6d6d9398cadce051fc4f9442c8d5f3cfacf84e5103edd469e",
                "md5": "6563e2905e74e01b6ad447e6136a87af",
                "sha256": "95abfaa6060dd6fd5ff9070c784942ae3d46813f1f7c6c12d7665be73e5e6c0f"
            },
            "downloads": -1,
            "filename": "LiveCandles-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6563e2905e74e01b6ad447e6136a87af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9.6",
            "size": 4543,
            "upload_time": "2024-02-15T22:40:00",
            "upload_time_iso_8601": "2024-02-15T22:40:00.572757Z",
            "url": "https://files.pythonhosted.org/packages/17/77/75441cd385d6d6d9398cadce051fc4f9442c8d5f3cfacf84e5103edd469e/LiveCandles-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db7edbe0634dfc1f7c2bcbf8da0f59ad7b5fe3d6b114e02d45a54d59b7f6db00",
                "md5": "614b8c08725938f40ec4be301535270b",
                "sha256": "e4c44cadc606fb72a5f8d1bbd8ab37623de74e003d7ae670607a4c705f01dab9"
            },
            "downloads": -1,
            "filename": "LiveCandles-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "614b8c08725938f40ec4be301535270b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.6",
            "size": 4298,
            "upload_time": "2024-02-15T22:40:04",
            "upload_time_iso_8601": "2024-02-15T22:40:04.638655Z",
            "url": "https://files.pythonhosted.org/packages/db/7e/dbe0634dfc1f7c2bcbf8da0f59ad7b5fe3d6b114e02d45a54d59b7f6db00/LiveCandles-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-15 22:40:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ronitmagar",
    "github_project": "tradinBot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "livecandles"
}
        
Elapsed time: 0.18809s