bitget-api 3.1.6 → 3.1.8

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 (100) hide show
  1. package/dist/cjs/index.d.ts +8 -0
  2. package/dist/cjs/index.js +8 -0
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/rest-client-v2.d.ts +45 -6
  5. package/dist/cjs/rest-client-v2.js +73 -0
  6. package/dist/cjs/rest-client-v2.js.map +1 -1
  7. package/dist/cjs/rest-client-v3.d.ts +110 -5
  8. package/dist/cjs/rest-client-v3.js +176 -1
  9. package/dist/cjs/rest-client-v3.js.map +1 -1
  10. package/dist/cjs/types/request/v2/broker.d.ts +68 -0
  11. package/dist/cjs/types/request/v2/common.d.ts +7 -0
  12. package/dist/cjs/types/request/v2/earn.d.ts +38 -0
  13. package/dist/cjs/types/request/v3/account.d.ts +16 -0
  14. package/dist/cjs/types/request/v3/broker.d.ts +2 -2
  15. package/dist/cjs/types/request/v3/copytrading.d.ts +15 -0
  16. package/dist/cjs/types/request/v3/copytrading.js +3 -0
  17. package/dist/cjs/types/request/v3/copytrading.js.map +1 -0
  18. package/dist/cjs/types/request/v3/earn.d.ts +38 -0
  19. package/dist/cjs/types/request/v3/earn.js +10 -0
  20. package/dist/cjs/types/request/v3/earn.js.map +1 -0
  21. package/dist/cjs/types/request/v3/p2p.d.ts +105 -0
  22. package/dist/cjs/types/request/v3/p2p.js +3 -0
  23. package/dist/cjs/types/request/v3/p2p.js.map +1 -0
  24. package/dist/cjs/types/request/v3/public.d.ts +4 -0
  25. package/dist/cjs/types/request/v3/strategy.d.ts +28 -13
  26. package/dist/cjs/types/request/v3/trade.d.ts +3 -0
  27. package/dist/cjs/types/response/v2/broker.d.ts +98 -0
  28. package/dist/cjs/types/response/v2/common.d.ts +8 -0
  29. package/dist/cjs/types/response/v2/earn.d.ts +115 -0
  30. package/dist/cjs/types/response/v2/spot.d.ts +2 -0
  31. package/dist/cjs/types/response/v3/account.d.ts +45 -1
  32. package/dist/cjs/types/response/v3/broker.d.ts +3 -3
  33. package/dist/cjs/types/response/v3/copytrading.d.ts +54 -0
  34. package/dist/cjs/types/response/v3/copytrading.js +10 -0
  35. package/dist/cjs/types/response/v3/copytrading.js.map +1 -0
  36. package/dist/cjs/types/response/v3/earn.d.ts +114 -0
  37. package/dist/cjs/types/response/v3/earn.js +10 -0
  38. package/dist/cjs/types/response/v3/earn.js.map +1 -0
  39. package/dist/cjs/types/response/v3/p2p.d.ts +202 -0
  40. package/dist/cjs/types/response/v3/p2p.js +3 -0
  41. package/dist/cjs/types/response/v3/p2p.js.map +1 -0
  42. package/dist/cjs/types/response/v3/public.d.ts +19 -0
  43. package/dist/cjs/types/response/v3/strategy.d.ts +15 -8
  44. package/dist/cjs/types/response/v3/trade.d.ts +2 -1
  45. package/dist/cjs/types/websockets/ws-api-request.d.ts +3 -0
  46. package/dist/cjs/types/websockets/ws-api.d.ts +2 -0
  47. package/dist/cjs/types/websockets/ws-general.d.ts +1 -1
  48. package/dist/cjs/util/websocket-util.js +1 -0
  49. package/dist/cjs/util/websocket-util.js.map +1 -1
  50. package/dist/mjs/index.d.ts +8 -0
  51. package/dist/mjs/index.js +8 -0
  52. package/dist/mjs/index.js.map +1 -1
  53. package/dist/mjs/rest-client-v2.d.ts +45 -6
  54. package/dist/mjs/rest-client-v2.js +73 -0
  55. package/dist/mjs/rest-client-v2.js.map +1 -1
  56. package/dist/mjs/rest-client-v3.d.ts +110 -5
  57. package/dist/mjs/rest-client-v3.js +176 -1
  58. package/dist/mjs/rest-client-v3.js.map +1 -1
  59. package/dist/mjs/types/request/v2/broker.d.ts +68 -0
  60. package/dist/mjs/types/request/v2/common.d.ts +7 -0
  61. package/dist/mjs/types/request/v2/earn.d.ts +38 -0
  62. package/dist/mjs/types/request/v3/account.d.ts +16 -0
  63. package/dist/mjs/types/request/v3/broker.d.ts +2 -2
  64. package/dist/mjs/types/request/v3/copytrading.d.ts +15 -0
  65. package/dist/mjs/types/request/v3/copytrading.js +2 -0
  66. package/dist/mjs/types/request/v3/copytrading.js.map +1 -0
  67. package/dist/mjs/types/request/v3/earn.d.ts +38 -0
  68. package/dist/mjs/types/request/v3/earn.js +9 -0
  69. package/dist/mjs/types/request/v3/earn.js.map +1 -0
  70. package/dist/mjs/types/request/v3/p2p.d.ts +105 -0
  71. package/dist/mjs/types/request/v3/p2p.js +2 -0
  72. package/dist/mjs/types/request/v3/p2p.js.map +1 -0
  73. package/dist/mjs/types/request/v3/public.d.ts +4 -0
  74. package/dist/mjs/types/request/v3/strategy.d.ts +28 -13
  75. package/dist/mjs/types/request/v3/trade.d.ts +3 -0
  76. package/dist/mjs/types/response/v2/broker.d.ts +98 -0
  77. package/dist/mjs/types/response/v2/common.d.ts +8 -0
  78. package/dist/mjs/types/response/v2/earn.d.ts +115 -0
  79. package/dist/mjs/types/response/v2/spot.d.ts +2 -0
  80. package/dist/mjs/types/response/v3/account.d.ts +45 -1
  81. package/dist/mjs/types/response/v3/broker.d.ts +3 -3
  82. package/dist/mjs/types/response/v3/copytrading.d.ts +54 -0
  83. package/dist/mjs/types/response/v3/copytrading.js +9 -0
  84. package/dist/mjs/types/response/v3/copytrading.js.map +1 -0
  85. package/dist/mjs/types/response/v3/earn.d.ts +114 -0
  86. package/dist/mjs/types/response/v3/earn.js +9 -0
  87. package/dist/mjs/types/response/v3/earn.js.map +1 -0
  88. package/dist/mjs/types/response/v3/p2p.d.ts +202 -0
  89. package/dist/mjs/types/response/v3/p2p.js +2 -0
  90. package/dist/mjs/types/response/v3/p2p.js.map +1 -0
  91. package/dist/mjs/types/response/v3/public.d.ts +19 -0
  92. package/dist/mjs/types/response/v3/strategy.d.ts +15 -8
  93. package/dist/mjs/types/response/v3/trade.d.ts +2 -1
  94. package/dist/mjs/types/websockets/ws-api-request.d.ts +3 -0
  95. package/dist/mjs/types/websockets/ws-api.d.ts +2 -0
  96. package/dist/mjs/types/websockets/ws-general.d.ts +1 -1
  97. package/dist/mjs/util/websocket-util.js +1 -0
  98. package/dist/mjs/util/websocket-util.js.map +1 -1
  99. package/llms.txt +7178 -5570
  100. package/package.json +1 -1
