v3.10.23 feat(): updated request params

This commit is contained in:
Jerko J
2024-11-18 11:37:33 +01:00
parent 9fae2e0551
commit a06fe80c5f
4 changed files with 7 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.22", "version": "3.10.23",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.22", "version": "3.10.23",
"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.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.", "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

@@ -510,7 +510,7 @@ export class RestClientV5 extends BaseRestClient {
getLongShortRatio( getLongShortRatio(
params: GetLongShortRatioParamsV5, params: GetLongShortRatioParamsV5,
): Promise<APIResponseV3WithTime<{ list: LongShortRatioV5[] }>> { ): Promise<APIResponseV3WithTime<CursorListV5<LongShortRatioV5[]>>> {
return this.get('/v5/market/account-ratio', params); return this.get('/v5/market/account-ratio', params);
} }

View File

@@ -130,5 +130,8 @@ export interface GetLongShortRatioParamsV5 {
category: 'linear' | 'inverse'; category: 'linear' | 'inverse';
symbol: string; symbol: string;
period: OpenInterestIntervalV5; period: OpenInterestIntervalV5;
startTime?: string;
endTime?: string;
limit?: number; limit?: number;
cursor?: string;
} }