bybit-api 4.6.4 → 4.7.1

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.
Files changed (48) hide show
  1. package/README.md +1 -0
  2. package/lib/rest-client-v5.d.ts +182 -2
  3. package/lib/rest-client-v5.js +248 -0
  4. package/lib/rest-client-v5.js.map +1 -1
  5. package/lib/types/request/index.d.ts +3 -0
  6. package/lib/types/request/index.js +3 -0
  7. package/lib/types/request/index.js.map +1 -1
  8. package/lib/types/request/v5-account.d.ts +1 -0
  9. package/lib/types/request/v5-alpha-lp.d.ts +42 -0
  10. package/lib/types/request/v5-alpha-lp.js +6 -0
  11. package/lib/types/request/v5-alpha-lp.js.map +1 -0
  12. package/lib/types/request/v5-alpha-prediction.d.ts +91 -0
  13. package/lib/types/request/v5-alpha-prediction.js +6 -0
  14. package/lib/types/request/v5-alpha-prediction.js.map +1 -0
  15. package/lib/types/request/v5-asset.d.ts +10 -0
  16. package/lib/types/request/v5-crypto-loan.d.ts +3 -0
  17. package/lib/types/request/v5-earn.d.ts +3 -0
  18. package/lib/types/request/v5-position.d.ts +4 -0
  19. package/lib/types/request/v5-rwa.d.ts +30 -0
  20. package/lib/types/request/v5-rwa.js +6 -0
  21. package/lib/types/request/v5-rwa.js.map +1 -0
  22. package/lib/types/request/v5-trade.d.ts +1 -0
  23. package/lib/types/response/index.d.ts +3 -0
  24. package/lib/types/response/index.js +3 -0
  25. package/lib/types/response/index.js.map +1 -1
  26. package/lib/types/response/v5-account.d.ts +2 -0
  27. package/lib/types/response/v5-alpha-lp.d.ts +121 -0
  28. package/lib/types/response/v5-alpha-lp.js +6 -0
  29. package/lib/types/response/v5-alpha-lp.js.map +1 -0
  30. package/lib/types/response/v5-alpha-prediction.d.ts +225 -0
  31. package/lib/types/response/v5-alpha-prediction.js +6 -0
  32. package/lib/types/response/v5-alpha-prediction.js.map +1 -0
  33. package/lib/types/response/v5-asset.d.ts +3 -0
  34. package/lib/types/response/v5-crypto-loan.d.ts +51 -0
  35. package/lib/types/response/v5-earn.d.ts +34 -0
  36. package/lib/types/response/v5-market.d.ts +3 -0
  37. package/lib/types/response/v5-position.d.ts +10 -0
  38. package/lib/types/response/v5-rwa.d.ts +73 -0
  39. package/lib/types/response/v5-rwa.js +6 -0
  40. package/lib/types/response/v5-rwa.js.map +1 -0
  41. package/lib/types/response/v5-trade.d.ts +5 -0
  42. package/lib/types/websockets/ws-events.d.ts +6 -0
  43. package/lib/types/websockets/ws-general.d.ts +1 -1
  44. package/lib/websocket-client.d.ts +1 -2
  45. package/lib/websocket-client.js +1 -0
  46. package/lib/websocket-client.js.map +1 -1
  47. package/llms.txt +11177 -9930
  48. package/package.json +3 -3
