bybit-api 3.9.1 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ export interface OrderParamsV5 {
6
6
  side: OrderSideV5;
7
7
  orderType: OrderTypeV5;
8
8
  qty: string;
9
+ marketUnit?: 'baseCoin' | 'quoteCoin';
9
10
  price?: string;
10
11
  triggerDirection?: 1 | 2;
11
12
  orderFilter?: OrderFilterV5;
@@ -105,10 +105,10 @@ type InstrumentInfoV5Mapping = {
105
105
  spot: SpotInstrumentInfoV5[];
106
106
  };
107
107
  export type InstrumentInfoResponseV5<C extends CategoryV5> = CategoryCursorListV5<InstrumentInfoV5Mapping[C], C>;
108
- export default interface OrderbookLevelV5 {
109
- price: string;
110
- size: string;
111
- }
108
+ /**
109
+ * [price, size]
110
+ */
111
+ export type OrderbookLevelV5 = [string, string];
112
112
  export interface OrderbookResponseV5 {
113
113
  s: string;
114
114
  b: OrderbookLevelV5[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bybit-api",
3
- "version": "3.9.1",
3
+ "version": "3.9.3",
4
4
  "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",