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

Bitfinex: avoid crash when getOrder is called and no order is found. #1237

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

Alexandre-io
Copy link
Contributor

@Alexandre-io Alexandre-io commented Jan 27, 2018

Bitfinex: avoid crash when getOrder is called and no order is found:

exchange.js:492
      if (order.status === 'rejected' && order.reject_reason === 'post only') {
                ^

TypeError: Cannot read property 'status' of undefined
    at Object.getOrder (zenbot/extensions/exchanges/bitfinex/exchange.js:492:17)
    at Timeout.checkHold [as _onTimeout] (zenbot/lib/engine.js:279:28)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)

@Alexandre-io Alexandre-io changed the title Bitfinex: avoid crash when getOrder is call and no order are found. Bitfinex: avoid crash when getOrder is called and no order is found. Jan 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants