From a06fe80c5fc9d75907b5499e227c3ced879d19bc Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:37:33 +0100 Subject: [PATCH 1/2] v3.10.23 feat(): updated request params --- package-lock.json | 4 ++-- package.json | 2 +- src/rest-client-v5.ts | 2 +- src/types/request/v5-market.ts | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 99fb770..8bc1d5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.10.22", + "version": "3.10.23", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.10.22", + "version": "3.10.23", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index 237d47e..9594562 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.10.22", + "version": "3.10.23", "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/rest-client-v5.ts b/src/rest-client-v5.ts index 7a77635..8bde06d 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -510,7 +510,7 @@ export class RestClientV5 extends BaseRestClient { getLongShortRatio( params: GetLongShortRatioParamsV5, - ): Promise> { + ): Promise>> { return this.get('/v5/market/account-ratio', params); } diff --git a/src/types/request/v5-market.ts b/src/types/request/v5-market.ts index 0619a32..cd02bc9 100644 --- a/src/types/request/v5-market.ts +++ b/src/types/request/v5-market.ts @@ -130,5 +130,8 @@ export interface GetLongShortRatioParamsV5 { category: 'linear' | 'inverse'; symbol: string; period: OpenInterestIntervalV5; + startTime?: string; + endTime?: string; limit?: number; + cursor?: string; } From 811f973edc43555b84c93e4d0d11bfa8efa1f661 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:52:32 +0100 Subject: [PATCH 2/2] fix(): added quotes --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9594562..c4063f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.10.23", + "version": "3.10.27", "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",