fix bitstamp exchange
This commit is contained in:
parent
97bab49e15
commit
3652871ea4
3 changed files with 13 additions and 14 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue