Skip to main content

Python and Cython scripts of machine learning, econometrics and statistical tools for financial analysis [In progress]

Project description

PyPI - Python Version Documentation Status Language grade: Python

fynance is a beta version of python/cython project [*] that includes several machine learning, econometric and statistical tools specialy adapted for trading strategy and financial analysis.


This project contains several python (and cython) tools for trading strategy and financial analysis:

  • Neural Networks

  • Feature extraction methods

  • Financial indicators

  • Backtesting

  • Econometric models

  • Notebooks with some exemples

  • Etc.

Please refer you to the documentation to see more details on different tools available in fynance package. Documentation contains some descriptions and examples for functions, classes and methods.


From pip

$ pip install fynance

From GitHub

Use the command:

$ git clone

$ cd Fynance

$ python build_ext –inplace

$ python install –user

Compile from cython files

If you want to compile fynance package from cython files you must edit file and set :: USE_CYTHON = True

And use the commad:

$ python build_ext –inplace

$ python install –user


  • Backtest (performance, drawdown and rolling sharpe ratio) of a trading strategy did with a rolling neural network (see Notebooks/Exemple_Rolling_NeuralNetwork.ipynb for more details):
  • Loss functions and performances (trading strategy) of five rolling neural networks on the training and testing period (see Notebooks/Exemple_Rolling_NeuralNetwork.ipynb for more details):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fynance-1.0.5.tar.gz (1.6 MB view hashes)

Uploaded Source

Built Distribution

fynance-1.0.5-py3.7-linux-x86_64.egg (791.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page