Skip to content

Commit

Permalink
v3.7.2: fix() response type for v5 open interest endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Aug 18, 2023
1 parent f8be8a6 commit 9bc1ff8
Show file tree
Hide file tree
Showing 3 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.7.1",
"version": "3.7.2",
"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
5 changes: 4 additions & 1 deletion src/types/response/v5-market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ export interface PublicTradeV5 {
* - openInterest string Open interest
* - timestamp string The timestamp (ms)
*/
export type OpenInterestV5 = [string, string];
export type OpenInterestV5 = {
openInterest: string;
timestamp: string;
};

export interface OpenInterestResponseV5 {
category: 'linear' | 'inverse';
Expand Down

0 comments on commit 9bc1ff8

Please sign in to comment.