bybit-api
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -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 |
{ | ||
"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
130209
2349