A powerful financial charting library based on R's Quantmod.
Quantmod makes creating interactive financial charts easy and intuitive. Furthermore, Quantmod has over 50 technical indicators built-in, in addition to a variety of technical and quantitative financial tools.
Financial charting should not hinder your research and trading. Quantmod aims to provide the most user-friendly API so that you don't need to worry about making charts.
Built on top of Plotly, Quantmod provides interactive, D3.js charting out of the box. No more Matplotlib images! Easily toggle indicators simply by clicking on them, infinitely zoom on any graph, choose preset date ranges and more.
Because Pandas is the lingua franca of Python data science, Quantmod is tightly based upon the DataFrame object. Easily switch from Series/DataFrame to Chart, and vice-versa.
From EMA, to RSI, to BBANDS, to ULTOSC, Quantmod has nearly every indicator out of the box. Indicators are implemented with custom bindings to industry standard Ta-Lib; Python-only technical implementations coming soon.
Quantmod integrates nicely with Dash, allowing you to build modern React webapps in pure Python. The stock market app above takes less than 5 minutes and 50 lines to make.
Quantmod has end-of-day data acquisition functionality via get_symbol(). Tick data acquisition for past month (via built-in scraping) coming soon.
Choose from included Quantmod themes or design your own to customize chart appearance.
Install from PyPI:
pip install quantmod
Or build package from source:
python setup.py install
Ta-Lib is additionally required for technical indicator support.
Quantmod requires plotly, pandas and pandas_datareader to work properly (hard dependencies).
In addition, an installation of Ta-Lib is strongly recommended as it is required for technical indicator support.
The hard dependencies should be automatically installed with pip, but Ta-Lib requires a longer install.
First install the C/C++ package.
brew install ta-lib
Download ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib
Download ta-lib-0.4.0-src.tar.gz and: $ untar and cd $ ./configure --prefix=/usr $ make $ sudo make install
Then install the Python library:
pip install TA-Lib
Read the full documentation over at:
If you prefer learning by example, hands-on tutorials are coming soon.
See the start_here.ipynb notebook provided in the repository.
See the dash_example notebooks provided in the repository.