From 20edb4989551582ed1d40a8716ac0d3d23afbaab Mon Sep 17 00:00:00 2001 From: JJ-Cro Date: Fri, 28 Feb 2025 10:32:51 +0100 Subject: [PATCH] feat(v3.10.34): added slippage tolerance types to order endpoints --- package-lock.json | 4 ++-- package.json | 2 +- src/types/request/v5-trade.ts | 2 ++ src/types/response/v5-trade.ts | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2fe238b..2e18733 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.10.33", + "version": "3.10.34", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.10.33", + "version": "3.10.34", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index a7fa092..786d88a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/types/request/v5-trade.ts b/src/types/request/v5-trade.ts index 123a1a7..b8d42bc 100644 --- a/src/types/request/v5-trade.ts +++ b/src/types/request/v5-trade.ts @@ -18,6 +18,8 @@ export interface OrderParamsV5 { orderType: OrderTypeV5; qty: string; marketUnit?: 'baseCoin' | 'quoteCoin'; + slippageToleranceType: string; + slippageTolerance: string; price?: string; triggerDirection?: 1 | 2; orderFilter?: OrderFilterV5; diff --git a/src/types/response/v5-trade.ts b/src/types/response/v5-trade.ts index f33a309..fb0dc9e 100644 --- a/src/types/response/v5-trade.ts +++ b/src/types/response/v5-trade.ts @@ -42,6 +42,8 @@ export interface AccountOrderV5 { stopOrderType: StopOrderTypeV5; orderIv: string; marketUnit: 'baseCoin' | 'quoteCoin'; + slippageToleranceType: string; + slippageTolerance: string; triggerPrice: string; takeProfit: string; stopLoss: string;