Skip to main content

Python module to get stock and option information through Wed Scraping and Alpha Vantage API

Project description

PyPI Version License Python Version Support

Features

  • Realtime stock and option data: You can easily extract the latest stock and option information

  • Option characteristics: Library provides you with option relevant characteristics based on Black-Scholes model

Installation

Installing With pip

$ pip install quant_experiment

Quickstart

Data is retrieved from Alpha Vantage API free services, make sure initializing a key variable first

key = "YOUR_API_KEY"
  1. Operation on stock data

from quant_experiment import finproducts
    stock_demo = finproducts.Stock('AAPL',key)
    stock_demo.price #return realtime stock price
    stock_demo.latestTradingDay #lastest trading day
    stock_demo.volume #volume
  1. Operation on option data

from quant_experiment import finproducts
    option_demo = finproducts.VanillaOption('AAPL', 21, 6, 2019, 180, 'calls')
    #call option with expiration date 2019-06-21 and strike price 180
    option_demo.option_info()

Giving us output as:

alias of image
  1. Return option property based on Black-Scholes

from quant_experiment import finproducts
    option_demo = finproducts.VanillaOption('AAPL', 21, 6, 2019, 180, 'calls')
    option_demo.BS_Info(key) #return implied volatility by default
    option_demo.BS_Info(key,'greeks') #return delta, gamma, vega, theta and rho

Contributing

All contributions are welcome.

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

quant_experiment-1.0.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quant_experiment-1.0.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file quant_experiment-1.0.4.tar.gz.

File metadata

  • Download URL: quant_experiment-1.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for quant_experiment-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e8089792cb04020a85354fd2bb755728835621d97b924b77e625d1ba8168d894
MD5 02b8e161bdf581f06d2d051d7e72d4ca
BLAKE2b-256 b424c3ca032b17e9a9fb858a7484443d011fcac45d0b0c531f249de638ced376

See more details on using hashes here.

File details

Details for the file quant_experiment-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: quant_experiment-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for quant_experiment-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aca5baadf3eaf95205b4b3dfb9e496907d391952eb8995594dd13cd40bbac152
MD5 ebf29392356118f0d031616b2318820b
BLAKE2b-256 7def93e3b6281f1a04c28f14344bc577c0fa3f6569fcf176065e529d09f88bd3

See more details on using hashes here.

Supported by

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