quantmod is a Python library for market data access, quantitative analysis, and financial modeling. It provides a unified framework to move seamlessly from data ingestion to derivatives analytics, pricing, risk analysis, and visualization.
Installation
Install quantmod using pip:
pip install quantmod
Or, using uv:
uv add quantmod
Modules
Data & Markets
Quant & Analytics
Quickstart
# Market data
from quantmod.markets import getData, getTicker
# Visualization
import quantmod.charts
# Option pricing models
from quantmod.models import (
OptionInputs,
Black76,
BlackScholes,
MonteCarloOptionPricing
)
# Risk measures
from quantmod.risk import (
RiskInputs,
ValueAtRisk,
ConditionalVaR,
VarBacktester
)
# Time series utilities
from quantmod.timeseries import *
# Technical indicators
from quantmod.indicators import ATR
# Derivatives (option chain analytics)
from quantmod.derivatives import maxpain
# Datasets
from quantmod.datasets import fetch_historical_data
Note: quantmod is currently under active development, and anticipate ongoing enhancements and additions. The aim is to continually improve the package and expand its capabilities to meet the evolving needs of the community.
Examples
Refer to the examples section for detailed use cases and workflows.
Changelog
See the full list of changes here
Legal
quantmod is distributed under the Apache Software License.
See the LICENSE for details.
Metadata
Release files for quantmod 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantmod-0.1.5.tar.gz | 671.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantmod-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / quantmod-0.1.5.tar.gz
| Download URL | quantmod-0.1.5.tar.gz |
|---|---|
| Size | 671.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92eae82381e1df73ac8f2f3b47d3f3a099fe09cab8855829406687048c5dc046
|
|
BLAKE2b-256 checksum How to use checksums |
d15193da5ef5bb59f83bbed064c56dba5714fd32feb9929a28dc26d349368172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / quantmod-0.1.5-py3-none-any.whl
| Download URL | quantmod-0.1.5-py3-none-any.whl |
|---|---|
| Size | 466.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dc455d06391223cfc69f653762356e3ec157aec7c516fa0a5c2f18fd3f3a8c7
|
|
BLAKE2b-256 checksum How to use checksums |
f81964192d9b4ea84dd6fe1b1b72b961fd1fbcd68d6228c5769f0ed2f72cdb10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|