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

+13 -2
View File
@@ -165,8 +165,19 @@ module.exports = class btcalpha extends Exchange {
request['limit_sell'] = limit;
request['limit_buy'] = limit;
}
const reponse = await this.publicGetOrderbookPairName (this.extend (request, params));
return this.parseOrderBook (reponse, undefined, 'buy', 'sell', 'price', 'amount');
const response = await this.publicGetOrderbookPairName (this.extend (request, params));
return this.parseOrderBook (response, undefined, 'buy', 'sell', 'price', 'amount');
}
parseBidsAsks (bidasks, priceKey = 0, amountKey = 1) {
const result = [];
for (let i = 0; i < bidasks.length; i++) {
const bidask = bidasks[i];
if (bidask) {
result.push (this.parseBidAsk (bidask, priceKey, amountKey));
}
}
return result;
}
parseTrade (trade, market = undefined) {