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.3.tar.gz
(11.6 kB
view details)
Built Distribution
File details
Details for the file forexflaggr-0.0.3.tar.gz
.
File metadata
- Download URL: forexflaggr-0.0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a559ef235008bb86364a1ba8697a61fa4332a9cf030924067ac995c7f2b32063 |
|
MD5 | bf41517499b0f22b3a02215394756590 |
|
BLAKE2b-256 | 3a9d2fd6d7e04db6976a00f9acc7aff10c55657f41b86360187f3328ce0623fe |
File details
Details for the file forexflaggr-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: forexflaggr-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b01eda1aca80227bf29b5903697042298a50cdd7dab62767fff1250f6d0d3975 |
|
MD5 | dd930aa5df9b710641f5113a12ceb134 |
|
BLAKE2b-256 | bc4238e7e541e0f220f960da2139932f17e8bc0282b02117031ad48d75cef3ca |