All Projects → d6o → GoCurrency

d6o / GoCurrency

Licence: MIT license
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to GoCurrency

Gocurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✭ 26 (-10.34%)
Mutual labels:  currency, currencies, golang-tools, currency-converter
php-currency-api
Standardized wrapper for popular currency rate APIs. Currently supports FixerIO, CurrencyLayer, Open Exchange Rates and Exchange Rates API.
Stars: ✭ 17 (-41.38%)
Mutual labels:  currency, currency-conversion, currency-converter, currency-api
currency-api
Free Currency Exchange Rates API with 150+ Currencies & No Rate Limits
Stars: ✭ 507 (+1648.28%)
Mutual labels:  currency, currency-conversion, currency-converter, currency-api
currency-converter
💰 Easily convert between 32 currencies
Stars: ✭ 16 (-44.83%)
Mutual labels:  currency, currencies, currency-converter
react-local-currency
💵 💴Shows the price of your services in the customer's currency 💶 💷
Stars: ✭ 21 (-27.59%)
Mutual labels:  currency, currencies, currency-converter
Swap
💱 Currency exchange rates library
Stars: ✭ 1,195 (+4020.69%)
Mutual labels:  currency, currency-converter
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (+193.1%)
Mutual labels:  currency, currencies
Currency
Handles currency calculations, storage etc
Stars: ✭ 109 (+275.86%)
Mutual labels:  currency, currencies
Prices
Python price handling for humans.
Stars: ✭ 248 (+755.17%)
Mutual labels:  currency, currencies
Laravel Cconverter
A simple currency converter plugin for Laravel 5. Currency providers: The European Central Bank, OpenExchange, CurrencyLayer and fixer.io
Stars: ✭ 39 (+34.48%)
Mutual labels:  currency, currency-converter
Django Prices
Django fields for the prices module
Stars: ✭ 135 (+365.52%)
Mutual labels:  currency, currencies
mexbtcapi
The Multi-Exchange Bitcoin API offers a consistent high-level API across multiple bitcoin exchanges
Stars: ✭ 42 (+44.83%)
Mutual labels:  currency-conversion, currency-api
Android Money
Simple money and currency converter library for android.
Stars: ✭ 66 (+127.59%)
Mutual labels:  currency, currency-converter
Php Forex Quotes
PHP Library for fetching realtime forex quotes.
Stars: ✭ 61 (+110.34%)
Mutual labels:  currency, currency-converter
Javamoney Lib
JavaMoney financial libraries, extending and complementing JSR 354
Stars: ✭ 104 (+258.62%)
Mutual labels:  currency, currencies
Coinonline
A Cryptocurrency/Blockchain wallet app based on React Native
Stars: ✭ 59 (+103.45%)
Mutual labels:  currency, currency-converter
Cash Cli
💰💰 Convert currency rates directly from your terminal!
Stars: ✭ 168 (+479.31%)
Mutual labels:  currency, currencies
Nager.Country
Worldwide Country Informations (ISO-3166-1 Alpha2, ISO-3166-1 Alpha3, ISO 639-1)
Stars: ✭ 68 (+134.48%)
Mutual labels:  currency, currencies
go-notebook
Go-Notebook is inspired by Jupyter Project (link) in order to document Golang code.
Stars: ✭ 33 (+13.79%)
Mutual labels:  golang-tools, golang-examples
Coinc
💰💱Alfred Workflow for currencies conversion
Stars: ✭ 38 (+31.03%)
Mutual labels:  currency, currency-converter

GoCurrency

GoCurrency Language Badge Go Report License Badge Status Badge

GoCurrency is a Go program made on the top of Kund Nu Currency Converter API.

The GoCurrency's goal is to be a perfect tool providing a stupidly easy-to-use and fast program to convert values between currencies.

Table of Contents

Demo

asciicast

Project Status

GoCurrency is on beta. Pull Requests are welcome

Features

  • Open source - You can check out our code
  • Secure
  • Always up-to-date
  • Use decimal type
  • 100% satisfaction guaranteed
  • It's perfect to convert amounts between currencies
  • STUPIDLY EASY TO USE
  • Very fast start up and response time
  • Uses native libs

Installation

Option 1: Go Get

$ go get github.com/disiqueira/gocurrency

Available Currencies

  • ATS Austria, shilling
  • AUD Australian, dollar
  • BEF Belgien, franc
  • BRL Brazilien, real
  • CAD Canada, dollar
  • CHF Switzerland, francs
  • CNY China, yuan renminbi
  • CYP Cyprus, pound
  • CZK Czech Republic, koruna
  • DEM Germany, mark
  • DKK Denmark, krone
  • EEK Estonian, kroon
  • ESP Spain, pesetas
  • EUR Euroland, euro
  • FIM Finland, marka
  • FRF France, franc
  • GBP Great Britain, pound
  • GRD Greece, drachmer
  • HKD Hong Kong, dollar
  • HUF Hungary, forint
  • IDR Indonesia, rupiah
  • IEP Ireland, pund
  • INR India, rupee
  • ISK Iceland, kronor
  • ITL Italy, lire
  • JPY Japan, yen
  • KRW South Korea, won
  • KWD Kuwait, dinar
  • LTL Lithuania, litas
  • LVL Latvia, lat
  • MAD Morocko, dirham
  • MXN Mexico, nuevo peso
  • MYR Malaysia, ringgit
  • NLG Dutchland, guilder
  • NOK Norway, krone
  • NZD New Zealand, dollar
  • PLN Poland, zloty
  • PTE Portugal, escudo
  • RUB Russia, rouble
  • SAR Saudi Arabia, riyal
  • SEK Sweden, kronor
  • SGD Singapore, dollar
  • SIT Slovenia, tolar
  • SKK Slovakia, koruna
  • THB Thailand, baht
  • TRL Turkey, lira
  • TRY Turkey, new lira
  • USD US, dollar
  • ZAR South Africa, rand

