fix bitstamp exchange

This commit is contained in:
Josh Harvey 2017-07-10 13:21:02 +03:00
parent 97bab49e15
commit 3652871ea4
3 changed files with 13 additions and 14 deletions

View file

@ -3,11 +3,6 @@ const common = require('../../common/bitstamp')
function ticker (account, fiatCode, cryptoCode) {
return Promise.resolve()
.then(() => {
if (cryptoCode !== 'BTC') {
throw new Error('Unsupported crypto: ' + cryptoCode)
}
})
.then(() => {
const market = common.buildMarket(fiatCode, cryptoCode)
return common.request('/ticker/' + market, 'GET')
@ -23,4 +18,3 @@ function ticker (account, fiatCode, cryptoCode) {
module.exports = {
ticker
}