@@ -1,32 +1,47 @@
1
+ export type StrategyOrderTypeV3 = 'tpsl' | 'trigger';
2
+ export type StrategyOrderStatusV3 = 'pending' | 'success' | 'failed' | 'cancelled' | 'submitting';
3
+ export type StrategyTriggerByV3 = 'market' | 'mark';
4
+ export type StrategyTriggerOrderTypeV3 = 'limit' | 'market';
1
5
  export interface PlaceStrategyOrderRequestV3 {
2
6
  category: 'USDT-FUTURES' | 'COIN-FUTURES' | 'USDC-FUTURES';
3
7
  symbol: string;
4
8
  clientOid?: string;
5
- type?: 'tpsl';
9
+ type?: StrategyOrderTypeV3;
6
10
  tpslMode?: 'full' | 'partial';
7
- qty: string;
8
- posSide: 'long' | 'short';
9
- tpTriggerBy?: 'market' | 'mark';
10
- slTriggerBy?: 'market' | 'mark';
11
+ /** Required when tpslMode=partial or for trigger orders */
12
+ qty?: string;
13
+ side?: 'buy' | 'sell';
14
+ posSide?: 'long' | 'short';
15
+ reduceOnly?: 'yes' | 'no';
16
+ tpTriggerBy?: StrategyTriggerByV3;
17
+ slTriggerBy?: StrategyTriggerByV3;
11
18
  takeProfit?: string;
12
19
  stopLoss?: string;
13
- tpOrderType?: 'limit' | 'market';
14
- slOrderType?: 'limit' | 'market';
20
+ tpOrderType?: StrategyTriggerOrderTypeV3;
21
+ slOrderType?: StrategyTriggerOrderTypeV3;
15
22
  tpLimitPrice?: string;
16
23
  slLimitPrice?: string;
24
+ triggerBy?: StrategyTriggerByV3;
25
+ triggerPrice?: string;
26
+ triggerOrderType?: StrategyTriggerOrderTypeV3;
27
+ triggerOrderPrice?: string;
17
28
  }
