Skip to main content

A package for graphing profit-loss option diagrams

Project description

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:

plot

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vops-0.0.24.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

vops-0.0.24-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file vops-0.0.24.tar.gz.

File metadata

  • Download URL: vops-0.0.24.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for vops-0.0.24.tar.gz
Algorithm Hash digest
SHA256 3af6cedaa3d77ba83b239ce77d845072c6433d8ea927dd20d0d97cd450b7f2a8
MD5 52f0db112b9880d3ca06e656bad7c5de
BLAKE2b-256 c5824455df5819e33d602fe6e7c65a704db4a874529bfd2f3ebe8c238e142a49

See more details on using hashes here.

File details

Details for the file vops-0.0.24-py3-none-any.whl.

File metadata

  • Download URL: vops-0.0.24-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for vops-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 8f368d0fb094a60c10865fe3b898563bc4c88da3d77c205375013223301ab9fe
MD5 5a59bf5cea99d25bb1cd5c879ea10a50
BLAKE2b-256 41b63014bc81a92e2dba7c3551ba379cf12b929354d09e936b19389a85c8e074

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page