Skip to content

Commit

Permalink
Merge pull request #2993 from frosty00/working
Browse files Browse the repository at this point in the history
kucoin fetchOrderBook fix
  • Loading branch information
kroitor committed May 30, 2018
2 parents a2c81b5 + 3b346a0 commit 0a8d26c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/kucoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,13 @@ module.exports = class kucoin extends Exchange {
async fetchOrderBook (symbol, limit = undefined, params = {}) {
await this.loadMarkets ();
let market = this.market (symbol);
let response = await this.publicGetOpenOrders (this.extend ({
let request = {
'symbol': market['id'],
'limit': limit,
}, params));
};
if (typeof limit !== 'undefined') {
request['limit'] = limit;
}
let response = await this.publicGetOpenOrders (this.extend (request, params));
let dataInResponse = ('data' in response);
let orderbook = undefined;
let timestamp = undefined;
Expand Down

0 comments on commit 0a8d26c

Please sign in to comment.