Skip to content

Commit

Permalink
add new currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
willyfromtheblock committed Aug 24, 2023
1 parent e1b63f5 commit 02c3e3c
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,44 @@ async function handleSchedule() {
"XOF",
"XPF",
"ZAR",
"ZMK"
"ZMK",
"AFN",
"ANG",
"AWG",
"BBD",
"BMD",
"BZD",
"CUP",
"DJF",
"DZD",
"ERN",
"ETB",
"GHS",
"GIP",
"HTG",
"KHR",
"KPW",
"KYD",
"MMK",
"MRO",
"NIO",
"NPR",
"PAB",
"PKR",
"SBD",
"SHP",
"SOS",
"SRD",
"SSP",
"SVC",
"SYP",
"TMT",
"TOP",
"UZS",
"VEF",
"VUV",
"WST",
"XCD",
];

const prices = {};
Expand All @@ -168,7 +205,7 @@ async function handleSchedule() {
const ppcUsdPrice = paprikaResponse['quotes']['USD']['price'];
prices['PPC'] = parseFloat(ppcUsdPrice.toFixed(6));

// add ARS TODO
// add ARS
const yadioResponse = await getFromApi('https://api.yadio.io/exrates/USD');
const arsUsdPrice = yadioResponse['USD']['ARS'];
prices['ARS'] = arsUsdPrice;
Expand Down

0 comments on commit 02c3e3c

Please sign in to comment.