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",
"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",

View File

@@ -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",

View File

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

View File

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