diff options
| author | Adam Soltys <[email protected]> | 2020-08-05 14:15:14 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-08-05 14:15:14 -0700 |
| commit | 633a5c60d820c05c8adfca14bf31d2f8083a036c (patch) | |
| tree | 33fb6f8496ed8a60f0f693f74989d5d6039bb52f /lib/rates.js | |
| parent | 3745752b5c38ad87a00f38d862c127cf7281ac89 (diff) | |
| download | coinos-server-633a5c60d820c05c8adfca14bf31d2f8083a036c.tar.gz coinos-server-633a5c60d820c05c8adfca14bf31d2f8083a036c.zip | |
USD base currency
Diffstat (limited to 'lib/rates.js')
| -rw-r--r-- | lib/rates.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rates.js b/lib/rates.js index 30ab0dce..952be031 100644 --- a/lib/rates.js +++ b/lib/rates.js @@ -17,7 +17,7 @@ let fetchRates; if (date !== today) { try { - let { data: { rates: fx }} = await axios.get('https://api.exchangerate.host/latest'); + let { data: { rates: fx }} = await axios.get('https://api.exchangerate.host/latest?base=USD'); fs.writeFileSync("fx", JSON.stringify({ date, fx })); } catch (e) { l.error("error fetching rates", e.message); |
