Username: Password:

Author Topic: TypeError: Cannot read property 'askPrice' of undefined  (Read 10889 times)

Offline crawler13

  • Rookie
  • *
  • Posts: 3
    • View Profile
TypeError: Cannot read property 'askPrice' of undefined
« on: December 29, 2017, 06:21:12 PM »
Gunbot Xmas Edition v.7.0.2

Using Binance as exchange

Getting following error

C:\snapshot\Gunbot-master\node_modules\request\request.js:188
      self._callback.apply(self, arguments)
                     ^

TypeError: Cannot read property 'askPrice' of undefined
    at Binance.parseOrderBook (C:\snapshot\Gunbot-master\ctx\js\binance.js:0:0)
    at module.exports.fetchOrderBook.Promise.binance.allBookTickers (C:\snapshot\Gunbot-master\ctx\js\binance.js:0:0)
    at Request.module.exports._makeRequest.request [as _callback] (C:\snapshot\Gunbot-master\ctx\helper\binance\binance-api.js:0:0)
    at Request.init.self.callback (C:\snapshot\Gunbot-master\node_modules\request\request.js:188:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1171:10)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at IncomingMessage. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1091:12)
    at Object.onceWrapper (events.js:312:19)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1045:12)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickCallback (internal/process/next_tick.js:161:9)
C:\snapshot\Gunbot-master\node_modules\request\request.js:188
      self._callback.apply(self, arguments)
                     ^
Please advise what to do

My Bittrex has not been verified for 10 days now, so I bought another license for Binance, and getting the above error

Thanks




Offline MagicDude4Eva

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: TypeError: Cannot read property 'askPrice' of undefined
« Reply #1 on: December 29, 2017, 07:36:59 PM »
Check your coin pair - it might be wrong. On Binance it is for example ETH-XVG. Unlike some other exchanges, Binance uses 4-letter coin names (i.e. ETH-IOTA).

Offline crawler13

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: TypeError: Cannot read property 'askPrice' of undefined
« Reply #2 on: December 29, 2017, 07:39:52 PM »
Thanks a lot will double check