No project description provided
Project description
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.
Authors and Acknowledgment
- Harri Sivakumar
- Ken Wu
- Basil Ahmad
- Acknowledgments to other contributors and organizations.
FAQs/Contact Information
For any queries, please reach out to us at team@wlufintech.com.
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 OpenFintech-0.2.1.tar.gz
.
File metadata
- Download URL: OpenFintech-0.2.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b72ddc5607744a8ce409bad0f59cccd5cfd0aea474c1dfbace09232bfb2d9b |
|
MD5 | f308f40bea8cbabe51328eec8f65d366 |
|
BLAKE2b-256 | 16cf6a70bc3bbd2193cd71030c0ff999790f46294d7d61be925e09ab920614a3 |
File details
Details for the file OpenFintech-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: OpenFintech-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44cfb67347ebf122797408b070bc02310f6a8139d4f433895ee1fbdbb87f8dd |
|
MD5 | afad1b9b0dcfde045bc0ce778d44aa7e |
|
BLAKE2b-256 | d3e18ee4413255208f9f23a9517f8c2aa2c53a67947482dcf5308456620f4f61 |