Skip to main content

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:

  1. Ensure you have Python installed on your system.
  2. Clone the repository:
    git clone https://github.com/your-username/OpenFintech.git
    
  3. 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.

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)

Source distribution for OpenFintech 0.2.2
File Size Uploaded
OpenFintech-0.2.2.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for OpenFintech 0.2.2
File Interpreter ABI Platform
OpenFintech-0.2.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page