{ "info": { "author": "Apoorva Singh", "author_email": "apoorva.singh157@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "\n

\n\n\n\n## Super simple to use\n\nTickerStore is an easy to use python library used to get historical \ndata of financial instruments from NSE.\n\n\n## Install\n```bash\n$ pip install tickerstore\n```\n\n## Basic Usage\n\nUsing TickerStore you can specify the source from where the data needs\nto be fetched. At present, there are 2 sources of data **Upstox** and \n**NSE**. EOD (End of Day) data can be used simple by using the following piece\nof code. \n\n```python\nfrom tickerstore.store import TickerStore\nfrom datetime import date\n\nfetcher = TickerStore()\nfetcher.historical_data(\"SBIN\", date(2018,1,1), date(2018,1,30), TickerStore.INTERVAL_DAY_1)\n\n``` \n\n## How it works?\nTickerStore tries to make historical stock market data more easy to\nuse in your python projects. TickerStore has multiple sources from\nwhere the data is fetched. At present we have 2 sources, **NSE** and **Upstox**.\nData from these 2 sources are fetched in a predefined order. \n\nThe default order is:\n 1. Upstox\n 2. NSE\n\nIf one fails, the next one is tried in order. You can change the order using a **set_fetch_order()** method.\nTo view the present fetch order use the **get_fetch_order()** method.\n\n\n## Using with .env file (python-dotenv)\n\nCreate a **.env** file in the present working directory and enter your \nUpstox API key and API secret and leave all other fields as it is.\n\n```dotenv\nUPSTOX_API_KEY=\nUPSTOX_API_SECRET=\nUPSTOX_REDIRECT_URI=http://127.0.0.1:5000/callback\nTEMP_SERVER_SHUTDOWN_URL=http://127.0.0.1:5000/shutdown\nTEMP_SERVER_AUTH_PAGE=http://127.0.0.1:5000/\n```\n\nOn python end, use the **find_dotenv** function from the python-dotenv\npackage and pass it to the TickerStore. The information from the dotenv \nfile will be available as environment variables.\n```python\nfrom tickerstore.store import TickerStore\nfrom dotenv import find_dotenv\nfrom datetime import date\n\nfetcher = TickerStore(dotenv_path=find_dotenv())\nfetcher.historical_data(\"SBIN\", date(2018,1,1), date(2018,1,30), TickerStore.INTERVAL_DAY_1)\n\n```\n\n\n## Using with Upstox\nUsing only with **Upstox**:\n\n```python\nfrom tickerstore.store import TickerStore\nfrom datetime import date\n\nfetcher = TickerStore(\n upstox_api_key=\"\",\n upstox_api_secret=\"\",\n upstox_redirect_uri=\"http://localhost:5000/callback\",\n temp_server_auth_page=\"http://localhost:8000/\"\n )\n\nfetcher.historical_data(\"SBIN\", date(2018,1,1), date(2018,1,30), TickerStore.INTERVAL_DAY_1)\n\n```\n\n\n## Change fetch order\nOrder in which the data is fetched from different sources can be changed.\n\n```python\nfrom tickerstore.store import TickerStore\nfrom dotenv import find_dotenv\nfrom datetime import date\n\nfetcher = TickerStore(dotenv_path=find_dotenv())\nfetcher.set_fetch_order([TickerStore.NSE, TickerStore.UPSTOX])\n\nfetcher.historical_data(\"SBIN\", date(2018,1,1), date(2018,1,30), TickerStore.INTERVAL_DAY_1)\n\n```\nTickerStore now first fetches data from NSE and then from UPSTOX. You can\neven specify a single source and data will only be fetched from there. \n\n## API\nComing soon :)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/meticulousCraftman/tickerstore", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "TickerStore", "package_url": "https://pypi.org/project/TickerStore/", "platform": "", "project_url": "https://pypi.org/project/TickerStore/", "project_urls": { "Homepage": "https://github.com/meticulousCraftman/tickerstore" }, "release_url": "https://pypi.org/project/TickerStore/0.0.8/", "requires_dist": [ "upstox", "python-dotenv", "Flask", "influxdb", "crayons", "nsepy", "pandas", "requests", "lxml", "loguru" ], "requires_python": "", "summary": "Historical data of financial instruments from NSE", "version": "0.0.8" }, "last_serial": 4971780, "releases": { "0.0.8": [ { "comment_text": "", "digests": { "md5": "cd306406ca6557fb325f4287f12a08bc", "sha256": "416784e499812b857b162c9141ac3479561c339647b4db53460bd1006a5ebeac" }, "downloads": -1, "filename": "TickerStore-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "cd306406ca6557fb325f4287f12a08bc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8922, "upload_time": "2019-03-22T08:16:26", "url": "https://files.pythonhosted.org/packages/d2/c3/86e799b14e017c2afd1d1960b49906f66d41c56d63a38eb0bff78fdecb96/TickerStore-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "90993ee50b1810165b6839c5e53ed16c", "sha256": "45dca25c0b277c0c0b6ab331a533a2b211c7102485b0f822551994a5120231fd" }, "downloads": -1, "filename": "TickerStore-0.0.8.tar.gz", "has_sig": false, "md5_digest": "90993ee50b1810165b6839c5e53ed16c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7044, "upload_time": "2019-03-22T08:16:29", "url": "https://files.pythonhosted.org/packages/59/3c/41ed43509d3c9a346b6d14739fce41783c6e478a757162bc2ae8303de78b/TickerStore-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd306406ca6557fb325f4287f12a08bc", "sha256": "416784e499812b857b162c9141ac3479561c339647b4db53460bd1006a5ebeac" }, "downloads": -1, "filename": "TickerStore-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "cd306406ca6557fb325f4287f12a08bc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8922, "upload_time": "2019-03-22T08:16:26", "url": "https://files.pythonhosted.org/packages/d2/c3/86e799b14e017c2afd1d1960b49906f66d41c56d63a38eb0bff78fdecb96/TickerStore-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "90993ee50b1810165b6839c5e53ed16c", "sha256": "45dca25c0b277c0c0b6ab331a533a2b211c7102485b0f822551994a5120231fd" }, "downloads": -1, "filename": "TickerStore-0.0.8.tar.gz", "has_sig": false, "md5_digest": "90993ee50b1810165b6839c5e53ed16c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7044, "upload_time": "2019-03-22T08:16:29", "url": "https://files.pythonhosted.org/packages/59/3c/41ed43509d3c9a346b6d14739fce41783c6e478a757162bc2ae8303de78b/TickerStore-0.0.8.tar.gz" } ] }