Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
fix(bitfinex): order not found (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-io authored and DeviaVir committed Jan 29, 2018
1 parent af111c2 commit 437855c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/exchanges/bitfinex/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ module.exports = function container (get, set, clear) {
getOrder: function (opts, cb) {
var order = ws_orders['~' + opts.order_id]

if(!order) {
return cb(new Error('order id ' + opts.order_id + ' not found'))
}

if (order.status === 'rejected' && order.reject_reason === 'post only') {
return cb(null, order)
} else if (order.status === 'rejected' && order.reject_reason === 'zenbot canceled') {
Expand Down

0 comments on commit 437855c

Please sign in to comment.