Merge pull request #395 from JJ-Cro/Update181124

v3.10.27 feat(): updated request params
This commit is contained in:
Tiago
2024-11-18 10:59:28 +00:00
committed by GitHub
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.25",
"version": "3.10.27",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "bybit-api",
"version": "3.10.25",
"version": "3.10.27",
"license": "MIT",
"dependencies": {
"axios": "^1.6.6",

View File

@@ -1,6 +1,6 @@
{
"name": "bybit-api",
"version": "3.10.26",
"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",

View File

@@ -511,7 +511,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;
}