Currency_converter
Deno module to convert fiat currencies with initial fetched API from fixer.io
Usage example
There are two different modes for this module
https://fixer.io/)
1) Convert Currency with Realtime Data from fixer.io (API-Key required:Step 1) Import and create a new class
import {FiatConverter_fromAPI} from 'https://deno.land/x/currency_converter@v0.3.3/api_mod.ts'
let FiatConverter = new FiatConverter_fromAPI()
Step 2) Call the convert() method on created object
The convert() method receives four inputs:
arg0: Your fixer.io api access key as string
arg1: A number of amount that should be converted into the target fiat currency
arg2: The inital currency for conversion [“EUR” –>] (ISO 3-Letter Currency Code) as string!
arg2: The target currency [–> “USD”] (ISO 3-Letter Currency Code) as string!
var result = await FiatConverter.convert("YOUR_API_ACCESS_KEY",15,"EUR","RUB")
console.log(result)
Fixer.io offers 100 free API request calls per month! Create your fixer.io API_Key now and calculate currencies in Realtime for free with this deno module! Link: https://fixer.io/
2) Convert Currency with Saved Data from .json file (does not work - under construction)
Original versioning repository
Link: https://github.com/mimed100/deno_currency_converter Unfortunetly the free fixer.io api key does not support changing base currency directly by request…