https://github.com/timothyye/exchangerate
A command-line tool to query exchange rate.
https://github.com/timothyye/exchangerate
exchange-rate exchange-rates
Last synced: 3 days ago
JSON representation
A command-line tool to query exchange rate.
- Host: GitHub
- URL: https://github.com/timothyye/exchangerate
- Owner: TimothyYe
- License: mit
- Created: 2018-08-01T08:13:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T08:40:41.000Z (almost 4 years ago)
- Last Synced: 2025-10-01T05:25:07.943Z (7 days ago)
- Topics: exchange-rate, exchange-rates
- Language: Go
- Homepage: https://timothyye.github.io/exchangerate/
- Size: 3.01 MB
- Stars: 33
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
_ _
|_ _ |_ _. ._ _ _ |_) _. _|_ _
|_ >< (_ | | (_| | | (_| (/_ | \ (_| |_ (/_
_|
```
[![Build Status][1]][2] [![Go Report Card][7]][8] [![GoDoc][9]][10][1]: https://travis-ci.org/TimothyYe/exchangerate.svg?branch=master
[2]: https://travis-ci.org/TimothyYe/exchangerate
[7]: https://goreportcard.com/badge/github.com/timothyye/exchangerate
[8]: https://goreportcard.com/report/github.com/timothyye/exchangerate
[9]: https://godoc.org/github.com/TimothyYe/exchangerate?status.svg
[10]: https://godoc.org/github.com/TimothyYe/exchangerateA simple command-line tool to query exchange rate.

## Installation
#### Homebrew
```bash
brew tap timothyye/tap
brew install timothyye/tap/exchangerate
```#### Using Go
```bash
go get github.com/TimothyYe/exchangerate/cmd/er
```#### Manual Installation
Download it from [releases](https://github.com/TimothyYe/exchangerate/releases) and extact it to /usr/bin or your PATH directory.
## Get API Key
* Visit [https://free.currencyconverterapi.com/free-api-key](https://free.currencyconverterapi.com/free-api-key) and get your free API key.
* Save your API key into `~/.er` file.Your `.er` file may looks like:
```bash
→ cat ~/.er
15d684b456848e2da877
```## Usage
```bash
% er -hExchange Rate V1.2
https://github.com/TimothyYe/exchangerateNAME:
Exchange Rate - A simple command-line tool to query exchange rateUSAGE:
er [from currency] [amount] [to currency]VERSION:
1.2EXAMPLES:
er USD Query USD and show exchange rate for common used currencies.
er USD 40.98 Query USD with amount 40.98, and show the equal amount of other currencies.
er USD 12 CNY,JPY Query USD with amount 12 and show the equal amount of specified currencies.GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```## Licence
[MIT License](https://github.com/TimothyYe/exchangerate/blob/master/LICENSE)