diff --git a/lib/plugins/exchange/bitstamp/bitstamp.js b/lib/plugins/exchange/bitstamp/bitstamp.js index 9a120724..6a111ce4 100644 --- a/lib/plugins/exchange/bitstamp/bitstamp.js +++ b/lib/plugins/exchange/bitstamp/bitstamp.js @@ -22,7 +22,9 @@ function handleErrors (data) { throw err } -function trade (type, account, cryptoAtoms, fiatCode, cryptoCode) { +function trade (type, account, cryptoAtoms, _fiatCode, cryptoCode) { + const fiatCode = _fiatCode === 'USD' ? 'USD' : 'EUR' + try { const market = common.buildMarket(fiatCode, cryptoCode) const options = {amount: cryptoAtoms.shift(-SATOSHI_SHIFT).toFixed(8)}