Skip to content

Commit

Permalink
Merge pull request #395 from JJ-Cro/Update181124
Browse files Browse the repository at this point in the history
v3.10.27 feat(): updated request params
  • Loading branch information
tiagosiebler authored Nov 18, 2024
2 parents d1583a9 + 5725b99 commit a88c500
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/rest-client-v5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
3 changes: 3 additions & 0 deletions src/types/request/v5-market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,8 @@ export interface GetLongShortRatioParamsV5 {
category: 'linear' | 'inverse';
symbol: string;
period: OpenInterestIntervalV5;
startTime?: string;
endTime?: string;
limit?: number;
cursor?: string;
}

0 comments on commit a88c500

Please sign in to comment.