bybit-api 3.9.7 → 3.9.8

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.
@@ -1,4 +1,4 @@
1
- import { CategoryCursorListV5, CategoryV5, ContractTypeV5, InstrumentStatusV5, OptionTypeV5, OrderSideV5 } from '../v5-shared';
1
+ import { CategoryCursorListV5, CategoryV5, ContractTypeV5, CopyTradingV5, InstrumentStatusV5, MarginTradingV5, OptionTypeV5, OrderSideV5 } from '../v5-shared';
2
2
  /**
3
3
  * OHLCVT candle used by v5 APIs
4
4
  *
@@ -51,13 +51,18 @@ export interface LinearInverseInstrumentInfoV5 {
51
51
  };
52
52
  lotSizeFilter: {
53
53
  maxOrderQty: string;
54
+ maxMktOrderQty: string;
54
55
  minOrderQty: string;
55
56
  qtyStep: string;
56
57
  postOnlyMaxOrderQty?: string;
58
+ minNotionalValue?: string;
57
59
  };
58
60
  unifiedMarginTrade: boolean;
59
61
  fundingInterval: number;
60
62
  settleCoin: string;
63
+ copyTrading: CopyTradingV5;
64
+ upperFundingRate: string;
65
+ lowerFundingRate: string;
61
66
  }
62
67
  export interface OptionInstrumentInfoV5 {
63
68
  symbol: string;
@@ -86,6 +91,7 @@ export interface SpotInstrumentInfoV5 {
86
91
  quoteCoin: string;
87
92
  innovation: '0' | '1';
88
93
  status: InstrumentStatusV5;
94
+ marginTrading: MarginTradingV5;
89
95
  lotSizeFilter: {
90
96
  basePrecision: string;
91
97
  quotePrecision: string;
@@ -97,6 +103,10 @@ export interface SpotInstrumentInfoV5 {
97
103
  priceFilter: {
98
104
  tickSize: string;
99
105
  };
106
+ riskParameters: {
107
+ limitParameter: string;
108
+ marketParameter: string;
109
+ };
100
110
  }
101
111
  type InstrumentInfoV5Mapping = {
102
112
  linear: LinearInverseInstrumentInfoV5[];
@@ -1,6 +1,8 @@
1
1
  export type CategoryV5 = 'spot' | 'linear' | 'inverse' | 'option';
2
2
  export type ContractTypeV5 = 'InversePerpetual' | 'LinearPerpetual' | 'InverseFutures';
3
+ export type CopyTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalOnly';
3
4
  export type InstrumentStatusV5 = 'PreLaunch' | 'Trading' | 'Settling' | 'Delivering' | 'Closed';
5
+ export type MarginTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalSpotOnly';
4
6
  export type OrderFilterV5 = 'Order' | 'tpslOrder' | 'StopOrder';
5
7
  export type OrderSideV5 = 'Buy' | 'Sell';
6
8
  export type OrderTypeV5 = 'Market' | 'Limit';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bybit-api",
3
- "version": "3.9.7",
3
+ "version": "3.9.8",
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",