Function this.source.fetch(); getting blocked in marketDataProvider.js - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html) +--- Thread: Function this.source.fetch(); getting blocked in marketDataProvider.js (/thread-57889.html) |
Function this.source.fetch(); getting blocked in marketDataProvider.js - philipina - 03-30-2019 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 RE: Function this.source.fetch(); getting blocked in marketDataProvider.js - philipina - 04-02-2019 We can close this topic. Since I have redirected my console logs into a file (instead of displaying everything in the windows command console) I did not face this issue anymore. Now I enjoy writting my strategy THANKS A LOT FOR THIS VERY NICE TOOL!!!!!!! RE: Function this.source.fetch(); getting blocked in marketDataProvider.js - philipina - 04-14-2019 (04-02-2019, 01:40 PM)philipina Wrote: We can close this topic. |