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.
- Host: GitHub
- URL: https://github.com/titomiguelcosta/pocket
- Owner: titomiguelcosta
- Created: 2017-09-05T22:46:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T17:23:42.000Z (about 2 years ago)
- Last Synced: 2025-01-29T20:44:20.257Z (4 months ago)
- Topics: api, flask, python3, zappa
- Language: JavaScript
- Homepage: http://website.pocket.titomiguelcosta.com
- Size: 82 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
======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```