Skip to content

Commit

Permalink
add more aggresive exchange fetching for thin markets
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Oct 14, 2016
1 parent d7eb86b commit 9d29c77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/dataStitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ Stitcher.prototype.prepareHistoricalData = function(done) {

log.info('\tUsable local data available, trying to match with exchange data..')
// local data is available, we need the next minute
var idealExchangeStartTimeTS = localData.to - 120;


// make sure we grab back in history far enough
var secondsOverlap = 60 * 15; // 15 minutes
var idealExchangeStartTimeTS = localData.to - secondsOverlap;
var idealExchangeStartTime = moment.unix(idealExchangeStartTimeTS).utc();

// already set the
Expand Down

0 comments on commit 9d29c77

Please sign in to comment.