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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file forexflaggr-0.0.6.tar.gz.

File metadata

  • Download URL: forexflaggr-0.0.6.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for forexflaggr-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2c348cf4ba46f2c23a734866d839a0b48d537bdb81eb89ac7ca97f88440eeeef
MD5 d420cda6223a8e15fe49bf5898a5b4cb
BLAKE2b-256 8851953561290095b878c1d3ad6782d1b7408497ef54c4138483b2d2724da6b9

See more details on using hashes here.

File details

Details for the file forexflaggr-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: forexflaggr-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for forexflaggr-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f337ee33ee775bfcc6b98233576f44e902594c65709d816104f529e8adca0c
MD5 70766fa7caefcb5940f2dcd4f511d667
BLAKE2b-256 87ae0134f443f7409a88e4039f3cb5e4b2048fc0edcdcbfbf4778dba87350e0a

See more details on using hashes here.

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