Skip to main content

The package fetch option data from yahoo finance.

Project description

Information

This package to only fetch option data from yahoo finance

Installation

pip install yfoption

Get options as straddle

  • Get options of ticker as straddle
import yfoption as yf

opt = yf.Option("AAPL")
opt.option_straddle('2021-12-23')

Get options

  • Get options of ticker
import yfoption as yf

opt = yf.Option("AAPL")
opt.options

Get strikes

  • Get strikes of ticker
import yfoption as yf

opt = yf.Option("AAPL")
opt.strikes

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

yfoption-0.0.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file yfoption-0.0.1.tar.gz.

File metadata

  • Download URL: yfoption-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for yfoption-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b7e27939adbd6f31c940a1d41be7b7919dd7ee30b9deaeacd7e42286191a5483
MD5 3cf1082c89ebb3f84ab6f006d3abe1bf
BLAKE2b-256 3d65feb88499ffe1da76df42a8d3a5135654ac0f99f89746a177c0a6f41ef195

See more details on using hashes here.

Supported by

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