Bug Fixes
This commit is contained in:
1 parent
82bc086e92
commit
b1af6e078c
131 files changed
+8597
-1930
No files matched your search
+9
-1
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user