# CardQuant
**CardQuant** is a Python library for pricing options based on the sum of cards drawn from a deck. It combines probability and financial modeling to calculate option valuations such as the theoretical price (theo), delta, gamma, and theta for both call and put options in card-based scenarios.
## Features
- Calculate theoretical option prices (`theo`) based on card sums.
- Compute option Greeks like delta, gamma, and theta.
- Support for custom deck configurations.
- Intuitive data models using Python's `dataclasses`.
- Robust input validation to ensure accuracy and reliability.
## Installation
Install the library using pip:
```bash
pip install cardquant
Raw data
{
"_id": null,
"home_page": "https://github.com/evansemet/cardquant",
"name": "cardquant",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "quantitative trading, options pricing, card games, finance, simulation",
"author": "Evan Semet",
"author_email": "evancsemet@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4a/c4/c15af6a2f3ae37f88744c02880bfa59786900c33f4ca96e44bfc4e214de2/cardquant-0.1.5.tar.gz",
"platform": null,
"description": "# CardQuant\n\n**CardQuant** is a Python library for pricing options based on the sum of cards drawn from a deck. It combines probability and financial modeling to calculate option valuations such as the theoretical price (theo), delta, gamma, and theta for both call and put options in card-based scenarios.\n\n## Features\n\n- Calculate theoretical option prices (`theo`) based on card sums.\n- Compute option Greeks like delta, gamma, and theta.\n- Support for custom deck configurations.\n- Intuitive data models using Python's `dataclasses`.\n- Robust input validation to ensure accuracy and reliability.\n\n## Installation\n\nInstall the library using pip:\n\n```bash\npip install cardquant\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A library for mock quantitative trading exercises.",
"version": "0.1.5",
"project_urls": {
"Bug Tracker": "https://github.com/evansemet/cardquant/issues",
"Documentation": "https://github.com/evansemet/cardquant#readme",
"Homepage": "https://github.com/evansemet/cardquant"
},
"split_keywords": [
"quantitative trading",
" options pricing",
" card games",
" finance",
" simulation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3048a81d19bcd47571c97e31724938599c528d6425d67a4059dadba38111aba3",
"md5": "c7c589bdc366969c14d75e5ba1b95861",
"sha256": "7d2e4d46bfa0e6bdbd5a95a5dd33dc0a612e486524c5c9d312e173ecbce0fc7b"
},
"downloads": -1,
"filename": "cardquant-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c7c589bdc366969c14d75e5ba1b95861",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 6651,
"upload_time": "2025-01-26T05:46:26",
"upload_time_iso_8601": "2025-01-26T05:46:26.591435Z",
"url": "https://files.pythonhosted.org/packages/30/48/a81d19bcd47571c97e31724938599c528d6425d67a4059dadba38111aba3/cardquant-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4ac4c15af6a2f3ae37f88744c02880bfa59786900c33f4ca96e44bfc4e214de2",
"md5": "d6e69be585e3956d04b03531e8b5d162",
"sha256": "9ba65a294e7240e0c7b6f747447a0de9a1068ce936347d27ceec95f391ed1677"
},
"downloads": -1,
"filename": "cardquant-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "d6e69be585e3956d04b03531e8b5d162",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6151,
"upload_time": "2025-01-26T05:46:28",
"upload_time_iso_8601": "2025-01-26T05:46:28.423226Z",
"url": "https://files.pythonhosted.org/packages/4a/c4/c15af6a2f3ae37f88744c02880bfa59786900c33f4ca96e44bfc4e214de2/cardquant-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-26 05:46:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "evansemet",
"github_project": "cardquant",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cardquant"
}