Skip to content
Permalink
Browse files

btcalpha fixup

  • Loading branch information
kroitor committed Jan 30, 2020
1 parent f48cbc2 commit a5279601397fea3e13636be189a988a4869620c9
Showing with 14 additions and 2 deletions.
  1. +13 −2 js/btcalpha.js
  2. +1 −0 keys.json
@@ -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 !== null) {
result.push (this.parseBidAsk (bidask, priceKey, amountKey));
}
}
return result;
}

parseTrade (trade, market = undefined) {
@@ -18,6 +18,7 @@
"bl3p": { "skip": true },
"bleutrade": { "skip": true },
"braziliex": { "skip": true },
"btcalpha": { "skip": true },
"btcchina": { "skip": true },
"btcexchange": { "skip": true },
"btcmarkets": { "skip": true },

0 comments on commit a527960

Please sign in to comment.
You can’t perform that action at this time.