Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Arkar-Aung/mmExchangeRate
Just a simple myanmar exchange rate checker and caculator based on Central Bank of Myanmar API with elixir
https://github.com/Arkar-Aung/mmExchangeRate
Last synced: about 1 month ago
JSON representation
Just a simple myanmar exchange rate checker and caculator based on Central Bank of Myanmar API with elixir
- Host: GitHub
- URL: https://github.com/Arkar-Aung/mmExchangeRate
- Owner: Arkar-Aung
- License: apache-2.0
- Created: 2015-01-07T05:57:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T14:56:32.000Z (almost 5 years ago)
- Last Synced: 2024-10-07T08:15:07.525Z (2 months ago)
- Language: Elixir
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - A simple exchange rate checker and calculator based on Central Bank of Myanmar Api. (Third Party APIs)
- fucking-awesome-elixir - mmExchangeRate - A simple exchange rate checker and calculator based on Central Bank of Myanmar Api. (Third Party APIs)
- awesome-elixir - mmExchangeRate - A simple exchange rate checker and calculator based on Central Bank of Myanmar Api. (Third Party APIs)
README
# MmExchangeRate
A simple exchange rate checker and calculator based on [Central Bank of Myanmar Api](http://forex.cbm.gov.mm/index.php/api) in elixir. You can find [it](https://hex.pm/packages/mmExchangeRate) on hex.
Before you try it, make sure you've install [elixir 1.*](http://elixir-lang.org/install.html)
In mix.exs,defp deps do
[
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.0"},
{:mmExchangeRate, "~> 0.0.1"}
]
end##### To check available currency list
MmExchangeRate.currencies()
##### To check today exchange rate
MmExchangeRate.today("usd") # default currency is usd if paramter is empty
##### To calculate rate with today exchange rate
MmExchangeRate.calculate(100, "usd") # default currency is usd if paramter is empty
##### To check exchange rate history
MmExchangeRate.from("dd-mm-yyyy", "usd") # default currency is usd if paramter is empty