All Projects → roadmaptravel → Curry

roadmaptravel / Curry

Licence: Apache-2.0 license
Android currency conversion library

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Curry

Forex Python
Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
Stars: ✭ 378 (+1475%)
Mutual labels:  currency-converter
Alfred3 Workflow Currencyx
Most convinent currencies converting tool for alfred3
Stars: ✭ 68 (+183.33%)
Mutual labels:  currency-converter
Ruby Scripts
A collection of ruby scripts for those who live in the command line
Stars: ✭ 234 (+875%)
Mutual labels:  currency-converter
Money
A money and currency library for PHP
Stars: ✭ 855 (+3462.5%)
Mutual labels:  currency-converter
Android Money
Simple money and currency converter library for android.
Stars: ✭ 66 (+175%)
Mutual labels:  currency-converter
Swap
💱 Currency exchange rates library
Stars: ✭ 1,195 (+4879.17%)
Mutual labels:  currency-converter
Laravel Swap
💵 Currency exchange rates for Laravel and Lumen
Stars: ✭ 296 (+1133.33%)
Mutual labels:  currency-converter
Coinc
💰💱Alfred Workflow for currencies conversion
Stars: ✭ 38 (+58.33%)
Mutual labels:  currency-converter
Bash Snippets
A collection of small bash scripts for heavy terminal users
Stars: ✭ 8,558 (+35558.33%)
Mutual labels:  currency-converter
Currency Converter Swift3.0 Viper
Calculates money quick and easy way to see live foreign exchange rates (Based on swift 4.2, viper architecture and special thanks to https://github.com/hakanensari/fixer-io for conversion API)
Stars: ✭ 198 (+725%)
Mutual labels:  currency-converter
Laravel Cconverter
A simple currency converter plugin for Laravel 5. Currency providers: The European Central Bank, OpenExchange, CurrencyLayer and fixer.io
Stars: ✭ 39 (+62.5%)
Mutual labels:  currency-converter
Php Forex Quotes
PHP Library for fetching realtime forex quotes.
Stars: ✭ 61 (+154.17%)
Mutual labels:  currency-converter
Alfred Calculate Anything
Alfred Workflow to calculate anything with natural language
Stars: ✭ 92 (+283.33%)
Mutual labels:  currency-converter
Gocurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✭ 26 (+8.33%)
Mutual labels:  currency-converter
Soulvercore
A powerful Swift framework for evaluating mathematical expressions
Stars: ✭ 245 (+920.83%)
Mutual labels:  currency-converter
Money
PHP implementation of Fowler's Money pattern.
Stars: ✭ 3,868 (+16016.67%)
Mutual labels:  currency-converter
Exchangerate.host
Exchange rates API is a simple and lightweight free service for current and historical foreign exchange rates & crypto exchange rates.
Stars: ✭ 75 (+212.5%)
Mutual labels:  currency-converter
HexBot
A Relatively Simply Awesome Discord bot with Music, Games, Comics, Memes and other cool features. This bot is made in Python 3.8 using discord.py
Stars: ✭ 109 (+354.17%)
Mutual labels:  currency-converter
salaryconverter
Equivalent salary converter using PPP
Stars: ✭ 42 (+75%)
Mutual labels:  currency-converter
Ratesapi
Forex conversion exchange rates api for free
Stars: ✭ 144 (+500%)
Mutual labels:  currency-converter

Curry

Curry is a currency conversion library for Android. It's build on top of exchangeratesapi. Which is a free API for current and historical foreign exchange rates published by the European Central Bank. The rates are updated daily around 4PM CET every working day.

Download

Gradle

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency

dependencies {
    compile 'com.github.roadmaptravel:Curry:0.1.5'
}

Usage

This library makes use of RxAndroid for its calls.

CurryApiClient(this).service.getLatestRates()
                .subscribeOn(Schedulers.computation())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(object : SingleObserver<ForExRates> {
                    override fun onError(e: Throwable) {
                        Log.w("DEBUG", e.toString())
                    }

                    override fun onSuccess(t: ForExRates) {
                        Log.d("DEBUG", t.toString())
                    }

                    override fun onSubscribe(d: Disposable) {
                    }

                })

getLatest(currencyCode: String) returns an Single which emits the ForExRates data. The data contains the latest foreign exchange reference rates.

getHistoricalRates(date: String) returns an Single which emits the ForExRates data. The data contains rates for any day since 1999. Choose a day by setting the date in your request. The format is 2000-01-03.

getSpecificRates(symbols: String) returns an Single which emits the ForExRates data. The data contains the latest foreign exchange reference rates for the chosen symbols.

All rates are quoted against the Euro by default. Quote against a different currency by setting the base currencyCode as a second parameter. e.g. getHistoricalRates("2000-01-03", "USD") All currency codes are int the ISO 4217 format.

License

Copyright 2017 Roadmap

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].