bitget-api 2.2.0 → 2.3.0
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/lib/rest-client-v2.d.ts +528 -260
- package/lib/rest-client-v2.js +26 -26
- package/lib/rest-client-v2.js.map +1 -1
- package/lib/types/response/index.d.ts +10 -3
- package/lib/types/response/index.js +10 -3
- package/lib/types/response/index.js.map +1 -1
- package/lib/types/response/{futures.d.ts → v1/futures.d.ts} +1 -1
- package/lib/types/response/v1/futures.js.map +1 -0
- package/lib/types/response/v1/shared.js.map +1 -0
- package/lib/types/response/{spot.js.map → v1/spot.js.map} +1 -1
- package/lib/types/response/v2/broker.d.ts +135 -0
- package/lib/types/response/v2/broker.js +8 -0
- package/lib/types/response/v2/broker.js.map +1 -0
- package/lib/types/response/v2/common.d.ts +384 -0
- package/lib/types/response/v2/common.js +8 -0
- package/lib/types/response/v2/common.js.map +1 -0
- package/lib/types/response/v2/copy-trading.d.ts +385 -0
- package/lib/types/response/v2/copy-trading.js +10 -0
- package/lib/types/response/v2/copy-trading.js.map +1 -0
- package/lib/types/response/v2/earn.d.ts +294 -0
- package/lib/types/response/v2/earn.js +10 -0
- package/lib/types/response/v2/earn.js.map +1 -0
- package/lib/types/response/v2/futures.d.ts +546 -0
- package/lib/types/response/v2/futures.js +8 -0
- package/lib/types/response/v2/futures.js.map +1 -0
- package/lib/types/response/v2/margin.d.ts +277 -0
- package/lib/types/response/v2/margin.js +8 -0
- package/lib/types/response/v2/margin.js.map +1 -0
- package/lib/types/response/v2/spot.d.ts +385 -0
- package/lib/types/response/v2/spot.js +8 -0
- package/lib/types/response/v2/spot.js.map +1 -0
- package/package.json +1 -1
- package/lib/types/response/futures.js.map +0 -1
- package/lib/types/response/shared.js.map +0 -1
- /package/lib/types/response/{futures.js → v1/futures.js} +0 -0
- /package/lib/types/response/{shared.d.ts → v1/shared.d.ts} +0 -0
- /package/lib/types/response/{shared.js → v1/shared.js} +0 -0
- /package/lib/types/response/{spot.d.ts → v1/spot.d.ts} +0 -0
- /package/lib/types/response/{spot.js → v1/spot.js} +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* * Margin | Common
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface MarginCurrencyV2 {
|
|
7
|
+
symbol: string;
|
|
8
|
+
baseCoin: string;
|
|
9
|
+
quoteCoin: string;
|
|
10
|
+
maxCrossedLeverage: string;
|
|
11
|
+
maxIsolatedLeverage: string;
|
|
12
|
+
warningRiskRatio: string;
|
|
13
|
+
liquidationRiskRatio: string;
|
|
14
|
+
minTradeAmount: string;
|
|
15
|
+
maxTradeAmount: string;
|
|
16
|
+
takerFeeRate: string;
|
|
17
|
+
makerFeeRate: string;
|
|
18
|
+
pricePrecision: string;
|
|
19
|
+
quantityPrecision: string;
|
|
20
|
+
minTradeUSDT: string;
|
|
21
|
+
isBorrowable: boolean;
|
|
22
|
+
userMinBorrow: string;
|
|
23
|
+
status: string;
|
|
24
|
+
isIsolatedBaseBorrowable: boolean;
|
|
25
|
+
isIsolatedQuoteBorrowable: boolean;
|
|
26
|
+
isCrossBorrowable: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* * Margin | Cross/Isolated | Order Record
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export interface MarginBorrowHistoryItemV2 {
|
|
34
|
+
loanId: string;
|
|
35
|
+
coin: string;
|
|
36
|
+
borrowAmount: string;
|
|
37
|
+
borrowType: string;
|
|
38
|
+
cTime: string;
|
|
39
|
+
uTime: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MarginRepaymentHistoryItemV2 {
|
|
42
|
+
repayId: string;
|
|
43
|
+
coin: string;
|
|
44
|
+
repayAmount: string;
|
|
45
|
+
repayType: string;
|
|
46
|
+
repayInterest: string;
|
|
47
|
+
repayPrincipal: string;
|
|
48
|
+
symbol: string;
|
|
49
|
+
cTime: string;
|
|
50
|
+
uTime: string;
|
|
51
|
+
}
|
|
52
|
+
export interface MarginInterestHistoryItemV2 {
|
|
53
|
+
interestId: string;
|
|
54
|
+
interestCoin: string;
|
|
55
|
+
dailyInterestRate: string;
|
|
56
|
+
loanCoin: string;
|
|
57
|
+
interestAmount: string;
|
|
58
|
+
interstType: string;
|
|
59
|
+
symbol: string;
|
|
60
|
+
cTime: string;
|
|
61
|
+
uTime: string;
|
|
62
|
+
}
|
|
63
|
+
export interface MarginLiquidationHistoryItemV2 {
|
|
64
|
+
liqId: string;
|
|
65
|
+
symbol: string;
|
|
66
|
+
liqStartTime: string;
|
|
67
|
+
liqEndTime: string;
|
|
68
|
+
liqRiskRatio: string;
|
|
69
|
+
totalAssets: string;
|
|
70
|
+
totalDebt: string;
|
|
71
|
+
liqFee: string;
|
|
72
|
+
cTime: string;
|
|
73
|
+
uTime: string;
|
|
74
|
+
}
|
|
75
|
+
export interface MarginFinancialHistoryItemV2 {
|
|
76
|
+
coin: string;
|
|
77
|
+
symbol: string;
|
|
78
|
+
marginId: string;
|
|
79
|
+
amount: string;
|
|
80
|
+
balance: string;
|
|
81
|
+
fee: string;
|
|
82
|
+
marginType: string;
|
|
83
|
+
cTime: string;
|
|
84
|
+
uTime: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* * Margin | Cross/Isolated | Account
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
export interface MarginAccountAssetV2 {
|
|
92
|
+
symbol: string;
|
|
93
|
+
coin: string;
|
|
94
|
+
totalAmount: string;
|
|
95
|
+
available: string;
|
|
96
|
+
frozen: string;
|
|
97
|
+
borrow: string;
|
|
98
|
+
interest: string;
|
|
99
|
+
net: string;
|
|
100
|
+
coupon: string;
|
|
101
|
+
cTime: string;
|
|
102
|
+
uTime: string;
|
|
103
|
+
}
|
|
104
|
+
export interface CrossMaxBorrowableResponseV2 {
|
|
105
|
+
coin: string;
|
|
106
|
+
maxBorrowableAmount: string;
|
|
107
|
+
}
|
|
108
|
+
export interface IsolatedMaxBorrowableResponseV2 {
|
|
109
|
+
symbol: string;
|
|
110
|
+
baseCoin: string;
|
|
111
|
+
baseCoinMaxBorrowAmount: string;
|
|
112
|
+
quoteCoin: string;
|
|
113
|
+
quoteCoinMaxBorrowAmount: string;
|
|
114
|
+
}
|
|
115
|
+
export interface CrossMaxTransferableResponseV2 {
|
|
116
|
+
coin: string;
|
|
117
|
+
maxTransferOutAmount: string;
|
|
118
|
+
}
|
|
119
|
+
export interface IsolatedMaxTransferableResponseV2 {
|
|
120
|
+
baseCoin: string;
|
|
121
|
+
symbol: string;
|
|
122
|
+
baseCoinMaxTransferOutAmount: string;
|
|
123
|
+
quoteCoin: string;
|
|
124
|
+
quoteCoinMaxTransferOutAmount: string;
|
|
125
|
+
}
|
|
126
|
+
export interface CrossInterestRateAndLimitResponseV2 {
|
|
127
|
+
transferable: boolean;
|
|
128
|
+
leverage: string;
|
|
129
|
+
coin: string;
|
|
130
|
+
borrowable: boolean;
|
|
131
|
+
dailyInterestRate: string;
|
|
132
|
+
annualInterestRate: string;
|
|
133
|
+
maxBorrowableAmount: string;
|
|
134
|
+
vipList: {
|
|
135
|
+
level: string;
|
|
136
|
+
limit: string;
|
|
137
|
+
dailyInterestRate: string;
|
|
138
|
+
annualInterestRate: string;
|
|
139
|
+
discountRate: string;
|
|
140
|
+
}[];
|
|
141
|
+
}
|
|
142
|
+
export interface IsolatedInterestRateAndLimitResponseV2 {
|
|
143
|
+
symbol: string;
|
|
144
|
+
leverage: string;
|
|
145
|
+
baseCoin: string;
|
|
146
|
+
baseTransferable: boolean;
|
|
147
|
+
baseBorrowable: boolean;
|
|
148
|
+
baseDailyInterestRate: string;
|
|
149
|
+
baseAnnuallyInterestRate: string;
|
|
150
|
+
baseMaxBorrowableAmount: string;
|
|
151
|
+
baseVipList: {
|
|
152
|
+
level: string;
|
|
153
|
+
dailyInterestRate: string;
|
|
154
|
+
limit: string;
|
|
155
|
+
annuallyInterestRate: string;
|
|
156
|
+
discountRate: string;
|
|
157
|
+
}[];
|
|
158
|
+
quoteCoin: string;
|
|
159
|
+
quoteTransferable: boolean;
|
|
160
|
+
quoteBorrowable: boolean;
|
|
161
|
+
quoteDailyInterestRate: string;
|
|
162
|
+
quoteAnnuallyInterestRate: string;
|
|
163
|
+
quoteMaxBorrowableAmount: string;
|
|
164
|
+
quoteList: {
|
|
165
|
+
level: string;
|
|
166
|
+
dailyInterestRate: string;
|
|
167
|
+
limit: string;
|
|
168
|
+
annuallyInterestRate: string;
|
|
169
|
+
discountRate: string;
|
|
170
|
+
}[];
|
|
171
|
+
}
|
|
172
|
+
export interface CrossTierConfigurationResponseV2 {
|
|
173
|
+
tier: string;
|
|
174
|
+
leverage: string;
|
|
175
|
+
coin: string;
|
|
176
|
+
maxBorrowableAmount: string;
|
|
177
|
+
maintainMarginRate: string;
|
|
178
|
+
}
|
|
179
|
+
export interface IsolatedTierConfigurationResponseV2 {
|
|
180
|
+
tier: string;
|
|
181
|
+
symbol: string;
|
|
182
|
+
leverage: string;
|
|
183
|
+
baseCoin: string;
|
|
184
|
+
quoteCoin: string;
|
|
185
|
+
baseMaxBorrowableAmount: string;
|
|
186
|
+
quoteMaxBorrowableAmount: string;
|
|
187
|
+
maintainMarginRate: string;
|
|
188
|
+
initRate: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* * Margin | Cross/Isolated | Trade
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
export interface MarginBatchOrdersResponseV2 {
|
|
196
|
+
successList: {
|
|
197
|
+
orderId: string;
|
|
198
|
+
clientOid: string;
|
|
199
|
+
}[];
|
|
200
|
+
failureList: {
|
|
201
|
+
clientOid: string;
|
|
202
|
+
errorMsg: string;
|
|
203
|
+
}[];
|
|
204
|
+
}
|
|
205
|
+
export interface MarginCurrentOrderV2 {
|
|
206
|
+
orderId: string;
|
|
207
|
+
symbol: string;
|
|
208
|
+
orderType: string;
|
|
209
|
+
enterPointSource: string;
|
|
210
|
+
clientOid: string;
|
|
211
|
+
loanType: string;
|
|
212
|
+
price: string;
|
|
213
|
+
side: string;
|
|
214
|
+
status: string;
|
|
215
|
+
baseSize: string;
|
|
216
|
+
quoteSize: string;
|
|
217
|
+
priceAvg: string;
|
|
218
|
+
size: string;
|
|
219
|
+
amount: string;
|
|
220
|
+
force: string;
|
|
221
|
+
cTime: string;
|
|
222
|
+
uTime: string;
|
|
223
|
+
}
|
|
224
|
+
export interface MarginHistoryOrderV2 {
|
|
225
|
+
orderId: string;
|
|
226
|
+
symbol: string;
|
|
227
|
+
orderType: string;
|
|
228
|
+
enterPointSource: string;
|
|
229
|
+
clientOid: string;
|
|
230
|
+
loanType: string;
|
|
231
|
+
price: string;
|
|
232
|
+
side: string;
|
|
233
|
+
status: string;
|
|
234
|
+
baseSize: string;
|
|
235
|
+
quoteSize: string;
|
|
236
|
+
priceAvg: string;
|
|
237
|
+
size: string;
|
|
238
|
+
amount: string;
|
|
239
|
+
force: string;
|
|
240
|
+
cTime: string;
|
|
241
|
+
uTime: string;
|
|
242
|
+
}
|
|
243
|
+
export interface MarginOrderFillV2 {
|
|
244
|
+
orderId: string;
|
|
245
|
+
tradeId: string;
|
|
246
|
+
orderType: string;
|
|
247
|
+
side: string;
|
|
248
|
+
priceAvg: string;
|
|
249
|
+
size: string;
|
|
250
|
+
amount: string;
|
|
251
|
+
tradeScope: string;
|
|
252
|
+
feeDetail: {
|
|
253
|
+
deduction: string;
|
|
254
|
+
feeCoin: string;
|
|
255
|
+
totalDeductionFee: string;
|
|
256
|
+
totalFee: string;
|
|
257
|
+
};
|
|
258
|
+
cTime: string;
|
|
259
|
+
uTime: string;
|
|
260
|
+
}
|
|
261
|
+
export interface MarginLiquidationOrderV2 {
|
|
262
|
+
symbol: string;
|
|
263
|
+
orderType: string;
|
|
264
|
+
side: string;
|
|
265
|
+
priceAvg: string;
|
|
266
|
+
price: string;
|
|
267
|
+
fillSize: string;
|
|
268
|
+
size: string;
|
|
269
|
+
amount: string;
|
|
270
|
+
orderId: string;
|
|
271
|
+
fromCoin: string;
|
|
272
|
+
toCoin: string;
|
|
273
|
+
fromSize: string;
|
|
274
|
+
toSize: string;
|
|
275
|
+
cTime: string;
|
|
276
|
+
uTime: string;
|
|
277
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"margin.js","sourceRoot":"","sources":["../../../../src/types/response/v2/margin.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* * Spot | Market
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface SpotCoinChainV2 {
|
|
7
|
+
chain: string;
|
|
8
|
+
needTag: boolean;
|
|
9
|
+
withdrawable: boolean;
|
|
10
|
+
rechargeable: boolean;
|
|
11
|
+
withdrawFee: string;
|
|
12
|
+
extraWithdrawFee: string;
|
|
13
|
+
depositConfirm: string;
|
|
14
|
+
withdrawConfirm: string;
|
|
15
|
+
minDepositAmount: string;
|
|
16
|
+
minWithdrawAmount: string;
|
|
17
|
+
browserUrl: string;
|
|
18
|
+
contractAddress: string;
|
|
19
|
+
withdrawStep: string;
|
|
20
|
+
withdrawMinScale: string;
|
|
21
|
+
congestion: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SpotCoinInfoV2 {
|
|
24
|
+
coinId: string;
|
|
25
|
+
coin: string;
|
|
26
|
+
transfer: boolean;
|
|
27
|
+
chains: SpotCoinChainV2[];
|
|
28
|
+
}
|
|
29
|
+
export interface SpotSymbolInfoV2 {
|
|
30
|
+
symbol: string;
|
|
31
|
+
baseCoin: string;
|
|
32
|
+
quoteCoin: string;
|
|
33
|
+
minTradeAmount: string;
|
|
34
|
+
maxTradeAmount: string;
|
|
35
|
+
takerFeeRate: string;
|
|
36
|
+
makerFeeRate: string;
|
|
37
|
+
pricePrecision: string;
|
|
38
|
+
quantityPrecision: string;
|
|
39
|
+
quotePrecision: string;
|
|
40
|
+
minTradeUSDT: string;
|
|
41
|
+
status: string;
|
|
42
|
+
buyLimitPriceRatio: string;
|
|
43
|
+
sellLimitPriceRatio: string;
|
|
44
|
+
orderQuantity: string;
|
|
45
|
+
areaSymbol: string;
|
|
46
|
+
}
|
|
47
|
+
export interface SpotVipFeeRateV2 {
|
|
48
|
+
level: number;
|
|
49
|
+
dealAmount: string;
|
|
50
|
+
assetAmount: string;
|
|
51
|
+
takerFeeRate: string;
|
|
52
|
+
makerFeeRate: string;
|
|
53
|
+
btcWithdrawAmount: string;
|
|
54
|
+
usdtWithdrawAmount: string;
|
|
55
|
+
}
|
|
56
|
+
export interface SpotTickerV2 {
|
|
57
|
+
symbol: string;
|
|
58
|
+
high24h: string;
|
|
59
|
+
open: string;
|
|
60
|
+
low24h: string;
|
|
61
|
+
lastPr: string;
|
|
62
|
+
quoteVolume: string;
|
|
63
|
+
baseVolume: string;
|
|
64
|
+
usdtVolume: string;
|
|
65
|
+
bidPr: string;
|
|
66
|
+
askPr: string;
|
|
67
|
+
bidSz: string;
|
|
68
|
+
askSz: string;
|
|
69
|
+
openUtc: string;
|
|
70
|
+
ts: string;
|
|
71
|
+
changeUtc24h: string;
|
|
72
|
+
change24h: string;
|
|
73
|
+
}
|
|
74
|
+
export interface SpotMergeDepthV2 {
|
|
75
|
+
asks: [string, string][];
|
|
76
|
+
bids: [string, string][];
|
|
77
|
+
ts: string;
|
|
78
|
+
scale: string;
|
|
79
|
+
precision: string;
|
|
80
|
+
isMaxPrecision: string;
|
|
81
|
+
}
|
|
82
|
+
export interface SpotOrderBookDepthV2 {
|
|
83
|
+
asks: [string, string][];
|
|
84
|
+
bids: [string, string][];
|
|
85
|
+
ts: string;
|
|
86
|
+
}
|
|
87
|
+
export declare type SpotCandlestickV2 = [
|
|
88
|
+
string,
|
|
89
|
+
string,
|
|
90
|
+
string,
|
|
91
|
+
string,
|
|
92
|
+
string,
|
|
93
|
+
string,
|
|
94
|
+
string,
|
|
95
|
+
string
|
|
96
|
+
];
|
|
97
|
+
export interface SpotTradeV2 {
|
|
98
|
+
symbol: string;
|
|
99
|
+
tradeId: string;
|
|
100
|
+
side: string;
|
|
101
|
+
price: string;
|
|
102
|
+
size: string;
|
|
103
|
+
ts: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* * Spot | Trade
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
export interface CancelAndSubmitSpotOrderResponseV2 {
|
|
111
|
+
orderId: string;
|
|
112
|
+
clientOid: string | null;
|
|
113
|
+
success: string;
|
|
114
|
+
msg: string | null;
|
|
115
|
+
}
|
|
116
|
+
export interface SubmitSpotBatchOrdersResponseV2 {
|
|
117
|
+
successList: {
|
|
118
|
+
orderId: string;
|
|
119
|
+
clientOid: string;
|
|
120
|
+
}[];
|
|
121
|
+
failureList: {
|
|
122
|
+
orderId: string;
|
|
123
|
+
clientOid: string;
|
|
124
|
+
errorMsg: string;
|
|
125
|
+
errorCode?: string;
|
|
126
|
+
}[];
|
|
127
|
+
}
|
|
128
|
+
export interface SpotOrderInfoV2 {
|
|
129
|
+
userId: string;
|
|
130
|
+
symbol: string;
|
|
131
|
+
orderId: string;
|
|
132
|
+
clientOid: string;
|
|
133
|
+
price: string;
|
|
134
|
+
size: string;
|
|
135
|
+
orderType: string;
|
|
136
|
+
side: string;
|
|
137
|
+
status: string;
|
|
138
|
+
priceAvg: string;
|
|
139
|
+
baseVolume: string;
|
|
140
|
+
quoteVolume: string;
|
|
141
|
+
enterPointSource: string;
|
|
142
|
+
feeDetail: {
|
|
143
|
+
BGB?: {
|
|
144
|
+
deduction: boolean;
|
|
145
|
+
feeCoinCode: string;
|
|
146
|
+
totalDeductionFee: string;
|
|
147
|
+
totalFee: string;
|
|
148
|
+
};
|
|
149
|
+
newFees?: {
|
|
150
|
+
c: number;
|
|
151
|
+
d: number;
|
|
152
|
+
deduction: boolean;
|
|
153
|
+
r: string;
|
|
154
|
+
t: string;
|
|
155
|
+
totalDeductionFee: number;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
orderSource: string;
|
|
159
|
+
cancelReason: string;
|
|
160
|
+
cTime: string;
|
|
161
|
+
uTime: string;
|
|
162
|
+
}
|
|
163
|
+
export interface SpotOpenOrderV2 {
|
|
164
|
+
userId: string;
|
|
165
|
+
symbol: string;
|
|
166
|
+
orderId: string;
|
|
167
|
+
clientOid: string;
|
|
168
|
+
priceAvg: string;
|
|
169
|
+
size: string;
|
|
170
|
+
orderType: string;
|
|
171
|
+
side: string;
|
|
172
|
+
status: string;
|
|
173
|
+
basePrice: string;
|
|
174
|
+
baseVolume: string;
|
|
175
|
+
quoteVolume: string;
|
|
176
|
+
enterPointSource: string;
|
|
177
|
+
orderSource?: string;
|
|
178
|
+
presetTakeProfitPrice: string;
|
|
179
|
+
executeTakeProfitPrice: string;
|
|
180
|
+
presetStopLossPrice: string;
|
|
181
|
+
executeStopLossPrice: string;
|
|
182
|
+
cTime: string;
|
|
183
|
+
uTime?: string;
|
|
184
|
+
tpslType: string;
|
|
185
|
+
triggerPrice: string | null;
|
|
186
|
+
}
|
|
187
|
+
export interface SpotFillV2 {
|
|
188
|
+
userId: string;
|
|
189
|
+
symbol: string;
|
|
190
|
+
orderId: string;
|
|
191
|
+
tradeId: string;
|
|
192
|
+
orderType: string;
|
|
193
|
+
side: string;
|
|
194
|
+
priceAvg: string;
|
|
195
|
+
size: string;
|
|
196
|
+
amount: string;
|
|
197
|
+
feeDetail: {
|
|
198
|
+
deduction: string;
|
|
199
|
+
feeCoin: string;
|
|
200
|
+
totalDeductionFee: string;
|
|
201
|
+
totalFee: string;
|
|
202
|
+
};
|
|
203
|
+
tradeScope: string;
|
|
204
|
+
cTime: string;
|
|
205
|
+
uTime: string;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* * Spot | Trigger Orders
|
|
210
|
+
*
|
|
211
|
+
*/
|
|
212
|
+
export interface SpotCurrentPlanOrderV2 {
|
|
213
|
+
orderId: string;
|
|
214
|
+
clientOid: string;
|
|
215
|
+
symbol: string;
|
|
216
|
+
size: string;
|
|
217
|
+
executePrice: string;
|
|
218
|
+
triggerPrice: string;
|
|
219
|
+
status: string;
|
|
220
|
+
orderType: string;
|
|
221
|
+
side: string;
|
|
222
|
+
planType: string;
|
|
223
|
+
triggerType: string;
|
|
224
|
+
enterPointSource: string;
|
|
225
|
+
uTime: string;
|
|
226
|
+
cTime: string;
|
|
227
|
+
}
|
|
228
|
+
export interface SpotHistoryPlanOrderV2 {
|
|
229
|
+
orderId: string;
|
|
230
|
+
clientOid: string;
|
|
231
|
+
symbol: string;
|
|
232
|
+
size: string;
|
|
233
|
+
executePrice: string;
|
|
234
|
+
triggerPrice: string;
|
|
235
|
+
status: string;
|
|
236
|
+
orderType: string;
|
|
237
|
+
side: string;
|
|
238
|
+
planType: string;
|
|
239
|
+
triggerType: string;
|
|
240
|
+
enterPointSource: string;
|
|
241
|
+
uTime: string;
|
|
242
|
+
cTime: string;
|
|
243
|
+
}
|
|
244
|
+
export interface SpotPlanSubOrderV2 {
|
|
245
|
+
orderId: string;
|
|
246
|
+
price: string;
|
|
247
|
+
type: string;
|
|
248
|
+
status: string;
|
|
249
|
+
}
|
|
250
|
+
export interface SpotCancelPlanOrdersV2 {
|
|
251
|
+
successList: {
|
|
252
|
+
orderId: string;
|
|
253
|
+
clientOid: string;
|
|
254
|
+
}[];
|
|
255
|
+
failureList: {
|
|
256
|
+
orderId: string;
|
|
257
|
+
clientOid: string;
|
|
258
|
+
errorMsg: string;
|
|
259
|
+
}[];
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* * Spot | Account
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
export interface SpotAccountInfoV2 {
|
|
267
|
+
userId: string;
|
|
268
|
+
inviterId: string;
|
|
269
|
+
ips: string;
|
|
270
|
+
authorities: string[];
|
|
271
|
+
parentId: number;
|
|
272
|
+
traderType: string;
|
|
273
|
+
channelCode: string;
|
|
274
|
+
channel: string;
|
|
275
|
+
regisTime: string;
|
|
276
|
+
}
|
|
277
|
+
export interface SpotAccountAssetV2 {
|
|
278
|
+
coin: string;
|
|
279
|
+
available: string;
|
|
280
|
+
frozen: string;
|
|
281
|
+
locked: string;
|
|
282
|
+
limitAvailable: string;
|
|
283
|
+
uTime: string;
|
|
284
|
+
}
|
|
285
|
+
export interface SpotSubAccountAssetV2 {
|
|
286
|
+
coin: string;
|
|
287
|
+
available: string;
|
|
288
|
+
limitAvailable: string;
|
|
289
|
+
frozen: string;
|
|
290
|
+
locked: string;
|
|
291
|
+
uTime: string;
|
|
292
|
+
}
|
|
293
|
+
export interface SpotSubAccountAssetsV2 {
|
|
294
|
+
userId: number;
|
|
295
|
+
assetsList: SpotSubAccountAssetV2[];
|
|
296
|
+
}
|
|
297
|
+
export interface SpotAccountBillV2 {
|
|
298
|
+
cTime: string;
|
|
299
|
+
coin: string;
|
|
300
|
+
groupType: string;
|
|
301
|
+
businessType: string;
|
|
302
|
+
size: string;
|
|
303
|
+
balance: string;
|
|
304
|
+
fees: string;
|
|
305
|
+
billId: string;
|
|
306
|
+
}
|
|
307
|
+
export interface SpotMainSubTransferRecordV2 {
|
|
308
|
+
coin: string;
|
|
309
|
+
status: string;
|
|
310
|
+
toType: string;
|
|
311
|
+
fromType: string;
|
|
312
|
+
size: string;
|
|
313
|
+
ts: string;
|
|
314
|
+
clientOid: string;
|
|
315
|
+
transferId: string;
|
|
316
|
+
fromUserId: string;
|
|
317
|
+
toUserId: string;
|
|
318
|
+
}
|
|
319
|
+
export interface SpotTransferRecordV2 {
|
|
320
|
+
coin: string;
|
|
321
|
+
status: string;
|
|
322
|
+
toType: string;
|
|
323
|
+
toSymbol: string;
|
|
324
|
+
fromType: string;
|
|
325
|
+
fromSymbol: string;
|
|
326
|
+
size: string;
|
|
327
|
+
ts: string;
|
|
328
|
+
clientOid: string;
|
|
329
|
+
transferId: string;
|
|
330
|
+
}
|
|
331
|
+
export interface SpotDepositAddressV2 {
|
|
332
|
+
address: string;
|
|
333
|
+
chain: string;
|
|
334
|
+
coin: string;
|
|
335
|
+
tag: string;
|
|
336
|
+
url: string;
|
|
337
|
+
}
|
|
338
|
+
export interface SpotSubAccountDepositRecordV2 {
|
|
339
|
+
orderId: string;
|
|
340
|
+
tradeId: string;
|
|
341
|
+
coin: string;
|
|
342
|
+
size: string;
|
|
343
|
+
status: string;
|
|
344
|
+
toAddress: string;
|
|
345
|
+
dest: string;
|
|
346
|
+
chain: string;
|
|
347
|
+
fromAddress: string;
|
|
348
|
+
clientOid?: string;
|
|
349
|
+
confirm?: string;
|
|
350
|
+
tag?: string;
|
|
351
|
+
cTime: string;
|
|
352
|
+
uTime: string;
|
|
353
|
+
}
|
|
354
|
+
export interface SpotWithdrawalRecordV2 {
|
|
355
|
+
orderId: string;
|
|
356
|
+
tradeId: string;
|
|
357
|
+
coin: string;
|
|
358
|
+
dest: string;
|
|
359
|
+
clientOid: string;
|
|
360
|
+
type: string;
|
|
361
|
+
tag: string;
|
|
362
|
+
size: string;
|
|
363
|
+
fee: string;
|
|
364
|
+
status: string;
|
|
365
|
+
toAddress: string;
|
|
366
|
+
fromAddress: string;
|
|
367
|
+
confirm: string;
|
|
368
|
+
chain: string;
|
|
369
|
+
cTime: string;
|
|
370
|
+
uTime: string;
|
|
371
|
+
}
|
|
372
|
+
export interface SpotDepositRecordV2 {
|
|
373
|
+
orderId: string;
|
|
374
|
+
tradeId: string;
|
|
375
|
+
coin: string;
|
|
376
|
+
type: string;
|
|
377
|
+
size: string;
|
|
378
|
+
status: string;
|
|
379
|
+
toAddress: string;
|
|
380
|
+
dest: string;
|
|
381
|
+
chain: string;
|
|
382
|
+
fromAddress: string;
|
|
383
|
+
cTime: string;
|
|
384
|
+
uTime: string;
|
|
385
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spot.js","sourceRoot":"","sources":["../../../../src/types/response/v2/spot.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"futures.js","sourceRoot":"","sources":["../../../src/types/response/futures.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/types/response/shared.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|