{ "info": { "author": "Xavier Bruhiere", "author_email": "xavier.bruhiere@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Office/Business :: Financial", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: System :: Distributed Computing" ], "description": "Portfolio\n=========\n\n[![Build Status](https://api.shippable.com/projects/53ce99a67c72335f045a19bb/badge/master)](https://www.shippable.com/projects/53ce99a67c72335f045a19bb)\n[![Coverage Status](https://img.shields.io/coveralls/intuition-io/portfolio.svg)](https://coveralls.io/r/intuition-io/portfolio)\n[![Code Health](https://landscape.io/github/intuition-io/portfolio/master/landscape.png)](https://landscape.io/github/intuition-io/portfolio/master)\n[![Requirements Status](https://requires.io/github/intuition-io/portfolio/requirements.png?branch=master)](https://requires.io/github/intuition-io/portfolio/requirements/?branch=master)\n[![License](https://pypip.in/license/intuition/badge.png)](https://pypi.python.org/pypi/intuition/)\n[![Gitter chat](https://badges.gitter.im/intuition-io.png)](https://gitter.im/intuition-io)\n\n> [Zipline][1] compatible extension of Portfolio, with analytics superpowers.\n> Inspired by [PortfolioAnalytics][6] R package.\n\nThe project provides several portfolio optimizations that compute optimal\nassets allocation regarding a various set of factors and constraints. Currently\nyou will get the following implementations :\n\n* [General optimization problem with solvers][7]\n* [Global Minimum Variance][8]\n* [Kelly criterion][9]\n\nTo learn more about the API, check [the full documentation][3].\n\nThis project is currently part of the **intuition project**, signup for [the\nprivate beta][2] and/or [clone your own hedge fund][4].\n\nFinally, the whole thing is compatible with [zipline backtester][1].\n\n\nInstall\n-------\n\n```\n$ # Before I setup a package on pypi, yo can get it from source\n$ git clone https://github.com/intuition-io/portfolio\n$ cd portfolio && make\n... blablabla it compiles a lot of maths ...\n```\n\nA taste of it\n-------------\n\n```python\n# Download some historical data\nfrom pandas.io.data import get_data_google\nohlc_data = get_data_google(['adsk', 'ctxs', 'fb', 'nflx', 'qcom'], start='2013/01/01', end='2013/12/01')\ndata = ohlc_data['Close']\n\n# Now let's optimize our portfolio weights\nfrom portfolio.optimizations.solvers import SolverPortfolio\nimport portfolio.objectives as objective\nimport portfolio.constraints as constraint\n\nportfolio = SolverPortfolio(objective.risk)\n# Forbid short positions\nportfolio.add_constraint(constraint.long_only())\n# Invest every cent of our cash\nportfolio.add_constraint(constraint.full_investment())\n\n# Get optimal weights in %\npf.optimize(['ctxs', 'fb', 'nflx', 'qcom', 'adsk'], data)\nOut[66]:\n{'adsk': 0.49,\n 'ctxs': 0.04,\n 'fb': 0.17,\n 'nflx': 0.0,\n 'qcom': 0.29}\n```\n\nContributing\n------------\n\nContributors are happily welcome, [here is a place to start][10].\n\n\nLicense\n-------\n\nCopyright 2014 Xavier Bruhiere.\n\n*Portfolio* is available under the [Apache License, Version 2.0][5].\n\n\n[1]: https://github.com/quantopian/zipline\n[2]: http://intuition.io\n[3]: http://doc.intuition.io\n[4]: https://github.com/intuition-io/intuition\n[5]: http://www.apache.org/licenses/LICENSE-2.0.html\n[6]: https://r-forge.r-project.org/R/?group_id=579\n[7]: http://docs.scipy.org/doc/scipy/reference/optimize.html\n[8]: http://www.investopedia.com/terms/p/portfolio-variance.asp\n[9]: http://www.investopedia.com/articles/trading/04/091504.asp\n[10]: http://doc.intuition.io/articles/contributors.html", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/intuition-io/portfolio", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "portfolio-analytics", "package_url": "https://pypi.org/project/portfolio-analytics/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/portfolio-analytics/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/intuition-io/portfolio" }, "release_url": "https://pypi.org/project/portfolio-analytics/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Keep calm and optimize.", "version": "0.0.1" }, "last_serial": 1178249, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "aa2bfd952c0d455d4624b04cb84d07c7", "sha256": "6aad9cfaf15d79a19a5d4e6d2144a78d6037e65e2274b1701a9f0f720b8dbfc4" }, "downloads": -1, "filename": "portfolio-analytics-0.0.1.tar.gz", "has_sig": false, "md5_digest": "aa2bfd952c0d455d4624b04cb84d07c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6159, "upload_time": "2014-08-03T10:54:27", "url": "https://files.pythonhosted.org/packages/3f/03/eb19350bc9a87ecccfc5d234344532fe4b1e8b7c8b4f67620ea0c63a403e/portfolio-analytics-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aa2bfd952c0d455d4624b04cb84d07c7", "sha256": "6aad9cfaf15d79a19a5d4e6d2144a78d6037e65e2274b1701a9f0f720b8dbfc4" }, "downloads": -1, "filename": "portfolio-analytics-0.0.1.tar.gz", "has_sig": false, "md5_digest": "aa2bfd952c0d455d4624b04cb84d07c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6159, "upload_time": "2014-08-03T10:54:27", "url": "https://files.pythonhosted.org/packages/3f/03/eb19350bc9a87ecccfc5d234344532fe4b1e8b7c8b4f67620ea0c63a403e/portfolio-analytics-0.0.1.tar.gz" } ] }