ffn


Nameffn JSON
Version 1.1.1 PyPI version JSON
download
home_pageNone
SummaryFinancial functions for Python
upload_time2024-11-02 20:01:44
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords python finance quant quant finance algotrading algorithmic trading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![](http://pmorissette.github.io/ffn/_static/logo.png)

[![Build Status](https://github.com/pmorissette/ffn/workflows/Build%20Status/badge.svg)](https://github.com/pmorissette/ffn/actions/)
[![PyPI Version](https://img.shields.io/pypi/v/ffn)](https://pypi.org/project/ffn/)
[![PyPI License](https://img.shields.io/pypi/l/ffn)](https://pypi.org/project/ffn/)

# ffn - Financial Functions for Python

Alpha release - please let me know if you find any bugs!

If you are looking for a full backtesting framework, please check out [bt](https://github.com/pmorissette/bt).
bt is built atop ffn and makes it easy and fast to backtest quantitative strategies.

## Overview

ffn is a library that contains many useful functions for those who work in **quantitative
finance**. It stands on the shoulders of giants (Pandas, Numpy, Scipy, etc.) and provides
a vast array of utilities, from performance measurement and evaluation to
graphing and common data transformations.

```python
import ffn
returns = ffn.get('aapl,msft,c,gs,ge', start='2010-01-01').to_returns().dropna()
returns.calc_mean_var_weights().as_format('.2%')
    aapl    62.54%
    c       -0.00%
    ge      36.19%
    gs      -0.00%
    msft     1.26%
    dtype: object
```


## Installation

The easiest way to install `ffn` is from the [Python Package Index](https://pypi.python.org/pypi/ffn/)
using `pip`.

```bash
pip install ffn
```

Since ffn has many dependencies, we strongly recommend installing the [Anaconda Scientific Python Distribution](https://store.continuum.io/cshop/anaconda/). This distribution comes with many of the required packages pre-installed, including pip. Once Anaconda is installed, the above command should complete the installation.

## Documentation

Read the docs at http://pmorissette.github.io/ffn

- [Quickstart](http://pmorissette.github.io/ffn/quick.html)
- [Full API](http://pmorissette.github.io/ffn/ffn.html)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ffn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python, finance, quant, quant finance, algotrading, algorithmic trading",
    "author": null,
    "author_email": "Philippe Morissette <morissette.philippe@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d9/2f/e0be967d2ec775a3aa427ffcf684aac96c274555ac1dd9c7c33d220fbfb8/ffn-1.1.1.tar.gz",
    "platform": null,
    "description": "![](http://pmorissette.github.io/ffn/_static/logo.png)\n\n[![Build Status](https://github.com/pmorissette/ffn/workflows/Build%20Status/badge.svg)](https://github.com/pmorissette/ffn/actions/)\n[![PyPI Version](https://img.shields.io/pypi/v/ffn)](https://pypi.org/project/ffn/)\n[![PyPI License](https://img.shields.io/pypi/l/ffn)](https://pypi.org/project/ffn/)\n\n# ffn - Financial Functions for Python\n\nAlpha release - please let me know if you find any bugs!\n\nIf you are looking for a full backtesting framework, please check out [bt](https://github.com/pmorissette/bt).\nbt is built atop ffn and makes it easy and fast to backtest quantitative strategies.\n\n## Overview\n\nffn is a library that contains many useful functions for those who work in **quantitative\nfinance**. It stands on the shoulders of giants (Pandas, Numpy, Scipy, etc.) and provides\na vast array of utilities, from performance measurement and evaluation to\ngraphing and common data transformations.\n\n```python\nimport ffn\nreturns = ffn.get('aapl,msft,c,gs,ge', start='2010-01-01').to_returns().dropna()\nreturns.calc_mean_var_weights().as_format('.2%')\n    aapl    62.54%\n    c       -0.00%\n    ge      36.19%\n    gs      -0.00%\n    msft     1.26%\n    dtype: object\n```\n\n\n## Installation\n\nThe easiest way to install `ffn` is from the [Python Package Index](https://pypi.python.org/pypi/ffn/)\nusing `pip`.\n\n```bash\npip install ffn\n```\n\nSince ffn has many dependencies, we strongly recommend installing the [Anaconda Scientific Python Distribution](https://store.continuum.io/cshop/anaconda/). This distribution comes with many of the required packages pre-installed, including pip. Once Anaconda is installed, the above command should complete the installation.\n\n## Documentation\n\nRead the docs at http://pmorissette.github.io/ffn\n\n- [Quickstart](http://pmorissette.github.io/ffn/quick.html)\n- [Full API](http://pmorissette.github.io/ffn/ffn.html)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Financial functions for Python",
    "version": "1.1.1",
    "project_urls": {
        "Homepage": "http://pmorissette.github.io/ffn/",
        "Repository": "https://github.com/pmorissette/ffn"
    },
    "split_keywords": [
        "python",
        " finance",
        " quant",
        " quant finance",
        " algotrading",
        " algorithmic trading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4687e3b42480a67676524673fdf31b2a9c80a1f2c206f3177543320a77bd3638",
                "md5": "78639aec5ec1a3f429688888711a1051",
                "sha256": "f77223c09692ff6fcb9f797209347c7455865467ac269f8e536b0a48b049d7fe"
            },
            "downloads": -1,
            "filename": "ffn-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "78639aec5ec1a3f429688888711a1051",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 26297,
            "upload_time": "2024-11-02T20:01:43",
            "upload_time_iso_8601": "2024-11-02T20:01:43.156677Z",
            "url": "https://files.pythonhosted.org/packages/46/87/e3b42480a67676524673fdf31b2a9c80a1f2c206f3177543320a77bd3638/ffn-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d92fe0be967d2ec775a3aa427ffcf684aac96c274555ac1dd9c7c33d220fbfb8",
                "md5": "7243d5a637da6aa7df0f8f37d6b8c342",
                "sha256": "adf2d6b17594628034ca85dc0b1d77e2346dba2835bdeb27cf73763b58183ae5"
            },
            "downloads": -1,
            "filename": "ffn-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7243d5a637da6aa7df0f8f37d6b8c342",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 27294,
            "upload_time": "2024-11-02T20:01:44",
            "upload_time_iso_8601": "2024-11-02T20:01:44.862690Z",
            "url": "https://files.pythonhosted.org/packages/d9/2f/e0be967d2ec775a3aa427ffcf684aac96c274555ac1dd9c7c33d220fbfb8/ffn-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-02 20:01:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pmorissette",
    "github_project": "ffn",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ffn"
}
        
Elapsed time: 0.35692s