From 8a43d4ee7cb9c9fa23c37e95c454646605059a61 Mon Sep 17 00:00:00 2001 From: Taranto Date: Wed, 4 Sep 2019 16:49:59 +0100 Subject: [PATCH] Update to new bitpay api version --- lib/plugins/ticker/bitpay/bitpay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/ticker/bitpay/bitpay.js b/lib/plugins/ticker/bitpay/bitpay.js index 80d2c67b..099ed3be 100644 --- a/lib/plugins/ticker/bitpay/bitpay.js +++ b/lib/plugins/ticker/bitpay/bitpay.js @@ -2,9 +2,9 @@ const axios = require('axios') const BN = require('../../../bn') function ticker (account, fiatCode, cryptoCode) { - return axios.get('https://bitpay.com/api/rates/' + cryptoCode + '/' + fiatCode) + return axios.get('https://bitpay.com/rates/' + cryptoCode + '/' + fiatCode) .then(r => { - const data = r.data + const data = r.data.data const price = BN(data.rate.toString()) return { rates: {