Bug Fixes

This commit is contained in:
Luis Fernando Molina committed 2020-02-09 16:35:17 +01:00
1 parent 82bc086e92
commit b1af6e078c
131 files changed
+8597 -1930

No files matched your search

+9 -1
View File
@@ -543,11 +543,19 @@ module.exports = class bitfinex extends Exchange {
} else {
key = 'base';
}
const code = market[key];
const currency = this.safeValue (this.currencies, code);
if (currency !== undefined) {
const precision = this.safeInteger (currency, 'precision');
if (precision !== undefined) {
cost = parseFloat (this.currencyToPrecision (code, cost));
}
}
return {
'type': takerOrMaker,
'currency': market[key],
'rate': rate,
'cost': parseFloat (this.currencyToPrecision (market[key], cost)),
'cost': cost,
};
}