Merge pull request #421 from JJ-Cro/update28022025

feat(v3.10.34): added slippage tolerance types to order endpoints
This commit is contained in:
Tiago
2025-02-28 10:51:40 +00:00
committed by GitHub
4 changed files with 7 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.33", "version": "3.10.34",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.33", "version": "3.10.34",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.6.6", "axios": "^1.6.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.33", "version": "3.10.34",
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -18,6 +18,8 @@ export interface OrderParamsV5 {
orderType: OrderTypeV5; orderType: OrderTypeV5;
qty: string; qty: string;
marketUnit?: 'baseCoin' | 'quoteCoin'; marketUnit?: 'baseCoin' | 'quoteCoin';
slippageToleranceType: string;
slippageTolerance: string;
price?: string; price?: string;
triggerDirection?: 1 | 2; triggerDirection?: 1 | 2;
orderFilter?: OrderFilterV5; orderFilter?: OrderFilterV5;

View File

@@ -42,6 +42,8 @@ export interface AccountOrderV5 {
stopOrderType: StopOrderTypeV5; stopOrderType: StopOrderTypeV5;
orderIv: string; orderIv: string;
marketUnit: 'baseCoin' | 'quoteCoin'; marketUnit: 'baseCoin' | 'quoteCoin';
slippageToleranceType: string;
slippageTolerance: string;
triggerPrice: string; triggerPrice: string;
takeProfit: string; takeProfit: string;
stopLoss: string; stopLoss: string;