Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bybit-api

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bybit-api - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

3

lib/util/BaseRestClient.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc