Skip to content

Commit

Permalink
Update bibox.js
Browse files Browse the repository at this point in the history
  • Loading branch information
benediamond committed Jun 13, 2018
1 parent 8409427 commit 539b530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/bibox.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,9 @@ module.exports = class bibox extends Exchange {
}

parseOrder (order, market = undefined) {
if (!('order_type' in order) || !('order_side' in order) || !('createdAt' in order))
throw new OrderNotFound ('Order ' + order + ' does not exist on ' + self.id + '.');
if (Object.keys (order).length < 1) {
throw new OrderNotFound ('Order ' + order + ' does not exist on ' + this.id + '.');
}
let symbol = undefined;
if (typeof market === 'undefined') {
let marketId = undefined;
Expand Down

0 comments on commit 539b530

Please sign in to comment.