bybit-api
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -193,4 +193,5 @@ "use strict"; | ||
const end = Date.now(); | ||
const severTimeMs = serverTime * 1000; | ||
const avgDrift = (end - start) / 2; | ||
return Math.ceil(serverTime - end + avgDrift); | ||
return Math.ceil(severTimeMs - end + avgDrift); | ||
} | ||
@@ -197,0 +198,0 @@ catch (e) { |
@@ -6,2 +6,3 @@ /// <reference types="node" /> | ||
import { KlineInterval } from './types/shared'; | ||
import { RestClientOptions } from './util/requestUtils'; | ||
export declare enum WsConnectionState { | ||
@@ -37,3 +38,3 @@ READY_STATE_INITIAL = 0, | ||
reconnectTimeout?: number; | ||
restOptions?: any; | ||
restOptions?: RestClientOptions; | ||
requestOptions?: any; | ||
@@ -40,0 +41,0 @@ wsUrl?: string; |
{ | ||
"name": "bybit-api", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
174160
3045