Usage

Get all available currencies

package main

import (
	"fmt"

	"github.com/disiqueira/gocurrency"
)

func main() {
	curList, _ := gocurrency.AvailableCurrencies()

	for _, currency := range curList {
		fmt.Println(currency.Description)
	}
}

Output:

SEK Sweden, kronor
ATS Austria, shilling
AUD Australian, dollar
BEF Belgien, franc
BRL Brazilien, real
CAD Canada, dollar
CHF Switzerland, francs
CNY China, yuan renminbi
CYP Cyprus, pound
CZK Czech Republic, koruna
DEM Germany, mark
DKK Denmark, krone
EEK Estonian, kroon
ESP Spain, pesetas
EUR Euroland, euro
FIM Finland, marka
FRF France, franc
GBP Great Britain, pound
GRD Greece, drachmer
HKD Hong Kong, dollar
HUF Hungary, forint
IDR Indonesia, rupiah
IEP Ireland, pund
INR India, rupee
ISK Iceland, kronor
ITL Italy, lire
JPY Japan, yen
KRW South Korea, won
KWD Kuwait, dinar
LTL Lithuania,  litas
LVL Latvia, lat
MAD Morocko, dirham
MXN Mexico, nuevo peso
MYR Malaysia, ringgit
NLG Dutchland, guilder
NOK Norway, krone
NZD New Zealand, dollar
PLN Poland, zloty
PTE Portugal, escudo
RUB Russia, rouble
SAR Saudi Arabia, riyal
SGD Singapore, dollar
SIT Slovenia, tolar
SKK Slovakia, koruna
THB Thailand, baht
TRL Turkey, lira
TRY Turkey, new lira
USD US, dollar
ZAR South Africa, rand

Convert 100 USD to all currencies

package main

import (
	"fmt"
        "strconv"

	"github.com/disiqueira/gocurrency"
	"github.com/shopspring/decimal"
)

func main() {
	curList, _ := gocurrency.AvailableCurrencies()

	dollar := gocurrency.NewCurrency("USD")
        amount := decimal.NewFromFloat(100.00)

	for _, currency := range curList {
		conv, _ := gocurrency.ConvertCurrency(dollar, currency, amount)

		fmt.Printf("%-3s %-8s --> %-3s %s\n", dollar.ID, amount, currency.ID, conv)
	}
}

Output:

USD 100.00 --> SEK 881.12
USD 100.00 --> ATS 1334.36
USD 100.00 --> AUD 130.28
USD 100.00 --> BEF 3911.85
USD 100.00 --> BRL 312.07
USD 100.00 --> CAD 133.35
USD 100.00 --> CHF 99.59
USD 100.00 --> CNY 690.75
USD 100.00 --> CYP 54.42
USD 100.00 --> CZK 2509.74
USD 100.00 --> DEM 189.66
USD 100.00 --> DKK 690.54
USD 100.00 --> EEK 1531.05
USD 100.00 --> ESP 16134.77
USD 100.00 --> EUR 92.88
USD 100.00 --> FIM 576.57
USD 100.00 --> FRF 636.10
USD 100.00 --> GBP 80.95
USD 100.00 --> GRD 33042.83
USD 100.00 --> HKD 776.45
USD 100.00 --> HUF 28765.63
USD 100.00 --> IDR 1333010.59
USD 100.00 --> IEP 76.37
USD 100.00 --> INR 6553.27
USD 100.00 --> ISK 10876.95
USD 100.00 --> ITL 187751.97
USD 100.00 --> JPY 11334.92
USD 100.00 --> KRW 113239.94
USD 100.00 --> KWD 37.74
USD 100.00 --> LTL 319.77
USD 100.00 --> LVL 69.22
USD 100.00 --> MAD 999.46
USD 100.00 --> MXN 1924.26
USD 100.00 --> MYR 489.51
USD 100.00 --> NLG 213.70
USD 100.00 --> NOK 848.16
USD 100.00 --> NZD 143.12
USD 100.00 --> PLN 399.87
USD 100.00 --> PTE 19441.33
USD 100.00 --> RUB 5790.71
USD 100.00 --> SAR 375.02
USD 100.00 --> SGD 140.29
USD 100.00 --> SIT 23310.05
USD 100.00 --> SKK 0.00
USD 100.00 --> THB 3490.97
USD 100.00 --> TRL 176224000.00
USD 100.00 --> TRY 360.64
USD 100.00 --> USD 100.00
USD 100.00 --> ZAR 1277.17

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Developing

PRs are welcome. To begin developing, do this:

$ git clone https://github.com/disiqueira/gocurrency.git gocurrency
$ cd gocurrency/
$ go get -v -d 

Social Coding

  1. Create an issue to discuss about your idea
  2. [Fork it] (https://github.com/DiSiqueira/GoCurrency/fork)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request
  7. Profit!

License

The MIT License (MIT)

Copyright (c) 2013-2017 Diego Siqueira

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].