Metadata-Version: 2.1
Name: exchange-rate-alert
Version: 0.7
Summary: Create desktop alerts for Transferwise exchange rates
Home-page: https://github.com/paradigmwit/exchange-rate-alert
Author: Fahd Mohammed Khan
Author-email: fahd_khan_01@hotmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: setuptools
Requires-Dist: click
Requires-Dist: pypiwin32 ; sys_platform == "win32"
Requires-Dist: win10toast ; sys_platform == "win32"

Exchange Rate Alert
---

Creates desktop alerts when the Transferwise exchange rates hit a target rate. Tries every five minutes.

![Notification](./img/era_notification.jpg)

Currently running on Windows, PIP version 20.0.1

---

#### Before Using

Before the module can be used the user has to create a Transferwise API token. The detailed instructions can be found here - https://api-docs.transferwise.com/#payouts-guide-api-access  

The program will try and find the access token in the following manner

 1. System Variable named TCR - create a system variable named TCR

 2. Configuration file - located at `%HOMEDRIVE%%HOMEPATH%/.tcr` on windows or `~/.tcr` on linux

---

#### Installation 

Install package from pip 
- `pip install exchange-rate-alert`

---

#### Usage

**1. From Command Prompt** 

- `era --source SEK --target INR --alert-rate 8.5`

    ![CMD](./img/era_cli_option.JPG)

- `era` and respond to prompts

    ![CMD_PROMPTS](./img/era_cli_with_prompts.JPG)


**2. As a python module** 

Import into python script
- `from ratealert import ConversionAlert`

Call the constructor, wait for alert, profit!
- `ConversionAlert(source, target, alert_rate)`

**Example**

    from ratealert import ConversionAlert
    ConversionAlert('SEK', 'INR', 8.5)

This will create a notification when the Transferwise exchange rate crosses the alert rate. 

![Notification](./img/era_notification.jpg)

The rates will be checked every five minutes.

Exit the script by Ctrl+C

---

#### Change notes

0.6 - Command line execution, input prompts

0.3 - Alert on a target conversion rate

0.1 - Alert at specified intervals


---

#### Next steps

- Quotation request and transfer lock on target conversion rate
- OAuth login for Transferwise
- Linux support



