From 1bf357b5cf49adb2571945417a2564d43bdf1b93 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Tue, 13 Feb 2024 10:15:55 +0000 Subject: [PATCH] v3.9.2: fix(#315) orderbook level type --- package.json | 2 +- src/types/response/v5-market.ts | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 3bd46ca..fd2eef2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.9.1", + "version": "3.9.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 9025e12..0180638 100644 --- a/src/types/response/v5-market.ts +++ b/src/types/response/v5-market.ts @@ -112,18 +112,19 @@ export interface SpotInstrumentInfoV5 { } type InstrumentInfoV5Mapping = { - linear: LinearInverseInstrumentInfoV5[], - inverse: LinearInverseInstrumentInfoV5[], - option: OptionInstrumentInfoV5[], - spot: SpotInstrumentInfoV5[] + linear: LinearInverseInstrumentInfoV5[]; + inverse: LinearInverseInstrumentInfoV5[]; + option: OptionInstrumentInfoV5[]; + spot: SpotInstrumentInfoV5[]; }; -export type InstrumentInfoResponseV5 = CategoryCursorListV5; +export type InstrumentInfoResponseV5 = + CategoryCursorListV5; -export default interface OrderbookLevelV5 { - price: string; - size: string; -} +/** + * [price, size] + */ +export type OrderbookLevelV5 = [string, string]; export interface OrderbookResponseV5 { s: string;