An open API service indexing awesome lists of open source software.

https://github.com/titomiguelcosta/pocket

Scripts for foreign exchange transfers. Determine rates, calculate balances, and so on.
https://github.com/titomiguelcosta/pocket

api flask python3 zappa

Last synced: about 2 months ago
JSON representation

Scripts for foreign exchange transfers. Determine rates, calculate balances, and so on.

Awesome Lists containing this project

README

        

Pocket
======

Python scripts to help make decisions when exchanging currencies.

Available commands
------------------

## Rate

What's the current rate between two currencies?

```
$ python bin/pocket rate --source=NZD --target=GBP
```

## Transfer

How much do you get by transferring a certain amount?

```
$ python bin/pocket transfer 1000 --source=NZD --target=GBP
```

## Fees

How much will the fees be for transferring a certain amount?

```
$ python bin/pocket fees 1000 --source=NZD --target=GBP

```

## Profit

Determines the rate needed to make a certain profit.
If --cashed parameter is not passed, it will use current rate to calculate initial transfer from source to target.

In the example, it is intended to make a profit of 100NZD by transfering 1000NZD to GBP and then transfering back.

```
$ python bin/pocket profit 100 1000 --source=NZD --target=GBP

```

## Balance

Determines the balance after reverting a transfer.

In the example, it is intended to determine how much it will be made by transferring back 9200NZD to the GBP account at the current rate.

```
$ python bin/pocket balance 5000 9200 --source=GBP --target=NZD

```