From 93a6457a1ae5e1a488014ab31a166a488448d17d Mon Sep 17 00:00:00 2001 From: William Date: Mon, 19 Feb 2024 14:27:03 +0100 Subject: [PATCH 1/2] Add `marketUnit` optional property to `OrderParamsV5` interface This commit introduces a new optional `marketUnit` property to the `OrderParamsV5` interface, allowing the specification of 'baseCoin' or 'quoteCoin'. --- src/types/request/v5-trade.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/request/v5-trade.ts b/src/types/request/v5-trade.ts index 4403520..123a1a7 100644 --- a/src/types/request/v5-trade.ts +++ b/src/types/request/v5-trade.ts @@ -17,6 +17,7 @@ export interface OrderParamsV5 { side: OrderSideV5; orderType: OrderTypeV5; qty: string; + marketUnit?: 'baseCoin' | 'quoteCoin'; price?: string; triggerDirection?: 1 | 2; orderFilter?: OrderFilterV5; From 0921cc0e1bfae8e1291427573a49760fc36fd458 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 19 Feb 2024 14:35:03 +0100 Subject: [PATCH 2/2] v3.9.3: Add `marketUnit` property to `OrderParamsV5` interface --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fd2eef2..1def7df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.9.2", + "version": "3.9.3", "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",