{ "info": { "author": "sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk]", "author_email": "sonntagsgesicht@icloud.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Education", "Topic :: Office/Business", "Topic :: Office/Business :: Financial", "Topic :: Office/Business :: Scheduling", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "\n\nPython library *shortrate*\n--------------------------\n\n.. image:: https://img.shields.io/codeship/adb6fa50-ba2a-0137-d9c4-4a1d2f2d4303/master.svg\n :target: https://codeship.com//projects/364774\n :alt: CodeShip\n\n.. image:: https://travis-ci.org/sonntagsgesicht/shortrate.svg?branch=master\n :target: https://travis-ci.org/sonntagsgesicht/shortrate\n :alt: Travis ci\n\n.. image:: https://img.shields.io/readthedocs/shortrate\n :target: http://shortrate.readthedocs.io\n :alt: Read the Docs\n\n.. image:: https://img.shields.io/codefactor/grade/github/sonntagsgesicht/shortrate/master\n :target: https://www.codefactor.io/repository/github/sonntagsgesicht/shortrate\n :alt: CodeFactor Grade\n\n.. image:: https://img.shields.io/codeclimate/maintainability/sonntagsgesicht/shortrate\n :target: https://codeclimate.com/github/sonntagsgesicht/shortrate/maintainability\n :alt: Code Climate maintainability\n\n.. image:: https://img.shields.io/codecov/c/github/sonntagsgesicht/shortrate\n :target: https://codecov.io/gh/sonntagsgesicht/shortrate\n :alt: Codecov\n\n.. image:: https://img.shields.io/lgtm/grade/python/g/sonntagsgesicht/shortrate.svg\n :target: https://lgtm.com/projects/g/sonntagsgesicht/shortrate/context:python/\n :alt: lgtm grade\n\n.. image:: https://img.shields.io/lgtm/alerts/g/sonntagsgesicht/shortrate.svg\n :target: https://lgtm.com/projects/g/sonntagsgesicht/shortrate/alerts/\n :alt: total lgtm alerts\n\n.. image:: https://img.shields.io/github/license/sonntagsgesicht/shortrate\n :target: https://github.com/sonntagsgesicht/shortrate/raw/master/LICENSE\n :alt: GitHub\n\n.. image:: https://img.shields.io/github/release/sonntagsgesicht/shortrate?label=github\n :target: https://github.com/sonntagsgesicht/shortrate/releases\n :alt: GitHub release\n\n.. image:: https://img.shields.io/pypi/v/shortrate\n :target: https://pypi.org/project/shortrate/\n :alt: PyPI Version\n\n.. image:: https://img.shields.io/pypi/pyversions/shortrate\n :target: https://pypi.org/project/shortrate/\n :alt: PyPI - Python Version\n\n.. image:: https://img.shields.io/pypi/dm/shortrate\n :target: https://pypi.org/project/shortrate/\n :alt: PyPI Downloads\n\n\nRisk factor model library python style.\n\n\nExample Usage\n-------------\n\n.. code-block:: python\n\n from businessdate import BusinessDate, BusinessRange\n from dcf import ZeroRateCurve, FxCurve\n from timewave import Consumer, Engine\n\n from shortrate import RiskFactorProducer, GBMFxCurve, HullWhiteCurve, HullWhiteFxCurve, HullWhiteMultiCurrencyCurve\n\n s = BusinessDate()\n t = s + '10y'\n g = BusinessRange(s, t, '6M')\n d = ZeroRateCurve([s], [0.05])\n f = ZeroRateCurve([s], [0.04])\n x = FxCurve([s], [.8], domestic_curve=d, foreign_curve=f)\n r = GBMFxCurve.build(x, volatility=0.2)\n\n print r.evolve(1., s, s + '1y', 0.01)\n print r.get_fx_rate(s + '3y'), r._factor_date\n print r.evolve(1., s + '1y', s + '5y', 0.1)\n print r.get_fx_rate(s + '7y'), r._factor_date\n\n hwd = HullWhiteCurve.build(d, mean_reversion=0.01, volatility=0.03, terminal_date=t)\n hwf = HullWhiteCurve.build(f, mean_reversion=0.01, volatility=0.03, terminal_date=t)\n hwx = HullWhiteFxCurve.build(r, hwd, hwf)\n hwxf = HullWhiteMultiCurrencyCurve.build(hwf, hwd, hwx)\n\n print hwd.evolve(1., s, s + '1y', 0.01)\n print hwf.evolve(1., s, s + '1y', 0.02)\n print hwx.evolve(1., s, s + '1y', (0.01, 0.02, 0.01))\n print hwxf.evolve(1., s, s + '1y', 0.02)\n\n func = (lambda x: hwd.get_cash_rate(t - '1y'))\n c = Consumer(lambda x: func(x.date))\n res = Engine(RiskFactorProducer(hwd), c).run(g, 100)\n\n print res\n\nInstall\n-------\n\nThe latest stable version can always be installed or updated via pip:\n\n.. code-block:: bash\n\n $ pip install shortrate\n\nIf the above fails, please try easy_install instead:\n\n.. code-block:: bash\n\n $ easy_install shortrate\n\n\nDevelopment Version\n-------------------\n\nThe latest development version can be installed directly from GitHub:\n\n.. code-block:: bash\n\n $ pip install --upgrade git+https://github.com/pbrisk/shortrate.git\n\n\nContributions\n-------------\n\n.. _issues: https://github.com/pbrisk/shortrate/issues\n.. __: https://github.com/pbrisk/shortrate/pulls\n\nIssues_ and `Pull Requests`__ are always welcome.\n\n\nLicense\n-------\n\n.. __: https://github.com/pbrisk/shortrate/raw/master/LICENSE\n\nCode and documentation are available according to the Apache Software License (see LICENSE__).\n\n\n\n\n", "description_content_type": "", "docs_url": "https://pythonhosted.org/shortrate/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sonntagsgesicht/shortrate", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "shortrate", "package_url": "https://pypi.org/project/shortrate/", "platform": "any", "project_url": "https://pypi.org/project/shortrate/", "project_urls": { "Homepage": "https://github.com/sonntagsgesicht/shortrate" }, "release_url": "https://pypi.org/project/shortrate/0.3/", "requires_dist": [ "businessdate", "timewave", "dcf", "scipy" ], "requires_python": "", "summary": "risk factor model library python style.", "version": "0.3" }, "last_serial": 5849985, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8a983767b5d58ff2850aaf867bde210f", "sha256": "59fe9bc5cc332c0af9091c2924185480f6d3c906b3708e4aa8b7bdc849724b66" }, "downloads": -1, "filename": "shortrate-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8a983767b5d58ff2850aaf867bde210f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 15272, "upload_time": "2017-04-04T15:38:12", "url": "https://files.pythonhosted.org/packages/d6/cb/b9a7383dd60efa53d8f10fe107152bf0ba7a6cd323c4009649efd7118783/shortrate-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9362b765ab29ebdf69fbb0f5816855a", "sha256": "3d6b8c4a2d8332c6031c7cd57d30432aad115630a3c36d97282b627196e0ff6f" }, "downloads": -1, "filename": "shortrate-0.1.tar.gz", "has_sig": false, "md5_digest": "b9362b765ab29ebdf69fbb0f5816855a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18186, "upload_time": "2017-04-04T15:37:58", "url": "https://files.pythonhosted.org/packages/cf/85/0f82eb4d2c2184e92176c63c4084b61b2f3c5826cea283fc6f99b504e775/shortrate-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6c07f9573de39fa909cc27484dd5f5ce", "sha256": "88704c7921e203d9dc194cd10bbccd7f4b119f5cdb3a7b3e7850cbd606308901" }, "downloads": -1, "filename": "shortrate-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "6c07f9573de39fa909cc27484dd5f5ce", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 14940, "upload_time": "2017-07-07T22:12:51", "url": "https://files.pythonhosted.org/packages/64/bc/1c5be9f89cf0103a8a70b2ca99697589c9afc27d089478a647a97c022e7f/shortrate-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4179e4a55692082cefeb2e2ed479ab53", "sha256": "df7bb5299881c434c9463ee37baf12bdc95aa224ae2735d5c5f7fd733cac00a4" }, "downloads": -1, "filename": "shortrate-0.2.tar.gz", "has_sig": false, "md5_digest": "4179e4a55692082cefeb2e2ed479ab53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18142, "upload_time": "2017-07-07T22:12:53", "url": "https://files.pythonhosted.org/packages/59/2e/1b0f6600f4edc67efa11244cad742f9826d7f704bfe9d95f24e74506fbe5/shortrate-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "745de9a32610fc99f945c2f761d84528", "sha256": "7fadf48bbd3874456af2fb4bac273cc837a4c4b0801fc22aa3582446c5d3de71" }, "downloads": -1, "filename": "shortrate-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "745de9a32610fc99f945c2f761d84528", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18111, "upload_time": "2019-09-18T12:51:18", "url": "https://files.pythonhosted.org/packages/93/a6/1a257826b37986d82a9295559bbb5f528df73cb38a3265ceb5e57034be35/shortrate-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7b193942a811fcbf535a56e1097a52dd", "sha256": "6faaae989d393ea031872da9193888f54bab847efc2c1147c0091e5b9b0fd384" }, "downloads": -1, "filename": "shortrate-0.3.tar.gz", "has_sig": false, "md5_digest": "7b193942a811fcbf535a56e1097a52dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18404, "upload_time": "2019-09-18T12:51:20", "url": "https://files.pythonhosted.org/packages/08/82/2377833a937f3d456c9ab4a1cb9806b9378f95cad3ef849b538b24360213/shortrate-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "745de9a32610fc99f945c2f761d84528", "sha256": "7fadf48bbd3874456af2fb4bac273cc837a4c4b0801fc22aa3582446c5d3de71" }, "downloads": -1, "filename": "shortrate-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "745de9a32610fc99f945c2f761d84528", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18111, "upload_time": "2019-09-18T12:51:18", "url": "https://files.pythonhosted.org/packages/93/a6/1a257826b37986d82a9295559bbb5f528df73cb38a3265ceb5e57034be35/shortrate-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7b193942a811fcbf535a56e1097a52dd", "sha256": "6faaae989d393ea031872da9193888f54bab847efc2c1147c0091e5b9b0fd384" }, "downloads": -1, "filename": "shortrate-0.3.tar.gz", "has_sig": false, "md5_digest": "7b193942a811fcbf535a56e1097a52dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18404, "upload_time": "2019-09-18T12:51:20", "url": "https://files.pythonhosted.org/packages/08/82/2377833a937f3d456c9ab4a1cb9806b9378f95cad3ef849b538b24360213/shortrate-0.3.tar.gz" } ] }