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.
- package/README.md +1 -0
- package/lib/constants/enum.d.ts +1 -0
- package/lib/constants/enum.js +1 -0
- package/lib/constants/enum.js.map +1 -1
- package/lib/rest-client-v5.d.ts +503 -18
- package/lib/rest-client-v5.js +634 -5
- package/lib/rest-client-v5.js.map +1 -1
- package/lib/types/request/index.d.ts +8 -0
- package/lib/types/request/index.js +8 -0
- package/lib/types/request/index.js.map +1 -1
- package/lib/types/request/v5-account.d.ts +25 -1
- package/lib/types/request/v5-alpha-trade.d.ts +52 -0
- package/lib/types/request/v5-alpha-trade.js +6 -0
- package/lib/types/request/v5-alpha-trade.js.map +1 -0
- package/lib/types/request/v5-asset.d.ts +26 -2
- package/lib/types/request/v5-card.d.ts +51 -0
- package/lib/types/request/v5-card.js +7 -0
- package/lib/types/request/v5-card.js.map +1 -0
- package/lib/types/request/v5-crypto-loan.d.ts +8 -0
- package/lib/types/request/v5-earn-advance-discount.d.ts +75 -0
- package/lib/types/request/v5-earn-advance-discount.js +3 -0
- package/lib/types/request/v5-earn-advance-discount.js.map +1 -0
- package/lib/types/request/v5-earn-fixed-term.d.ts +42 -0
- package/lib/types/request/v5-earn-fixed-term.js +3 -0
- package/lib/types/request/v5-earn-fixed-term.js.map +1 -0
- package/lib/types/request/v5-earn-liquidity-mining.d.ts +7 -0
- package/lib/types/request/v5-earn-liquidity-mining.js +3 -0
- package/lib/types/request/v5-earn-liquidity-mining.js.map +1 -0
- package/lib/types/request/v5-earn-pwm.d.ts +167 -0
- package/lib/types/request/v5-earn-pwm.js +3 -0
- package/lib/types/request/v5-earn-pwm.js.map +1 -0
- package/lib/types/request/v5-earn-token.d.ts +49 -0
- package/lib/types/request/v5-earn-token.js +6 -0
- package/lib/types/request/v5-earn-token.js.map +1 -0
- package/lib/types/request/v5-earn.d.ts +35 -0
- package/lib/types/request/v5-market.d.ts +10 -3
- package/lib/types/request/v5-spot-leverage-token.d.ts +46 -0
- package/lib/types/request/v5-spreadtrading.d.ts +7 -0
- package/lib/types/request/v5-strategy.d.ts +80 -0
- package/lib/types/request/v5-strategy.js +3 -0
- package/lib/types/request/v5-strategy.js.map +1 -0
- package/lib/types/request/v5-user.d.ts +29 -3
- package/lib/types/response/index.d.ts +8 -0
- package/lib/types/response/index.js +8 -0
- package/lib/types/response/index.js.map +1 -1
- package/lib/types/response/v5-account.d.ts +76 -0
- package/lib/types/response/v5-alpha-trade.d.ts +170 -0
- package/lib/types/response/v5-alpha-trade.js +6 -0
- package/lib/types/response/v5-alpha-trade.js.map +1 -0
- package/lib/types/response/v5-asset.d.ts +128 -10
- package/lib/types/response/v5-card.d.ts +118 -0
- package/lib/types/response/v5-card.js +3 -0
- package/lib/types/response/v5-card.js.map +1 -0
- package/lib/types/response/v5-earn-advance-discount.d.ts +143 -0
- package/lib/types/response/v5-earn-advance-discount.js +3 -0
- package/lib/types/response/v5-earn-advance-discount.js.map +1 -0
- package/lib/types/response/v5-earn-fixed-term.d.ts +102 -0
- package/lib/types/response/v5-earn-fixed-term.js +3 -0
- package/lib/types/response/v5-earn-fixed-term.js.map +1 -0
- package/lib/types/response/v5-earn-liquidity-mining.d.ts +31 -0
- package/lib/types/response/v5-earn-liquidity-mining.js +3 -0
- package/lib/types/response/v5-earn-liquidity-mining.js.map +1 -0
- package/lib/types/response/v5-earn-pwm.d.ts +425 -0
- package/lib/types/response/v5-earn-pwm.js +3 -0
- package/lib/types/response/v5-earn-pwm.js.map +1 -0
- package/lib/types/response/v5-earn-token.d.ts +62 -0
- package/lib/types/response/v5-earn-token.js +6 -0
- package/lib/types/response/v5-earn-token.js.map +1 -0
- package/lib/types/response/v5-earn.d.ts +141 -0
- package/lib/types/response/v5-market.d.ts +16 -4
- package/lib/types/response/v5-position.d.ts +2 -0
- package/lib/types/response/v5-spot-leverage-token.d.ts +56 -0
- package/lib/types/response/v5-spreadtrading.d.ts +5 -0
- package/lib/types/response/v5-strategy.d.ts +96 -0
- package/lib/types/response/v5-strategy.js +3 -0
- package/lib/types/response/v5-strategy.js.map +1 -0
- package/lib/types/response/v5-user.d.ts +30 -0
- package/lib/types/shared-v5.d.ts +20 -1
- package/lib/types/websockets/ws-events.d.ts +2 -0
- package/lib/util/webCryptoAPI.d.ts +1 -1
- package/lib/util/webCryptoAPI.js +1 -1
- package/lib/util/webCryptoAPI.js.map +1 -1
- package/lib/util/websockets/websocket-util.js +1 -0
- package/lib/util/websockets/websocket-util.js.map +1 -1
- package/llms.txt +12585 -7241
- package/package.json +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export interface FixedTermEarnTieredApyV5 {
|
|
2
|
+
min: string;
|
|
3
|
+
max: string;
|
|
4
|
+
apy: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FixedTermEarnInterestCoinApyV5 {
|
|
7
|
+
coin: string;
|
|
8
|
+
apy: string;
|
|
9
|
+
expectUnitEarning: string;
|
|
10
|
+
currentPrice: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FixedTermEarnProductV5 {
|
|
13
|
+
productId: string;
|
|
14
|
+
category: 'FixedTermSaving' | 'FundPool' | 'FundPoolPremium' | string;
|
|
15
|
+
coin: string;
|
|
16
|
+
duration: string;
|
|
17
|
+
status: 'Available' | 'SoldOut' | 'NotStarted' | string;
|
|
18
|
+
tieredApyList: FixedTermEarnTieredApyV5[];
|
|
19
|
+
minStakeAmount: string;
|
|
20
|
+
maxStakeAmount: string;
|
|
21
|
+
precision: number;
|
|
22
|
+
subscribeStartAt: string;
|
|
23
|
+
subscribeEndAt: string;
|
|
24
|
+
allowEarlyRedemption: boolean;
|
|
25
|
+
earlyRedemptionApy: string;
|
|
26
|
+
redemptionLimitDuration: string;
|
|
27
|
+
allowAutoReinvest: boolean;
|
|
28
|
+
interestCoinApyList: FixedTermEarnInterestCoinApyV5[];
|
|
29
|
+
isVip: boolean;
|
|
30
|
+
creditTime: string;
|
|
31
|
+
specialUserGroupRequired: boolean;
|
|
32
|
+
specialUserGroupInfo: string;
|
|
33
|
+
}
|
|
34
|
+
export interface FixedTermEarnProductListV5 {
|
|
35
|
+
list: FixedTermEarnProductV5[];
|
|
36
|
+
}
|
|
37
|
+
export interface FixedTermEarnPlaceOrderResultV5 {
|
|
38
|
+
orderId: string;
|
|
39
|
+
orderLinkId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface RedeemFixedTermEarnResultV5 {
|
|
42
|
+
redeemAmount: string;
|
|
43
|
+
estEarnings: string;
|
|
44
|
+
}
|
|
45
|
+
export interface FixedTermEarnEarlyRedeemInfoV5 {
|
|
46
|
+
allowEarlyRedeem: boolean;
|
|
47
|
+
earlyRedeemEarning: string;
|
|
48
|
+
returnCoin: string;
|
|
49
|
+
redemptionLimitDuration: string;
|
|
50
|
+
}
|
|
51
|
+
export interface FixedTermEarnPositionInterestV5 {
|
|
52
|
+
coin: string;
|
|
53
|
+
apy: string;
|
|
54
|
+
expectReturnEarning: string;
|
|
55
|
+
price: string;
|
|
56
|
+
}
|
|
57
|
+
export interface FixedTermEarnPositionV5 {
|
|
58
|
+
positionId: string;
|
|
59
|
+
productId: string;
|
|
60
|
+
category: string;
|
|
61
|
+
coin: string;
|
|
62
|
+
amount: string;
|
|
63
|
+
effectiveAmount: string;
|
|
64
|
+
duration: string;
|
|
65
|
+
status: string;
|
|
66
|
+
settlementTime: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
orderId: string;
|
|
69
|
+
earlyRedeemInfo: FixedTermEarnEarlyRedeemInfoV5 | null;
|
|
70
|
+
allowAutoReinvest: boolean;
|
|
71
|
+
autoReinvest: string;
|
|
72
|
+
interestCoinApyList: FixedTermEarnPositionInterestV5[];
|
|
73
|
+
}
|
|
74
|
+
export interface FixedTermEarnPositionListV5 {
|
|
75
|
+
list: FixedTermEarnPositionV5[];
|
|
76
|
+
}
|
|
77
|
+
export interface FixedTermEarnOrderYieldInfoV5 {
|
|
78
|
+
coin: string;
|
|
79
|
+
amount: string;
|
|
80
|
+
status: string;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
apy: string;
|
|
83
|
+
}
|
|
84
|
+
export interface FixedTermEarnOrderV5 {
|
|
85
|
+
orderId: string;
|
|
86
|
+
orderLinkId: string;
|
|
87
|
+
orderType: string;
|
|
88
|
+
status: string;
|
|
89
|
+
productId: string;
|
|
90
|
+
category: string;
|
|
91
|
+
coin: string;
|
|
92
|
+
amount: string;
|
|
93
|
+
duration: string;
|
|
94
|
+
accountType: string;
|
|
95
|
+
settlementTime: string;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
yieldInfoList: FixedTermEarnOrderYieldInfoV5[];
|
|
98
|
+
}
|
|
99
|
+
export interface FixedTermEarnOrderListV5 {
|
|
100
|
+
list: FixedTermEarnOrderV5[];
|
|
101
|
+
nextPageCursor: string;
|
|
102
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v5-earn-fixed-term.js","sourceRoot":"","sources":["../../../src/types/response/v5-earn-fixed-term.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface LiquidityMiningApyBreakdownV5 {
|
|
2
|
+
coin: string;
|
|
3
|
+
apy: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LiquidityMiningProductV5 {
|
|
6
|
+
productId: string;
|
|
7
|
+
baseCoin: string;
|
|
8
|
+
quoteCoin: string;
|
|
9
|
+
status: 'Available' | 'NotAvailable' | string;
|
|
10
|
+
maxLeverage: number;
|
|
11
|
+
minInvestmentQuote: string;
|
|
12
|
+
minInvestmentBase: string;
|
|
13
|
+
maxInvestmentQuote: string;
|
|
14
|
+
maxInvestmentBase: string;
|
|
15
|
+
minWithdrawalAmount: string;
|
|
16
|
+
minReinvestAmount: string;
|
|
17
|
+
baseCoinPrecision: number;
|
|
18
|
+
quoteCoinPrecision: number;
|
|
19
|
+
yieldCoins: string[];
|
|
20
|
+
apyE8: string;
|
|
21
|
+
apy7dE8: string;
|
|
22
|
+
poolLiquidityValue: string;
|
|
23
|
+
dailyYield: string;
|
|
24
|
+
slippageRateE8List: string[];
|
|
25
|
+
apyBreakdown: LiquidityMiningApyBreakdownV5[];
|
|
26
|
+
apy7dBreakdown: LiquidityMiningApyBreakdownV5[];
|
|
27
|
+
slippage_levels?: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface LiquidityMiningProductResultV5 {
|
|
30
|
+
products: LiquidityMiningProductV5[];
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v5-earn-liquidity-mining.js","sourceRoot":"","sources":["../../../src/types/response/v5-earn-liquidity-mining.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
export interface PwmCoinAmountV5 {
|
|
2
|
+
coin: string;
|
|
3
|
+
amount: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PwmMultiCoinsEarningPositionItemV5 {
|
|
6
|
+
category: string;
|
|
7
|
+
productId: string;
|
|
8
|
+
coin: string;
|
|
9
|
+
currentAmount: string;
|
|
10
|
+
accumulateYield: string;
|
|
11
|
+
apr: string;
|
|
12
|
+
positionId: string;
|
|
13
|
+
status?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PwmMultiCoinsEarningPositionsV5 {
|
|
16
|
+
totalInvestmentUsd: string;
|
|
17
|
+
accumulateYieldUsd: string;
|
|
18
|
+
weightedAvgApr: string;
|
|
19
|
+
items: PwmMultiCoinsEarningPositionItemV5[];
|
|
20
|
+
}
|
|
21
|
+
export interface PwmFixedYieldPositionItemV5 {
|
|
22
|
+
category: string;
|
|
23
|
+
productId: string;
|
|
24
|
+
coin: string;
|
|
25
|
+
currentAmount: string;
|
|
26
|
+
accumulateYield: string;
|
|
27
|
+
apr: string;
|
|
28
|
+
duration: number;
|
|
29
|
+
maturityTime: string;
|
|
30
|
+
autoReinvest: boolean;
|
|
31
|
+
positionId: string;
|
|
32
|
+
status?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface PwmFixedYieldPositionsV5 {
|
|
35
|
+
totalInvestmentUsd: string;
|
|
36
|
+
accumulateYieldUsd: string;
|
|
37
|
+
weightedAvgApr: string;
|
|
38
|
+
items: PwmFixedYieldPositionItemV5[];
|
|
39
|
+
}
|
|
40
|
+
export interface PwmEquityFundPositionItemV5 {
|
|
41
|
+
category: string;
|
|
42
|
+
productId: string;
|
|
43
|
+
fundName: string;
|
|
44
|
+
coin: string;
|
|
45
|
+
tags: string[];
|
|
46
|
+
nav: string;
|
|
47
|
+
userShares: string;
|
|
48
|
+
shareValue: string;
|
|
49
|
+
holdingValue: string;
|
|
50
|
+
accumulateYield: string;
|
|
51
|
+
apr30d: string;
|
|
52
|
+
aprTotal: string;
|
|
53
|
+
sharpRatio: string;
|
|
54
|
+
maxDrawdown: string;
|
|
55
|
+
createdTime: string;
|
|
56
|
+
runningDays: number;
|
|
57
|
+
positionId?: string;
|
|
58
|
+
status?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface PwmEquityFundsPositionsV5 {
|
|
61
|
+
totalInvestmentUsd: string;
|
|
62
|
+
accumulateYieldUsd: string;
|
|
63
|
+
weightedAvgApr: string;
|
|
64
|
+
items: PwmEquityFundPositionItemV5[];
|
|
65
|
+
}
|
|
66
|
+
export interface PwmOnchainEarnPositionItemV5 {
|
|
67
|
+
category: string;
|
|
68
|
+
productId: string;
|
|
69
|
+
coin: string;
|
|
70
|
+
stakeAmount: string;
|
|
71
|
+
apr: string;
|
|
72
|
+
positionId: string;
|
|
73
|
+
status?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface PwmOnchainEarnPositionsV5 {
|
|
76
|
+
totalInvestmentUsd: string;
|
|
77
|
+
accumulateYieldUsd: string;
|
|
78
|
+
items: PwmOnchainEarnPositionItemV5[];
|
|
79
|
+
}
|
|
80
|
+
export interface PwmInvestmentPlanPositionsV5 {
|
|
81
|
+
multiCoinsEarning?: PwmMultiCoinsEarningPositionsV5;
|
|
82
|
+
fixedYield?: PwmFixedYieldPositionsV5;
|
|
83
|
+
equityFunds?: PwmEquityFundsPositionsV5;
|
|
84
|
+
onchainEarn?: PwmOnchainEarnPositionsV5;
|
|
85
|
+
fundingAccount?: PwmCoinAmountV5[];
|
|
86
|
+
}
|
|
87
|
+
/** GET /v5/earn/pwm/investment-plan/list */
|
|
88
|
+
export interface PwmInvestmentPlanSummaryV5 {
|
|
89
|
+
planId: string;
|
|
90
|
+
planName: string;
|
|
91
|
+
planType: string;
|
|
92
|
+
status: string;
|
|
93
|
+
currentAssetUsd?: string;
|
|
94
|
+
accumulateYieldUsd?: string;
|
|
95
|
+
weightedAvgApr?: string;
|
|
96
|
+
createdTime?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface PwmInvestmentPlanListResultV5 {
|
|
99
|
+
list: PwmInvestmentPlanSummaryV5[];
|
|
100
|
+
}
|
|
101
|
+
/** GET /v5/earn/pwm/investment-plan/detail */
|
|
102
|
+
export interface PwmInvestmentPlanDetailV5 {
|
|
103
|
+
planId: string;
|
|
104
|
+
planName: string;
|
|
105
|
+
planType: string;
|
|
106
|
+
status: string;
|
|
107
|
+
currentAssetUsd: string;
|
|
108
|
+
accumulateYieldUsd: string;
|
|
109
|
+
weightedAvgApr: string;
|
|
110
|
+
currentAssets: PwmCoinAmountV5[];
|
|
111
|
+
positions: PwmInvestmentPlanPositionsV5;
|
|
112
|
+
createdTime: string;
|
|
113
|
+
}
|
|
114
|
+
export interface PwmEquityFundIntroductionV5 {
|
|
115
|
+
description: string;
|
|
116
|
+
historicalYieldRateMax: string;
|
|
117
|
+
historicalYieldRateMin: string;
|
|
118
|
+
sharpRatio: string;
|
|
119
|
+
maxDrawback: string;
|
|
120
|
+
lockupPeriod: string;
|
|
121
|
+
}
|
|
122
|
+
export interface PwmPendingMultiCoinsEarningItemV5 {
|
|
123
|
+
category: string;
|
|
124
|
+
productId: string;
|
|
125
|
+
coin: string;
|
|
126
|
+
configuredAmount: string;
|
|
127
|
+
apr: string;
|
|
128
|
+
}
|
|
129
|
+
export interface PwmPendingFixedYieldItemV5 {
|
|
130
|
+
category: string;
|
|
131
|
+
productId: string;
|
|
132
|
+
coin: string;
|
|
133
|
+
configuredAmount: string;
|
|
134
|
+
apr: string;
|
|
135
|
+
duration: number;
|
|
136
|
+
}
|
|
137
|
+
export interface PwmPendingEquityFundItemV5 {
|
|
138
|
+
category: string;
|
|
139
|
+
productId: string;
|
|
140
|
+
fundName: string;
|
|
141
|
+
coin: string;
|
|
142
|
+
configuredAmount: string;
|
|
143
|
+
tags: string[];
|
|
144
|
+
introduction: PwmEquityFundIntroductionV5;
|
|
145
|
+
}
|
|
146
|
+
export interface PwmPendingOnchainEarnItemV5 {
|
|
147
|
+
category: string;
|
|
148
|
+
productId: string;
|
|
149
|
+
coin: string;
|
|
150
|
+
configuredAmount: string;
|
|
151
|
+
apr: string;
|
|
152
|
+
}
|
|
153
|
+
export interface PwmPendingInvestmentPlanProductsV5 {
|
|
154
|
+
multiCoinsEarning?: {
|
|
155
|
+
configuredAmountUsd: string;
|
|
156
|
+
items: PwmPendingMultiCoinsEarningItemV5[];
|
|
157
|
+
};
|
|
158
|
+
fixedYield?: {
|
|
159
|
+
configuredAmountUsd: string;
|
|
160
|
+
items: PwmPendingFixedYieldItemV5[];
|
|
161
|
+
};
|
|
162
|
+
equityFunds?: {
|
|
163
|
+
configuredAmountUsd: string;
|
|
164
|
+
items: PwmPendingEquityFundItemV5[];
|
|
165
|
+
};
|
|
166
|
+
onchainEarn?: {
|
|
167
|
+
configuredAmountUsd: string;
|
|
168
|
+
items: PwmPendingOnchainEarnItemV5[];
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
/** GET /v5/earn/pwm/investment-plan/new-plan */
|
|
172
|
+
export interface PwmPendingInvestmentPlanDetailV5 {
|
|
173
|
+
planId: string;
|
|
174
|
+
planName: string;
|
|
175
|
+
planType: string;
|
|
176
|
+
status: string;
|
|
177
|
+
source: string;
|
|
178
|
+
totalConfiguredAmountUsd: string;
|
|
179
|
+
products: PwmPendingInvestmentPlanProductsV5;
|
|
180
|
+
createdTime: string;
|
|
181
|
+
}
|
|
182
|
+
/** POST /v5/earn/pwm/investment-plan/claim */
|
|
183
|
+
export interface ClaimPwmWithdrawableFundsResultV5 {
|
|
184
|
+
planId: string;
|
|
185
|
+
toAccountType: number;
|
|
186
|
+
status: string;
|
|
187
|
+
createdTime: string;
|
|
188
|
+
}
|
|
189
|
+
export interface PwmAssetTrendDataPointV5 {
|
|
190
|
+
date: string;
|
|
191
|
+
assetValueUsd: string;
|
|
192
|
+
}
|
|
193
|
+
/** GET /v5/earn/pwm/investment-plan/asset-trend */
|
|
194
|
+
export interface PwmInvestmentPlanAssetTrendResultV5 {
|
|
195
|
+
planId: string;
|
|
196
|
+
dataPoints: PwmAssetTrendDataPointV5[];
|
|
197
|
+
}
|
|
198
|
+
export interface PwmFundNavDataPointV5 {
|
|
199
|
+
date: string;
|
|
200
|
+
nav: string;
|
|
201
|
+
}
|
|
202
|
+
/** GET /v5/earn/pwm/investment-plan/fund-nav */
|
|
203
|
+
export interface PwmFundHistoricalNavResultV5 {
|
|
204
|
+
fundId: string;
|
|
205
|
+
fundName: string;
|
|
206
|
+
coin: string;
|
|
207
|
+
currentNav: string;
|
|
208
|
+
dataPoints: PwmFundNavDataPointV5[];
|
|
209
|
+
}
|
|
210
|
+
/** POST /v5/earn/pwm/investment-plan/subscribe */
|
|
211
|
+
export interface SubscribePwmInvestmentPlanResultV5 {
|
|
212
|
+
planId: string;
|
|
213
|
+
status: string;
|
|
214
|
+
orderLinkId: string;
|
|
215
|
+
}
|
|
216
|
+
/** POST /v5/earn/pwm/investment-plan/invest-more */
|
|
217
|
+
export interface InvestMorePwmInvestmentPlanResultV5 {
|
|
218
|
+
planId: string;
|
|
219
|
+
category: string;
|
|
220
|
+
productId: string;
|
|
221
|
+
coin: string;
|
|
222
|
+
amount: string;
|
|
223
|
+
status: string;
|
|
224
|
+
orderLinkId: string;
|
|
225
|
+
orderId: string;
|
|
226
|
+
}
|
|
227
|
+
/** POST /v5/earn/pwm/investment-plan/redeem */
|
|
228
|
+
export interface RedeemPwmInvestmentPlanResultV5 {
|
|
229
|
+
orderId: string;
|
|
230
|
+
planId: string;
|
|
231
|
+
category: string;
|
|
232
|
+
productId: string;
|
|
233
|
+
shares?: string;
|
|
234
|
+
amount?: string;
|
|
235
|
+
estimatedAmount?: string;
|
|
236
|
+
coin: string;
|
|
237
|
+
status: string;
|
|
238
|
+
orderLinkId: string;
|
|
239
|
+
}
|
|
240
|
+
/** GET /v5/earn/pwm/investment-plan/order */
|
|
241
|
+
export interface PwmInvestmentPlanOrderV5 {
|
|
242
|
+
orderId: string;
|
|
243
|
+
planId: string;
|
|
244
|
+
type: string;
|
|
245
|
+
accountType: string;
|
|
246
|
+
coin: string;
|
|
247
|
+
amount: string;
|
|
248
|
+
category: string;
|
|
249
|
+
productId: string;
|
|
250
|
+
status: string;
|
|
251
|
+
orderTime: string;
|
|
252
|
+
}
|
|
253
|
+
export interface PwmInvestmentPlanOrdersResultV5 {
|
|
254
|
+
list: PwmInvestmentPlanOrderV5[];
|
|
255
|
+
nextPageCursor: string;
|
|
256
|
+
}
|
|
257
|
+
/** GET /v5/earn/pwm/customize-plan/product */
|
|
258
|
+
export interface PwmSubscribableProductCardV5 {
|
|
259
|
+
category: string;
|
|
260
|
+
productId?: string;
|
|
261
|
+
fundName?: string;
|
|
262
|
+
coin: string;
|
|
263
|
+
apr?: string;
|
|
264
|
+
aprRangeLow?: string;
|
|
265
|
+
aprRangeHigh?: string;
|
|
266
|
+
tags?: string[];
|
|
267
|
+
introduction?: string;
|
|
268
|
+
aum?: string;
|
|
269
|
+
minInvestmentAmount?: string;
|
|
270
|
+
maxInvestmentAmount?: string;
|
|
271
|
+
duration?: number;
|
|
272
|
+
maxDrawdown?: string;
|
|
273
|
+
sharpRatio?: string;
|
|
274
|
+
estAPR?: string;
|
|
275
|
+
}
|
|
276
|
+
export interface PwmSubscribableProductGroupV5 {
|
|
277
|
+
type: string;
|
|
278
|
+
cards: PwmSubscribableProductCardV5[];
|
|
279
|
+
}
|
|
280
|
+
export interface PwmSubscribableProductInfoResultV5 {
|
|
281
|
+
products: PwmSubscribableProductGroupV5[];
|
|
282
|
+
}
|
|
283
|
+
/** POST /v5/earn/pwm/customize-plan/create */
|
|
284
|
+
export interface CreatePwmCustomizeInvestmentPlanResultV5 {
|
|
285
|
+
planId: string;
|
|
286
|
+
planName: string;
|
|
287
|
+
status: string;
|
|
288
|
+
orderLinkId?: string;
|
|
289
|
+
}
|
|
290
|
+
/** GET /v5/earn/pwm/asset-manager/all-funds */
|
|
291
|
+
export interface PwmAssetManagerFundV5 {
|
|
292
|
+
fundId: string;
|
|
293
|
+
fundName: string;
|
|
294
|
+
coin: string;
|
|
295
|
+
status: string;
|
|
296
|
+
totalEquity: string;
|
|
297
|
+
totalShares: string;
|
|
298
|
+
currentNav: string;
|
|
299
|
+
currentAPR?: string;
|
|
300
|
+
accountUid: string;
|
|
301
|
+
subAccountList: string[];
|
|
302
|
+
profitShareRate: string;
|
|
303
|
+
managementFeeRate: string;
|
|
304
|
+
uncollectedProfit: string;
|
|
305
|
+
collectedProfit: string;
|
|
306
|
+
totalLoan: string;
|
|
307
|
+
createdTime: string;
|
|
308
|
+
}
|
|
309
|
+
export interface PwmAllFundsResultV5 {
|
|
310
|
+
list: PwmAssetManagerFundV5[];
|
|
311
|
+
nextPageCursor: string;
|
|
312
|
+
}
|
|
313
|
+
/** POST /v5/earn/pwm/asset-manager/settle-profit */
|
|
314
|
+
export interface SettlePwmFundProfitResultV5 {
|
|
315
|
+
fundId: string;
|
|
316
|
+
status: string;
|
|
317
|
+
totalProfitShared: string;
|
|
318
|
+
instIncome: string;
|
|
319
|
+
coin: string;
|
|
320
|
+
createdTime: string;
|
|
321
|
+
}
|
|
322
|
+
/** POST /v5/earn/pwm/asset-manager/create-fund */
|
|
323
|
+
export interface CreatePwmFundResultV5 {
|
|
324
|
+
fundId: string;
|
|
325
|
+
fundName: string;
|
|
326
|
+
coin: string;
|
|
327
|
+
status: string;
|
|
328
|
+
profitShareRate: string;
|
|
329
|
+
managementFeeRate: string;
|
|
330
|
+
accountUid: string;
|
|
331
|
+
createdTime: string;
|
|
332
|
+
}
|
|
333
|
+
/** POST /v5/earn/pwm/asset-manager/create-investment-plan */
|
|
334
|
+
export interface CreatePwmAssetManagerInvestmentPlanResultV5 {
|
|
335
|
+
planId: string;
|
|
336
|
+
planType: string;
|
|
337
|
+
accountUid: string;
|
|
338
|
+
status: string;
|
|
339
|
+
createdTime: string;
|
|
340
|
+
}
|
|
341
|
+
/** GET /v5/earn/pwm/asset-manager/get-investment-plan */
|
|
342
|
+
export interface PwmAssetManagerInvestmentPlanDistributionV5 {
|
|
343
|
+
category: string;
|
|
344
|
+
coin: string;
|
|
345
|
+
productId: string;
|
|
346
|
+
currentAmount: string;
|
|
347
|
+
}
|
|
348
|
+
export interface PwmAssetManagerInvestmentPlanV5 {
|
|
349
|
+
planId: string;
|
|
350
|
+
planName: string;
|
|
351
|
+
planType: string;
|
|
352
|
+
subscriptionUid: string;
|
|
353
|
+
status: string;
|
|
354
|
+
source: string;
|
|
355
|
+
currentAssetUsd: string;
|
|
356
|
+
accumulateYieldUsd: string;
|
|
357
|
+
investmentDistribution: PwmAssetManagerInvestmentPlanDistributionV5[];
|
|
358
|
+
createdTime: string;
|
|
359
|
+
}
|
|
360
|
+
export interface PwmAssetManagerInvestmentPlansResultV5 {
|
|
361
|
+
list: PwmAssetManagerInvestmentPlanV5[];
|
|
362
|
+
nextPageCursor: string;
|
|
363
|
+
}
|
|
364
|
+
/** POST /v5/earn/pwm/asset-manager/manage-investment-plan */
|
|
365
|
+
export interface ManagePwmAssetManagerInvestmentPlanFundResultV5 {
|
|
366
|
+
fundId: string;
|
|
367
|
+
amount: string;
|
|
368
|
+
}
|
|
369
|
+
export interface ManagePwmAssetManagerInvestmentPlanResultV5 {
|
|
370
|
+
planId: string;
|
|
371
|
+
status: string;
|
|
372
|
+
updatedTime: string;
|
|
373
|
+
updateFunds: ManagePwmAssetManagerInvestmentPlanFundResultV5[];
|
|
374
|
+
}
|
|
375
|
+
/** GET /v5/earn/pwm/asset-manager/all-order */
|
|
376
|
+
export interface PwmAssetManagerFundOrderV5 {
|
|
377
|
+
orderId: string;
|
|
378
|
+
fundId: string;
|
|
379
|
+
fundName: string;
|
|
380
|
+
accountUid: string;
|
|
381
|
+
orderType: string;
|
|
382
|
+
coin: string;
|
|
383
|
+
amount: string;
|
|
384
|
+
shares: string;
|
|
385
|
+
status: string;
|
|
386
|
+
createdTime: string;
|
|
387
|
+
}
|
|
388
|
+
export interface PwmAllFundOrdersResultV5 {
|
|
389
|
+
list: PwmAssetManagerFundOrderV5[];
|
|
390
|
+
nextPageCursor: string;
|
|
391
|
+
}
|
|
392
|
+
/** POST /v5/earn/pwm/asset-manager/manage-order */
|
|
393
|
+
export interface ManagePwmFundOrderResultV5 {
|
|
394
|
+
orderId: string;
|
|
395
|
+
fundId: string;
|
|
396
|
+
accountUid: string;
|
|
397
|
+
orderStatus: string;
|
|
398
|
+
orderType: string;
|
|
399
|
+
action: string;
|
|
400
|
+
coin: string;
|
|
401
|
+
amount: string;
|
|
402
|
+
shares: string;
|
|
403
|
+
updatedTime: string;
|
|
404
|
+
}
|
|
405
|
+
/** POST /v5/earn/pwm/asset-manager/create-sub-account */
|
|
406
|
+
export interface CreatePwmFundSubAccountResultV5 {
|
|
407
|
+
fundId: string;
|
|
408
|
+
subAccountUid: string;
|
|
409
|
+
createdTime: string;
|
|
410
|
+
status: string;
|
|
411
|
+
}
|
|
412
|
+
/** POST /v5/earn/pwm/fund-transfer */
|
|
413
|
+
export interface PwmFundTransferResultV5 {
|
|
414
|
+
transferId: string;
|
|
415
|
+
status: string;
|
|
416
|
+
}
|
|
417
|
+
/** GET /v5/earn/pwm/query-fund-transfer-result */
|
|
418
|
+
export interface PwmFundTransferRecordV5 {
|
|
419
|
+
transferId: string;
|
|
420
|
+
status: string;
|
|
421
|
+
fromUserId: number;
|
|
422
|
+
toUserId: number;
|
|
423
|
+
amount: string;
|
|
424
|
+
coin: string;
|
|
425
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v5-earn-pwm.js","sourceRoot":"","sources":["../../../src/types/response/v5-earn-pwm.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Earn token product (e.g. BYUSDT) — /v5/earn/token/*
|
|
3
|
+
*/
|
|
4
|
+
export interface EarnTokenProductV5 {
|
|
5
|
+
productId: string;
|
|
6
|
+
coin: string;
|
|
7
|
+
mintFeeRateE8: string;
|
|
8
|
+
redeemFeeRateE8: string;
|
|
9
|
+
minInvestment: string;
|
|
10
|
+
userHolding: string;
|
|
11
|
+
leftQuota: string;
|
|
12
|
+
canMint: boolean;
|
|
13
|
+
savingsBalance: string;
|
|
14
|
+
aprE8: string;
|
|
15
|
+
bonusAprE8: string;
|
|
16
|
+
bonusMaxAmount: string;
|
|
17
|
+
baseCoinPrecision: number;
|
|
18
|
+
tokenPrecision: number;
|
|
19
|
+
}
|
|
20
|
+
export interface PlaceEarnTokenOrderResultV5 {
|
|
21
|
+
orderId: string;
|
|
22
|
+
orderLinkId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EarnTokenOrderV5 {
|
|
25
|
+
orderId: string;
|
|
26
|
+
orderLinkId: string;
|
|
27
|
+
orderType: 'Mint' | 'Redeem';
|
|
28
|
+
fromCoin: string;
|
|
29
|
+
toCoin: string;
|
|
30
|
+
fromAmount: string;
|
|
31
|
+
toAmount: string;
|
|
32
|
+
serviceFee: string;
|
|
33
|
+
status: 'Success' | 'Processing' | 'Fail';
|
|
34
|
+
createdTime: string;
|
|
35
|
+
}
|
|
36
|
+
export interface EarnTokenPositionV5 {
|
|
37
|
+
totalAmount: string;
|
|
38
|
+
totalYield: string;
|
|
39
|
+
yesterdayYield: string;
|
|
40
|
+
aprE8: number;
|
|
41
|
+
bonusAprE8: number;
|
|
42
|
+
bonusMaxAmount: string;
|
|
43
|
+
hasQuota: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface EarnTokenDailyYieldRecordV5 {
|
|
46
|
+
yield: string;
|
|
47
|
+
bonusYield: string;
|
|
48
|
+
status: 'Success' | 'Processing';
|
|
49
|
+
createdTime: string;
|
|
50
|
+
}
|
|
51
|
+
export interface EarnTokenHourlyYieldRecordV5 {
|
|
52
|
+
effectiveAmount: string;
|
|
53
|
+
yield: string;
|
|
54
|
+
rewardType: 0 | 1;
|
|
55
|
+
aprE8: string;
|
|
56
|
+
hourlyDate: string;
|
|
57
|
+
createdTime: string;
|
|
58
|
+
}
|
|
59
|
+
export interface EarnTokenHistoryAprPointV5 {
|
|
60
|
+
timestamp: string;
|
|
61
|
+
aprE8: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v5-earn-token.js","sourceRoot":"","sources":["../../../src/types/response/v5-earn-token.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|