ccxt-private-ws
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -200,3 +200,2 @@ "use strict"; | ||
case 0: | ||
console.log('keep'); | ||
ccxtInstance = new ccxt_1.default['binance'](__assign({}, this.getCredentials())); | ||
@@ -222,3 +221,3 @@ return [4 /*yield*/, ccxtInstance.publicPutUserDataStream({ listenKey: this._listenKey })]; | ||
if (!this._keepAliveInterval) { | ||
this._keepAliveInterval = setInterval(this._keepAlive, 5000); | ||
this._keepAliveInterval = setInterval(this._keepAlive, 1000 * 60 * 30); | ||
} | ||
@@ -225,0 +224,0 @@ this._listenKey = data.listenKey; |
{ | ||
"name": "ccxt-private-ws", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "CCXT compatible private websocket client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -179,3 +179,2 @@ import { | ||
private _keepAlive = async () => { | ||
console.log('keep') | ||
const ccxtInstance = new ccxt['binance']({ ...this.getCredentials() }); | ||
@@ -191,3 +190,3 @@ await ccxtInstance.publicPutUserDataStream({ listenKey: this._listenKey}); | ||
if (!this._keepAliveInterval) { | ||
this._keepAliveInterval= setInterval(this._keepAlive, 5000); | ||
this._keepAliveInterval= setInterval(this._keepAlive, 1000 * 60 * 30); | ||
} | ||
@@ -194,0 +193,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152253
2860