Quantitative finance solutions in Python
Project description
quantspace is a Python library designed specifically for quantitative finance, with a primary focus on supporting research and education in the field.
- Risk Management
- Portfolio Optimization
- Anomaly Detection
Features
1. Quantitative Research Tools
quantspace offers a comprehensive set of tools for conducting quantitative research in finance. From statistical analysis to advanced modeling techniques, the library provides the building blocks for developing and testing sophisticated financial strategies.
2. Educational Resources
Designed with education in mind, quantspace includes resources and examples to help users understand and apply quantitative finance concepts. The library serves as a valuable resource for students, providing hands-on experience with real-world financial data and models.
3. Data Integration
quantspace seamlessly integrates with popular financial data sources, allowing users to access and analyze real-time and historical market data. This feature enhances the library's capabilities for both research and educational purposes.
4. Flexibility and Customization
The library is designed to be flexible and customizable, accommodating a wide range of financial modeling requirements. Whether you are developing algorithms for risk management, portfolio optimization, or derivative pricing, quantspace provides a robust foundation for implementation.
Getting Started
To get started with quantspace, follow these simple steps:
-
Installation:
pip install quantspace
-
Getting Started:
-
Risk measure:
from quantspace.risk import summary_risk returns = [0.065, 0.0265, -0.0593, -0.001, 0.0346] summary_risk(returns=returns, risk_free_rate=0.05)
-
Portfolio optimization:
from quantspace.utils.datasets import random_portfolio from quantspace.portfolio import MarkowitzFrontier import numpy as np np.random.seed(1234) n_assets = 5 # number of assets in portfolio n_obs = 1000 # number of observations in data return_vec = np.random.randn(n_assets, n_obs) # generate random returns for each asset n_portfolios = 500 # number of portfolios to simulate means, stds = np.column_stack([ random_portfolio(return_vec) for _ in range(n_portfolios) ]) # instantiate MarkowitzFrontier class m_frontier = MarkowitzFrontier(return_vec, stds, means) # plot efficient frontier m_frontier.plot_frontier()
Contributions
We welcome contributions from the community to enhance and expand quantspace. If you have ideas for new features, improvements, or find any issues, please feel free to contribute by submitting a pull request or opening an issue on our GitHub repository.
Support and Community
For support or to connect with other users and contributors, join our community forums. We encourage discussions, knowledge sharing, and collaboration within the quantspace community.
License
quantspace is released under the MIT License, making it open and accessible for a wide range of users.
Disclaimer
quantspace is provided "as is" without any warranty, express or implied. Use it at your own risk, and carefully review and test any code before deploying it in a production environment.
Happy quantifying with quantspace!
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
File details
Details for the file quantspace-0.1.1.tar.gz
.
File metadata
- Download URL: quantspace-0.1.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8017bdabbdfe9310628ec257e1ccf46537d2a060f668e0b8e46efdc2cedb58b |
|
MD5 | cac585b91fa72eafbc7d449d9217dde7 |
|
BLAKE2b-256 | 60fef9a7e4a501bbd69e872ce56558f0b6c72c6430b526cd68a08110b52bf07b |
File details
Details for the file quantspace-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: quantspace-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1741aed4ea7b44830c0c4281193c4904e08c8aeba09bdacb82836e7c6252c7c7 |
|
MD5 | 46be2e6023e8764ca1c7605b773a29ab |
|
BLAKE2b-256 | 2b5a8fe38a23bca5ac8e191ad2231760df23b345561ce73c8874748c7654de08 |