معرفی شرکت ها


finx-option-pricer-0.3.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Option pricer and visualizer
ویژگی مقدار
سیستم عامل -
نام فایل finx-option-pricer-0.3.0
نام finx-option-pricer
نسخه کتابخانه 0.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Weston Platter
ایمیل نویسنده westonplatter+finx@gmail.com
آدرس صفحه اصلی https://github.com/westonplatter/finx-option-pricer
آدرس اینترنتی https://pypi.org/project/finx-option-pricer/
مجوز BSD-3
# Finx Option Pricer Price and visualize options with fine grained option params. ## Why? `finx-option-pricer` was created to determine how PnL, greeks, and other metrics change for simple and complex option combos. ## Example Here's a realistic example using options on Crude Futures [examples/complex-option-plot.ipynb](./examples/complex-option-plot.ipynb) ``` spot_range = [65, 140] # spot price oil_price = 102.67 # long 14d put @ 102 op1 = OptionPosition( quantity=1, instrument=Option(S=oil_price, K=102, T=14/252, r=0.01, sigma=0.40, option_type='p')) # short 7d call @ 102 op2 = OptionPosition( quantity=-1, instrument=Option(S=oil_price, K=102, T=8/252, r=0.01, sigma=0.40, option_type='p')) op_plot = OptionsPlot( option_positions=[op1, op2], spot_range=spot_range) # increment 10 days, 1 day at a time df = op_plot.calc_option_attr_across_T(option_attr='value', days=10, day_step=1) df.plot(figsize=(12, 8)) plt.hlines(0, spot_range[0], spot_range[1], color="black", linewidth=0.5) plt.axvline(x=oil_price, color="grey", linestyle="--") plt.axvline(x=100, color='green', linestyle="-.") plt.savefig("../docs/complex_plot.png") ``` ![Complex Option Plot](docs/complex_plot.png) ## Install ### Within a requirements.txt file Add this line to your requirements.txt file, ```sh git+https://github.com/westonplatter/finx-option-pricer ``` ### From the command line Clone the repo and install with pip ```sh git clone https://github.com/westonplatter/finx-option-pricer cd finx-option-pricer pip install -e . ``` ## Dev ```sh git clone https://github.com/westonplatter/finx-option-pricer cd finx-option-pricer make env.update # make changes ``` ## Test There are currently few to no tests. ```sh make test # which runs pytest . ``` ## License BSD-3. See `LICENSE` file. NOTE - Per the BSD-3 License, you are solely responsible for decisions you make with this code.


نیازمندی

مقدار نام
- dash-daq
- loguru
<1.4,>=1.3.0 pandas
- matplotlib
- numpy
- pydantic
- scipy
- ipdb
- click
- matplotlib
- twine
- jupyterlab
- jupyterlab-dash
- jupyter-dash
- nbstripout
- plotly
- pytest


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl finx-option-pricer-0.3.0:

    pip install finx-option-pricer-0.3.0.whl


نصب پکیج tar.gz finx-option-pricer-0.3.0:

    pip install finx-option-pricer-0.3.0.tar.gz