@@ -0,0 +1,121 @@
1
+ /**
2
+ * V5 private Alpha LP responses.
3
+ */
4
+ export interface AlphaLPPoolV5 {
5
+ poolAddress: string;
6
+ poolName: string;
7
+ poolTag: string;
8
+ apy: string;
9
+ tvl: string;
10
+ token0Symbol: string;
11
+ token0IconUrlDay: string;
12
+ token0IconUrlNight: string;
13
+ token1Symbol: string;
14
+ token1IconUrlDay: string;
15
+ token1IconUrlNight: string;
16
+ chainCode: string;
17
+ chainIconUrl: string;
18
+ }
19
+ export interface AlphaLPPoolListResultV5 {
20
+ pools: AlphaLPPoolV5[];
21
+ }
22
+ export interface AlphaLPPoolInfoV5 {
23
+ poolAddress: string;
24
+ poolName: string;
25
+ apy: string;
26
+ tvl: string;
27
+ feeRate: string;
28
+ token0Symbol: string;
29
+ token0Reserve: string;
30
+ token1Symbol: string;
31
+ token1Reserve: string;
32
+ priceRangeLower: string;
33
+ priceRangeUpper: string;
34
+ currentPrice: string;
35
+ }
36
+ export interface ExecuteAlphaLPStakeResultV5 {
37
+ positionId: number;
38
+ orderNo: string;
39
+ }
40
+ export interface ExecuteAlphaLPRedeemResultV5 {
41
+ orderNo: string;
42
+ }
43
+ export interface AlphaLPOrderV5 {
44
+ orderType: number;
45
+ orderNo: string;
46
+ orderStatus: number;
47
+ poolAddress: string;
48
+ poolName: string;
49
+ positionId: number;
50
+ tokenCode: string;
51
+ tokenSymbol: string;
52
+ tokenIconUrlDay: string;
53
+ tokenIconUrlNight: string;
54
+ amount: string;
55
+ chainCode: string;
56
+ chainIconUrl: string;
57
+ gasTokenSymbol: string;
58
+ gasOnchain: string;
59
+ gasUsd: string | null;
60
+ platformFee: string;
61
+ platformFeeUsd: string | null;
62
+ createTime: number;
63
+ executionTime: number;
64
+ failureReason?: string;
65
+ dercRatio?: string;
66
+ }
67
+ export interface AlphaLPOrderListResultV5 {
68
+ total: number;
69
+ pageIndex: number;
70
+ orders: AlphaLPOrderV5[];
71
+ }
72
+ export interface AlphaLPPayTokenV5 {
73
+ tokenCode: string;
74
+ tokenSymbol: string;
75
+ chainCode: string;
76
+ chainIconUrl: string;
77
+ decimals: number;
78
+ availableBalance: string;
79
+ tokenIconUrlDay: string;
80
+ tokenIconUrlNight: string;
81
+ minStakeAmount: string;
82
+ maxStakeAmount: string;
83
+ }
84
+ export interface AlphaLPPayTokenListResultV5 {
85
+ tokens: AlphaLPPayTokenV5[];
86
+ }
87
+ export interface AlphaLPPayTokenPriceV5 {
88
+ tokenCode: string;
89
+ tokenSymbol: string;
90
+ priceUsd: string;
91
+ chainCode: string;
92
+ updateTime: number;
93
+ }
94
+ export interface AlphaLPPayTokenPriceResultV5 {
95
+ prices: AlphaLPPayTokenPriceV5[];
96
+ }
97
+ export interface AlphaLPPositionV5 {
98
+ positionId: number;
99
+ poolAddress: string;
100
+ poolName: string;
101
+ stakedAmount: string;
102
+ stakedTokenCode: string;
103
+ stakedTokenSymbol: string;
104
+ currentValueUsd: string;
105
+ earnedRewardsUsd: string;
106
+ unrealizedPnl: string;
107
+ realizedPnl: string;
108
+ apy: string;
109
+ token0Amount: string;
110
+ token0Symbol: string;
111
+ token1Amount: string;
112
+ token1Symbol: string;
113
+ rangeUpper: string;
114
+ rangeLower: string;
115
+ createTime: number;
116
+ updateTime: number;
117
+ status: number;
118
+ }
119
+ export interface AlphaLPPositionListResultV5 {
120
+ positions: AlphaLPPositionV5[];
121
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * V5 private Alpha LP responses.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=v5-alpha-lp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5-alpha-lp.js","sourceRoot":"","sources":["../../../src/types/response/v5-alpha-lp.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,225 @@
1
+ /**
2
+ * V5 private Alpha prediction market responses.
3
+ */
4
+ export interface AlphaPredictionEngineStatusV5 {
5
+ available: boolean;
6
+ }
7
+ export interface AlphaPredictionPayTokenV5 {
8
+ tokenCode: string;
9
+ symbol: string;
10
+ tokenDecimals: number;
11
+ tokenIconUrlDay: string;
12
+ tokenIconUrlNight: string;
13
+ supportChains: string[];
14
+ }
15
+ export interface AlphaPredictionMarketV5 {
16
+ tokenId: string;
17
+ outcome: string;
18
+ price: string;
19
+ side: number;
20
+ volume: string;
21
+ liquidity: string;
22
+ }
23
+ export interface AlphaPredictionEventDetailV5 {
24
+ eventId: string;
25
+ slug: string;
26
+ title: string;
27
+ description: string;
28
+ category: string;
29
+ endDate: number;
30
+ resolved: boolean;
31
+ volume: string;
32
+ liquidity: string;
33
+ markets: AlphaPredictionMarketV5[];
34
+ }
35
+ export interface AlphaPredictionOrderEstimateFeeDetailV5 {
36
+ serverFee: string;
37
+ polymarketFee: string;
38
+ }
39
+ export interface AlphaPredictionOrderEstimateV5 {
40
+ avgPrice: string;
41
+ estimatedCost: string;
42
+ estimatedReceive: string;
43
+ toWin?: string;
44
+ feeAmount: string;
45
+ feeDetail: AlphaPredictionOrderEstimateFeeDetailV5;
46
+ slippage: string;
47
+ }
48
+ export interface ExecuteAlphaPredictionOrderResultV5 {
49
+ orderNo: string;
50
+ }
51
+ export interface AlphaPredictionOrderV5 {
52
+ orderNo: string;
53
+ tokenId: string;
54
+ eventId: string;
55
+ side: number;
56
+ orderType: number;
57
+ orderAmount: string;
58
+ filledSize: string;
59
+ filledPrice: string;
60
+ totalFee: string;
61
+ status: number;
62
+ createdAt: number;
63
+ updatedAt: number;
64
+ }
65
+ export interface AlphaPredictionOrderListResultV5 {
66
+ orders: AlphaPredictionOrderV5[];
67
+ total: number;
68
+ pageIndex: number;
69
+ }
70
+ export interface AlphaPredictionOrderBookLevelV5 {
71
+ price: string;
72
+ size: string;
73
+ }
74
+ export interface AlphaPredictionOrderBookV5 {
75
+ tokenId: string;
76
+ bids: AlphaPredictionOrderBookLevelV5[];
77
+ asks: AlphaPredictionOrderBookLevelV5[];
78
+ }
79
+ export interface AlphaPredictionTokenPriceV5 {
80
+ tokenId: string;
81
+ bestBid: string;
82
+ bestAsk: string;
83
+ lastPrice: string;
84
+ volume24h: string;
85
+ updateTime: number;
86
+ }
87
+ export interface AlphaPredictionPriceHistoryCandleV5 {
88
+ openTime: number;
89
+ open: string;
90
+ high: string;
91
+ low: string;
92
+ close: string;
93
+ volume: string;
94
+ }
95
+ export interface AlphaPredictionPriceHistoryV5 {
96
+ tokenId: string;
97
+ interval: string;
98
+ list: AlphaPredictionPriceHistoryCandleV5[];
99
+ }
100
+ export interface AlphaPredictionPositionV5 {
101
+ positionId: string;
102
+ tokenId: string;
103
+ eventId: string;
104
+ outcomeName: string;
105
+ shares: string;
106
+ cost: string;
107
+ avgPrice: string;
108
+ currentPrice: string;
109
+ value: string;
110
+ unrealizedPnl: string;
111
+ unrealizedPnlRate: string;
112
+ createdAt: number;
113
+ finished: boolean;
114
+ }
115
+ export interface AlphaPredictionPositionListResultV5 {
116
+ positions: AlphaPredictionPositionV5[];
117
+ total: number;
118
+ totalAssetUsd: string;
119
+ }
120
+ export interface AlphaPredictionPositionHistoryV5 {
121
+ positionId: string;
122
+ tokenId: string;
123
+ eventId: string;
124
+ outcomeName: string;
125
+ shares: string;
126
+ cost: string;
127
+ avgPrice: string;
128
+ exitPrice: string;
129
+ realizedPnl: string;
130
+ realizedPnlRate: string;
131
+ result: number;
132
+ closedAt: number;
133
+ }
134
+ export interface AlphaPredictionPositionHistoryResultV5 {
135
+ positions: AlphaPredictionPositionHistoryV5[];
136
+ total: number;
137
+ }
138
+ export interface AlphaPredictionPortfolioSummaryV5 {
139
+ positionValue: string;
140
+ positionValueUsd: string;
141
+ biggestWin: string;
142
+ winRate: string;
143
+ winCount: number;
144
+ lossCount: number;
145
+ }
146
+ export interface AlphaPredictionSideMarketTokenV5 {
147
+ tokenId: string;
148
+ outcome: string;
149
+ price: string;
150
+ liquidity: string;
151
+ }
152
+ export interface AlphaPredictionSideMarketV5 {
153
+ marketId: string;
154
+ eventId: string;
155
+ marketType: number;
156
+ question: string;
157
+ tokens: AlphaPredictionSideMarketTokenV5[];
158
+ volume24h: string;
159
+ endDate: number;
160
+ status: number;
161
+ }
162
+ export interface AlphaPredictionSideMarketListResultV5 {
163
+ list: AlphaPredictionSideMarketV5[];
164
+ total: number;
165
+ pageIndex: number;
166
+ pageSize: number;
167
+ }
168
+ export interface AlphaPredictionSportsMatchV5 {
169
+ matchId: string;
170
+ eventType: number;
171
+ stageCode: string;
172
+ homeTeam: string;
173
+ awayTeam: string;
174
+ matchTime: number;
175
+ status: number;
176
+ eventId: string;
177
+ }
178
+ export interface AlphaPredictionSportsMatchListResultV5 {
179
+ list: AlphaPredictionSportsMatchV5[];
180
+ total: number;
181
+ pageIndex: number;
182
+ pageSize: number;
183
+ }
184
+ export interface AlphaPredictionSportsTimelineStageV5 {
185
+ stageCode: string;
186
+ stageName: string;
187
+ status: number;
188
+ matchCount: number;
189
+ startTime: number;
190
+ endTime: number;
191
+ }
192
+ export interface AlphaPredictionSportsTimelineStagesV5 {
193
+ eventType: number;
194
+ stages: AlphaPredictionSportsTimelineStageV5[];
195
+ }
196
+ export interface AlphaPredictionSportsGroupStandingV5 {
197
+ rank: number;
198
+ teamName: string;
199
+ played: number;
200
+ won: number;
201
+ drawn: number;
202
+ lost: number;
203
+ goalsFor: number;
204
+ goalsAgainst: number;
205
+ goalDifference: number;
206
+ points: number;
207
+ }
208
+ export interface AlphaPredictionSportsGroupMatchV5 {
209
+ matchId: string;
210
+ homeTeam: string;
211
+ awayTeam: string;
212
+ matchTime: number;
213
+ status: number;
214
+ homeScore: number;
215
+ awayScore: number;
216
+ eventId: string;
217
+ }
218
+ export interface AlphaPredictionSportsGroupV5 {
219
+ groupName: string;
220
+ standings: AlphaPredictionSportsGroupStandingV5[];
221
+ matches: AlphaPredictionSportsGroupMatchV5[];
222
+ }
223
+ export interface AlphaPredictionSportsGroupStageDetailV5 {
224
+ groups: AlphaPredictionSportsGroupV5[];
225
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * V5 private Alpha prediction market responses.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=v5-alpha-prediction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5-alpha-prediction.js","sourceRoot":"","sources":["../../../src/types/response/v5-alpha-prediction.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -109,6 +109,9 @@ export interface DepositRecordV5 {
109
109
  depositType: string;
110
110
  fromAddress: string;
111
111
  }
112
+ export interface SubmitDepositOriginatorInfoResultV5 {
113
+ travelRuleStatus: number;
114
+ }
112
115
  export interface InternalDepositRecordV5 {
113
116
  id: string;
114
117
  type: 1;
@@ -156,6 +156,7 @@ export interface CryptoLoanPositionV5 {
156
156
  totalCollateral: string;
157
157
  totalDebt: string;
158
158
  totalSupply: string;
159
+ colRes?: string;
159
160
  }
160
161
  export interface BorrowFlexibleV5 {
161
162
  orderId: string;
@@ -283,6 +284,56 @@ export interface RenewOrderInfoFixedV5 {
283
284
  renewLoanNo: string;
284
285
  time: string;
285
286
  }
287
+ export interface InstitutionalLendingProductInfoV5 {
288
+ productId: string;
289
+ leverage: string;
290
+ supportSpot: number;
291
+ supportContract: number;
292
+ supportMarginTrading: number;
293
+ withdrawLine: string;
294
+ transferLine: string;
295
+ spotBuyLine: string;
296
+ spotSellLine: string;
297
+ contractOpenLine: string;
298
+ liquidationLine: string;
299
+ stopLiquidationLine: string;
300
+ contractLeverage: string;
301
+ transferRatio: string;
302
+ spotSymbols: unknown[];
303
+ contractSymbols: unknown[];
304
+ supportUSDCContract: number;
305
+ supportUSDCOptions: number;
306
+ USDTPerpetualOpenLine?: string;
307
+ USDCContractOpenLine?: string;
308
+ USDCOptionsOpenLine?: string;
309
+ USDTPerpetualCloseLine?: string;
310
+ USDCContractCloseLine?: string;
311
+ USDCOptionsCloseLine?: string;
312
+ USDTPerpetualLeverage?: {
313
+ symbol: string;
314
+ leverage: string;
315
+ }[];
316
+ USDCContractLeverage?: {
317
+ symbol: string;
318
+ leverage: string;
319
+ }[];
320
+ deferredLiquidationLine?: string;
321
+ deferredLiquidationTime?: string;
322
+ marginLeverage?: string;
323
+ /** `0`: Default, `1`: CTA, `2`: Hedge */
324
+ productType?: '0' | '1' | '2' | string;
325
+ }
326
+ export interface InstitutionalLendingCoinDeltaItemV5 {
327
+ coin: string;
328
+ coinDeltaSize: string;
329
+ coinDeltaAvailableAmount: string;
330
+ coinDeltaAmount: string;
331
+ }
332
+ export interface InstitutionalLendingCoinDeltaAmountV5 {
333
+ riskUnitDeltaAmount: string;
334
+ riskUnitDeltaAvailableAmount: string;
335
+ list: InstitutionalLendingCoinDeltaItemV5[];
336
+ }
286
337
  export interface UnpaidInfoV5 {
287
338
  token: string;
288
339
  unpaidQty: string;
@@ -1,3 +1,37 @@
1
+ export interface EarnInterestCardV5 {
2
+ awardId: number;
3
+ specCode: string;
4
+ coin: string;
5
+ apy: string;
6
+ duration: number;
7
+ claimedAt: number;
8
+ expireAt: number;
9
+ usedAt: number;
10
+ status: 'InUse' | 'NotUse' | 'Expired' | 'AlreadyUsed' | string;
11
+ currentPnl: string;
12
+ limitPnl: string;
13
+ positionEffectiveAmount: string;
14
+ productId: number;
15
+ category: 'FlexibleSaving' | 'DualAssets' | string;
16
+ }
17
+ export interface EarnAwardCardV5 {
18
+ awardId: number;
19
+ specCode: string;
20
+ claimedAt: number;
21
+ usedAt: number;
22
+ expireAt: number;
23
+ status: 'InUse' | 'NotUse' | 'Expired' | 'AlreadyUsed' | string;
24
+ amount: string;
25
+ limitPnlPercentage: string;
26
+ baseCoin: string;
27
+ quoteCoin: string;
28
+ direction: 1 | 2;
29
+ category: 'FlexibleSaving' | 'DualAssets' | string;
30
+ }
31
+ export interface EarnCouponListResultV5 {
32
+ interestCards: EarnInterestCardV5[];
33
+ awardCards: EarnAwardCardV5[];
34
+ }
1
35
  export interface EarnProductV5 {
2
36
  category: string;
3
37
  estimateApr: string;
@@ -208,6 +208,8 @@ export interface TickerLinearInverseV5 {
208
208
  prevPrice1h: string;
209
209
  openInterest: string;
210
210
  openInterestValue: string;
211
+ singleOpenInterest?: string;
212
+ singleOpenInterestValue?: string;
211
213
  turnover24h: string;
212
214
  volume24h: string;
213
215
  fundingRate: string;
@@ -297,6 +299,7 @@ export interface PublicTradeV5 {
297
299
  */
298
300
  export type OpenInterestV5 = {
299
301
  openInterest: string;
302
+ singleOpenInterest?: string;
300
303
  timestamp: string;
301
304
  };
302
305
  export interface OpenInterestResponseV5 {
@@ -1,4 +1,14 @@
1
1
  import { CategoryV5, ExecTypeV5, OrderSideV5, OrderTypeV5, PositionIdx, PositionSideV5, PositionStatusV5, StopOrderTypeV5, TPSLModeV5, TradeModeV5 } from '../shared-v5';
2
+ export interface FuturesLeverageItemV5 {
3
+ symbol: string;
4
+ leverage: string;
5
+ side: OrderSideV5 | '';
6
+ positionIdx: PositionIdx;
7
+ }
8
+ export interface FuturesLeverageResultV5 {
9
+ category: 'linear' | 'inverse';
10
+ list: FuturesLeverageItemV5[];
11
+ }
2
12
  export interface PositionV5 {
3
13
  positionIdx: PositionIdx;
4
14
  riskId: number;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * V5 RWA (Real World Assets) earn responses.
3
+ */
4
+ export interface RWAProductV5 {
5
+ productId: number;
6
+ coin: string;
7
+ assetSymbol: string;
8
+ manager: string;
9
+ baseApr: string;
10
+ bonusApr: string;
11
+ savingType: 'Flexible' | 'Fixed' | string;
12
+ duration: number;
13
+ nav: string;
14
+ minStakeAmount: string;
15
+ maxStakeAmount: string;
16
+ userMaxAmount: string;
17
+ userQuota: string;
18
+ minRedeemShare: string;
19
+ redeemFeeRate: string;
20
+ subscriptionFee: string;
21
+ extLink: string;
22
+ amountPrecision: number;
23
+ sharePrecision: number;
24
+ }
25
+ export interface RWAProductListResultV5 {
26
+ list: RWAProductV5[];
27
+ }
28
+ export interface PlaceRWAOrderResultV5 {
29
+ orderId: string;
30
+ orderLinkId: string;
31
+ }
32
+ export interface RWAPositionV5 {
33
+ productId: number;
34
+ coin: string;
35
+ assetSymbol: string;
36
+ effectiveShare: string;
37
+ processingStakeAmount: string;
38
+ processingRedeemShare: string;
39
+ bonusEarned: string;
40
+ nav: string;
41
+ holdAmount: string;
42
+ duration: number;
43
+ }
44
+ export interface RWAPositionListResultV5 {
45
+ list: RWAPositionV5[];
46
+ }
47
+ export interface RWAOrderV5 {
48
+ orderId: string;
49
+ orderLinkId: string;
50
+ orderType: 'Stake' | 'Redeem';
51
+ productId: number;
52
+ coin: string;
53
+ stakeAmount?: string;
54
+ redeemShares?: string;
55
+ status: 'Processing' | 'Success' | 'Failed' | string;
56
+ accountType: 'FUND' | 'UNIFIED' | string;
57
+ createdTime: number;
58
+ updatedTime: number;
59
+ settledShares?: string;
60
+ settledAmount?: string;
61
+ }
62
+ export interface RWAOrderListResultV5 {
63
+ list: RWAOrderV5[];
64
+ nextPageCursor: string;
65
+ }
66
+ export interface RWANavChartPointV5 {
67
+ date: string;
68
+ nav: string;
69
+ }
70
+ export interface RWANavChartResultV5 {
71
+ productId: number;
72
+ list: RWANavChartPointV5[];
73
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * V5 RWA (Real World Assets) earn responses.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=v5-rwa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5-rwa.js","sourceRoot":"","sources":["../../../src/types/response/v5-rwa.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -54,6 +54,11 @@ export interface AccountOrderV5 {
54
54
  updatedTime: string;
55
55
  extraFees: string;
56
56
  cumFeeDetail?: Record<string, string>;
57
+ rpiTakerAccess?: boolean;
58
+ rpiMatchedQty?: string;
59
+ fromAccount?: string;
60
+ toAccount?: string;
61
+ externalEventType?: string;
57
62
  }
58
63
  export interface BatchCreateOrderResultV5 {
59
64
  category: CategoryV5;
@@ -78,6 +78,8 @@ export interface WSTickerV5 {
78
78
  indexPrice: string;
79
79
  openInterest: string;
80
80
  openInterestValue: string;
81
+ singleOpenInterest?: string;
82
+ singleOpenInterestValue?: string;
81
83
  turnover24h: string;
82
84
  volume24h: string;
83
85
  nextFundingTime: string;
@@ -254,6 +256,8 @@ export interface WSAccountOrderV5 {
254
256
  createdTime: string;
255
257
  updatedTime: string;
256
258
  cumFeeDetail?: Record<string, string>;
259
+ rpiTakerAccess?: boolean;
260
+ rpiMatchedQty?: string;
257
261
  }
258
262
  export type WSAccountOrderEventV5 = WSPrivateTopicEventV5<'order', WSAccountOrderV5[]>;
259
263
  export interface WSExecutionV5 {
@@ -304,6 +308,7 @@ export interface WSExecutionFastV5 {
304
308
  side: OrderSideV5;
305
309
  execTime: string;
306
310
  seq: number;
311
+ liquidity?: string;
307
312
  }
308
313
  export type WSExecutionFastEventV5 = WSPrivateTopicEventV5<'execution.fast', WSExecutionFastV5[]>;
309
314
  export interface WSCoinV5 {
@@ -327,6 +332,7 @@ export interface WSCoinV5 {
327
332
  collateralSwitch: boolean;
328
333
  marginCollateral: boolean;
329
334
  spotBorrow: string;
335
+ colRes?: string;
330
336
  }
331
337
  export interface WSWalletV5 {
332
338
  accountType: string;
@@ -56,7 +56,7 @@ export interface WSClientConfigurableOptions {
56
56
  wsOptions?: {
57
57
  protocols?: string[];
58
58
  agent?: any;
59
- } & Partial<WebSocket.ClientOptions | ClientRequestArgs>;
59
+ } & (Omit<Partial<WebSocket.ClientOptions>, 'agent'> | Omit<Partial<ClientRequestArgs>, 'agent'>);
60
60
  wsUrl?: string;
61
61
  /**
62
62
  * Default: false.
@@ -1,4 +1,3 @@
1
- import WebSocket from 'isomorphic-ws';
2
1
  import { CategoryV5, MessageEventLike, WSClientConfigurableOptions, WsKey, WsMarket, WsTopic } from './types';
3
2
  import { Exact, WSAPIOperation, WsAPIOperationResponseMap, WsAPITopicRequestParamMap, WsAPIWsKeyTopicMap, WsOperation, WsRequestOperationBybit } from './types/websockets/ws-api';
4
3
  import { DefaultLogger, WS_KEY_MAP, WSConnectedResult, WsTopicRequest } from './util';
@@ -22,7 +21,7 @@ export declare class WebsocketClient extends BaseWebsocketClient<WsKey, WsReques
22
21
  */
23
22
  connectWSAPI(): Promise<unknown>;
24
23
  connectPublic(): Promise<WSConnectedResult | undefined>[];
25
- connectPrivate(): Promise<WebSocket | undefined>;
24
+ connectPrivate(): Promise<WSConnectedResult | undefined>;
26
25
  /**
27
26
  * Subscribe to V5 topics & track/persist them.
28
27
  * @param wsTopics - topic or list of topics
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
3
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
4
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
5
  return new (P || (P = Promise))(function (resolve, reject) {