Skip to content

Commit

Permalink
As per Aaron Garvey's suggestion, handling drift
Browse files Browse the repository at this point in the history
  • Loading branch information
cmroche authored and askmike committed Feb 12, 2018
1 parent 5e502a9 commit b5b3593
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions exchanges/binance.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ var Trader = function(config) {
secret: this.secret,
timeout: 15000,
recvWindow: 60000, // suggested by binance
disableBeautification: false
disableBeautification: false,
handleDrift: true,
});

// Binance has tight timing requirements, this will ask their server for the time and store
// a drift value so we can calculate the most accurate timestamp possible form our system time
this.binance.startTimeSync();
};

var retryCritical = {
Expand Down

0 comments on commit b5b3593

Please sign in to comment.