Back to APIs list

Currency API examples & templates

Use these vals as a playground to view and fork Currency API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
mgruel avatar
exchangeCurrency
@mgruel
Script
Calls https://www.exchangerate-api.com to retrieve the currency exchange rates * for the provided base currency or "eur" if undefined * @param {string} desired - The desired currency convert to * @param {number} amount - The amount of target currency * @param {string} base - The base currency, from which the exchange should be calculated
greeffer avatar
usdETH
@greeffer
Script
// Get the current price of Ethereum in US dollars
stevekrouse avatar
usdGBP
@stevekrouse
Script
// Convert 100 British pounds to US dollars
tophtucker avatar
usdETH
@tophtucker
Script
// Get the current price of Ethereum in US dollars
carlos avatar
usdBTC
@carlos
Script
// Get the current price of Bitcoin in US dollars
vincentntang avatar
usdBTC
@vincentntang
Script
// Get the current price of Bitcoin in US dollars
rorymalcolm avatar
usdGBP
@rorymalcolm
Script
// Convert 100 British pounds to US dollars
frankdilo avatar
emailMeExchangeRate
@frankdilo
Script
An interactive, runnable TypeScript val by frankdilo
bwaidelich avatar
usdETH
@bwaidelich
Script
// Get the current price of Ethereum in US dollars
raymperry avatar
usdGBP
@raymperry
Script
// Convert 100 British pounds to US dollars
sigsegv avatar
usdGBP
@sigsegv
Script
// Convert 100 British pounds to US dollars
kayla_lin avatar
getYenPriceCron
@kayla_lin
Cron
An interactive, runnable TypeScript val by kayla_lin
tanvirraj avatar
usdETH
@tanvirraj
Script
// Get the current price of Ethereum in US dollars
dosirak avatar
usdGBP
@dosirak
Script
// Convert 100 British pounds to US dollars
kallev avatar
usdETH
@kallev
Script
// Get the current price of Ethereum in US dollars
rudeluv avatar
usdGBP
@rudeluv
Script
// Convert 100 British pounds to US dollars