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 hashes)

Uploaded Source

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