# 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/14/58/65fc5e7d2005694935a6fb049fa5ba5c95963eb0d1f562ddb71fcc59bb5e/cardquant-0.1.3.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.3",
"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": "3733b23da0993047569996ed873244b372ea9c7016edd48d3838e8d529766448",
"md5": "c78371d1c773af62962a2eadb77cd4c1",
"sha256": "44754df79df11a836c791c6a070c4b733d555c259ca9b8a748ca752bdf829bc3"
},
"downloads": -1,
"filename": "cardquant-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c78371d1c773af62962a2eadb77cd4c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5939,
"upload_time": "2025-01-03T18:49:55",
"upload_time_iso_8601": "2025-01-03T18:49:55.326313Z",
"url": "https://files.pythonhosted.org/packages/37/33/b23da0993047569996ed873244b372ea9c7016edd48d3838e8d529766448/cardquant-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "145865fc5e7d2005694935a6fb049fa5ba5c95963eb0d1f562ddb71fcc59bb5e",
"md5": "82d7e6046be4729d81e6bba990c883e6",
"sha256": "8dddc1477b4c25bb5a8a31fbbb2a516adb93c476903a50f47f39163cdcfc3f16"
},
"downloads": -1,
"filename": "cardquant-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "82d7e6046be4729d81e6bba990c883e6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5418,
"upload_time": "2025-01-03T18:49:56",
"upload_time_iso_8601": "2025-01-03T18:49:56.305719Z",
"url": "https://files.pythonhosted.org/packages/14/58/65fc5e7d2005694935a6fb049fa5ba5c95963eb0d1f562ddb71fcc59bb5e/cardquant-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-03 18:49:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "evansemet",
"github_project": "cardquant",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cardquant"
}