bybit-api 4.6.1 → 4.6.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.
Files changed (86) hide show
  1. package/README.md +1 -0
  2. package/lib/constants/enum.d.ts +1 -0
  3. package/lib/constants/enum.js +1 -0
  4. package/lib/constants/enum.js.map +1 -1
  5. package/lib/rest-client-v5.d.ts +503 -18
  6. package/lib/rest-client-v5.js +634 -5
  7. package/lib/rest-client-v5.js.map +1 -1
  8. package/lib/types/request/index.d.ts +8 -0
  9. package/lib/types/request/index.js +8 -0
  10. package/lib/types/request/index.js.map +1 -1
  11. package/lib/types/request/v5-account.d.ts +25 -1
  12. package/lib/types/request/v5-alpha-trade.d.ts +52 -0
  13. package/lib/types/request/v5-alpha-trade.js +6 -0
  14. package/lib/types/request/v5-alpha-trade.js.map +1 -0
  15. package/lib/types/request/v5-asset.d.ts +26 -2
  16. package/lib/types/request/v5-card.d.ts +51 -0
  17. package/lib/types/request/v5-card.js +7 -0
  18. package/lib/types/request/v5-card.js.map +1 -0
  19. package/lib/types/request/v5-crypto-loan.d.ts +8 -0
  20. package/lib/types/request/v5-earn-advance-discount.d.ts +75 -0
  21. package/lib/types/request/v5-earn-advance-discount.js +3 -0
  22. package/lib/types/request/v5-earn-advance-discount.js.map +1 -0
  23. package/lib/types/request/v5-earn-fixed-term.d.ts +42 -0
  24. package/lib/types/request/v5-earn-fixed-term.js +3 -0
  25. package/lib/types/request/v5-earn-fixed-term.js.map +1 -0
  26. package/lib/types/request/v5-earn-liquidity-mining.d.ts +7 -0
  27. package/lib/types/request/v5-earn-liquidity-mining.js +3 -0
  28. package/lib/types/request/v5-earn-liquidity-mining.js.map +1 -0
  29. package/lib/types/request/v5-earn-pwm.d.ts +167 -0
  30. package/lib/types/request/v5-earn-pwm.js +3 -0
  31. package/lib/types/request/v5-earn-pwm.js.map +1 -0
  32. package/lib/types/request/v5-earn-token.d.ts +49 -0
  33. package/lib/types/request/v5-earn-token.js +6 -0
  34. package/lib/types/request/v5-earn-token.js.map +1 -0
  35. package/lib/types/request/v5-earn.d.ts +35 -0
  36. package/lib/types/request/v5-market.d.ts +10 -3
  37. package/lib/types/request/v5-spot-leverage-token.d.ts +46 -0
  38. package/lib/types/request/v5-spreadtrading.d.ts +7 -0
  39. package/lib/types/request/v5-strategy.d.ts +80 -0
  40. package/lib/types/request/v5-strategy.js +3 -0
  41. package/lib/types/request/v5-strategy.js.map +1 -0
  42. package/lib/types/request/v5-user.d.ts +29 -3
  43. package/lib/types/response/index.d.ts +8 -0
  44. package/lib/types/response/index.js +8 -0
  45. package/lib/types/response/index.js.map +1 -1
  46. package/lib/types/response/v5-account.d.ts +76 -0
  47. package/lib/types/response/v5-alpha-trade.d.ts +170 -0
  48. package/lib/types/response/v5-alpha-trade.js +6 -0
  49. package/lib/types/response/v5-alpha-trade.js.map +1 -0
  50. package/lib/types/response/v5-asset.d.ts +128 -10
  51. package/lib/types/response/v5-card.d.ts +118 -0
  52. package/lib/types/response/v5-card.js +3 -0
  53. package/lib/types/response/v5-card.js.map +1 -0
  54. package/lib/types/response/v5-earn-advance-discount.d.ts +143 -0
  55. package/lib/types/response/v5-earn-advance-discount.js +3 -0
  56. package/lib/types/response/v5-earn-advance-discount.js.map +1 -0
  57. package/lib/types/response/v5-earn-fixed-term.d.ts +102 -0
  58. package/lib/types/response/v5-earn-fixed-term.js +3 -0
  59. package/lib/types/response/v5-earn-fixed-term.js.map +1 -0
  60. package/lib/types/response/v5-earn-liquidity-mining.d.ts +31 -0
  61. package/lib/types/response/v5-earn-liquidity-mining.js +3 -0
  62. package/lib/types/response/v5-earn-liquidity-mining.js.map +1 -0
  63. package/lib/types/response/v5-earn-pwm.d.ts +425 -0
  64. package/lib/types/response/v5-earn-pwm.js +3 -0
  65. package/lib/types/response/v5-earn-pwm.js.map +1 -0
  66. package/lib/types/response/v5-earn-token.d.ts +62 -0
  67. package/lib/types/response/v5-earn-token.js +6 -0
  68. package/lib/types/response/v5-earn-token.js.map +1 -0
  69. package/lib/types/response/v5-earn.d.ts +141 -0
  70. package/lib/types/response/v5-market.d.ts +16 -4
  71. package/lib/types/response/v5-position.d.ts +2 -0
  72. package/lib/types/response/v5-spot-leverage-token.d.ts +56 -0
  73. package/lib/types/response/v5-spreadtrading.d.ts +5 -0
  74. package/lib/types/response/v5-strategy.d.ts +96 -0
  75. package/lib/types/response/v5-strategy.js +3 -0
  76. package/lib/types/response/v5-strategy.js.map +1 -0
  77. package/lib/types/response/v5-user.d.ts +30 -0
  78. package/lib/types/shared-v5.d.ts +20 -1
  79. package/lib/types/websockets/ws-events.d.ts +2 -0
  80. package/lib/util/webCryptoAPI.d.ts +1 -1
  81. package/lib/util/webCryptoAPI.js +1 -1
  82. package/lib/util/webCryptoAPI.js.map +1 -1
  83. package/lib/util/websockets/websocket-util.js +1 -0
  84. package/lib/util/websockets/websocket-util.js.map +1 -1
  85. package/llms.txt +12585 -7241
  86. package/package.json +1 -1
