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:
pip install vops
Usage
Simple program graphing a long call option:
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:
optionObj = scraping.scrapeCallOptions('AMD')
graphing.graphCalls(optionObj, 'AMD201231C00060000')
Exporting graphs to a png:
graphing.graphCalls(optionObj, 'AMD201231C00060000', export = True)
Output:
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
Release files for vops 0.0.24
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vops-0.0.24.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vops-0.0.24-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / vops-0.0.24.tar.gz
| Download URL | vops-0.0.24.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3af6cedaa3d77ba83b239ce77d845072c6433d8ea927dd20d0d97cd450b7f2a8
|
|
BLAKE2b-256 checksum How to use checksums |
c5824455df5819e33d602fe6e7c65a704db4a874529bfd2f3ebe8c238e142a49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3
|
Release files / vops-0.0.24-py3-none-any.whl
| Download URL | vops-0.0.24-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f368d0fb094a60c10865fe3b898563bc4c88da3d77c205375013223301ab9fe
|
|
BLAKE2b-256 checksum How to use checksums |
41b63014bc81a92e2dba7c3551ba379cf12b929354d09e936b19389a85c8e074
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3
|