Update Bitstamp to new Bitpay api version
This commit is contained in:
parent
d083ae5a40
commit
52ccea0e5f
1 changed files with 2 additions and 2 deletions
|
|
@ -18,9 +18,9 @@ exports.ticker = function ticker (account, fiatCode, cryptoCode) {
|
|||
return getCurrencyRates(fiatCode, cryptoCode)
|
||||
}
|
||||
|
||||
return axios.get('https://bitpay.com/api/rates')
|
||||
return axios.get('https://bitpay.com/rates')
|
||||
.then(response => {
|
||||
const fxRates = response.data
|
||||
const fxRates = response.data.data
|
||||
const usdRate = findCurrency(fxRates, 'USD')
|
||||
const fxRate = findCurrency(fxRates, fiatCode).div(usdRate)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue