transferwise

command module
v0.0.0-...-14990dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 11 Imported by: 0

README

Build Status Go Report Card

transferwise

A command line tool to get quotes from TransferWise (with colors!)

Installation

Available via:

  • go get -u github.com/guitmz/transferwise
  • Homebrew: brew install guitmz/tools/transferwise
  • GitHub precompiled releases

Usage

$ transferwise -help
Usage of transferwise:
  -amount float
    	Amount you want to transfer from the source currency (default 1000)
  -from string
    	Source currency acronym
  -json
    	Outputs in JSON format.
  -to string
    	Destination currency acronym
  -version
    	Prints current version.

Regular output:

$ transferwise -amount 1000.00 -from EUR -to BRL

TransferWise Quote (EUR -> BRL | Rate: 4.87295):

Amount to send (EUR): 1.000,00
Amount to receive (BRL): 4.815,55
Fee (EUR): 11,78
Quote requested at: Thu Sep 13 15:39:30 2018
Delivery estimate: Fri Sep 14 14:42:30 2018

JSON output:

$ transferwise -amount 1000.00 -from EUR -to BRL -json
{
  "source": "EUR",
  "target": "BRL",
  "sourceAmount": 1000,
  "targetAmount": 4815.55,
  "rate": 4.87295,
  "createdTime": "2018-09-13T15:40:19.102Z",
  "deliveryEstimate": "2018-09-14T14:43:19.03Z",
  "fee": 11.78
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL