Skip to content

Commit

Permalink
Merge pull request #2956 from egorFiNE/ef-bittrex-fetchOrder
Browse files Browse the repository at this point in the history
bittrex: do not crash on order not found, throw proper exception instead
  • Loading branch information
kroitor committed Jun 1, 2018
2 parents 7b957f6 + ff30d9d commit 91da21f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/bittrex.js
Expand Up @@ -616,6 +616,9 @@ module.exports = class bittrex extends Exchange {
}
throw e;
}
if (!response['result']) {
throw new OrderNotFound (this.id + ' order ' + id + ' not found');
}
return this.parseOrder (response['result']);
}

Expand Down

0 comments on commit 91da21f

Please sign in to comment.