{ "info": { "author": "Dayal Chand Aichara", "author_email": "dc.aichara@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "\n\n\n## Installation \n\n### pip \n\n```\npip install PriceIndics\n```\n\n### From Source (Github)\n\n git clone https://github.com/dc-aichara/Price-Indices.git\n\n cd Price-Indices \n\n python3 setup.py install\n\n## Usages \n\n```python\nfrom PriceIndices import MarketHistory, Indices\n\n```\n## Examples \n\n- #### Get market history and closing price\n\n```python\n>>> history = MarketHistory()\n\n# Get Market History \n\n>>> df_history = history.get_history('bitcoin', '20130428', '20190624') \n>>> df_history.head()\n Date Open* High Low Close** Volume Market Cap\n0 2019-06-23 10696.69 11246.14 10556.10 10855.37 20998326502 192970090355\n1 2019-06-22 10175.92 11157.35 10107.04 10701.69 29995204861 190214124824\n2 2019-06-21 9525.07 10144.56 9525.07 10144.56 20624008643 180293241528\n3 2019-06-20 9273.06 9594.42 9232.48 9527.16 17846823784 169304784791\n4 2019-06-19 9078.73 9299.62 9070.40 9273.52 15546809946 164780855869\n\n# Get closing price\n\n>>> price_data = history.get_price('bitcoin', '20130428', '20190624') \n\n>>> price_data .head()\n date price\n0 2019-06-23 10855.37\n1 2019-06-22 10701.69\n2 2019-06-21 10144.56\n3 2019-06-20 9527.16\n4 2019-06-19 9273.52\n\n```\n\n- #### Calculate Volatility Index\n\n```python\n\n\n>>> df_bvol = Indices.get_bvol_index(price_data ) \n>>> df_bvol.head()\n date price BVOL_Index\n0 2019-06-22 10701.69 0.636482\n1 2019-06-21 10144.56 0.636414\n2 2019-06-20 9527.16 0.619886\n3 2019-06-19 9273.52 0.608403\n4 2019-06-18 9081.76 0.604174\n\n```\n\n- #### Plot Volatility Index\n\n```python\n>>> Indices.get_bvol_graph(df_bvol) \n\n\"\"\"\nThis will return a plot of BVOL index against time also save volatility index plot in your working directory as 'bvol_index.png'\n\"\"\"\n```\n\n\n\n- #### Calculate Relative Strength Index (RSI)\n\n```python\n\n>>> df_rsi = Indices.get_rsi(price_data) \n\n>>> print(df_rsi.tail())\n date price price_change gain loss gain_average loss_average RS RSI_1 RS_Smooth RSI_2\n2217 2013-05-02 105.21 7.46 7.46 0.00 1.532143 2.500000 0.612857 37.998229 0.561117 35.943306\n2218 2013-05-01 116.99 11.78 11.78 0.00 2.373571 2.175714 1.090939 52.174596 0.975319 49.375257\n2219 2013-04-30 139.00 22.01 22.01 0.00 3.945714 1.981429 1.991348 66.570258 1.869110 65.145981\n2220 2013-04-29 144.54 5.54 5.54 0.00 3.878571 1.981429 1.957462 66.187226 2.206422 68.812592\n2221 2013-04-28 134.21 -10.33 0.00 10.33 3.878571 2.506429 1.547449 60.745050 1.397158 58.283931\n\n```\n\n- #### Plot RSI\n\n```python\n>>> Indices.get_rsi_graph(df_rsi) \n\n\"\"\"\nThis will return a plot of RSI against time and also save RSI plot in your working directory as 'rsi.png'\n\"\"\"\n```\n\n\n\n- #### Get Bollinger Bands and its plot\n\n```python\n>>> df_bb = Indices.get_bollinger_bands(price_data , 20) \n>>> df_bb.tail()\n date price SMA SD pluse minus\n2243 2013-05-02 105.21 115.2345 6.339257 127.913013 -115.2345\n2244 2013-05-01 116.99 114.9400 6.097587 127.135174 -114.9400\n2245 2013-04-30 139.00 115.7900 8.016499 131.822998 -115.7900\n2246 2013-04-29 144.54 116.9175 10.217936 137.353372 -116.9175\n2247 2013-04-28 134.21 117.4530 10.842616 139.138233 -117.4530\n\n\"\"\"\nThis will also save Bollingers bands plot in your working directory as 'bollinger_bands.png'\n\"\"\"\n\n```\n\n\n\n\n\n- #### Get Moving Average Convergence Divergence (MACD) and its plot\n\n```python\n\n>>> df_macd = Indices.get_moving_average_convergence_divergence(price_data)\n\"\"\"This will return a pandas DataFrame and save EMA plot as 'macd.png' in working directory. \n\"\"\"\"\n>>> df_macd.head()\n date price EMA_12 EMA_26 MACD\n19 2019-06-18 9081.76 10415.979340 10886.327599 -470.348259\n20 2019-06-17 9320.35 10247.420980 10770.329259 -522.908279\n21 2019-06-16 8994.49 10054.662368 10638.785610 -584.123242\n22 2019-06-15 8838.38 9867.542004 10505.422231 -637.880228\n23 2019-06-14 8693.83 9686.970926 10371.230214 -684.259288\n\n```\n\n\n\n- #### Get Simple Moving Average (SMA) and its plot\n\n```python\n>>> df_sma = Indices.get_simple_moving_average(price_data, 20) \n\"\"\"This will return a pandas DataFrame and save EMA plot as 'sma.png' in working directory. \n\"\"\"\"\n>>> df_sma.head()\n date price SMA\n19 2019-06-18 9081.76 10998.4180\n20 2019-06-17 9320.35 10891.8930\n21 2019-06-16 8994.49 10781.1900\n22 2019-06-15 8838.38 10674.1860\n23 2019-06-14 8693.83 10548.1055\n\n```\n\n\n\n- ### Get Exponential Moving Average (EMA) and its plot\n\n```python\n>>> df_ema = Indices.get_exponential_moving_average(price_data, [20,70])\n\"\"\"This will return a pandas DataFrame and save EMA plot as 'ema.png' in working directory. \n\"\"\"\"\n\n>>> df_ema.head()\n date price EMA_20 EMA_70\n0 2019-07-07 11450.85 11450.850000 11450.850000\n1 2019-07-06 11208.55 11427.773810 11444.024648\n2 2019-07-05 10978.46 11384.982018 11430.910151\n3 2019-07-04 11215.44 11368.835159 11424.840569\n4 2019-07-03 11961.27 11425.257525 11439.951257\n\n```\n\n\n\n### License\n\n[MIT](https://choosealicense.com/licenses/mit/) \u00a9 [Dayal Chand Aichara](https://github.com/dc-aichara)\n\n\n### Check out [webpage](https://github.com/dc-aichara/PriceIndices) of this PriceIndices package. \n\n### Disclaimer: \n\n```\nAll content provided here, is for educational purpose and your general information only, procured from third party sources.\nI make no warranties of any kind in relation to this content, including but not limited to accuracy\nand updatedness. No part of the content that I provide constitutes financial advice, legal advice \nor any other form of advice meant for your specific reliance for any purpose. Any use or reliance on\nmy content is solely at your own risk and discretion. You should conduct your own research, review, \nanalyse and verify my content before relying on them. Trading is a highly risky activity that can \nlead to major losses, please therefore consult your financial advisor before making any decision.\nNo content on this Site is meant to be a solicitation or offer.\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/dc-aichara/PriceIndices/archive/v-0.5.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dc-aichara/Price-Indices", "keywords": "Volatility,blockchain,cryptocurrency,Price,trading,CoinMarketCap,Indices,Indicators", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "PriceIndices", "package_url": "https://pypi.org/project/PriceIndices/", "platform": "", "project_url": "https://pypi.org/project/PriceIndices/", "project_urls": { "Download": "https://github.com/dc-aichara/PriceIndices/archive/v-0.5.2.tar.gz", "Homepage": "https://github.com/dc-aichara/Price-Indices" }, "release_url": "https://pypi.org/project/PriceIndices/0.5.2/", "requires_dist": [ "requests", "pandas", "numpy", "matplotlib" ], "requires_python": "", "summary": "A python package to get historical market data of cryptocurrencies from CoinMarketCap, and calculate & plot different indicators.", "version": "0.5.2" }, "last_serial": 5757728, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "62fd0c3f4e95570a730bc8cbff9b0b3c", "sha256": "252626d1bb2e45ea32afa6173f180f2bb2359a8d143b837e93d639e1871a38fd" }, "downloads": -1, "filename": "PriceIndices-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "62fd0c3f4e95570a730bc8cbff9b0b3c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5390, "upload_time": "2019-05-30T07:14:44", "url": "https://files.pythonhosted.org/packages/91/2b/0076aba68b1e1d0ece68838f3a258e38fb6aa7a48f29ec6f873380872d91/PriceIndices-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "475b52565e89e92de090b4b86b08bb8c", "sha256": "b23e166bbd16c6b9299794e01aba2674288a99ac4ab01352aee43fd936b4ea85" }, "downloads": -1, "filename": "PriceIndices-0.1.tar.gz", "has_sig": false, "md5_digest": "475b52565e89e92de090b4b86b08bb8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4282, "upload_time": "2019-05-30T07:14:46", "url": "https://files.pythonhosted.org/packages/bc/70/2f7eb820514af0535792b55aff686fca4753ede7c6643cacf344da49a733/PriceIndices-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6b5a3897a6f5c7f74b289cf515740c5e", "sha256": "22f8cf153ae128b9d0dc6435ab33ffd88b24bb3f2dae38eef670bdccda6b031a" }, "downloads": -1, "filename": "PriceIndices-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6b5a3897a6f5c7f74b289cf515740c5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6482, "upload_time": "2019-06-24T08:12:19", "url": "https://files.pythonhosted.org/packages/1d/e5/1390a2a68edf68fe7335c3ad251b30ce6df3ee17dc90f5e16ba45c0612bb/PriceIndices-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c0420fba32af20dd2f4c2edb14eca4d", "sha256": "f4c436d80100d7baea3aca0aea2030d022a5bda2d3428f767091a673fb48835a" }, "downloads": -1, "filename": "PriceIndices-0.2.tar.gz", "has_sig": false, "md5_digest": "7c0420fba32af20dd2f4c2edb14eca4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5197, "upload_time": "2019-06-24T08:12:22", "url": "https://files.pythonhosted.org/packages/2f/3b/c3753fff7047f757c61dd217fc603e11a88227ecd2709fb8d711c9c4ee80/PriceIndices-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "1197cf44ed4688402898b2885d39da2b", "sha256": "4d9fb9aaf2e4f7e60aca4e07587dc2b0352c05ca6c6d1815e6deee3a948ad04f" }, "downloads": -1, "filename": "PriceIndices-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1197cf44ed4688402898b2885d39da2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6906, "upload_time": "2019-06-24T08:46:47", "url": "https://files.pythonhosted.org/packages/ba/34/e213802423acf366b4794954690c5b5f7750b6a338a79168a5a0072c803b/PriceIndices-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd91711aec4945c44f74394b0a4c4242", "sha256": "a9e82a57937bebd8a2893c49c9bdaceae1d2a531a4a1d4f57a878ff442140a08" }, "downloads": -1, "filename": "PriceIndices-0.3.tar.gz", "has_sig": false, "md5_digest": "cd91711aec4945c44f74394b0a4c4242", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5654, "upload_time": "2019-06-24T08:46:49", "url": "https://files.pythonhosted.org/packages/2f/6c/aac30f5b529bca7d8096f95bc94624c39547cd1bfbac1f097a6d9dcfbd4a/PriceIndices-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "bcca0c09e1214c0c6aaeb4a5e6d4790e", "sha256": "3b254ec8585ad6758940728168bd356ff33f8062ea1160298c9059dc9dd9c689" }, "downloads": -1, "filename": "PriceIndices-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "bcca0c09e1214c0c6aaeb4a5e6d4790e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7975, "upload_time": "2019-07-09T02:37:06", "url": "https://files.pythonhosted.org/packages/7d/57/934ad14e1ecd974f00354c73cd56428956633ef66a4de65929cac81701f6/PriceIndices-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c90a33ab47d3986cdb521ce5058af78", "sha256": "b1f494b4c7a5e0af3846eb002ad8756f11e59487828c0f55ab92380c4d6d6e5b" }, "downloads": -1, "filename": "PriceIndices-0.4.tar.gz", "has_sig": false, "md5_digest": "5c90a33ab47d3986cdb521ce5058af78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6799, "upload_time": "2019-07-09T02:37:08", "url": "https://files.pythonhosted.org/packages/06/d4/ce5d663c4a819bb7a15a5c78cc611e62533df91bd043a90b3948e13539b2/PriceIndices-0.4.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "189419b0ad6078be9de57ba5d92bc07b", "sha256": "ab4878c0c37137bb6b35add3e9f59a633a226836489eb21faa0a113fad3ce932" }, "downloads": -1, "filename": "PriceIndices-0.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "189419b0ad6078be9de57ba5d92bc07b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8841, "upload_time": "2019-07-11T03:07:40", "url": "https://files.pythonhosted.org/packages/6c/d3/ad0ba5ba8a25e1593cadc011fbf72bdf360eb99fe61e7bf62c1cf75352d2/PriceIndices-0.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9729a018f75e0ce25af6eed2be4a4c1f", "sha256": "021ef834bf0b6be08346937d1695491321c934a9ffca856e2be21884350a829d" }, "downloads": -1, "filename": "PriceIndices-0.5.1.tar.gz", "has_sig": false, "md5_digest": "9729a018f75e0ce25af6eed2be4a4c1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7780, "upload_time": "2019-07-11T03:07:42", "url": "https://files.pythonhosted.org/packages/a7/a8/0e9168dbb6dfb6673d1e7b638f5716a9400fd9eabf3ae08ce7b0eed00127/PriceIndices-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "3bfae1f773728d3eaf54cb1c892d4e8c", "sha256": "147afd4cc2ebfa64ecf4d259bb256762f1dc61e0e2055175d41e8ad58914f91e" }, "downloads": -1, "filename": "PriceIndices-0.5.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3bfae1f773728d3eaf54cb1c892d4e8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8893, "upload_time": "2019-08-30T01:26:00", "url": "https://files.pythonhosted.org/packages/53/0c/c3615b2d2871f5236f7efedfe32d48b1f0c59e1002afa9df5e076be969aa/PriceIndices-0.5.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d6b92d10131f64efdba0241cdbdcb25a", "sha256": "e89f70cc51e87cd79a02e9e57843ff15589c5812acf44bf3179c0c643c8e722c" }, "downloads": -1, "filename": "PriceIndices-0.5.2.tar.gz", "has_sig": false, "md5_digest": "d6b92d10131f64efdba0241cdbdcb25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7832, "upload_time": "2019-08-30T01:26:02", "url": "https://files.pythonhosted.org/packages/9a/dd/29fe780d3c7abe9f81b006b36a589282d8263d69940a2d2e7f786728168c/PriceIndices-0.5.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3bfae1f773728d3eaf54cb1c892d4e8c", "sha256": "147afd4cc2ebfa64ecf4d259bb256762f1dc61e0e2055175d41e8ad58914f91e" }, "downloads": -1, "filename": "PriceIndices-0.5.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3bfae1f773728d3eaf54cb1c892d4e8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8893, "upload_time": "2019-08-30T01:26:00", "url": "https://files.pythonhosted.org/packages/53/0c/c3615b2d2871f5236f7efedfe32d48b1f0c59e1002afa9df5e076be969aa/PriceIndices-0.5.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d6b92d10131f64efdba0241cdbdcb25a", "sha256": "e89f70cc51e87cd79a02e9e57843ff15589c5812acf44bf3179c0c643c8e722c" }, "downloads": -1, "filename": "PriceIndices-0.5.2.tar.gz", "has_sig": false, "md5_digest": "d6b92d10131f64efdba0241cdbdcb25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7832, "upload_time": "2019-08-30T01:26:02", "url": "https://files.pythonhosted.org/packages/9a/dd/29fe780d3c7abe9f81b006b36a589282d8263d69940a2d2e7f786728168c/PriceIndices-0.5.2.tar.gz" } ] }