finpricing


Namefinpricing JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryA pricing library for financial instruments
upload_time2023-11-16 02:56:57
maintainer
docs_urlNone
authorYiming Zhang
requires_python>=3.9,<3.13
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # finpricing

`finpricing` is a Python package designed for advanced financial pricing and risk management. It features pricing models and design patterns that align with industry standards and market conventions. However, it's important to note a few aspects:

1. The industry typically develops pricing libraries in C++ or C# to optimize performance. Speed, however, is not the primary objective of this package. The focus is on presenting rigorous and often overlooked pricing models in a modern, readable language, while ensuring precision.
2. The author's expertise is predominantly in Fixed Income products and derivatives (as of 2023). Contributions to expand the scope of this package are highly encouraged.

The implementation follows the instrument + market + model paradigm. The major modules now (as of 2023/11) are,

- `finpricing.instruments`:
  - Fixed Coupon Bond
  - Credit Default Swap

- `finpricing.markets`:
  - Discount Curve: flat forward assumption, which is the most common curve construction method
  - Survival Curve: piecewise constant hazard rate and Nelson-Siegel-Svensson (NSS) curve
  - CDS Curve (in progress)

- `finpricing.models`:
  - Fixed Bond pricer: risky pricing of fixed coupon bond considering survival curve and recovery rate
  - Bond Basis Solver: solve for the bond basis on top of the discount curve or the survival curve
  - Bond Curve Solver: calibration of the NSS survival curve for a portfolio of bonds of the same issuer by minimizing the bond basis
  - CDS pricer: risky pricing of CDS contracts
  - CDS Par Spreads

- `finpricing.utils` examples:
  - Date: internal date representation
  - Day Count: day count convention, e.g. Actual/360, Actual/365, etc.
  - Calendar: holiday calendar for adjustment of business days
  - Date Generator: generate dates for instrument cash flows

## Installation

```bash
$ pip install finpricing
```

## Usage

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`finpricing` was created by Yiming Zhang. It is licensed under the terms of the MIT license.

## Credits

`finpricing` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "finpricing",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<3.13",
    "maintainer_email": "",
    "keywords": "",
    "author": "Yiming Zhang",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/2d/fc/088d2080afd9d683dfb523778a52ef3a41b3d9c2fe4ad34733daab9cd306/finpricing-0.1.0.tar.gz",
    "platform": null,
    "description": "# finpricing\n\n`finpricing` is a Python package designed for advanced financial pricing and risk management. It features pricing models and design patterns that align with industry standards and market conventions. However, it's important to note a few aspects:\n\n1. The industry typically develops pricing libraries in C++ or C# to optimize performance. Speed, however, is not the primary objective of this package. The focus is on presenting rigorous and often overlooked pricing models in a modern, readable language, while ensuring precision.\n2. The author's expertise is predominantly in Fixed Income products and derivatives (as of 2023). Contributions to expand the scope of this package are highly encouraged.\n\nThe implementation follows the instrument + market + model paradigm. The major modules now (as of 2023/11) are,\n\n- `finpricing.instruments`:\n  - Fixed Coupon Bond\n  - Credit Default Swap\n\n- `finpricing.markets`:\n  - Discount Curve: flat forward assumption, which is the most common curve construction method\n  - Survival Curve: piecewise constant hazard rate and Nelson-Siegel-Svensson (NSS) curve\n  - CDS Curve (in progress)\n\n- `finpricing.models`:\n  - Fixed Bond pricer: risky pricing of fixed coupon bond considering survival curve and recovery rate\n  - Bond Basis Solver: solve for the bond basis on top of the discount curve or the survival curve\n  - Bond Curve Solver: calibration of the NSS survival curve for a portfolio of bonds of the same issuer by minimizing the bond basis\n  - CDS pricer: risky pricing of CDS contracts\n  - CDS Par Spreads\n\n- `finpricing.utils` examples:\n  - Date: internal date representation\n  - Day Count: day count convention, e.g. Actual/360, Actual/365, etc.\n  - Calendar: holiday calendar for adjustment of business days\n  - Date Generator: generate dates for instrument cash flows\n\n## Installation\n\n```bash\n$ pip install finpricing\n```\n\n## Usage\n\n## Contributing\n\nInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.\n\n## License\n\n`finpricing` was created by Yiming Zhang. It is licensed under the terms of the MIT license.\n\n## Credits\n\n`finpricing` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A pricing library for financial instruments",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ee7ed79c65a544cb9ee463f4e9d559482e2f245140198f9df17e65d67ddb3f3",
                "md5": "9c1b45def384893a860966e4d27c652f",
                "sha256": "f2422f54406c32e50493be5beb958ba72bf9723b62e5f94e0108d5ddd5074e78"
            },
            "downloads": -1,
            "filename": "finpricing-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9c1b45def384893a860966e4d27c652f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<3.13",
            "size": 56860,
            "upload_time": "2023-11-16T02:56:56",
            "upload_time_iso_8601": "2023-11-16T02:56:56.349632Z",
            "url": "https://files.pythonhosted.org/packages/9e/e7/ed79c65a544cb9ee463f4e9d559482e2f245140198f9df17e65d67ddb3f3/finpricing-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2dfc088d2080afd9d683dfb523778a52ef3a41b3d9c2fe4ad34733daab9cd306",
                "md5": "7803498f4207abf497a212297ac224e4",
                "sha256": "aaf3f1531fb37d38c9588cca7997c3b3ea9b98fc64b6db55f2ea400ed5188338"
            },
            "downloads": -1,
            "filename": "finpricing-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7803498f4207abf497a212297ac224e4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<3.13",
            "size": 39676,
            "upload_time": "2023-11-16T02:56:57",
            "upload_time_iso_8601": "2023-11-16T02:56:57.939643Z",
            "url": "https://files.pythonhosted.org/packages/2d/fc/088d2080afd9d683dfb523778a52ef3a41b3d9c2fe4ad34733daab9cd306/finpricing-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-16 02:56:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "finpricing"
}
        
Elapsed time: 0.35849s