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

Some 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.4.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

forexflaggr-0.0.4-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forexflaggr-0.0.4.tar.gz
  • Upload date:
  • Size: 11.7 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.4.tar.gz
Algorithm Hash digest
SHA256 ddd9200606ec64399f2257ecf744f232a81c5a04cf76ad0884828210f1831db1
MD5 986f308512cd094b8dc9853b4383cea3
BLAKE2b-256 7af3f562edf62140280418b3aa803fd5a4b28c69fc14ca6a1a3f116a08789b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forexflaggr-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a15d6176c4c420f55a932c8931feb58869f3797151b85a6c0e07d5d403c68d8b
MD5 165ed8d26c30f80f44e313b6cc084d93
BLAKE2b-256 53eb73e0d7dfb7a09cc9ae55dd35cfebbe166eca4dbdbfc997700d87edcfaa24

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