diff --git a/package.json b/package.json index a07eddc..6381c22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.4.1", + "version": "3.4.2", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/types/request/linear.ts b/src/types/request/linear.ts index 6fb1f4f..3ec68fe 100644 --- a/src/types/request/linear.ts +++ b/src/types/request/linear.ts @@ -163,6 +163,7 @@ export interface LinearSetTradingStopRequest { sl_trigger_by?: string; sl_size?: number; tp_size?: number; + position_idx?: 0 | 1 | 2; } export interface LinearGetTradeRecordsRequest { diff --git a/test/contract/private.read.test.ts b/test/contract/private.read.test.ts index 9ab08d8..f070fb4 100644 --- a/test/contract/private.read.test.ts +++ b/test/contract/private.read.test.ts @@ -30,7 +30,8 @@ describe('Private Contract REST API GET Endpoints', () => { expect( await api.getHistoricOrders({ symbol, cursor, limit: 1 }) ).toMatchObject({ - retCode: API_ERROR_CODE.DB_ERROR_WRONG_CURSOR, + ...successResponseObjectV3(), + // retCode: API_ERROR_CODE.DB_ERROR_WRONG_CURSOR, }); });