ccxt 4.5.13 → 4.5.14
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 +5 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/arkham.js +2 -2
- package/dist/cjs/src/binance.js +8 -2
- package/dist/cjs/src/bitget.js +75 -34
- package/dist/cjs/src/cryptocom.js +22 -18
- package/dist/cjs/src/gate.js +79 -27
- package/dist/cjs/src/hyperliquid.js +69 -7
- package/dist/cjs/src/kucoin.js +41 -3
- package/dist/cjs/src/pro/binance.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +9 -6
- package/dist/cjs/src/pro/htx.js +8 -6
- package/dist/cjs/src/toobit.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/binance.d.ts +1 -0
- package/js/src/abstract/binancecoinm.d.ts +1 -0
- package/js/src/abstract/binanceus.d.ts +1 -0
- package/js/src/abstract/binanceusdm.d.ts +1 -0
- package/js/src/abstract/gate.d.ts +62 -18
- package/js/src/abstract/gateio.d.ts +62 -18
- package/js/src/abstract/kucoin.d.ts +30 -0
- package/js/src/abstract/kucoinfutures.d.ts +30 -0
- package/js/src/arkham.js +2 -2
- package/js/src/base/Exchange.d.ts +9 -11
- package/js/src/binance.js +8 -2
- package/js/src/bitget.d.ts +12 -0
- package/js/src/bitget.js +75 -34
- package/js/src/cryptocom.js +22 -18
- package/js/src/gate.js +79 -27
- package/js/src/hyperliquid.d.ts +3 -1
- package/js/src/hyperliquid.js +69 -7
- package/js/src/kucoin.js +41 -3
- package/js/src/pro/binance.js +6 -6
- package/js/src/pro/bitfinex.js +9 -6
- package/js/src/pro/htx.js +8 -6
- package/js/src/toobit.js +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import { implicitReturnType } from '../base/types.js';
|
|
|
2
2
|
import _gate from '../gate.js';
|
|
3
3
|
interface gate {
|
|
4
4
|
publicWalletGetCurrencyChains(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicUnifiedGetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicUnifiedGetHistoryLoanRate(params?: {}): Promise<implicitReturnType>;
|
|
5
7
|
publicSpotGetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
6
8
|
publicSpotGetCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
7
9
|
publicSpotGetCurrencyPairs(params?: {}): Promise<implicitReturnType>;
|
|
@@ -11,13 +13,16 @@ interface gate {
|
|
|
11
13
|
publicSpotGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
12
14
|
publicSpotGetCandlesticks(params?: {}): Promise<implicitReturnType>;
|
|
13
15
|
publicSpotGetTime(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicSpotGetInsuranceHistory(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicMarginGetUniCurrencyPairs(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
publicMarginGetUniCurrencyPairsCurrencyPair(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
publicMarginGetLoanMarginTiers(params?: {}): Promise<implicitReturnType>;
|
|
14
20
|
publicMarginGetCurrencyPairs(params?: {}): Promise<implicitReturnType>;
|
|
15
21
|
publicMarginGetCurrencyPairsCurrencyPair(params?: {}): Promise<implicitReturnType>;
|
|
16
22
|
publicMarginGetFundingBook(params?: {}): Promise<implicitReturnType>;
|
|
17
23
|
publicMarginGetCrossCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
18
24
|
publicMarginGetCrossCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
19
|
-
|
|
20
|
-
publicMarginGetUniCurrencyPairsCurrencyPair(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
publicFlash_swapGetCurrencyPairs(params?: {}): Promise<implicitReturnType>;
|
|
21
26
|
publicFlash_swapGetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
22
27
|
publicFuturesGetSettleContracts(params?: {}): Promise<implicitReturnType>;
|
|
23
28
|
publicFuturesGetSettleContractsContract(params?: {}): Promise<implicitReturnType>;
|
|
@@ -39,6 +44,7 @@ interface gate {
|
|
|
39
44
|
publicDeliveryGetSettleCandlesticks(params?: {}): Promise<implicitReturnType>;
|
|
40
45
|
publicDeliveryGetSettleTickers(params?: {}): Promise<implicitReturnType>;
|
|
41
46
|
publicDeliveryGetSettleInsurance(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
publicDeliveryGetSettleRiskLimitTiers(params?: {}): Promise<implicitReturnType>;
|
|
42
48
|
publicOptionsGetUnderlyings(params?: {}): Promise<implicitReturnType>;
|
|
43
49
|
publicOptionsGetExpirations(params?: {}): Promise<implicitReturnType>;
|
|
44
50
|
publicOptionsGetContracts(params?: {}): Promise<implicitReturnType>;
|
|
@@ -53,6 +59,13 @@ interface gate {
|
|
|
53
59
|
publicOptionsGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
54
60
|
publicEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
55
61
|
publicEarnGetUniCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
publicEarnGetDualInvestmentPlan(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
publicEarnGetStructuredProducts(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
publicLoanGetCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
publicLoanGetMultiCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
publicLoanGetMultiCollateralLtv(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
publicLoanGetMultiCollateralFixedRate(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
publicLoanGetMultiCollateralCurrentRate(params?: {}): Promise<implicitReturnType>;
|
|
56
69
|
privateWithdrawalsPostWithdrawals(params?: {}): Promise<implicitReturnType>;
|
|
57
70
|
privateWithdrawalsPostPush(params?: {}): Promise<implicitReturnType>;
|
|
58
71
|
privateWithdrawalsDeleteWithdrawalsWithdrawalId(params?: {}): Promise<implicitReturnType>;
|
|
@@ -87,23 +100,26 @@ interface gate {
|
|
|
87
100
|
privateSubAccountsPutSubAccountsUserIdKeysKey(params?: {}): Promise<implicitReturnType>;
|
|
88
101
|
privateSubAccountsDeleteSubAccountsUserIdKeysKey(params?: {}): Promise<implicitReturnType>;
|
|
89
102
|
privateUnifiedGetAccounts(params?: {}): Promise<implicitReturnType>;
|
|
90
|
-
privateUnifiedGetAccountMode(params?: {}): Promise<implicitReturnType>;
|
|
91
103
|
privateUnifiedGetBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
92
104
|
privateUnifiedGetTransferable(params?: {}): Promise<implicitReturnType>;
|
|
105
|
+
privateUnifiedGetTransferables(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privateUnifiedGetBatchBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
93
107
|
privateUnifiedGetLoans(params?: {}): Promise<implicitReturnType>;
|
|
94
108
|
privateUnifiedGetLoanRecords(params?: {}): Promise<implicitReturnType>;
|
|
95
109
|
privateUnifiedGetInterestRecords(params?: {}): Promise<implicitReturnType>;
|
|
96
|
-
privateUnifiedGetEstimateRate(params?: {}): Promise<implicitReturnType>;
|
|
97
|
-
privateUnifiedGetCurrencyDiscountTiers(params?: {}): Promise<implicitReturnType>;
|
|
98
110
|
privateUnifiedGetRiskUnits(params?: {}): Promise<implicitReturnType>;
|
|
99
111
|
privateUnifiedGetUnifiedMode(params?: {}): Promise<implicitReturnType>;
|
|
112
|
+
privateUnifiedGetEstimateRate(params?: {}): Promise<implicitReturnType>;
|
|
113
|
+
privateUnifiedGetCurrencyDiscountTiers(params?: {}): Promise<implicitReturnType>;
|
|
100
114
|
privateUnifiedGetLoanMarginTiers(params?: {}): Promise<implicitReturnType>;
|
|
101
115
|
privateUnifiedGetLeverageUserCurrencyConfig(params?: {}): Promise<implicitReturnType>;
|
|
102
116
|
privateUnifiedGetLeverageUserCurrencySetting(params?: {}): Promise<implicitReturnType>;
|
|
103
|
-
|
|
117
|
+
privateUnifiedGetAccountMode(params?: {}): Promise<implicitReturnType>;
|
|
104
118
|
privateUnifiedPostLoans(params?: {}): Promise<implicitReturnType>;
|
|
105
119
|
privateUnifiedPostPortfolioCalculator(params?: {}): Promise<implicitReturnType>;
|
|
106
120
|
privateUnifiedPostLeverageUserCurrencySetting(params?: {}): Promise<implicitReturnType>;
|
|
121
|
+
privateUnifiedPostCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
122
|
+
privateUnifiedPostAccountMode(params?: {}): Promise<implicitReturnType>;
|
|
107
123
|
privateUnifiedPutUnifiedMode(params?: {}): Promise<implicitReturnType>;
|
|
108
124
|
privateSpotGetFee(params?: {}): Promise<implicitReturnType>;
|
|
109
125
|
privateSpotGetBatchFee(params?: {}): Promise<implicitReturnType>;
|
|
@@ -132,6 +148,13 @@ interface gate {
|
|
|
132
148
|
privateMarginGetFundingAccounts(params?: {}): Promise<implicitReturnType>;
|
|
133
149
|
privateMarginGetAutoRepay(params?: {}): Promise<implicitReturnType>;
|
|
134
150
|
privateMarginGetTransferable(params?: {}): Promise<implicitReturnType>;
|
|
151
|
+
privateMarginGetUniEstimateRate(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
privateMarginGetUniLoans(params?: {}): Promise<implicitReturnType>;
|
|
153
|
+
privateMarginGetUniLoanRecords(params?: {}): Promise<implicitReturnType>;
|
|
154
|
+
privateMarginGetUniInterestRecords(params?: {}): Promise<implicitReturnType>;
|
|
155
|
+
privateMarginGetUniBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
156
|
+
privateMarginGetUserLoanMarginTiers(params?: {}): Promise<implicitReturnType>;
|
|
157
|
+
privateMarginGetUserAccount(params?: {}): Promise<implicitReturnType>;
|
|
135
158
|
privateMarginGetLoans(params?: {}): Promise<implicitReturnType>;
|
|
136
159
|
privateMarginGetLoansLoanId(params?: {}): Promise<implicitReturnType>;
|
|
137
160
|
privateMarginGetLoansLoanIdRepayment(params?: {}): Promise<implicitReturnType>;
|
|
@@ -147,23 +170,17 @@ interface gate {
|
|
|
147
170
|
privateMarginGetCrossTransferable(params?: {}): Promise<implicitReturnType>;
|
|
148
171
|
privateMarginGetCrossEstimateRate(params?: {}): Promise<implicitReturnType>;
|
|
149
172
|
privateMarginGetCrossBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
150
|
-
privateMarginGetUniEstimateRate(params?: {}): Promise<implicitReturnType>;
|
|
151
|
-
privateMarginGetUniLoans(params?: {}): Promise<implicitReturnType>;
|
|
152
|
-
privateMarginGetUniLoanRecords(params?: {}): Promise<implicitReturnType>;
|
|
153
|
-
privateMarginGetUniInterestRecords(params?: {}): Promise<implicitReturnType>;
|
|
154
|
-
privateMarginGetUniBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
155
173
|
privateMarginPostAutoRepay(params?: {}): Promise<implicitReturnType>;
|
|
174
|
+
privateMarginPostUniLoans(params?: {}): Promise<implicitReturnType>;
|
|
175
|
+
privateMarginPostLeverageUserMarketSetting(params?: {}): Promise<implicitReturnType>;
|
|
156
176
|
privateMarginPostLoans(params?: {}): Promise<implicitReturnType>;
|
|
157
177
|
privateMarginPostMergedLoans(params?: {}): Promise<implicitReturnType>;
|
|
158
178
|
privateMarginPostLoansLoanIdRepayment(params?: {}): Promise<implicitReturnType>;
|
|
159
179
|
privateMarginPostCrossLoans(params?: {}): Promise<implicitReturnType>;
|
|
160
180
|
privateMarginPostCrossRepayments(params?: {}): Promise<implicitReturnType>;
|
|
161
|
-
privateMarginPostUniLoans(params?: {}): Promise<implicitReturnType>;
|
|
162
181
|
privateMarginPatchLoansLoanId(params?: {}): Promise<implicitReturnType>;
|
|
163
182
|
privateMarginPatchLoanRecordsLoanRecordId(params?: {}): Promise<implicitReturnType>;
|
|
164
183
|
privateMarginDeleteLoansLoanId(params?: {}): Promise<implicitReturnType>;
|
|
165
|
-
privateFlash_swapGetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
166
|
-
privateFlash_swapGetCurrencyPairs(params?: {}): Promise<implicitReturnType>;
|
|
167
184
|
privateFlash_swapGetOrders(params?: {}): Promise<implicitReturnType>;
|
|
168
185
|
privateFlash_swapGetOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
169
186
|
privateFlash_swapPostOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -182,12 +199,14 @@ interface gate {
|
|
|
182
199
|
privateFuturesGetSettleLiquidates(params?: {}): Promise<implicitReturnType>;
|
|
183
200
|
privateFuturesGetSettleAutoDeleverages(params?: {}): Promise<implicitReturnType>;
|
|
184
201
|
privateFuturesGetSettleFee(params?: {}): Promise<implicitReturnType>;
|
|
185
|
-
|
|
202
|
+
privateFuturesGetSettleRiskLimitTable(params?: {}): Promise<implicitReturnType>;
|
|
186
203
|
privateFuturesGetSettlePriceOrders(params?: {}): Promise<implicitReturnType>;
|
|
187
204
|
privateFuturesGetSettlePriceOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
188
205
|
privateFuturesPostSettlePositionsContractMargin(params?: {}): Promise<implicitReturnType>;
|
|
189
206
|
privateFuturesPostSettlePositionsContractLeverage(params?: {}): Promise<implicitReturnType>;
|
|
190
207
|
privateFuturesPostSettlePositionsContractRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
208
|
+
privateFuturesPostSettlePositionsCrossMode(params?: {}): Promise<implicitReturnType>;
|
|
209
|
+
privateFuturesPostSettleDualCompPositionsCrossMode(params?: {}): Promise<implicitReturnType>;
|
|
191
210
|
privateFuturesPostSettleDualMode(params?: {}): Promise<implicitReturnType>;
|
|
192
211
|
privateFuturesPostSettleDualCompPositionsContractMargin(params?: {}): Promise<implicitReturnType>;
|
|
193
212
|
privateFuturesPostSettleDualCompPositionsContractLeverage(params?: {}): Promise<implicitReturnType>;
|
|
@@ -196,6 +215,8 @@ interface gate {
|
|
|
196
215
|
privateFuturesPostSettleBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
197
216
|
privateFuturesPostSettleCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
198
217
|
privateFuturesPostSettleBatchCancelOrders(params?: {}): Promise<implicitReturnType>;
|
|
218
|
+
privateFuturesPostSettleBatchAmendOrders(params?: {}): Promise<implicitReturnType>;
|
|
219
|
+
privateFuturesPostSettleBboOrders(params?: {}): Promise<implicitReturnType>;
|
|
199
220
|
privateFuturesPostSettlePriceOrders(params?: {}): Promise<implicitReturnType>;
|
|
200
221
|
privateFuturesPutSettleOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
201
222
|
privateFuturesDeleteSettleOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -239,14 +260,27 @@ interface gate {
|
|
|
239
260
|
privateOptionsPostMmpReset(params?: {}): Promise<implicitReturnType>;
|
|
240
261
|
privateOptionsDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
241
262
|
privateOptionsDeleteOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
242
|
-
privateEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
243
|
-
privateEarnGetUniCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
244
263
|
privateEarnGetUniLends(params?: {}): Promise<implicitReturnType>;
|
|
245
264
|
privateEarnGetUniLendRecords(params?: {}): Promise<implicitReturnType>;
|
|
246
265
|
privateEarnGetUniInterestsCurrency(params?: {}): Promise<implicitReturnType>;
|
|
247
266
|
privateEarnGetUniInterestRecords(params?: {}): Promise<implicitReturnType>;
|
|
248
267
|
privateEarnGetUniInterestStatusCurrency(params?: {}): Promise<implicitReturnType>;
|
|
268
|
+
privateEarnGetUniChart(params?: {}): Promise<implicitReturnType>;
|
|
269
|
+
privateEarnGetUniRate(params?: {}): Promise<implicitReturnType>;
|
|
270
|
+
privateEarnGetStakingEth2RateRecords(params?: {}): Promise<implicitReturnType>;
|
|
271
|
+
privateEarnGetDualOrders(params?: {}): Promise<implicitReturnType>;
|
|
272
|
+
privateEarnGetStructuredOrders(params?: {}): Promise<implicitReturnType>;
|
|
273
|
+
privateEarnGetStakingCoins(params?: {}): Promise<implicitReturnType>;
|
|
274
|
+
privateEarnGetStakingOrderList(params?: {}): Promise<implicitReturnType>;
|
|
275
|
+
privateEarnGetStakingAwardList(params?: {}): Promise<implicitReturnType>;
|
|
276
|
+
privateEarnGetStakingAssets(params?: {}): Promise<implicitReturnType>;
|
|
277
|
+
privateEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
278
|
+
privateEarnGetUniCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
249
279
|
privateEarnPostUniLends(params?: {}): Promise<implicitReturnType>;
|
|
280
|
+
privateEarnPostStakingEth2Swap(params?: {}): Promise<implicitReturnType>;
|
|
281
|
+
privateEarnPostDualOrders(params?: {}): Promise<implicitReturnType>;
|
|
282
|
+
privateEarnPostStructuredOrders(params?: {}): Promise<implicitReturnType>;
|
|
283
|
+
privateEarnPostStakingSwap(params?: {}): Promise<implicitReturnType>;
|
|
250
284
|
privateEarnPutUniInterestReinvest(params?: {}): Promise<implicitReturnType>;
|
|
251
285
|
privateEarnPatchUniLends(params?: {}): Promise<implicitReturnType>;
|
|
252
286
|
privateLoanGetCollateralOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -255,12 +289,12 @@ interface gate {
|
|
|
255
289
|
privateLoanGetCollateralCollaterals(params?: {}): Promise<implicitReturnType>;
|
|
256
290
|
privateLoanGetCollateralTotalAmount(params?: {}): Promise<implicitReturnType>;
|
|
257
291
|
privateLoanGetCollateralLtv(params?: {}): Promise<implicitReturnType>;
|
|
258
|
-
privateLoanGetCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
259
292
|
privateLoanGetMultiCollateralOrders(params?: {}): Promise<implicitReturnType>;
|
|
260
293
|
privateLoanGetMultiCollateralOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
261
294
|
privateLoanGetMultiCollateralRepay(params?: {}): Promise<implicitReturnType>;
|
|
262
295
|
privateLoanGetMultiCollateralMortgage(params?: {}): Promise<implicitReturnType>;
|
|
263
296
|
privateLoanGetMultiCollateralCurrencyQuota(params?: {}): Promise<implicitReturnType>;
|
|
297
|
+
privateLoanGetCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
264
298
|
privateLoanGetMultiCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
265
299
|
privateLoanGetMultiCollateralLtv(params?: {}): Promise<implicitReturnType>;
|
|
266
300
|
privateLoanGetMultiCollateralFixedRate(params?: {}): Promise<implicitReturnType>;
|
|
@@ -272,15 +306,25 @@ interface gate {
|
|
|
272
306
|
privateLoanPostMultiCollateralRepay(params?: {}): Promise<implicitReturnType>;
|
|
273
307
|
privateLoanPostMultiCollateralMortgage(params?: {}): Promise<implicitReturnType>;
|
|
274
308
|
privateAccountGetDetail(params?: {}): Promise<implicitReturnType>;
|
|
309
|
+
privateAccountGetMainKeys(params?: {}): Promise<implicitReturnType>;
|
|
275
310
|
privateAccountGetRateLimit(params?: {}): Promise<implicitReturnType>;
|
|
276
311
|
privateAccountGetStpGroups(params?: {}): Promise<implicitReturnType>;
|
|
277
312
|
privateAccountGetStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
278
313
|
privateAccountGetStpGroupsDebitFee(params?: {}): Promise<implicitReturnType>;
|
|
314
|
+
privateAccountGetDebitFee(params?: {}): Promise<implicitReturnType>;
|
|
279
315
|
privateAccountPostStpGroups(params?: {}): Promise<implicitReturnType>;
|
|
280
316
|
privateAccountPostStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
317
|
+
privateAccountPostDebitFee(params?: {}): Promise<implicitReturnType>;
|
|
281
318
|
privateAccountDeleteStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
282
319
|
privateRebateGetAgencyTransactionHistory(params?: {}): Promise<implicitReturnType>;
|
|
283
320
|
privateRebateGetAgencyCommissionHistory(params?: {}): Promise<implicitReturnType>;
|
|
321
|
+
privateRebateGetPartnerTransactionHistory(params?: {}): Promise<implicitReturnType>;
|
|
322
|
+
privateRebateGetPartnerCommissionHistory(params?: {}): Promise<implicitReturnType>;
|
|
323
|
+
privateRebateGetPartnerSubList(params?: {}): Promise<implicitReturnType>;
|
|
324
|
+
privateRebateGetBrokerCommissionHistory(params?: {}): Promise<implicitReturnType>;
|
|
325
|
+
privateRebateGetBrokerTransactionHistory(params?: {}): Promise<implicitReturnType>;
|
|
326
|
+
privateRebateGetUserInfo(params?: {}): Promise<implicitReturnType>;
|
|
327
|
+
privateRebateGetUserSubRelation(params?: {}): Promise<implicitReturnType>;
|
|
284
328
|
}
|
|
285
329
|
declare abstract class gate extends _gate {
|
|
286
330
|
}
|
|
@@ -20,6 +20,7 @@ interface Exchange {
|
|
|
20
20
|
publicGetMarkPriceAllSymbols(params?: {}): Promise<implicitReturnType>;
|
|
21
21
|
publicGetMarginConfig(params?: {}): Promise<implicitReturnType>;
|
|
22
22
|
publicGetAnnouncements(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
publicGetMarginCollateralRatio(params?: {}): Promise<implicitReturnType>;
|
|
23
24
|
publicPostBulletPublic(params?: {}): Promise<implicitReturnType>;
|
|
24
25
|
privateGetUserInfo(params?: {}): Promise<implicitReturnType>;
|
|
25
26
|
privateGetAccounts(params?: {}): Promise<implicitReturnType>;
|
|
@@ -89,6 +90,9 @@ interface Exchange {
|
|
|
89
90
|
privateGetRedeemOrders(params?: {}): Promise<implicitReturnType>;
|
|
90
91
|
privateGetPurchaseOrders(params?: {}): Promise<implicitReturnType>;
|
|
91
92
|
privateGetBrokerApiRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
privateGetBrokerQueryMyCommission(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
privateGetBrokerQueryUser(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
privateGetBrokerQueryDetailByUid(params?: {}): Promise<implicitReturnType>;
|
|
92
96
|
privateGetMigrateUserAccountStatus(params?: {}): Promise<implicitReturnType>;
|
|
93
97
|
privateGetAffiliateInviterStatistics(params?: {}): Promise<implicitReturnType>;
|
|
94
98
|
privatePostSubUserCreated(params?: {}): Promise<implicitReturnType>;
|
|
@@ -182,6 +186,8 @@ interface Exchange {
|
|
|
182
186
|
futuresPrivateGetMarginMaxWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
183
187
|
futuresPrivateGetContractsRiskLimitSymbol(params?: {}): Promise<implicitReturnType>;
|
|
184
188
|
futuresPrivateGetFundingHistory(params?: {}): Promise<implicitReturnType>;
|
|
189
|
+
futuresPrivateGetCopyTradeFuturesGetMaxOpenSize(params?: {}): Promise<implicitReturnType>;
|
|
190
|
+
futuresPrivateGetCopyTradeFuturesPositionMarginMaxWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
185
191
|
futuresPrivatePostTransferOut(params?: {}): Promise<implicitReturnType>;
|
|
186
192
|
futuresPrivatePostTransferIn(params?: {}): Promise<implicitReturnType>;
|
|
187
193
|
futuresPrivatePostOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -191,11 +197,24 @@ interface Exchange {
|
|
|
191
197
|
futuresPrivatePostMarginWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
192
198
|
futuresPrivatePostPositionMarginDepositMargin(params?: {}): Promise<implicitReturnType>;
|
|
193
199
|
futuresPrivatePostPositionRiskLimitLevelChange(params?: {}): Promise<implicitReturnType>;
|
|
200
|
+
futuresPrivatePostCopyTradeFuturesOrders(params?: {}): Promise<implicitReturnType>;
|
|
201
|
+
futuresPrivatePostCopyTradeFuturesOrdersTest(params?: {}): Promise<implicitReturnType>;
|
|
202
|
+
futuresPrivatePostCopyTradeFuturesStOrders(params?: {}): Promise<implicitReturnType>;
|
|
203
|
+
futuresPrivatePostCopyTradeFuturesPositionMarginDepositMargin(params?: {}): Promise<implicitReturnType>;
|
|
204
|
+
futuresPrivatePostCopyTradeFuturesPositionMarginWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
205
|
+
futuresPrivatePostCopyTradeFuturesPositionRiskLimitLevelChange(params?: {}): Promise<implicitReturnType>;
|
|
206
|
+
futuresPrivatePostCopyTradeFuturesPositionMarginAutoDepositStatus(params?: {}): Promise<implicitReturnType>;
|
|
207
|
+
futuresPrivatePostCopyTradeFuturesPositionChangeMarginMode(params?: {}): Promise<implicitReturnType>;
|
|
208
|
+
futuresPrivatePostCopyTradeFuturesPositionChangeCrossUserLeverage(params?: {}): Promise<implicitReturnType>;
|
|
209
|
+
futuresPrivatePostCopyTradeGetCrossModeMarginRequirement(params?: {}): Promise<implicitReturnType>;
|
|
210
|
+
futuresPrivatePostCopyTradePositionSwitchPositionMode(params?: {}): Promise<implicitReturnType>;
|
|
194
211
|
futuresPrivatePostBulletPrivate(params?: {}): Promise<implicitReturnType>;
|
|
195
212
|
futuresPrivateDeleteOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
196
213
|
futuresPrivateDeleteOrdersClientOrderClientOid(params?: {}): Promise<implicitReturnType>;
|
|
197
214
|
futuresPrivateDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
198
215
|
futuresPrivateDeleteStopOrders(params?: {}): Promise<implicitReturnType>;
|
|
216
|
+
futuresPrivateDeleteCopyTradeFuturesOrders(params?: {}): Promise<implicitReturnType>;
|
|
217
|
+
futuresPrivateDeleteCopyTradeFuturesOrdersClientOrder(params?: {}): Promise<implicitReturnType>;
|
|
199
218
|
webExchangeGetCurrencyCurrencyChainInfo(params?: {}): Promise<implicitReturnType>;
|
|
200
219
|
brokerGetBrokerNdInfo(params?: {}): Promise<implicitReturnType>;
|
|
201
220
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -221,6 +240,17 @@ interface Exchange {
|
|
|
221
240
|
earnGetEarnEthStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
222
241
|
earnPostEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
223
242
|
earnDeleteEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
243
|
+
utaGetMarketAnnouncement(params?: {}): Promise<implicitReturnType>;
|
|
244
|
+
utaGetMarketCurrency(params?: {}): Promise<implicitReturnType>;
|
|
245
|
+
utaGetMarketInstrument(params?: {}): Promise<implicitReturnType>;
|
|
246
|
+
utaGetMarketTicker(params?: {}): Promise<implicitReturnType>;
|
|
247
|
+
utaGetMarketOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
248
|
+
utaGetMarketTrade(params?: {}): Promise<implicitReturnType>;
|
|
249
|
+
utaGetMarketKline(params?: {}): Promise<implicitReturnType>;
|
|
250
|
+
utaGetMarketFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
251
|
+
utaGetMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
252
|
+
utaGetMarketCrossConfig(params?: {}): Promise<implicitReturnType>;
|
|
253
|
+
utaGetMarketServerStatus(params?: {}): Promise<implicitReturnType>;
|
|
224
254
|
}
|
|
225
255
|
declare abstract class Exchange extends _Exchange {
|
|
226
256
|
}
|
|
@@ -20,6 +20,7 @@ interface kucoin {
|
|
|
20
20
|
publicGetMarkPriceAllSymbols(params?: {}): Promise<implicitReturnType>;
|
|
21
21
|
publicGetMarginConfig(params?: {}): Promise<implicitReturnType>;
|
|
22
22
|
publicGetAnnouncements(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
publicGetMarginCollateralRatio(params?: {}): Promise<implicitReturnType>;
|
|
23
24
|
publicPostBulletPublic(params?: {}): Promise<implicitReturnType>;
|
|
24
25
|
privateGetUserInfo(params?: {}): Promise<implicitReturnType>;
|
|
25
26
|
privateGetAccounts(params?: {}): Promise<implicitReturnType>;
|
|
@@ -89,6 +90,9 @@ interface kucoin {
|
|
|
89
90
|
privateGetRedeemOrders(params?: {}): Promise<implicitReturnType>;
|
|
90
91
|
privateGetPurchaseOrders(params?: {}): Promise<implicitReturnType>;
|
|
91
92
|
privateGetBrokerApiRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
privateGetBrokerQueryMyCommission(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
privateGetBrokerQueryUser(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
privateGetBrokerQueryDetailByUid(params?: {}): Promise<implicitReturnType>;
|
|
92
96
|
privateGetMigrateUserAccountStatus(params?: {}): Promise<implicitReturnType>;
|
|
93
97
|
privateGetAffiliateInviterStatistics(params?: {}): Promise<implicitReturnType>;
|
|
94
98
|
privatePostSubUserCreated(params?: {}): Promise<implicitReturnType>;
|
|
@@ -187,6 +191,8 @@ interface kucoin {
|
|
|
187
191
|
futuresPrivateGetMarginMaxWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
188
192
|
futuresPrivateGetContractsRiskLimitSymbol(params?: {}): Promise<implicitReturnType>;
|
|
189
193
|
futuresPrivateGetFundingHistory(params?: {}): Promise<implicitReturnType>;
|
|
194
|
+
futuresPrivateGetCopyTradeFuturesGetMaxOpenSize(params?: {}): Promise<implicitReturnType>;
|
|
195
|
+
futuresPrivateGetCopyTradeFuturesPositionMarginMaxWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
190
196
|
futuresPrivateGetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
191
197
|
futuresPrivateGetDepositList(params?: {}): Promise<implicitReturnType>;
|
|
192
198
|
futuresPrivateGetWithdrawalsQuotas(params?: {}): Promise<implicitReturnType>;
|
|
@@ -207,6 +213,17 @@ interface kucoin {
|
|
|
207
213
|
futuresPrivatePostMarginWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
208
214
|
futuresPrivatePostPositionMarginDepositMargin(params?: {}): Promise<implicitReturnType>;
|
|
209
215
|
futuresPrivatePostPositionRiskLimitLevelChange(params?: {}): Promise<implicitReturnType>;
|
|
216
|
+
futuresPrivatePostCopyTradeFuturesOrders(params?: {}): Promise<implicitReturnType>;
|
|
217
|
+
futuresPrivatePostCopyTradeFuturesOrdersTest(params?: {}): Promise<implicitReturnType>;
|
|
218
|
+
futuresPrivatePostCopyTradeFuturesStOrders(params?: {}): Promise<implicitReturnType>;
|
|
219
|
+
futuresPrivatePostCopyTradeFuturesPositionMarginDepositMargin(params?: {}): Promise<implicitReturnType>;
|
|
220
|
+
futuresPrivatePostCopyTradeFuturesPositionMarginWithdrawMargin(params?: {}): Promise<implicitReturnType>;
|
|
221
|
+
futuresPrivatePostCopyTradeFuturesPositionRiskLimitLevelChange(params?: {}): Promise<implicitReturnType>;
|
|
222
|
+
futuresPrivatePostCopyTradeFuturesPositionMarginAutoDepositStatus(params?: {}): Promise<implicitReturnType>;
|
|
223
|
+
futuresPrivatePostCopyTradeFuturesPositionChangeMarginMode(params?: {}): Promise<implicitReturnType>;
|
|
224
|
+
futuresPrivatePostCopyTradeFuturesPositionChangeCrossUserLeverage(params?: {}): Promise<implicitReturnType>;
|
|
225
|
+
futuresPrivatePostCopyTradeGetCrossModeMarginRequirement(params?: {}): Promise<implicitReturnType>;
|
|
226
|
+
futuresPrivatePostCopyTradePositionSwitchPositionMode(params?: {}): Promise<implicitReturnType>;
|
|
210
227
|
futuresPrivatePostBulletPrivate(params?: {}): Promise<implicitReturnType>;
|
|
211
228
|
futuresPrivatePostWithdrawals(params?: {}): Promise<implicitReturnType>;
|
|
212
229
|
futuresPrivatePostStOrders(params?: {}): Promise<implicitReturnType>;
|
|
@@ -219,6 +236,8 @@ interface kucoin {
|
|
|
219
236
|
futuresPrivateDeleteOrdersClientOrderClientOid(params?: {}): Promise<implicitReturnType>;
|
|
220
237
|
futuresPrivateDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
221
238
|
futuresPrivateDeleteStopOrders(params?: {}): Promise<implicitReturnType>;
|
|
239
|
+
futuresPrivateDeleteCopyTradeFuturesOrders(params?: {}): Promise<implicitReturnType>;
|
|
240
|
+
futuresPrivateDeleteCopyTradeFuturesOrdersClientOrder(params?: {}): Promise<implicitReturnType>;
|
|
222
241
|
futuresPrivateDeleteWithdrawalsWithdrawalId(params?: {}): Promise<implicitReturnType>;
|
|
223
242
|
futuresPrivateDeleteCancelTransferOut(params?: {}): Promise<implicitReturnType>;
|
|
224
243
|
futuresPrivateDeleteSubApiKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -249,6 +268,17 @@ interface kucoin {
|
|
|
249
268
|
earnGetEarnEthStakingProducts(params?: {}): Promise<implicitReturnType>;
|
|
250
269
|
earnPostEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
251
270
|
earnDeleteEarnOrders(params?: {}): Promise<implicitReturnType>;
|
|
271
|
+
utaGetMarketAnnouncement(params?: {}): Promise<implicitReturnType>;
|
|
272
|
+
utaGetMarketCurrency(params?: {}): Promise<implicitReturnType>;
|
|
273
|
+
utaGetMarketInstrument(params?: {}): Promise<implicitReturnType>;
|
|
274
|
+
utaGetMarketTicker(params?: {}): Promise<implicitReturnType>;
|
|
275
|
+
utaGetMarketOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
276
|
+
utaGetMarketTrade(params?: {}): Promise<implicitReturnType>;
|
|
277
|
+
utaGetMarketKline(params?: {}): Promise<implicitReturnType>;
|
|
278
|
+
utaGetMarketFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
279
|
+
utaGetMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
280
|
+
utaGetMarketCrossConfig(params?: {}): Promise<implicitReturnType>;
|
|
281
|
+
utaGetMarketServerStatus(params?: {}): Promise<implicitReturnType>;
|
|
252
282
|
}
|
|
253
283
|
declare abstract class kucoin extends _kucoin {
|
|
254
284
|
}
|
package/js/src/arkham.js
CHANGED
|
@@ -17,7 +17,7 @@ export default class arkham extends Exchange {
|
|
|
17
17
|
'version': 'v1',
|
|
18
18
|
'rateLimit': 20 / 3,
|
|
19
19
|
'certified': false,
|
|
20
|
-
'pro':
|
|
20
|
+
'pro': true,
|
|
21
21
|
'has': {
|
|
22
22
|
'CORS': false,
|
|
23
23
|
'spot': true,
|
|
@@ -66,7 +66,7 @@ export default class arkham extends Exchange {
|
|
|
66
66
|
'1d': '24h',
|
|
67
67
|
},
|
|
68
68
|
'urls': {
|
|
69
|
-
'logo': '',
|
|
69
|
+
'logo': 'https://github.com/user-attachments/assets/5cefdcfb-2c10-445b-835c-fa21317bf5ac',
|
|
70
70
|
'api': {
|
|
71
71
|
'v1': 'https://arkm.com/api',
|
|
72
72
|
},
|
|
@@ -9,9 +9,7 @@ export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balan
|
|
|
9
9
|
* @class Exchange
|
|
10
10
|
*/
|
|
11
11
|
export default class Exchange {
|
|
12
|
-
options:
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
12
|
+
options: Dict;
|
|
15
13
|
isSandboxModeEnabled: boolean;
|
|
16
14
|
api: Dictionary<any>;
|
|
17
15
|
certified: boolean;
|
|
@@ -50,7 +48,7 @@ export default class Exchange {
|
|
|
50
48
|
headers: Dictionary<string>;
|
|
51
49
|
returnResponseHeaders: boolean;
|
|
52
50
|
origin: string;
|
|
53
|
-
MAX_VALUE:
|
|
51
|
+
MAX_VALUE: number;
|
|
54
52
|
agent: any;
|
|
55
53
|
nodeHttpModuleLoaded: boolean;
|
|
56
54
|
httpAgent: any;
|
|
@@ -169,27 +167,27 @@ export default class Exchange {
|
|
|
169
167
|
};
|
|
170
168
|
};
|
|
171
169
|
markets_by_id: Dictionary<any>;
|
|
172
|
-
symbols:
|
|
173
|
-
ids:
|
|
170
|
+
symbols: Strings;
|
|
171
|
+
ids: Strings;
|
|
174
172
|
currencies: Currencies;
|
|
175
173
|
baseCurrencies: Dictionary<CurrencyInterface>;
|
|
176
174
|
quoteCurrencies: Dictionary<CurrencyInterface>;
|
|
177
175
|
currencies_by_id: Dictionary<CurrencyInterface>;
|
|
178
|
-
codes:
|
|
179
|
-
reloadingMarkets:
|
|
176
|
+
codes: Strings;
|
|
177
|
+
reloadingMarkets: Bool;
|
|
180
178
|
marketsLoading: Promise<Dictionary<Market>>;
|
|
181
179
|
accounts: Account[];
|
|
182
180
|
accountsById: Dictionary<Account>;
|
|
183
181
|
commonCurrencies: Dictionary<string>;
|
|
184
182
|
hostname: Str;
|
|
185
|
-
precisionMode:
|
|
186
|
-
paddingMode:
|
|
183
|
+
precisionMode: Int;
|
|
184
|
+
paddingMode: Int;
|
|
187
185
|
exceptions: Dictionary<string>;
|
|
188
186
|
timeframes: Dictionary<number | string>;
|
|
189
187
|
version: Str;
|
|
190
188
|
marketsByAltname: Dictionary<Market>;
|
|
191
189
|
name: Str;
|
|
192
|
-
lastRestRequestTimestamp:
|
|
190
|
+
lastRestRequestTimestamp: int;
|
|
193
191
|
targetAccount: string;
|
|
194
192
|
stablePairs: Dictionary<boolean>;
|
|
195
193
|
httpProxyAgentModule: any;
|
package/js/src/binance.js
CHANGED
|
@@ -238,6 +238,7 @@ export default class binance extends Exchange {
|
|
|
238
238
|
'private': 'https://api.binance.com/api/v3',
|
|
239
239
|
'v1': 'https://api.binance.com/api/v1',
|
|
240
240
|
'papi': 'https://papi.binance.com/papi/v1',
|
|
241
|
+
'papiV2': 'https://papi.binance.com/papi/v2',
|
|
241
242
|
},
|
|
242
243
|
'www': 'https://www.binance.com',
|
|
243
244
|
'referral': {
|
|
@@ -1186,6 +1187,11 @@ export default class binance extends Exchange {
|
|
|
1186
1187
|
'listenKey': 0.2,
|
|
1187
1188
|
},
|
|
1188
1189
|
},
|
|
1190
|
+
'papiV2': {
|
|
1191
|
+
'get': {
|
|
1192
|
+
'um/account': 1,
|
|
1193
|
+
},
|
|
1194
|
+
},
|
|
1189
1195
|
},
|
|
1190
1196
|
'fees': {
|
|
1191
1197
|
'trading': {
|
|
@@ -10979,7 +10985,7 @@ export default class binance extends Exchange {
|
|
|
10979
10985
|
let response = undefined;
|
|
10980
10986
|
if (this.isLinear(type, subType)) {
|
|
10981
10987
|
if (isPortfolioMargin) {
|
|
10982
|
-
response = await this.
|
|
10988
|
+
response = await this.papiV2GetUmAccount(params);
|
|
10983
10989
|
}
|
|
10984
10990
|
else {
|
|
10985
10991
|
let useV2 = undefined;
|
|
@@ -12061,7 +12067,7 @@ export default class binance extends Exchange {
|
|
|
12061
12067
|
throw new AuthenticationError(this.id + ' userDataStream endpoint requires `apiKey` credential');
|
|
12062
12068
|
}
|
|
12063
12069
|
}
|
|
12064
|
-
else if ((api === 'private') || (api === 'eapiPrivate') || (api === 'sapi' && path !== 'system/status') || (api === 'sapiV2') || (api === 'sapiV3') || (api === 'sapiV4') || (api === 'dapiPrivate') || (api === 'dapiPrivateV2') || (api === 'fapiPrivate') || (api === 'fapiPrivateV2') || (api === 'fapiPrivateV3') || (api === 'papi' && path !== 'ping')) {
|
|
12070
|
+
else if ((api === 'private') || (api === 'eapiPrivate') || (api === 'sapi' && path !== 'system/status') || (api === 'sapiV2') || (api === 'sapiV3') || (api === 'sapiV4') || (api === 'dapiPrivate') || (api === 'dapiPrivateV2') || (api === 'fapiPrivate') || (api === 'fapiPrivateV2') || (api === 'fapiPrivateV3') || (api === 'papiV2' || api === 'papi' && path !== 'ping')) {
|
|
12065
12071
|
this.checkRequiredCredentials();
|
|
12066
12072
|
if ((url.indexOf('testnet.binancefuture.com') > -1) && this.isSandboxModeEnabled && (!this.safeBool(this.options, 'disableFuturesSandboxWarning'))) {
|
|
12067
12073
|
throw new NotSupported(this.id + ' testnet/sandbox mode is not supported for futures anymore, please check the deprecation announcement https://t.me/ccxt_announcements/92 and consider using the demo trading instead.');
|
package/js/src/bitget.d.ts
CHANGED
|
@@ -677,9 +677,21 @@ export default class bitget extends Exchange {
|
|
|
677
677
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
678
678
|
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
679
679
|
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
680
|
+
* @param {string} [params.method] either (default) 'publicMixGetV2MixMarketTickers' or 'publicMixGetV2MixMarketCurrentFundRate'
|
|
680
681
|
* @returns {object} a dictionary of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
681
682
|
*/
|
|
682
683
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
684
|
+
/**
|
|
685
|
+
* @method
|
|
686
|
+
* @name bitget#fetchFundingIntervals
|
|
687
|
+
* @description fetch the funding rate interval for multiple markets
|
|
688
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
|
|
689
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
|
+
* @param {string} [params.productType] 'USDT-FUTURES' (default), 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
692
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
693
|
+
*/
|
|
694
|
+
fetchFundingIntervals(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
683
695
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
684
696
|
/**
|
|
685
697
|
* @method
|
package/js/src/bitget.js
CHANGED
|
@@ -78,7 +78,7 @@ export default class bitget extends Exchange {
|
|
|
78
78
|
'fetchDepositWithdrawFees': true,
|
|
79
79
|
'fetchFundingHistory': true,
|
|
80
80
|
'fetchFundingInterval': true,
|
|
81
|
-
'fetchFundingIntervals':
|
|
81
|
+
'fetchFundingIntervals': true,
|
|
82
82
|
'fetchFundingRate': true,
|
|
83
83
|
'fetchFundingRateHistory': true,
|
|
84
84
|
'fetchFundingRates': true,
|
|
@@ -8581,6 +8581,7 @@ export default class bitget extends Exchange {
|
|
|
8581
8581
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8582
8582
|
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
8583
8583
|
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
8584
|
+
* @param {string} [params.method] either (default) 'publicMixGetV2MixMarketTickers' or 'publicMixGetV2MixMarketCurrentFundRate'
|
|
8584
8585
|
* @returns {object} a dictionary of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
8585
8586
|
*/
|
|
8586
8587
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
@@ -8593,44 +8594,84 @@ export default class bitget extends Exchange {
|
|
|
8593
8594
|
const request = {};
|
|
8594
8595
|
let productType = undefined;
|
|
8595
8596
|
[productType, params] = this.handleProductTypeAndParams(market, params);
|
|
8597
|
+
let method = 'publicMixGetV2MixMarketTickers';
|
|
8598
|
+
[method, params] = this.handleOptionAndParams(params, 'fetchFundingRates', 'method', method);
|
|
8599
|
+
let response = undefined;
|
|
8596
8600
|
request['productType'] = productType;
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8601
|
+
if (method === 'publicMixGetV2MixMarketTickers') {
|
|
8602
|
+
// {
|
|
8603
|
+
// "code": "00000",
|
|
8604
|
+
// "msg": "success",
|
|
8605
|
+
// "requestTime": 1700533773477,
|
|
8606
|
+
// "data": [
|
|
8607
|
+
// {
|
|
8608
|
+
// "symbol": "BTCUSD",
|
|
8609
|
+
// "lastPr": "29904.5",
|
|
8610
|
+
// "askPr": "29904.5",
|
|
8611
|
+
// "bidPr": "29903.5",
|
|
8612
|
+
// "bidSz": "0.5091",
|
|
8613
|
+
// "askSz": "2.2694",
|
|
8614
|
+
// "high24h": "0",
|
|
8615
|
+
// "low24h": "0",
|
|
8616
|
+
// "ts": "1695794271400",
|
|
8617
|
+
// "change24h": "0",
|
|
8618
|
+
// "baseVolume": "0",
|
|
8619
|
+
// "quoteVolume": "0",
|
|
8620
|
+
// "usdtVolume": "0",
|
|
8621
|
+
// "openUtc": "0",
|
|
8622
|
+
// "changeUtc24h": "0",
|
|
8623
|
+
// "indexPrice": "29132.353333",
|
|
8624
|
+
// "fundingRate": "-0.0007",
|
|
8625
|
+
// "holdingAmount": "125.6844",
|
|
8626
|
+
// "deliveryStartTime": null,
|
|
8627
|
+
// "deliveryTime": null,
|
|
8628
|
+
// "deliveryStatus": "delivery_normal",
|
|
8629
|
+
// "open24h": "0",
|
|
8630
|
+
// "markPrice": "12345"
|
|
8631
|
+
// },
|
|
8632
|
+
// ]
|
|
8633
|
+
// }
|
|
8634
|
+
response = await this.publicMixGetV2MixMarketTickers(this.extend(request, params));
|
|
8635
|
+
}
|
|
8636
|
+
else if (method === 'publicMixGetV2MixMarketCurrentFundRate') {
|
|
8637
|
+
//
|
|
8638
|
+
// {
|
|
8639
|
+
// "code": "00000",
|
|
8640
|
+
// "msg": "success",
|
|
8641
|
+
// "requestTime":1761659449917,
|
|
8642
|
+
// "data":[
|
|
8643
|
+
// {
|
|
8644
|
+
// "symbol": "BTCUSDT",
|
|
8645
|
+
// "fundingRate": "-0.000024",
|
|
8646
|
+
// "fundingRateInterval": "8",
|
|
8647
|
+
// "nextUpdate": "1761667200000",
|
|
8648
|
+
// "minFundingRate": "-0.003",
|
|
8649
|
+
// "maxFundingRate": "0.003"
|
|
8650
|
+
// }
|
|
8651
|
+
// ]
|
|
8652
|
+
// }
|
|
8653
|
+
//
|
|
8654
|
+
response = await this.publicMixGetV2MixMarketCurrentFundRate(this.extend(request, params));
|
|
8655
|
+
}
|
|
8630
8656
|
symbols = this.marketSymbols(symbols);
|
|
8631
8657
|
const data = this.safeList(response, 'data', []);
|
|
8632
8658
|
return this.parseFundingRates(data, symbols);
|
|
8633
8659
|
}
|
|
8660
|
+
/**
|
|
8661
|
+
* @method
|
|
8662
|
+
* @name bitget#fetchFundingIntervals
|
|
8663
|
+
* @description fetch the funding rate interval for multiple markets
|
|
8664
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
|
|
8665
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
8666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8667
|
+
* @param {string} [params.productType] 'USDT-FUTURES' (default), 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
8668
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
8669
|
+
*/
|
|
8670
|
+
async fetchFundingIntervals(symbols = undefined, params = {}) {
|
|
8671
|
+
await this.loadMarkets();
|
|
8672
|
+
params = this.extend({ 'method': 'publicMixGetV2MixMarketCurrentFundRate' }, params);
|
|
8673
|
+
return await this.fetchFundingRates(symbols, params);
|
|
8674
|
+
}
|
|
8634
8675
|
parseFundingRate(contract, market = undefined) {
|
|
8635
8676
|
//
|
|
8636
8677
|
// fetchFundingRate: publicMixGetV2MixMarketCurrentFundRate, publicUtaGetV3MarketCurrentFundRate
|