From 9bc1ff89c62796696d9f7cd7851e3de3ecc0c868 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Fri, 18 Aug 2023 15:17:49 +0100 Subject: [PATCH] v3.7.2: fix() response type for v5 open interest endpoint --- package-lock.json | 4 ++-- package.json | 2 +- src/types/response/v5-market.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index e545031..4ca6436 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.7.1", + "version": "3.7.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.7.1", + "version": "3.7.2", "license": "MIT", "dependencies": { "axios": "^0.21.0", diff --git a/package.json b/package.json index 836d4df..4592262 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/types/response/v5-market.ts b/src/types/response/v5-market.ts index 5411b56..d65a1f7 100644 --- a/src/types/response/v5-market.ts +++ b/src/types/response/v5-market.ts @@ -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';