OpenFintech
Introduction
OpenFintech is a financial analysis library designed for Python developers and financial analysts. It provides powerful tools for conducting both trend following and mean reversion analyses, utilizing financial market data. This project aims to make complex financial algorithms accessible and easy to use.
Installation
To install OpenFintech, follow these steps:
- Ensure you have Python installed on your system.
- Clone the repository:
git clone https://github.com/your-username/OpenFintech.git
- Install required dependencies:
pip install -r requirements.txt
Usage
Here's a quick example of how to use OpenFintech to run financial algorithms:
from OpenFintech import *
# Initialize and get data
data_acq = DataAcquisition("your-api-key")
tickerData = data_acq.requestDataFromAPI('AAPL', 'daily')
# Convert to FinancialInstrument
ticker_finInst = data_acq.convertDataToFinancialInstrument(tickerData)
# Run algorithms
tr_algo = TrendFollowing()
tr_backtest_data = tr_algo.runAlgorithmOnCandleContainer(...)
mr_algo = MeanReversion()
mr_backtest_data = mr_algo.runAlgorithmOnCandleContainer(...)
print(tr_backtest_data)
print(mr_backtest_data)
Replace "your-api-key" with your actual API key.
Components
Model.py
Algorithm: Base class for trading algorithms.MeanReversion: Implements the mean reversion strategy.TrendFollowing: Implements the trend following strategy.
Data.py
Candle,CandleContainer: Represent market data.FinancialInstrument: Represents a financial instrument with associated market data.Indicator,BollingerBands,NormalizedPrices,SMA: Various financial indicators.DataAcquisition: Handles data acquisition from external sources.
Contributing
Contributions are welcome! Please read our contributing guidelines to get started.
License
This project is licensed under the Apache License - see the LICENSE file for details.
FAQs/Contact Information
For any queries, please reach out to us at team@wlufintech.com.
Metadata
Release files for OpenFintech 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| OpenFintech-0.2.2.tar.gz | 9.2 kB | Without provenance | Details for OpenFintech-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| OpenFintech-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for OpenFintech-0.2.2-py3-none-any.whl |
Total release size: 19.0 kB
Release files / OpenFintech-0.2.2.tar.gz
| Download URL | OpenFintech-0.2.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
710fd7360180346028777473f6e30013f78cba43d10c0c0122d68f1fd1ba20b5
|
|
BLAKE2b-256 checksum How to use checksums |
bd46ff833b99a1e3ff011122ba388d8efeaf7254dc76b08fa73bb847d95ca900
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / OpenFintech-0.2.2-py3-none-any.whl
| Download URL | OpenFintech-0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73bcd94872c2614170f19bf211689de9181c4b04c20782db84ae7f82d720cffc
|
|
BLAKE2b-256 checksum How to use checksums |
2362f293ed60ef868a7dfd03ce26c4d14bc9b45c8b8370a604a891ee08582576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for OpenFintech 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.