
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Python module to get stock and option information through Wed Scraping and Alpha Vantage API
.. image:: https://img.shields.io/pypi/v/quant_experiment.svg :target: https://pypi.python.org/pypi/quant_experiment :alt: PyPI Version
.. image:: https://img.shields.io/pypi/l/quant_experiment.svg :target: https://opensource.org/licenses/Apache-2.0 :alt: License
.. image:: https://img.shields.io/pypi/pyversions/quant_experiment.svg :target: https://pypi.python.org/pypi/quant_experiment :alt: Python Version Support
pip
.. code-block:: bash
$ pip install quant_experiment
Data is retrieved from Alpha Vantage API free services, make sure initializing a key variable first
.. code:: python
key = "YOUR_API_KEY"
.. code:: python
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
2. Operation on option data
.. code:: python
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:
.. figure:: https://github.com/liveoncecao/quant_experiment/blob/master/images/option_info.png?raw=true :alt: alias of image
.. code:: python
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
All contributions are welcome.
FAQs
Python module to get stock and option information through Wed Scraping and Alpha Vantage API
We found that quant-experiment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.