Function this.source.fetch(); getting blocked in marketDataProvider.js
#1
Hello,

I did a strategy where I just display the price on Binance for LUNBTC.
There is not sell/buy. I just want to see how Gekko is working.
I did set the frequency to 1 minute. 
-------------------
 candleSize: 1, //1 minute
-------------------

The tick rate is the default, so, as far as I know this is 20sec.

So, what I expect is that every minute it will display the price for LUNBTC.

The problem is that from time to time it gets blocked.

I did try to investigate by adding logs and here is what I have done.

I have added the below logs in the MarketDataProvider.
--------------------
// HANDLERS
Manager.prototype.retrieve = function() {
 log.debug("Before source.fetch");
 this.source.fetch();
 log.debug("After source.fetch");
}

------------------

I have also added a log.debug entry in the marketFetcher
------------
etcher.prototype.fetch = function() {
 var since = false;
 log.debug('Enter in Fetch ');
 if(this.firstFetch) {
   since = this.firstSince;
   this.firstFetch = false;
 } else
   since = false;

 this.tries = 0;
 log.debug('Requested', this.pair, 'trade data from', this.exchange.name, '...');
 this._fetch(since);
}

----------------------

What I could see is that from time to time I see the log  Before source.fetch but I don't see the log Enter in Fetch.

It can stay like this for hours!
But if I press the ENTER key in the console I directly see the Enter in Fetch log entry.

So, it seems that somehow the  this.source.fetch(); function in the marketDataProvider gets blocked.
I don't know how to avoid that.

Have you ever had this problem?

Thanks in advance for your support.

Alain
  Reply


Messages In This Thread
Function this.source.fetch(); getting blocked in marketDataProvider.js - by philipina - 03-30-2019, 10:14 PM

Forum Jump:


Users browsing this thread: