New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bybit-api

Package Overview
Dependencies
Maintainers
1
Versions
138
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.0.4 to 2.0.5

14

lib/inverse-client.d.ts

@@ -218,2 +218,16 @@ import { AxiosRequestConfig } from 'axios';

}): GenericAPIResponse;
setPositionMode(params: {
symbol: string;
mode: 0 | 3;
}): GenericAPIResponse;
setSlTpPositionMode(params: {
symbol: string;
tp_sl_mode: 'Full' | 'Partial';
}): GenericAPIResponse;
setMarginType(params: {
symbol: string;
is_isolated: boolean;
buy_leverage: number;
sell_leverage: number;
}): GenericAPIResponse;
/**

@@ -220,0 +234,0 @@ * Risk Limit

@@ -149,2 +149,11 @@ "use strict";

}
setPositionMode(params) {
return this.requestWrapper.post('v2/private/position/switch-mode', params);
}
setSlTpPositionMode(params) {
return this.requestWrapper.post('v2/private/tpsl/switch-mode', params);
}
setMarginType(params) {
return this.requestWrapper.post('v2/private/position/switch-isolated', params);
}
/**

@@ -151,0 +160,0 @@ * Risk Limit

2

package.json
{
"name": "bybit-api",
"version": "2.0.4",
"version": "2.0.5",
"description": "Node.js connector for Bybit's Inverse & Linear REST APIs and WebSockets",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -208,3 +208,3 @@ # bybit-api

// defaults to fase == inverse. Set to true for linear (USDT) trading.
// defaults to false == inverse. Set to true for linear (USDT) trading.
// linear: true

@@ -211,0 +211,0 @@

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