@@ -0,0 +1,170 @@
1
+ /**
2
+ * V5 private Alpha / on-chain (Web3) trade responses.
3
+ */
4
+ export interface AlphaTradeQuoteModeEstimationV5 {
5
+ quoteMode: number;
6
+ estimatedGas: string;
7
+ estimatedGasUsd: string;
8
+ estimatedSlippage: string;
9
+ }
10
+ export interface AlphaTradeQuoteResultV5 {
11
+ tradeType: number;
12
+ fromTokenCode: string;
13
+ fromTokenAmount: string;
14
+ fromTokenAmountUsd: string;
15
+ toTokenCode: string;
16
+ toTokenAmount: string;
17
+ toTokenAmountUsd: string;
18
+ minToTokenAmount: string;
19
+ slippage: string;
20
+ gas: string;
21
+ gasUsd: string;
22
+ platformFee: string;
23
+ platformFeeUsd: string;
24
+ swapRate: string;
25
+ lossRate: string;
26
+ quoteData: string;
27
+ correctingCode: string;
28
+ quoteMode: number;
29
+ quoteDataId: string;
30
+ expireTime: number;
31
+ modeEstimations: AlphaTradeQuoteModeEstimationV5[];
32
+ chargeAmount?: string;
33
+ timestamp?: number;
34
+ }
35
+ export interface ExecuteAlphaTradeResultV5 {
36
+ orderNo: string;
37
+ }
38
+ export interface AlphaPayTokenV5 {
39
+ tokenCode: string;
40
+ symbol: string;
41
+ tokenDecimals: number;
42
+ tokenIconUrlDay: string;
43
+ tokenIconUrlNight: string;
44
+ limit: string;
45
+ supportChains: string[];
46
+ }
47
+ export interface AlphaTradeOrderV5 {
48
+ orderType: number;
49
+ tradeType: number;
50
+ orderNo: string;
51
+ orderStatus: number;
52
+ fromTokenCode: string;
53
+ fromTokenAmount: string;
54
+ fromTokenSymbol: string;
55
+ fromTokenDecimals: number;
56
+ fromTokenIconUrlDay?: string;
57
+ fromTokenIconUrlNight?: string;
58
+ fromChainCode: string;
59
+ fromChainIconUrl?: string;
60
+ toTokenCode: string;
61
+ toTokenAmount: string;
62
+ toTokenSymbol: string;
63
+ toTokenDecimals: number;
64
+ toTokenIconUrlDay?: string;
65
+ toTokenIconUrlNight?: string;
66
+ toChainCode: string;
67
+ toChainIconUrl?: string;
68
+ gasTokenSymbol: string;
69
+ gasOnchain: string;
70
+ gasUsd: string | null;
71
+ platformFee: string;
72
+ platformFeeUsd: string | null;
73
+ quoteMode: number;
74
+ createTime: number;
75
+ executionTime?: number;
76
+ failureReasonCode?: string;
77
+ source?: string;
78
+ swapRate: string;
79
+ actualFromTokenAmount: string;
80
+ }
81
+ export interface AlphaTradeOrderListResultV5 {
82
+ total: number;
83
+ pageIndex: number;
84
+ orders: AlphaTradeOrderV5[];
85
+ }
86
+ export interface AlphaBizTokenV5 {
87
+ tokenCode: string;
88
+ chainCode: string;
89
+ chainIconUrl: string;
90
+ tokenAddress: string;
91
+ symbol: string;
92
+ tokenDecimals: number;
93
+ tokenIconUrlDay: string;
94
+ tokenIconUrlNight: string;
95
+ createTime: number;
96
+ createTimeOnchain: number;
97
+ riskFlag: number;
98
+ minOrderQuantity: number;
99
+ maxOrderQuantity: number;
100
+ tokenTags: number[];
101
+ payTokenCodes: string[];
102
+ }
103
+ export interface AlphaBizTokenPriceV5 {
104
+ chainCode: string;
105
+ tokenAddress: string;
106
+ price: string;
107
+ change24h: string;
108
+ vol24h: string;
109
+ marketCap: string;
110
+ liquidity: string;
111
+ holders: string;
112
+ }
113
+ export interface AlphaBizTokenPriceListResultV5 {
114
+ tokenPriceInfoList: AlphaBizTokenPriceV5[];
115
+ }
116
+ export interface AlphaBizTokenDetailsV5 {
117
+ tokenCode: string;
118
+ chainCode: string;
119
+ chainIconUrl: string;
120
+ tokenAddress: string;
121
+ symbol: string;
122
+ tokenDecimals: number;
123
+ tokenIconUrlDay: string;
124
+ tokenIconUrlNight: string;
125
+ minOrderQuantity: string;
126
+ maxOrderQuantity: string;
127
+ maxPositionQuantity: string;
128
+ tokenDesc: string;
129
+ xUrl: string;
130
+ officialUrl: string;
131
+ whitePaperUrl: string;
132
+ tokenTag: number;
133
+ riskFlag: number;
134
+ createTimeOnchain: number;
135
+ status: number;
136
+ tokenTags: number[];
137
+ showMessage: number;
138
+ content?: string;
139
+ linkName?: string;
140
+ linkAddress?: string;
141
+ }
142
+ export interface AlphaAssetV5 {
143
+ chainCode: string;
144
+ chainIconUrl: string;
145
+ tokenAddress: string;
146
+ tokenCode: string;
147
+ tokenSymbol: string;
148
+ tokenDecimals: number;
149
+ tokenIconUrlDay: string;
150
+ tokenIconUrlNight: string;
151
+ tokenAmount: string;
152
+ tokenAmountUsd: string;
153
+ tradeFlag: number;
154
+ pnl: string | null;
155
+ pnlRatio: string | null;
156
+ costPrice: string | null;
157
+ lastPrice: string;
158
+ costTotalValue: string | null;
159
+ assetStatus: number;
160
+ announcementUrl?: string;
161
+ estimatedOfflineTime?: number;
162
+ delistingTime?: number;
163
+ }
164
+ export interface AlphaAssetListResultV5 {
165
+ totalAssetUsd: string;
166
+ assetList: AlphaAssetV5[];
167
+ }
168
+ export interface AlphaAssetDetailResultV5 {
169
+ assetList: AlphaAssetV5[];
170
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * V5 private Alpha / on-chain (Web3) trade responses.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=v5-alpha-trade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5-alpha-trade.js","sourceRoot":"","sources":["../../../src/types/response/v5-alpha-trade.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -134,6 +134,7 @@ export interface DepositAddressResultV5 {
134
134
  export interface CoinInfoV5 {
135
135
  name: string;
136
136
  coin: string;
137
+ /** @deprecated Use `chains[].withdrawMax` instead */
137
138
  remainAmount: string;
138
139
  chains: {
139
140
  chain: string;
@@ -148,6 +149,8 @@ export interface CoinInfoV5 {
148
149
  withdrawPercentageFee: string;
149
150
  contractAddress: string;
150
151
  safeConfirmNumber: string;
152
+ /** Max withdraw amount per transaction per chain. `-1` means no limit */
153
+ withdrawMax: string;
151
154
  }[];
152
155
  }
153
156
  export interface WithdrawalRecordV5 {
@@ -175,19 +178,22 @@ export interface WithdrawalAddressV5 {
175
178
  verified: number;
176
179
  createdAt: string;
177
180
  }
181
+ export interface WithdrawableAccountSliceV5 {
182
+ coin: string;
183
+ withdrawableAmount: string;
184
+ availableBalance: string;
185
+ }
186
+ /**
187
+ * GET /v5/asset/withdraw/withdrawable-amount. Only keys with data are returned
188
+ * (e.g. UTA, FUND, EARN; EARN when the coin can be withdrawn from Earn; SPOT if present).
189
+ */
178
190
  export interface WithdrawableAmountV5 {
179
191
  limitAmountUsd: string;
180
192
  withdrawableAmount: {
181
- SPOT: {
182
- coin: string;
183
- withdrawableAmount: string;
184
- availableBalance: string;
185
- };
186
- FUND: {
187
- coin: string;
188
- withdrawableAmount: string;
189
- availableBalance: string;
190
- };
193
+ SPOT?: WithdrawableAccountSliceV5;
194
+ FUND?: WithdrawableAccountSliceV5;
195
+ UTA?: WithdrawableAccountSliceV5;
196
+ EARN?: WithdrawableAccountSliceV5;
191
197
  };
192
198
  }
193
199
  export interface VaspEntityV5 {
@@ -314,9 +320,16 @@ export interface FundingAccountTransactionRecordV5 {
314
320
  description: string;
315
321
  descriptionEn: string;
316
322
  }
323
+ /** When accountType=Alpha and category is farm, under `coinDetail` in sub-categories. */
324
+ export interface AssetOverviewCoinExtMapV5 {
325
+ priceUpper?: string;
326
+ priceLower?: string;
327
+ equityUnit?: string;
328
+ }
317
329
  export interface AssetOverviewCoinDetailV5 {
318
330
  coin: string;
319
331
  equity: string;
332
+ extMap?: AssetOverviewCoinExtMapV5;
320
333
  }
321
334
  export interface AssetOverviewCategoryV5 {
322
335
  category: string;
@@ -335,3 +348,108 @@ export interface AssetOverviewResultV5 {
335
348
  totalEquity: string;
336
349
  list: AssetOverviewAccountItemV5[];
337
350
  }
351
+ export interface PortfolioMarginWalletV5 {
352
+ equity: string;
353
+ cashBalance: string;
354
+ marginBalance: string;
355
+ availableBalance: string;
356
+ accountIM: string;
357
+ accountMM: string;
358
+ accountMMRate: string;
359
+ accountIMRate: string;
360
+ }
361
+ export interface PortfolioMarginPnlRangePointV5 {
362
+ priceScale: string;
363
+ pnls: string[];
364
+ }
365
+ export interface PortfolioMarginContractBucketPnlV5 {
366
+ pnlRanges: PortfolioMarginPnlRangePointV5[];
367
+ }
368
+ export interface PortfolioMarginTotalPnlRangesV5 {
369
+ ALL?: PortfolioMarginContractBucketPnlV5;
370
+ PERPETUAL?: PortfolioMarginContractBucketPnlV5;
371
+ OPTION?: PortfolioMarginContractBucketPnlV5;
372
+ }
373
+ export interface PortfolioMarginPerpPositionPnlV5 {
374
+ symbolName: string;
375
+ position: string;
376
+ pnlRanges: PortfolioMarginPnlRangePointV5[];
377
+ sessionAvgPrice: string;
378
+ markPrice: string;
379
+ orderSize: string;
380
+ contractType: number;
381
+ settleCoin: string;
382
+ symbolAlias?: string;
383
+ }
384
+ export interface PortfolioMarginOptionPositionPnlV5 {
385
+ symbolName: string;
386
+ position: string;
387
+ pnlRanges: PortfolioMarginPnlRangePointV5[];
388
+ sessionAvgPrice: string;
389
+ markPrice: string;
390
+ orderSize: string;
391
+ contractType: number;
392
+ settleCoin: string;
393
+ }
394
+ export interface PortfolioMarginOptionExpiryPnlV5 {
395
+ expiryDateRepresentation: string;
396
+ pnlRanges: PortfolioMarginPnlRangePointV5[];
397
+ optionPositionPnlRanges: PortfolioMarginOptionPositionPnlV5[];
398
+ }
399
+ export interface PortfolioMarginContingencyV5 {
400
+ optionContingency: string;
401
+ futureDeltaContingency: string;
402
+ optionVegaContingency: string;
403
+ contingencyComponents: string;
404
+ usdtUsdcContingency: string;
405
+ futureContingency: string;
406
+ }
407
+ export interface PortfolioMarginAssetBlockV5 {
408
+ coin: string;
409
+ assetIM: string;
410
+ assetMM: string;
411
+ }
412
+ export interface PortfolioMarginSpotHedgeInfoV5 {
413
+ hedgeSpotSize: string;
414
+ walletBalance: string;
415
+ usdIndexPrice: string;
416
+ pnlRanges: PortfolioMarginPnlRangePointV5[];
417
+ }
418
+ export interface PortfolioMarginByBaseCoinV5 {
419
+ baseCoin: string;
420
+ totalPnlRanges: PortfolioMarginTotalPnlRangesV5;
421
+ perpPositionPnlRanges: PortfolioMarginPerpPositionPnlV5[];
422
+ optionExpiryDatePnlRanges: PortfolioMarginOptionExpiryPnlV5[];
423
+ contingency: PortfolioMarginContingencyV5;
424
+ asset: PortfolioMarginAssetBlockV5;
425
+ maxLossPriceMove: string;
426
+ maxLossIvShock: string;
427
+ totalClosePzFee: string;
428
+ spotHedgeInfo: PortfolioMarginSpotHedgeInfoV5;
429
+ maxLossIvShockList: string[];
430
+ }
431
+ export interface PortfolioMarginInfoResultV5 {
432
+ wallet: PortfolioMarginWalletV5;
433
+ assetPnlRange: PortfolioMarginByBaseCoinV5[];
434
+ }
435
+ export interface TotalMembersAccountBreakdownItemV5 {
436
+ type: string;
437
+ origb: string;
438
+ quoteb: string;
439
+ stat: number;
440
+ }
441
+ export interface TotalMembersMemberEntryV5 {
442
+ uid: number;
443
+ isM?: boolean;
444
+ type?: number;
445
+ stat: number;
446
+ origb: string;
447
+ quoteb?: string;
448
+ items: TotalMembersAccountBreakdownItemV5[];
449
+ }
450
+ export interface TotalMembersAssetsResultV5 {
451
+ total: string;
452
+ quoteTotal: string;
453
+ stat: number;
454
+ list: TotalMembersMemberEntryV5[];
455
+ }
@@ -0,0 +1,118 @@
1
+ export interface CardAssetRecordV5 {
2
+ pan4: string;
3
+ pan6: string;
4
+ tradeStatus: string;
5
+ side: string;
6
+ basicAmount: string;
7
+ basicCurrency: string;
8
+ transactionAmount: string;
9
+ transactionCurrency: string;
10
+ txnCreate: number;
11
+ merchCountry: string;
12
+ merchCity: string;
13
+ merchName: string;
14
+ txnId: string;
15
+ declinedReason: string;
16
+ totalFees: string;
17
+ uid: number;
18
+ transactionCurrencyAmount: string;
19
+ fxPad: string;
20
+ interchangeFee: string;
21
+ billAmount: string;
22
+ paidAmount: string;
23
+ paidCurrency: string;
24
+ bonusAmount: string;
25
+ foreignTransactionFee: string;
26
+ totalTax: string;
27
+ paidFiat: string;
28
+ withdrawalFee: string;
29
+ status: string;
30
+ orderNo: string;
31
+ mccCode: string;
32
+ merchCategoryDesc: string;
33
+ }
34
+ export interface CardAssetRecordsResultV5 {
35
+ pageSize: number;
36
+ pageNo: number;
37
+ totalCount: number;
38
+ data: CardAssetRecordV5[];
39
+ }
40
+ export interface CardPointBalanceV5 {
41
+ accountId: string;
42
+ availablePoint: string | number;
43
+ pendingPoint: string | number;
44
+ status: string;
45
+ updateTime: string | number;
46
+ settlementPeriod: number;
47
+ }
48
+ export interface CardPointRecordV5 {
49
+ outOrderId: string;
50
+ point: number;
51
+ side: string;
52
+ type: string;
53
+ subType: string;
54
+ createTime: number;
55
+ updateTime: number;
56
+ bizId: string;
57
+ bizTxnId: string;
58
+ transactionDate: string;
59
+ transactionId: string;
60
+ transactionAmount: string;
61
+ basicCurrency: string;
62
+ merchCategoryDesc: string;
63
+ merchName: string;
64
+ merchCountry: string;
65
+ merchCity: string;
66
+ pan4: string;
67
+ payFiatAmount: string;
68
+ transactionCurrencyAmount: string;
69
+ }
70
+ export interface CardPointRecordsResultV5 {
71
+ pageSize: number;
72
+ pageNo: number;
73
+ totalCount: number;
74
+ data: CardPointRecordV5[];
75
+ }
76
+ export interface CardPointTierInfoV5 {
77
+ usedLimit: string;
78
+ limit: string;
79
+ unit: string;
80
+ tier: string;
81
+ autoCashback: boolean;
82
+ }
83
+ export interface CardMallItemV5 {
84
+ itemId: string;
85
+ itemName: string;
86
+ priority: number;
87
+ onTime: string;
88
+ offTime: string;
89
+ price: string;
90
+ discountPrice: string;
91
+ totalNum: number;
92
+ redeemNum: number;
93
+ picPath: string;
94
+ currency: string;
95
+ currencyType: number;
96
+ itemType: number;
97
+ itemBizType: number;
98
+ }
99
+ export interface CardMallItemListResultV5 {
100
+ pageNo: number;
101
+ pageSize: number;
102
+ totalCount: number;
103
+ data: CardMallItemV5[];
104
+ }
105
+ export interface CardPointCashbackDetailV5 {
106
+ points: string;
107
+ amt: string;
108
+ ccy: string;
109
+ ccyType: string;
110
+ createTime: string;
111
+ bizTxnId: string;
112
+ sourceId: number;
113
+ sourceCode: string;
114
+ orderStatus: number;
115
+ orderSubStatus: number;
116
+ orderShowStatus: string;
117
+ failedBizCode: string;
118
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=v5-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5-card.js","sourceRoot":"","sources":["../../../src/types/response/v5-card.ts"],"names":[],"mappings":""}
@@ -0,0 +1,143 @@
1
+ export interface AdvanceEarnDiscountBuyOfferV5 {
2
+ productId: string;
3
+ currentPrice: string;
4
+ purchasePrice: string;
5
+ knockoutPrice: string;
6
+ knockoutCouponE8: string;
7
+ maxInvestmentAmount: string;
8
+ instUid: string;
9
+ expiredAt: string;
10
+ category: string;
11
+ }
12
+ /** GET /v5/earn/advance/product-extra-info?category=DiscountBuy */
13
+ export interface AdvanceEarnProductExtraInfoDiscountBuyV5 {
14
+ offers: AdvanceEarnDiscountBuyOfferV5[];
15
+ }
16
+ export interface AdvanceEarnDualAssetQuoteLevelV5 {
17
+ selectPrice: string;
18
+ apyE8: string;
19
+ maxInvestmentAmount: string;
20
+ expiredAt: string;
21
+ }
22
+ export interface AdvanceEarnDualAssetQuoteProductV5 {
23
+ productId: string;
24
+ currentPrice: string;
25
+ buyLowPrice: AdvanceEarnDualAssetQuoteLevelV5[];
26
+ sellHighPrice: AdvanceEarnDualAssetQuoteLevelV5[];
27
+ }
28
+ /** GET /v5/earn/advance/product-extra-info?category=DualAssets&productId= */
29
+ export interface AdvanceEarnProductExtraInfoDualAssetsV5 {
30
+ category: 'DualAssets';
31
+ list: AdvanceEarnDualAssetQuoteProductV5[];
32
+ }
33
+ export type AdvanceEarnProductExtraInfoV5 = AdvanceEarnProductExtraInfoDiscountBuyV5 | AdvanceEarnProductExtraInfoDualAssetsV5;
34
+ export interface AdvanceEarnPlaceOrderResultV5 {
35
+ orderId: string;
36
+ orderLinkId: string;
37
+ }
38
+ export interface AdvanceEarnDiscountBuyPositionV5 {
39
+ positionId: string;
40
+ productId: string;
41
+ category: string;
42
+ coin: string;
43
+ underlyingAsset: string;
44
+ amount: string;
45
+ purchasePrice: string;
46
+ knockoutPrice: string;
47
+ knockoutCouponE8: string;
48
+ status: string;
49
+ orderId: string;
50
+ duration: string;
51
+ settlementTime: string;
52
+ accountType: string;
53
+ toAccountType: string;
54
+ settleType: string;
55
+ expectReceiveAt: string;
56
+ }
57
+ export interface AdvanceEarnDualAssetsPositionV5 {
58
+ positionId: string;
59
+ productId: string;
60
+ category: string;
61
+ baseCoin: string;
62
+ quoteCoin: string;
63
+ investCoin: string;
64
+ amount: string;
65
+ apyE8: string;
66
+ direction: 'BuyLow' | 'SellHigh' | string;
67
+ targetPrice: string;
68
+ settlementTime: string;
69
+ status: string;
70
+ orderId: string;
71
+ duration: string;
72
+ expectReturnCoin: string;
73
+ expectReturnAmount: string;
74
+ accountType: string;
75
+ toAccountType: string;
76
+ yieldStartAt: string | number;
77
+ yieldEndAt: string | number;
78
+ }
79
+ export interface AdvanceEarnPositionListV5 {
80
+ category: string;
81
+ list: (AdvanceEarnDiscountBuyPositionV5 | AdvanceEarnDualAssetsPositionV5)[];
82
+ nextPageCursor: string;
83
+ }
84
+ export interface AdvanceEarnDiscountBuyOrderV5 {
85
+ orderId: string;
86
+ orderLinkId: string;
87
+ productId: string;
88
+ category: string;
89
+ orderType: string;
90
+ amount: string;
91
+ coin: string;
92
+ underlyingAsset: string;
93
+ status: string;
94
+ createdTime: string;
95
+ purchasePrice: string;
96
+ knockoutPrice: string;
97
+ knockoutCouponE8: string;
98
+ duration: string;
99
+ settlementTime: string;
100
+ accountType: string;
101
+ toAccountType: string;
102
+ settleType: string;
103
+ settlementPrice: string;
104
+ settlementCoin: string;
105
+ settlementAmount: string;
106
+ isVip: boolean;
107
+ refundStatus: string;
108
+ }
109
+ export interface AdvanceEarnDualAssetsOrderV5 {
110
+ orderId: string;
111
+ orderLinkId: string;
112
+ productId: string;
113
+ category: string;
114
+ orderType: string;
115
+ amount: string;
116
+ coin: string;
117
+ baseCoin: string;
118
+ quoteCoin: string;
119
+ status: string;
120
+ createdTime: string;
121
+ updatedTime: string;
122
+ direction: 'BuyLow' | 'SellHigh' | string;
123
+ targetPrice: string;
124
+ settlementTime: string | number;
125
+ estimateApyE8: string | number;
126
+ duration: string;
127
+ accountType: string;
128
+ toAccountType: string;
129
+ selectApyE8: string | number;
130
+ isVip: boolean;
131
+ settlementCoin: string;
132
+ settlementAmount: string;
133
+ orderMode: string;
134
+ settlementPrice: string;
135
+ refundStatus: string;
136
+ trialBonusAmount: string;
137
+ trialBonusPnl: string;
138
+ }
139
+ export interface AdvanceEarnOrderListV5 {
140
+ category: string;
141
+ list: (AdvanceEarnDiscountBuyOrderV5 | AdvanceEarnDualAssetsOrderV5)[];
142
+ nextPageCursor: string;
143
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=v5-earn-advance-discount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v5-earn-advance-discount.js","sourceRoot":"","sources":["../../../src/types/response/v5-earn-advance-discount.ts"],"names":[],"mappings":""}