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,384 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* * Common | Notice
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface AnnouncementV2 {
|
|
7
|
+
annId: string;
|
|
8
|
+
annTitle: string;
|
|
9
|
+
annDesc: string;
|
|
10
|
+
cTime: string;
|
|
11
|
+
language: string;
|
|
12
|
+
annUrl: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* * Common | Public
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* * Common | Tax
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export interface SpotTransactionRecordV2 {
|
|
25
|
+
id: string;
|
|
26
|
+
coin: string;
|
|
27
|
+
spotTaxType: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
fee: string;
|
|
30
|
+
balance: string;
|
|
31
|
+
ts: string;
|
|
32
|
+
}
|
|
33
|
+
export interface FuturesTransactionRecordV2 {
|
|
34
|
+
id: string;
|
|
35
|
+
symbol: string;
|
|
36
|
+
marginCoin: string;
|
|
37
|
+
futureTaxType: string;
|
|
38
|
+
amount: string;
|
|
39
|
+
fee: string;
|
|
40
|
+
ts: string;
|
|
41
|
+
}
|
|
42
|
+
export interface MarginTransactionRecordV2 {
|
|
43
|
+
id: string;
|
|
44
|
+
coin: string;
|
|
45
|
+
marginTaxType: string;
|
|
46
|
+
amount: string;
|
|
47
|
+
fee: string;
|
|
48
|
+
total: string;
|
|
49
|
+
symbol: string;
|
|
50
|
+
ts: string;
|
|
51
|
+
}
|
|
52
|
+
export interface P2PMerchantOrdersV2 {
|
|
53
|
+
id: string;
|
|
54
|
+
coin: string;
|
|
55
|
+
p2pTaxType: string;
|
|
56
|
+
total: string;
|
|
57
|
+
ts: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* * Common | P2P
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export interface P2PMerchantV2 {
|
|
65
|
+
registerTime: string;
|
|
66
|
+
nickName: string;
|
|
67
|
+
isOnline: string;
|
|
68
|
+
avgPaymentTime: string;
|
|
69
|
+
avgReleaseTime: string;
|
|
70
|
+
totalTrades: string;
|
|
71
|
+
totalBuy: string;
|
|
72
|
+
totalSell: string;
|
|
73
|
+
totalCompletionRate: string;
|
|
74
|
+
trades30d: string;
|
|
75
|
+
sell30d: string;
|
|
76
|
+
buy30d: string;
|
|
77
|
+
completionRate30d: string;
|
|
78
|
+
}
|
|
79
|
+
export interface P2PMerchantInfoV2 {
|
|
80
|
+
registerTime: string;
|
|
81
|
+
nickName: string;
|
|
82
|
+
merchantId: string;
|
|
83
|
+
avgPaymentTime: string;
|
|
84
|
+
avgReleaseTime: string;
|
|
85
|
+
totalTrades: string;
|
|
86
|
+
totalBuy: string;
|
|
87
|
+
totalSell: string;
|
|
88
|
+
totalCompletionRate: string;
|
|
89
|
+
trades30d: string;
|
|
90
|
+
sell30d: string;
|
|
91
|
+
buy30d: string;
|
|
92
|
+
completionRate30d: string;
|
|
93
|
+
kycStatus: boolean;
|
|
94
|
+
emailBindStatus: boolean;
|
|
95
|
+
mobileBindStatus: boolean;
|
|
96
|
+
email: string;
|
|
97
|
+
mobile: string;
|
|
98
|
+
}
|
|
99
|
+
export interface P2PMerchantOrderV2 {
|
|
100
|
+
orderId: string;
|
|
101
|
+
orderNo: string;
|
|
102
|
+
advNo: string;
|
|
103
|
+
side: string;
|
|
104
|
+
count: string;
|
|
105
|
+
coin: string;
|
|
106
|
+
price: string;
|
|
107
|
+
fiat: string;
|
|
108
|
+
withdrawTime: string;
|
|
109
|
+
representTime: string;
|
|
110
|
+
releaseTime: string;
|
|
111
|
+
paymentTime: string;
|
|
112
|
+
amount: string;
|
|
113
|
+
status: string;
|
|
114
|
+
buyerRealName: string;
|
|
115
|
+
sellerRealName: string;
|
|
116
|
+
ctime: string;
|
|
117
|
+
utime: string;
|
|
118
|
+
paymentInfo: {
|
|
119
|
+
paymethodName: string;
|
|
120
|
+
paymethodId: string;
|
|
121
|
+
paymethodInfo: {
|
|
122
|
+
name: string;
|
|
123
|
+
required: string;
|
|
124
|
+
type: string;
|
|
125
|
+
value: string;
|
|
126
|
+
}[];
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export interface P2PMerchantAdvertismentV2 {
|
|
130
|
+
advId: string;
|
|
131
|
+
advNo: string;
|
|
132
|
+
side: string;
|
|
133
|
+
advSize: string;
|
|
134
|
+
size: string;
|
|
135
|
+
coin: string;
|
|
136
|
+
price: string;
|
|
137
|
+
coinPrecision: string;
|
|
138
|
+
fiat: string;
|
|
139
|
+
fiatPrecision: string;
|
|
140
|
+
fiatSymbol: string;
|
|
141
|
+
status: string;
|
|
142
|
+
hide: string;
|
|
143
|
+
maxTradeAmount: string;
|
|
144
|
+
minTradeAmount: string;
|
|
145
|
+
payDuration: string;
|
|
146
|
+
turnoverNum: string;
|
|
147
|
+
turnoverRate: string;
|
|
148
|
+
label: string | null;
|
|
149
|
+
userLimitList: {
|
|
150
|
+
minCompleteNum: string;
|
|
151
|
+
maxCompleteNum: string;
|
|
152
|
+
placeOrderNum: string;
|
|
153
|
+
allowMerchantPlace: string;
|
|
154
|
+
completeRate30d: string;
|
|
155
|
+
country: string;
|
|
156
|
+
};
|
|
157
|
+
paymentMethodList: {
|
|
158
|
+
paymentMethod: string;
|
|
159
|
+
paymentId: string;
|
|
160
|
+
paymentInfo: {
|
|
161
|
+
name: string;
|
|
162
|
+
required: boolean;
|
|
163
|
+
type: string;
|
|
164
|
+
}[];
|
|
165
|
+
}[];
|
|
166
|
+
merchantCertifiedList: {
|
|
167
|
+
imageUrl: string;
|
|
168
|
+
desc: string;
|
|
169
|
+
}[];
|
|
170
|
+
utime: string;
|
|
171
|
+
ctime: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* * Common | Trading insights
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
export interface SpotWhaleNetFlowV2 {
|
|
179
|
+
volume: string;
|
|
180
|
+
date: string;
|
|
181
|
+
}
|
|
182
|
+
export interface FuturesActiveBuySellVolumeV2 {
|
|
183
|
+
buyVolume: string;
|
|
184
|
+
sellVolume: string;
|
|
185
|
+
ts: string;
|
|
186
|
+
}
|
|
187
|
+
export interface FuturesActiveLongShortPositionV2 {
|
|
188
|
+
longPositionRatio: string;
|
|
189
|
+
shortPositionRatio: string;
|
|
190
|
+
longShortPositionRatio: string;
|
|
191
|
+
ts: string;
|
|
192
|
+
}
|
|
193
|
+
export interface LeveragedLongShortRatioV2 {
|
|
194
|
+
ts: string;
|
|
195
|
+
longShortRatio: string;
|
|
196
|
+
}
|
|
197
|
+
export interface MarginLoanGrowthRateV2 {
|
|
198
|
+
ts: string;
|
|
199
|
+
growthRate: string;
|
|
200
|
+
}
|
|
201
|
+
export interface IsolatedMarginBorrowingRatioV2 {
|
|
202
|
+
ts: string;
|
|
203
|
+
borrowRate: string;
|
|
204
|
+
}
|
|
205
|
+
export interface FuturesLongShortRatioV2 {
|
|
206
|
+
longRatio: string;
|
|
207
|
+
shortRatio: string;
|
|
208
|
+
longShortRatio: string;
|
|
209
|
+
ts: string;
|
|
210
|
+
}
|
|
211
|
+
export interface SpotFundFlowV2 {
|
|
212
|
+
whaleBuyVolume: string;
|
|
213
|
+
dolphinBuyVolume: string;
|
|
214
|
+
fishBuyVolume: string;
|
|
215
|
+
whaleSellVolume: string;
|
|
216
|
+
dolphinSellVolume: string;
|
|
217
|
+
fishSellVolume: string;
|
|
218
|
+
whaleBuyRatio: string;
|
|
219
|
+
dolphinBuyRatio: string;
|
|
220
|
+
fishBuyRatio: string;
|
|
221
|
+
whaleSellRatio: string;
|
|
222
|
+
dolphinSellRatio: string;
|
|
223
|
+
fishSellRatio: string;
|
|
224
|
+
}
|
|
225
|
+
export interface FuturesActiveLongShortAccountV2 {
|
|
226
|
+
longAccountRatio: string;
|
|
227
|
+
shortAccountRatio: string;
|
|
228
|
+
longShortAccountRatio: string;
|
|
229
|
+
ts: string;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* * Common | Virtual Subaccount
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
236
|
+
export interface CreateVirtualSubAccountV2 {
|
|
237
|
+
failureList: {
|
|
238
|
+
subaAccountName: string;
|
|
239
|
+
}[];
|
|
240
|
+
successList: {
|
|
241
|
+
subaAccountUid: string;
|
|
242
|
+
subaAccountName: string;
|
|
243
|
+
status: string;
|
|
244
|
+
label: string;
|
|
245
|
+
permList: string[];
|
|
246
|
+
cTime: string;
|
|
247
|
+
uTime: string;
|
|
248
|
+
}[];
|
|
249
|
+
}
|
|
250
|
+
export interface CreateVirtualSubAccountAndApiKeyV2 {
|
|
251
|
+
subAccountUid: string;
|
|
252
|
+
subAccountName: string;
|
|
253
|
+
label: string;
|
|
254
|
+
subAccountApiKey: string;
|
|
255
|
+
secretKey: string;
|
|
256
|
+
permList: string[];
|
|
257
|
+
ipList: string[];
|
|
258
|
+
}
|
|
259
|
+
export interface VirtualSubAccountV2 {
|
|
260
|
+
subAccountUid: string;
|
|
261
|
+
subAccountName: string;
|
|
262
|
+
status: string;
|
|
263
|
+
permList: string[];
|
|
264
|
+
label: string;
|
|
265
|
+
accountType: string;
|
|
266
|
+
bindingTime: string;
|
|
267
|
+
cTime: string;
|
|
268
|
+
uTime: string;
|
|
269
|
+
}
|
|
270
|
+
export interface CreateVirtualSubAccountApiKeyV2 {
|
|
271
|
+
subAccountUid: string;
|
|
272
|
+
label: string;
|
|
273
|
+
subAccountApiKey: string;
|
|
274
|
+
secretKey: string;
|
|
275
|
+
permList: string[];
|
|
276
|
+
ipList: string[];
|
|
277
|
+
}
|
|
278
|
+
export interface ModifyVirtualSubAccountApiKeyV2 {
|
|
279
|
+
subAccountUid: string;
|
|
280
|
+
label: string;
|
|
281
|
+
subAccountApiKey: string;
|
|
282
|
+
secretKey: string;
|
|
283
|
+
permList: string[];
|
|
284
|
+
ipList: string[];
|
|
285
|
+
}
|
|
286
|
+
export interface SubAccountApiKeyItemV2 {
|
|
287
|
+
subAccountUid: string;
|
|
288
|
+
label: string;
|
|
289
|
+
subAccountApiKey: string;
|
|
290
|
+
permList: string[];
|
|
291
|
+
ipList: string[];
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* * Common | Assets
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
export interface FundingAssetV2 {
|
|
299
|
+
coin: string;
|
|
300
|
+
available: string;
|
|
301
|
+
frozen: string;
|
|
302
|
+
usdtValue: string;
|
|
303
|
+
}
|
|
304
|
+
export interface BotAssetV2 {
|
|
305
|
+
coin: string;
|
|
306
|
+
available: string;
|
|
307
|
+
equity: string;
|
|
308
|
+
bonus: string;
|
|
309
|
+
frozen: string;
|
|
310
|
+
usdtValue: string;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* * Common | Convert
|
|
315
|
+
*
|
|
316
|
+
*/
|
|
317
|
+
export interface ConvertCurrencyV2 {
|
|
318
|
+
coin: string;
|
|
319
|
+
available: string;
|
|
320
|
+
maxAmount: string;
|
|
321
|
+
minAmount: string;
|
|
322
|
+
}
|
|
323
|
+
export interface ConvertQuotedPriceV2 {
|
|
324
|
+
fee: string;
|
|
325
|
+
fromCoinSize: string;
|
|
326
|
+
fromCoin: string;
|
|
327
|
+
cnvtPrice: string;
|
|
328
|
+
toCoinSize: string;
|
|
329
|
+
toCoin: string;
|
|
330
|
+
traceId: string;
|
|
331
|
+
}
|
|
332
|
+
export interface ConvertTradeResponseV2 {
|
|
333
|
+
ts: string;
|
|
334
|
+
cnvtPrice: string;
|
|
335
|
+
toCoinSize: string;
|
|
336
|
+
toCoin: string;
|
|
337
|
+
}
|
|
338
|
+
export interface ConvertRecordV2 {
|
|
339
|
+
id: string;
|
|
340
|
+
ts: string;
|
|
341
|
+
cnvtPrice: string;
|
|
342
|
+
fee: string;
|
|
343
|
+
fromCoinSize: string;
|
|
344
|
+
fromCoin: string;
|
|
345
|
+
toCoinSize: string;
|
|
346
|
+
toCoin: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* * Common | BGB Convert
|
|
351
|
+
*
|
|
352
|
+
*/
|
|
353
|
+
export interface BGBConvertCoinV2 {
|
|
354
|
+
coin: string;
|
|
355
|
+
available: string;
|
|
356
|
+
bgbEstAmount: string;
|
|
357
|
+
precision: string;
|
|
358
|
+
feeDetail: {
|
|
359
|
+
feeRate: string;
|
|
360
|
+
fee: string;
|
|
361
|
+
}[];
|
|
362
|
+
cTime: string;
|
|
363
|
+
}
|
|
364
|
+
export interface ConvertBGBResponseV2 {
|
|
365
|
+
orderList: {
|
|
366
|
+
coin: string;
|
|
367
|
+
orderId: string;
|
|
368
|
+
}[];
|
|
369
|
+
}
|
|
370
|
+
export interface BGBConvertHistoryV2 {
|
|
371
|
+
orderId: string;
|
|
372
|
+
fromCoin: string;
|
|
373
|
+
fromAmount: string;
|
|
374
|
+
fromCoinPrice: string;
|
|
375
|
+
toCoin: string;
|
|
376
|
+
toAmount: string;
|
|
377
|
+
toCoinPrice: string;
|
|
378
|
+
feeDetail: {
|
|
379
|
+
feeCoin: string;
|
|
380
|
+
fee: string;
|
|
381
|
+
}[];
|
|
382
|
+
status: string;
|
|
383
|
+
ctime: string;
|
|
384
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/types/response/v2/common.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|