rgaveiga/optionlab
关于
用于评估期权交易策略的 Python 库。
商业与金融实测星标增长
- 24小时
- +1
- 7天
- +6
- 15天
- +7
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
OptionLab
This package is a lightweight library designed to provide quick evaluation of options trading strategies. It produces various outputs:
the profit/loss profile of the strategy on a user-defined target date
the range of stock prices for which the strategy is profitable (i.e., generating a return of at least $0.01)
the Greeks (delta, theta, rho, vega and gamma) associated with each leg of the strategy
the resulting debit or credit on the trading account
the maximum and minimum returns within a specified lower and higher price range of the underlying asset
The expected profit when the strategy is profitable and the expected loss if it proves unprofitable
the strategy's probability of profit.
Contact
If you have any questions, corrections, comments or suggestions, just drop a message.
You can also reach me on Linkedin or follow me on X.
[!NOTE] If you want to support this and other open source projects that I maintain, become a sponsor on Github.
Installation
The easiest way to install OptionLab is using pip:
pip install optionlab
Documentation
You can access the API documentation for OptionLab on the project's GitHub Pages site.
Contributions
Contributions are welcome.
This repository uses poetry as a package manager and git hooks with pre-commit to customize actions on the repository.
Source code must be formatted using black.
Disclaimer
This is free software and is provided as is. The author makes no guarantee that its results are accurate and is not responsible for any losses caused by the use of the code.
Bugs can be reported as issues.
[!CAUTION] Options are very risky derivatives and, like any other type of financial vehicle, trading options requires due diligence. This code is provided for educational and research purposes only.
探索相关项目
加载中…