18
29
  export interface ModifyStrategyOrderRequestV3 {
19
30
  orderId?: string;
20
31
  clientOid?: string;
21
32
  qty: string;
22
- tpTriggerBy?: 'market' | 'mark';
23
- slTriggerBy?: 'market' | 'mark';
33
+ tpTriggerBy?: StrategyTriggerByV3;
34
+ slTriggerBy?: StrategyTriggerByV3;
24
35
  takeProfit?: string;
25
36
  stopLoss?: string;
26
- tpOrderType?: 'limit' | 'market';
27
- slOrderType?: 'limit' | 'market';
37
+ tpOrderType?: StrategyTriggerOrderTypeV3;
38
+ slOrderType?: StrategyTriggerOrderTypeV3;
28
39
  tpLimitPrice?: string;
29
40
  slLimitPrice?: string;
41
+ triggerBy?: StrategyTriggerByV3;
42
+ triggerPrice?: string;
43
+ triggerOrderType?: StrategyTriggerOrderTypeV3;
44
+ triggerOrderPrice?: string;
30
45
  }
31
46
  export interface CancelStrategyOrderRequestV3 {
32
47
  orderId?: string;
@@ -34,11 +49,11 @@ export interface CancelStrategyOrderRequestV3 {
34
49
  }
35
50
  export interface GetUnfilledStrategyOrdersRequestV3 {
36
51
  category: 'USDT-FUTURES' | 'COIN-FUTURES' | 'USDC-FUTURES';
37
- type?: 'tpsl';
52
+ type?: StrategyOrderTypeV3;
38
53
  }
39
54
  export interface GetHistoryStrategyOrdersRequestV3 {
40
55
  category: 'USDT-FUTURES' | 'COIN-FUTURES' | 'USDC-FUTURES';
41
- type?: 'tpsl';
56
+ type?: StrategyOrderTypeV3;
42
57
  startTime?: string;
43
58
  endTime?: string;
44
59
  limit?: string;
@@ -90,6 +90,7 @@ export interface PlaceBatchOrdersRequestV3 {
90
90
  clientOid?: string;
91
91
  reduceOnly?: 'yes' | 'no';
92
92
  }
93
+ export type FuturesMarginModeV3 = 'crossed' | 'isolated';
93
94
  export interface PlaceOrderRequestV3 {
94
95
  category: 'SPOT' | 'MARGIN' | 'USDT-FUTURES' | 'COIN-FUTURES' | 'USDC-FUTURES';
95
96
  symbol: string;
@@ -101,6 +102,8 @@ export interface PlaceOrderRequestV3 {
101
102
  posSide?: 'long' | 'short';
102
103
  clientOid?: string;
103
104
  reduceOnly?: 'yes' | 'no';
105
+ /** Futures only. Defaults to crossed */
106
+ marginMode?: FuturesMarginModeV3;
104
107
  stpMode?: 'none' | 'cancel_taker' | 'cancel_maker' | 'cancel_both';
105
108
  takeProfitPrice?: string;
106
109
  stopLossPrice?: string;
@@ -243,3 +243,101 @@ export interface BrokerRebateInfoV2 {
243
243
  clientSpotRebateRatio: string;
244
244
  clientFuturesRebateRatio: string;
245
245
  }
246
+ /**
247
+ *
248
+ * * Broker | Agent (affiliate) customer APIs
249
+ *
250
+ */
251
+ export interface AgentCustomerCommissionItemV2 {
252
+ uid: string;
253
+ date: string;
254
+ coin: string;
255
+ symbol: string;
256
+ productType: 'SPOT' | 'MARGIN' | 'USDT-FUTURES' | 'COIN-FUTURES' | 'USDC-FUTURES' | string;
257
+ dealAmount: string;
258
+ fee: string;
259
+ feeDeduction: string;
260
+ activityBonusDeduct: string;
261
+ spotCouponDeduct: string;
262
+ futuresCouponDeduct: string;
263
+ spotFeeDiscountDeduct: string;
264
+ negativeMakerFeeDeduct: string;
265
+ feePaid: string;
266
+ rebateAmount: string;
267
+ userTotalRebateAmount: string;
268
+ dayTotalRebateAmount: string;
269
+ totalRebateAmount: string;
270
+ }
271
+ export interface AgentCustomerCommissionsV2 {
272
+ endId: string;
273
+ commissionList: AgentCustomerCommissionItemV2[];
274
+ }
275
+ export interface AgentSubCustomerItemV2 {
276
+ uid: string;
277
+ registerTime: string;
278
+ }
279
+ export interface AgentSubCustomerListV2 {
280
+ list: AgentSubCustomerItemV2[];
281
+ minId: string;
282
+ }
283
+ export interface AgentCustomerTradeVolumeItemV2 {
284
+ uid: string;
285
+ /** API field name (Bitget spelling). */
286
+ volumn: string;
287
+ spotVolume: string;
288
+ futuresVolume: string;
289
+ time: string;
290
+ }
291
+ export interface AgentCustomerListItemV2 {
292
+ uid: string;
293
+ registerTime: string;
294
+ }
295
+ export interface AgentCustomerKycItemV2 {
296
+ uid: string;
297
+ kycResult: 'passed' | 'not_passed' | string;
298
+ }
299
+ export interface AgentCustomerKycResultV2 {
300
+ userList: AgentCustomerKycItemV2[];
301
+ endId: string;
302
+ }
303
+ export interface AgentCustomerDepositItemV2 {
304
+ orderId: string;
305
+ uid: string;
306
+ depositTime: string;
307
+ depositCoin: string;
308
+ depositAmount: string;
309
+ }
310
+ export interface AgentCustomerAssetItemV2 {
311
+ balance: string;
312
+ uid: string;
313
+ uTime: string;
314
+ remark: string;
315
+ }
316
+ export interface AgentCommissionDetailItemV2 {
317
+ uid: string;
318
+ bizType: 'spot' | 'futures' | string;
319
+ subBizType: string;
320
+ symbol: string;
321
+ coin: string;
322
+ fee: string;
323
+ volume: string;
324
+ activityBonusDeduct: string;
325
+ spotCouponDeduct: string;
326
+ futuresCouponDeduct: string;
327
+ spotFeeDiscountDeduct: string;
328
+ negativeMakerFeeDeduct: string;
329
+ feePaid: string;
330
+ directCommission: string;
331
+ subCommission: string;
332
+ partnerCommission: string;
333
+ partnerActualCommission: string;
334
+ traderType: string;
335
+ apiType: string;
336
+ status: 'settled' | 'unsettled' | 'notIssued' | string;
337
+ startCalculationTime: string;
338
+ endCalculationTime: string;
339
+ }
340
+ export interface AgentCommissionDetailV2 {
341
+ endId: string;
342
+ commissionList: AgentCommissionDetailItemV2[];
343
+ }
@@ -283,6 +283,14 @@ export interface ModifyVirtualSubAccountApiKeyV2 {
283
283
  permList: string[];
284
284
  ipList: string[];
285
285
  }
286
+ export interface CreateAgentSubaccountV2 {
287
+ username: string;
288
+ subUid: string;
289
+ apiKey: string;
290
+ secret: string;
291
+ note: string;
292
+ createdTime: string;
293
+ }
286
294
  export interface SubAccountApiKeyItemV2 {
287
295
  subAccountUid: string;
288
296
  label: string;
@@ -292,3 +292,118 @@ export interface EarnLoanLiquidationRecordsV2 {
292
292
  runlockAmount: string;
293
293
  repayLoanAmount: string;
294
294
  }
295
+ /**
296
+ *
297
+ *
298
+ * Earn | On-Chain Elite
299
+ *
300
+ *
301
+ */
302
+ export interface EarnEliteSubscriptionCoinV2 {
303
+ subscriptionCoin: string;
304
+ precision: string;
305
+ feeRate: string;
306
+ exchangeRate: string;
307
+ remainQuota?: string;
308
+ minAmount?: string;
309
+ }
310
+ export interface EarnEliteProductV2 {
311
+ productId: string;
312
+ coin: string;
313
+ minApr: string;
314
+ maxApr: string;
315
+ subscriptionCoinList: EarnEliteSubscriptionCoinV2[];
316
+ sellOut: 'YES' | 'NO' | string;
317
+ }
318
+ export interface EarnEliteAssetProjectV2 {
319
+ projectName: string;
320
+ }
321
+ export interface EarnEliteAssetV2 {
322
+ productId: string;
323
+ productCoin: string;
324
+ holdingAmount: string;
325
+ usdtHoldingAmount: string;
326
+ exchangeRate: string;
327
+ apr: string;
328
+ minApy?: string;
329
+ maxApy?: string;
330
+ subscriptionCoin: string;
331
+ exchangeAmount: string;
332
+ projectList?: EarnEliteAssetProjectV2[];
333
+ unsettledBGPoints: string;
334
+ interestCoin: string;
335
+ totalProfit: string;
336
+ }
337
+ export interface EarnEliteAssetsV2 {
338
+ resultList: EarnEliteAssetV2[];
339
+ }
340
+ export interface EarnEliteRecordV2 {
341
+ recordId: string;
342
+ productId: string;
343
+ coin: string;
344
+ status: string;
345
+ exchangeRate: string;
346
+ receivedCoin: string;
347
+ receivedAmount: string;
348
+ investAmount: string;
349
+ feeRate: string;
350
+ redeemType?: string | string[];
351
+ receivingAccount: string;
352
+ actualReceivingAccount: string;
353
+ paymentAccount?: string[];
354
+ settlePoints: string;
355
+ fee: string;
356
+ }
357
+ export interface EarnEliteRecordsV2 {
358
+ recordList: EarnEliteRecordV2[];
359
+ endId: string;
360
+ }
361
+ export interface EarnEliteSubscribeInfoV2 {
362
+ productSubId: string;
363
+ minAmount: string;
364
+ remainQuota: string;
365
+ exchangeRate: string;
366
+ productCoin: string;
367
+ interestTime: string;
368
+ settleTime: string;
369
+ precision: string;
370
+ feeRate: string;
371
+ /** Present for BGUSD per API docs. */
372
+ subscriptionCoinList?: EarnEliteSubscriptionCoinV2[];
373
+ }
374
+ export interface EarnEliteSubscribeResultV2 {
375
+ orderId: string;
376
+ }
377
+ export interface EarnEliteSubscribeStatusV2 {
378
+ result: 'settled' | 'pending' | 'rejected' | string;
379
+ }
380
+ export interface EarnEliteRedeemInfoBgusdReceiveCoinV2 {
381
+ bgusdReceiveCoin: string;
382
+ bgusdExchangeRate: string;
383
+ }
384
+ export interface EarnEliteRedeemModeV2 {
385
+ redeemFeeRate: string;
386
+ remainQuota: string;
387
+ redeemType: 'fast' | 'standard' | string;
388
+ redeemScale: string;
389
+ redeemDelayDate: string;
390
+ minRedeemAmount: string;
391
+ redeemTime: string;
392
+ }
393
+ export interface EarnEliteRedeemInfoV2 {
394
+ productId: string;
395
+ productSubId: string;
396
+ productCoin: string;
397
+ subscriptionCoin: string;
398
+ profitCoin: string;
399
+ exchangeRate: string;
400
+ totalUnPayInterestAmount: string;
401
+ preSettleApr: string;
402
+ receivedCoin: string;
403
+ unsettledPoints: string;
404
+ bgusdReceiveCoinList: EarnEliteRedeemInfoBgusdReceiveCoinV2[];
405
+ redeemModeList: EarnEliteRedeemModeV2[];
406
+ }
407
+ export interface RedeemEarnEliteResultV2 {
408
+ orderId: string;
409
+ }
@@ -43,6 +43,8 @@ export interface SpotSymbolInfoV2 {
43
43
  sellLimitPriceRatio: string;
44
44
  orderQuantity: string;
45
45
  areaSymbol: string;
46
+ maxLimitOrderValue?: string;
47
+ maxMarketOrderValue?: string;
46
48
  }
47
49
  export interface SpotVipFeeRateV2 {
48
50
  level: number;
@@ -8,12 +8,41 @@ export interface AccountCoinConfigV3 {
8
8
  coin: string;
9
9
  leverage: string;
10
10
  }
11
+ export type AccountPermissionV3 = 'uta_mgt' | 'uta_trade' | 'withdraw' | 'copy_futures_position' | 'copy_futures_order';
12
+ export interface AccountInfoV3 {
13
+ userId: string;
14
+ inviterId: string;
15
+ /** Only set when the calling account is a sub-account */
16
+ parentId: string;
17
+ channelCode: string;
18
+ channel: string;
19
+ ips: string;
20
+ permType: 'read-only' | 'read-and-write';
21
+ permissions: AccountPermissionV3[];
22
+ regisTime: string;
23
+ }
24
+ export type AccountLevelV3 = 'basic' | 'advanced' | 'isolated' | 'delta';
11
25
  export interface AccountSettingsV3 {
26
+ uid: string;
27
+ accountMode: 'unified' | 'hybrid' | 'upgrading' | 'switching';
12
28
  assetMode: string;
29
+ accountLevel: AccountLevelV3;
13
30
  holdMode: string;
31
+ stpMode: 'none' | 'cancel_taker' | 'cancel_maker' | 'cancel_both';
14
32
  symbolConfigList: AccountSymbolConfigV3[];
15
33
  coinConfigList: AccountCoinConfigV3[];
16
34
  }
35
+ export interface AccountDeltaCoinPositionV3 {
36
+ coin: string;
37
+ positionRatio: string;
38
+ }
39
+ /** Delta-neutral mode metrics. Only available when accountLevel is delta. */
40
+ export interface AccountDeltaInfoV3 {
41
+ deltaEquityRatio: string;
42
+ deltaThreshold: string;
43
+ positionThreshold: string;
44
+ list: AccountDeltaCoinPositionV3[];
45
+ }
17
46
  export interface AccountAssetV3 {
18
47
  coin: string;
19
48
  equity: string;
@@ -106,11 +135,26 @@ export interface SubAccountV3 {
106
135
  username: string;
107
136
  status: string;
108
137
  accountMode: string;
109
- type: string;
138
+ type: 'normal' | 'virtual' | 'custodian';
110
139
  note: string;
111
140
  createdTime: string;
112
141
  updatedTime: string;
113
142
  }
143
+ export interface WithdrawAddressBookEntryV3 {
144
+ coin: string;
145
+ chain: string;
146
+ address: string;
147
+ countryCode: string;
148
+ label: string;
149
+ memo: string;
150
+ type: 'regular' | 'EVM' | 'universal' | 'internal';
151
+ internalType: '' | 'uid' | 'mobile' | 'email';
152
+ createdTime: string;
153
+ }
154
+ export interface WithdrawAddressBookV3 {
155
+ addressList: WithdrawAddressBookEntryV3[];
156
+ cursor?: string;
157
+ }
114
158
  export interface TransferResponseV3 {
115
159
  transferId: string;
116
160
  }
@@ -73,7 +73,7 @@ export interface CreateBrokerSubApiKeyResponseV3 {
73
73
  label: string;
74
74
  apiKey: string;
75
75
  secretKey: string;
76
- permType: 'read_and_write' | 'readonly';
76
+ permType: 'read_write' | 'read_only';
77
77
  permList: string[];
78
78
  ipList: string[] | null;
79
79
  }
@@ -81,7 +81,7 @@ export interface ModifyBrokerSubApiKeyResponseV3 {
81
81
  subUid: string;
82
82
  label: string;
83
83
  apiKey: string;
84
- permType: 'read_and_write' | 'readonly';
84
+ permType: 'read_write' | 'read_only';
85
85
  permList: string[];
86
86
  ipList: string[];
87
87
  }
@@ -90,7 +90,7 @@ export interface GetBrokerSubApiKeyResponseV3 {
90
90
  label: string;
91
91
  apiKey: string;
92
92
  secretKey: string;
93
- permType: 'read_and_write' | 'readonly';
93
+ permType: 'read_write' | 'read_only';
94
94
  permList: string[];
95
95
  ipList: string[] | null;
96
96
  }
@@ -0,0 +1,54 @@
1
+ /**
2
+ *
3
+ *
4
+ * Copy Trading | Futures (UTA)
5
+ *
6
+ *
7
+ */
8
+ export interface CopyFuturesMarginDetailV3 {
9
+ marginCoin: string;
10
+ maxLongCount: string;
11
+ remainingLongCount: string;
12
+ maxShortCount: string;
13
+ remainingShortCount: string;
14
+ }
15
+ export interface CopyFuturesTradingPairV3 {
16
+ symbol: string;
17
+ leverage: string;
18
+ marginDetails: CopyFuturesMarginDetailV3[];
19
+ }
20
+ export interface CopyFuturesPositionSummaryV3 {
21
+ unrealizedPnl: string;
22
+ realizedPnl: string;
23
+ holdSize: string;
24
+ avgPrice: string;
25
+ symbol: string;
26
+ leverage: string;
27
+ marginMode: string;
28
+ liqPrice: string;
29
+ margin: string;
30
+ holdSide: string;
31
+ roi: string;
32
+ markPrice: string;
33
+ positionValue: string;
34
+ }
35
+ export interface CopyFuturesMaxTransferableV3 {
36
+ maxTransferable: string;
37
+ available: string;
38
+ }
39
+ export interface CopyFuturesTransferResponseV3 {
40
+ transferId: string;
41
+ }
42
+ export type CopyFuturesTransferAccountTypeV3 = 'spot' | 'uta' | 'lead';
43
+ export interface CopyFuturesTransferRecordV3 {
44
+ transferId: string;
45
+ fromType: CopyFuturesTransferAccountTypeV3;
46
+ toType: CopyFuturesTransferAccountTypeV3;
47
+ amount: string;
48
+ coin: string;
49
+ status: 'Successful' | 'Failed' | 'Processing';
50
+ createdTime: string;
51
+ }
52
+ export interface CopyFuturesTransferRecordListV3 {
53
+ list: CopyFuturesTransferRecordV3[];
54
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * Copy Trading | Futures (UTA)
6
+ *
7
+ *
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=copytrading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copytrading.js","sourceRoot":"","sources":["../../../../../src/types/response/v3/copytrading.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
@@ -0,0 +1,114 @@
1
+ /**
2
+ *
3
+ *
4
+ * Earn | On-Chain Elite (UTA)
5
+ *
6
+ *
7
+ */
8
+ export interface EarnEliteSubscriptionCoinV3 {
9
+ subscriptionCoin: string;
10
+ precision: string;
11
+ feeRate: string;
12
+ exchangeRate: string;
13
+ remainQuota?: string;
14
+ minAmount?: string;
15
+ }
16
+ export interface EarnEliteProductV3 {
17
+ productId: string;
18
+ coin: string;
19
+ minApr: string;
20
+ maxApr: string;
21
+ subscriptionCoinList: EarnEliteSubscriptionCoinV3[];
22
+ sellOut: 'YES' | 'NO' | string;
23
+ }
24
+ export interface EarnEliteAssetProjectV3 {
25
+ projectName: string;
26
+ }
27
+ export interface EarnEliteAssetV3 {
28
+ productId: string;
29
+ productCoin: string;
30
+ holdingAmount: string;
31
+ usdtHoldingAmount: string;
32
+ exchangeRate: string;
33
+ apr: string;
34
+ minApy?: string;
35
+ maxApy?: string;
36
+ subscriptionCoin: string;
37
+ exchangeAmount: string;
38
+ projectList?: EarnEliteAssetProjectV3[];
39
+ unsettledBGPoints: string;
40
+ interestCoin: string;
41
+ totalProfit: string;
42
+ }
43
+ export interface EarnEliteAssetsV3 {
44
+ resultList: EarnEliteAssetV3[];
45
+ }
46
+ export interface EarnEliteRecordV3 {
47
+ recordId: string;
48
+ productId: string;
49
+ coin: string;
50
+ status: string;
51
+ exchangeRate: string;
52
+ receivedCoin: string;
53
+ receivedAmount: string;
54
+ investAmount: string;
55
+ feeRate: string;
56
+ redeemType?: string | string[];
57
+ receivingAccount: string;
58
+ actualReceivingAccount: string;
59
+ paymentAccount?: string[];
60
+ settlePoints: string;
61
+ fee: string;
62
+ }
63
+ export interface EarnEliteRecordsV3 {
64
+ recordList: EarnEliteRecordV3[];
65
+ endId: string;
66
+ }
67
+ export interface EarnEliteSubscribeInfoV3 {
68
+ productSubId: string;
69
+ minAmount: string;
70
+ remainQuota: string;
71
+ exchangeRate: string;
72
+ productCoin: string;
73
+ interestTime: string;
74
+ settleTime: string;
75
+ precision: string;
76
+ feeRate: string;
77
+ subscriptionCoinList?: EarnEliteSubscriptionCoinV3[];
78
+ }
79
+ export interface EarnEliteSubscribeResultV3 {
80
+ orderId: string;
81
+ }
82
+ export interface EarnEliteSubscribeStatusV3 {
83
+ result: 'settled' | 'pending' | 'rejected' | string;
84
+ }
85
+ export interface EarnEliteRedeemInfoBgusdReceiveCoinV3 {
86
+ bgusdReceiveCoin: string;
87
+ bgusdExchangeRate: string;
88
+ }
89
+ export interface EarnEliteRedeemModeV3 {
90
+ redeemFeeRate: string;
91
+ remainQuota: string;
92
+ redeemType: 'fast' | 'standard' | string;
93
+ redeemScale: string;
94
+ redeemDelayDate: string;
95
+ minRedeemAmount: string;
96
+ redeemTime: string;
97
+ }
98
+ export interface EarnEliteRedeemInfoV3 {
99
+ productId: string;
100
+ productSubId: string;
101
+ productCoin: string;
102
+ subscriptionCoin: string;
103
+ profitCoin: string;
104
+ exchangeRate: string;
105
+ totalUnPayInterestAmount: string;
106
+ preSettleApr: string;
107
+ receivedCoin: string;
108
+ unsettledPoints: string;
109
+ bgusdReceiveCoinList: EarnEliteRedeemInfoBgusdReceiveCoinV3[];
110
+ redeemModeList: EarnEliteRedeemModeV3[];
111
+ }
112
+ export interface RedeemEarnEliteResultV3 {
113
+ orderId: string;
114
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * Earn | On-Chain Elite (UTA)
6
+ *
7
+ *
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=earn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"earn.js","sourceRoot":"","sources":["../../../../../src/types/response/v3/earn.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}