option-combos


Nameoption-combos JSON
Version 0.9.2 PyPI version JSON
download
home_page
SummaryBlack Scholes for options portfolios combos
upload_time2023-12-08 10:28:36
maintainer
docs_urlNone
authorJayanth R. Varma, Vineet Virmani
requires_python>=3.0
licenseOSI Approved :: GNU General Public License (GPL)
keywords black scholes options option greeks option portfolios payoff plots
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Full documentation is available at <https://option-combos.readthedocs.io/>

This package computes Black Scholes options values and Greeks for options and option combos with a number of valuable features:

* The functions cover a comprehensive set of Greeks:
  - The first order Greeks include (a) several variants of delta including delta driftless, delta forward and delta dual, (b) rho's with respect to domestic and foreign interest rates, (c) theta per day and vega per percentage point change in volatility.
  - Important second order Greeks including gamma, gamma dual, vanna, volga and charm
  - The most useful third order Greek, color
* Since the asset is allowed to pay a continuous dividend yield, foreign currency options, options on futures and options on stock indices are covered.
* Values and Greeks can be computed for an array of options (using a Pandas DataFrame).
* The package handles a portfolio of options (option combinations) where different options are held long or short positions with different weights. The aggregate value and Greeks can be computed for the entire portfolio.
* Option portfolios can contain forward contracts and zero coupon bonds. For example, a portfolio might include self financing strategies like buying a call option and investing the present value of the exercise price in a zero coupon bond.
* It is very easy to create common option combinations. For example, a straddle can be created in a single line as `straddle = combo.call(K=100) + combo.put(K=100)` and a butterfly can be created as `butterfly = combo.call(K=90) + combo.call(K=110) - 2 * combo.call(K=100)`. This illustrates the following features enabled by operator overloading:
  - Option combinations can be created by "adding" two options (combos)
  - Short options are created by using a negative sign
  - Weights can be assigned by simply multiplying an option (combo) by the weight.
* Plotting functions are provided to plot payoffs, profits, values and Greeks of various options (combos).
  - Multiple Greeks of a single combo can be plotted on a single graph. For example, the gamma, vega and theta of a butterfly can be overlaid in a single plot.
  - Different things can be plotted in different plots in a grid in the same figure. For example, the payoff and profit of a strangle can be shown in one plot, and the delta in a separate plot by the side.
  - The same Greek can be plotted for different combos in a single plot. This allows, for example, the gamma of a straddle and a strangle to be compared in a single plot.
* Interactive plot that includes sliders for changing the strikes of each option. For example, an interactive plot of a butterfly can help choose the high, mid and low strikes to achieve a desired option price or gamma/vega/theta profile.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "option-combos",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": "\"Jayanth R. Varma\" <jrvarma@gmail.com>",
    "keywords": "Black Scholes,Options,Option Greeks,Option Portfolios,Payoff Plots",
    "author": "Jayanth R. Varma, Vineet Virmani",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/77/51/bc4e9b0fabf11aef947a9f9b1a1f1adc7fff8ebb5d636a0234d79cbb1f55/option_combos-0.9.2.tar.gz",
    "platform": null,
    "description": "Full documentation is available at <https://option-combos.readthedocs.io/>\n\nThis package computes Black Scholes options values and Greeks for options and option combos with a number of valuable features:\n\n* The functions cover a comprehensive set of Greeks:\n  - The first order Greeks include (a) several variants of delta including delta driftless, delta forward and delta dual, (b) rho's with respect to domestic and foreign interest rates, (c) theta per day and vega per percentage point change in volatility.\n  - Important second order Greeks including gamma, gamma dual, vanna, volga and charm\n  - The most useful third order Greek, color\n* Since the asset is allowed to pay a continuous dividend yield, foreign currency options, options on futures and options on stock indices are covered.\n* Values and Greeks can be computed for an array of options (using a Pandas DataFrame).\n* The package handles a portfolio of options (option combinations) where different options are held long or short positions with different weights. The aggregate value and Greeks can be computed for the entire portfolio.\n* Option portfolios can contain forward contracts and zero coupon bonds. For example, a portfolio might include self financing strategies like buying a call option and investing the present value of the exercise price in a zero coupon bond.\n* It is very easy to create common option combinations. For example, a straddle can be created in a single line as `straddle = combo.call(K=100) + combo.put(K=100)` and a butterfly can be created as `butterfly = combo.call(K=90) + combo.call(K=110) - 2 * combo.call(K=100)`. This illustrates the following features enabled by operator overloading:\n  - Option combinations can be created by \"adding\" two options (combos)\n  - Short options are created by using a negative sign\n  - Weights can be assigned by simply multiplying an option (combo) by the weight.\n* Plotting functions are provided to plot payoffs, profits, values and Greeks of various options (combos).\n  - Multiple Greeks of a single combo can be plotted on a single graph. For example, the gamma, vega and theta of a butterfly can be overlaid in a single plot.\n  - Different things can be plotted in different plots in a grid in the same figure. For example, the payoff and profit of a strangle can be shown in one plot, and the delta in a separate plot by the side.\n  - The same Greek can be plotted for different combos in a single plot. This allows, for example, the gamma of a straddle and a strangle to be compared in a single plot.\n* Interactive plot that includes sliders for changing the strikes of each option. For example, an interactive plot of a butterfly can help choose the high, mid and low strikes to achieve a desired option price or gamma/vega/theta profile.\n",
    "bugtrack_url": null,
    "license": "OSI Approved :: GNU General Public License (GPL)",
    "summary": "Black Scholes for options portfolios combos",
    "version": "0.9.2",
    "project_urls": {
        "Homepage": "https://github.com/jrvarma/option_combos"
    },
    "split_keywords": [
        "black scholes",
        "options",
        "option greeks",
        "option portfolios",
        "payoff plots"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e29bb34b4b19685cd58bd8c17ab3500a4986d1b55188f2efdef5aef96932148",
                "md5": "d29fd2b905f651833faa81853103b9eb",
                "sha256": "a7edf11ad8c9bb7bb1ef21f075debf3ab10ae98f0714e9e9b048944b289d65f2"
            },
            "downloads": -1,
            "filename": "option_combos-0.9.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d29fd2b905f651833faa81853103b9eb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 44386,
            "upload_time": "2023-12-08T10:28:34",
            "upload_time_iso_8601": "2023-12-08T10:28:34.211461Z",
            "url": "https://files.pythonhosted.org/packages/1e/29/bb34b4b19685cd58bd8c17ab3500a4986d1b55188f2efdef5aef96932148/option_combos-0.9.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7751bc4e9b0fabf11aef947a9f9b1a1f1adc7fff8ebb5d636a0234d79cbb1f55",
                "md5": "fa4ff014da91f0cf2a141f927630db85",
                "sha256": "d28ced67f3330ae1f04fa0604df4065657c1d9c6b147c7bf26c7d1f8d4d09667"
            },
            "downloads": -1,
            "filename": "option_combos-0.9.2.tar.gz",
            "has_sig": false,
            "md5_digest": "fa4ff014da91f0cf2a141f927630db85",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 38053,
            "upload_time": "2023-12-08T10:28:36",
            "upload_time_iso_8601": "2023-12-08T10:28:36.481293Z",
            "url": "https://files.pythonhosted.org/packages/77/51/bc4e9b0fabf11aef947a9f9b1a1f1adc7fff8ebb5d636a0234d79cbb1f55/option_combos-0.9.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-08 10:28:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jrvarma",
    "github_project": "option_combos",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "option-combos"
}
        
Elapsed time: 0.14694s