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.5.tar.gz
(11.6 kB
view details)
Built Distribution
File details
Details for the file forexflaggr-0.0.5.tar.gz
.
File metadata
- Download URL: forexflaggr-0.0.5.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 | 9849e67aac80783b5e7b98af221dba0e0c4b040bfbd3792a27c499d2c9108476 |
|
MD5 | 4e8f1e849090953337d412508997a8ba |
|
BLAKE2b-256 | 8021f71b5a8d59c3ccea78aaa895afd40d1463f714ce1e3b15e7398829f042ca |
File details
Details for the file forexflaggr-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: forexflaggr-0.0.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668076f758ab478d23d5ce57ed2e48f50dbfcf39fa47d6645e32d82044d4fb65 |
|
MD5 | cebd556aab8d69585bb66e1d1725fd8f |
|
BLAKE2b-256 | 6ae8a3004343b76ba4e53e70b19964031a81413ac19657468e04bd8967167725 |