Metadata-Version: 2.1
Name: vops
Version: 0.0.22
Summary: A package for graphing profit-loss option diagrams
Home-page: https://github.com/RJL22/vops
Author: Ryan Lee
Author-email: ryanjlee22@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: beautifulsoup4 (==4.9.3)
Requires-Dist: bs4 (==0.0.1)
Requires-Dist: certifi (==2020.11.8)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: cycler (==0.10.0)
Requires-Dist: idna (==2.10)
Requires-Dist: kiwisolver (==1.3.1)
Requires-Dist: lxml (==4.6.1)
Requires-Dist: matplotlib (==3.3.3)
Requires-Dist: numpy (==1.19.4)
Requires-Dist: pandas (==1.1.4)
Requires-Dist: Pillow (==8.0.1)
Requires-Dist: pyparsing (==2.4.7)
Requires-Dist: python-dateutil (==2.8.1)
Requires-Dist: pytz (==2020.4)
Requires-Dist: requests (==2.25.0)
Requires-Dist: six (==1.15.0)
Requires-Dist: soupsieve (==2.0.1)
Requires-Dist: urllib3 (==1.26.2)

# Vops
This python project uses data from yahoo finance to graph option profit-loss diagrams.

Note: any examples used here are outdated because the option contracts have expired.

## Installing
Installing with pip:
```bash
pip install vops
```

## Usage
Simple program graphing a long call option:
```python
from vops import scraping
from vops import graphing

optionObj = scraping.scrapeCallOptions('AMD')

graphing.graphLongCall(optionObj, 'AMD201231C00060000')
```
Graphing both short and long positions on a call option:
```python
optionObj = scraping.scrapeCallOptions('AMD')

graphing.graphCalls(optionObj, 'AMD201231C00060000')
```

Exporting graphs to a png:
```python
graphing.graphCalls(optionObj, 'AMD201231C00060000', export = True)
```

Output:

![plot](./res/options.png)

## Todo

* Add axis labels to all graphs
* Create method for graphing long and short put options simultaneously
* Merge call/put options chains
* Allow option chains from different chains to be scraped


