Skip to main content

A minimal package to pull and analyse financial (exchange rate) data.

Project description

forexflaggr

A minimal package to pull and analyze financial (forex) data.

Getting started

Installation

Install the latest version of forexflaggr with pip:

pip install forexflaggr

or directly from the source code:

pip install git+https://github.com/ZachWolpe/forexflaggr.git

If the API fails to return data unexpectedly, it may be due to the yahoo finance cache. Empty the cache with:

pip install yfinance --upgrade --no-cache-dir 

Usage

Import the package:

import forexflaggr as fxr

key functions:

  • fxr.ForexFlaggr().fetch_data() : fetches data from yahoo finance.`
  • fxr.ForexFlaggr().plot_data() : plots data`
  • fxr.ForexFlaggr.get_price(ff) : returns the price of a given currency pair`.
  • fxr.pie_chart_recommendation.plot_pie_recommendation() : plot a recommendation pie chart.
  • fxr.LOESS_Model(X, y) : returns a LOESS model.
  • fxr.GAM_Model(X, y) : returns a GAM model.

See a complete example usage in ./examples/forexflaggr_runtime.ipynb

Off-the-shelf

For an off-the-shelf USD/ZAR analysis solution in the form of an html doc, run:

import forexflaggr as fxr
fxr.build_html()

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

forexflaggr-0.0.6.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

forexflaggr-0.0.6-py3-none-any.whl (14.1 kB view hashes)

Uploaded Python 3

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