Quantitative finance toolkit for Python — markets, options, risk, and time series
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantmod-0.1.5.tar.gz.
File metadata
- Download URL: quantmod-0.1.5.tar.gz
- Upload date:
- Size: 671.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92eae82381e1df73ac8f2f3b47d3f3a099fe09cab8855829406687048c5dc046
|
|
| MD5 |
2437897708cfcfbb6ee602ca9585c767
|
|
| BLAKE2b-256 |
d15193da5ef5bb59f83bbed064c56dba5714fd32feb9929a28dc26d349368172
|
File details
Details for the file quantmod-0.1.5-py3-none-any.whl.
File metadata
- Download URL: quantmod-0.1.5-py3-none-any.whl
- Upload date:
- Size: 466.4 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dc455d06391223cfc69f653762356e3ec157aec7c516fa0a5c2f18fd3f3a8c7
|
|
| MD5 |
1c037d006b2f8d81c4f629af31b943a2
|
|
| BLAKE2b-256 |
f81964192d9b4ea84dd6fe1b1b72b961fd1fbcd68d6228c5769f0ed2f72cdb10
|