aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.js b/index.js
index 5cdbb866..d723e2f5 100644
--- a/index.js
+++ b/index.js
@@ -473,11 +473,13 @@ const l = console.log
try {
let res = await axios.get('https://api.quadrigacx.com/v2/order_book')
let ask = res.data.asks[0][0]
- l('quadriga ask price: ', ask)
+ let now = new Date()
+ let ts = `${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`
+ l(ts, 'quadriga ask price:', ask)
app.set('rates', { ask })
} catch (e) { l(e) }
- setTimeout(fetchRates, 150000)
+ setTimeout(fetchRates, 30000)
})()
app.get('/rates', (req, res) => {