ccxt 4.5.63 → 4.5.64
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 +6 -8
- package/dist/ccxt.browser.min.js +4 -4
- package/dist/cjs/ccxt.js +6 -12
- package/dist/cjs/src/aster.js +2 -2
- package/dist/cjs/src/base/Exchange.js +34 -3
- package/dist/cjs/src/bitget.js +5 -3
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitstamp.js +2 -1
- package/dist/cjs/src/bitvavo.js +1 -0
- package/dist/cjs/src/btcbox.js +1 -1
- package/dist/cjs/src/bullish.js +1 -1
- package/dist/cjs/src/bybiteu.js +3 -0
- package/dist/cjs/src/coinbase.js +3 -2
- package/dist/cjs/src/coinbaseinternational.js +1 -1
- package/dist/cjs/src/delta.js +23 -1
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/digifinex.js +12 -0
- package/dist/cjs/src/dydx.js +2 -2
- package/dist/cjs/src/extended.js +1 -1
- package/dist/cjs/src/gateeu.js +1 -0
- package/dist/cjs/src/grvt.js +1 -1
- package/dist/cjs/src/hashkey.js +127 -6
- package/dist/cjs/src/hibachi.js +20 -10
- package/dist/cjs/src/hyperliquid.js +1 -1
- package/dist/cjs/src/kraken.js +2 -0
- package/dist/cjs/src/kucoin.js +1 -1
- package/dist/cjs/src/kucoineu.js +3 -0
- package/dist/cjs/src/lighter.js +6 -4
- package/dist/cjs/src/mudrex.js +1328 -0
- package/dist/cjs/src/myokx.js +3 -0
- package/dist/cjs/src/okxus.js +1 -5
- package/dist/cjs/src/onetrading.js +1 -0
- package/dist/cjs/src/pacifica.js +1 -1
- package/dist/cjs/src/poloniex.js +1 -1
- package/dist/cjs/src/pro/bingx.js +4 -2
- package/dist/cjs/src/pro/bitget.js +9 -7
- package/dist/cjs/src/pro/grvt.js +1 -1
- package/dist/cjs/src/pro/hashkey.js +1 -1
- package/dist/cjs/src/pro/kraken.js +1 -1
- package/dist/cjs/src/pro/mudrex.js +226 -0
- package/dist/cjs/src/pro/okxus.js +1 -1
- package/js/ccxt.d.ts +8 -14
- package/js/ccxt.js +6 -10
- package/js/src/abstract/binance.d.ts +3 -0
- package/js/src/abstract/binancecoinm.d.ts +3 -0
- package/js/src/abstract/binanceus.d.ts +3 -0
- package/js/src/abstract/binanceusdm.d.ts +3 -0
- package/js/src/abstract/bybit.d.ts +39 -0
- package/js/src/abstract/bybiteu.d.ts +39 -0
- package/js/src/abstract/coincheck.d.ts +3 -0
- package/js/src/abstract/coinsph.d.ts +8 -1
- package/js/src/abstract/kucoineu.js +0 -6
- package/js/src/abstract/mudrex.d.ts +33 -0
- package/js/src/aster.js +2 -2
- package/js/src/base/Exchange.d.ts +10 -1
- package/js/src/base/Exchange.js +34 -3
- package/js/src/bitget.js +5 -3
- package/js/src/bitmex.js +1 -1
- package/js/src/bitstamp.js +2 -1
- package/js/src/bitvavo.js +1 -0
- package/js/src/btcbox.js +1 -1
- package/js/src/bullish.js +1 -1
- package/js/src/bybiteu.js +3 -0
- package/js/src/coinbase.js +3 -2
- package/js/src/coinbaseinternational.js +1 -1
- package/js/src/delta.d.ts +12 -0
- package/js/src/delta.js +23 -1
- package/js/src/derive.js +1 -1
- package/js/src/digifinex.d.ts +12 -0
- package/js/src/digifinex.js +12 -0
- package/js/src/dydx.d.ts +2 -2
- package/js/src/dydx.js +2 -2
- package/js/src/extended.js +1 -1
- package/js/src/gateeu.js +1 -0
- package/js/src/grvt.d.ts +1 -1
- package/js/src/grvt.js +1 -1
- package/js/src/hashkey.d.ts +40 -3
- package/js/src/hashkey.js +127 -6
- package/js/src/hibachi.d.ts +9 -5
- package/js/src/hibachi.js +20 -10
- package/js/src/hyperliquid.js +1 -1
- package/js/src/kraken.js +2 -0
- package/js/src/kucoin.js +1 -1
- package/js/src/kucoineu.js +3 -0
- package/js/src/lighter.js +6 -4
- package/js/src/mudrex.d.ts +310 -0
- package/js/src/mudrex.js +1321 -0
- package/js/src/myokx.js +3 -0
- package/js/src/okxus.js +1 -5
- package/js/src/onetrading.js +1 -0
- package/js/src/pacifica.js +1 -1
- package/js/src/poloniex.js +1 -1
- package/js/src/pro/bingx.js +4 -2
- package/js/src/pro/bitget.js +9 -7
- package/js/src/pro/grvt.d.ts +1 -1
- package/js/src/pro/grvt.js +1 -1
- package/js/src/pro/hashkey.d.ts +1 -1
- package/js/src/pro/hashkey.js +1 -1
- package/js/src/pro/kraken.js +1 -1
- package/js/src/pro/mudrex.d.ts +23 -0
- package/js/src/pro/mudrex.js +219 -0
- package/js/src/pro/okxus.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/src/abstract/coinmetro.js +0 -11
- package/dist/cjs/src/abstract/novadax.js +0 -11
- package/dist/cjs/src/ascendex.js +0 -3780
- package/dist/cjs/src/coinmetro.js +0 -2030
- package/dist/cjs/src/novadax.js +0 -1678
- package/dist/cjs/src/pro/ascendex.js +0 -1013
- package/js/src/abstract/ascendex.d.ts +0 -80
- package/js/src/abstract/coinmetro.d.ts +0 -37
- package/js/src/abstract/coinmetro.js +0 -5
- package/js/src/abstract/novadax.d.ts +0 -32
- package/js/src/abstract/novadax.js +0 -5
- package/js/src/ascendex.d.ts +0 -436
- package/js/src/ascendex.js +0 -3773
- package/js/src/coinmetro.d.ts +0 -245
- package/js/src/coinmetro.js +0 -2023
- package/js/src/novadax.d.ts +0 -279
- package/js/src/novadax.js +0 -1671
- package/js/src/pro/ascendex.d.ts +0 -99
- package/js/src/pro/ascendex.js +0 -1006
- /package/dist/cjs/src/abstract/{ascendex.js → mudrex.js} +0 -0
- /package/js/src/abstract/{ascendex.js → mudrex.js} +0 -0
|
@@ -450,6 +450,7 @@ interface Exchange {
|
|
|
450
450
|
dapiPrivateGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
451
451
|
dapiPrivateGetOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
452
452
|
dapiPrivateGetOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
453
|
+
dapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
|
|
453
454
|
dapiPrivateGetAllOrders(params?: {}): Promise<implicitReturnType>;
|
|
454
455
|
dapiPrivateGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
455
456
|
dapiPrivateGetAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -471,6 +472,7 @@ interface Exchange {
|
|
|
471
472
|
dapiPrivateGetPmAccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
472
473
|
dapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
473
474
|
dapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
475
|
+
dapiPrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
474
476
|
dapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
475
477
|
dapiPrivatePostCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
476
478
|
dapiPrivatePostLeverage(params?: {}): Promise<implicitReturnType>;
|
|
@@ -481,6 +483,7 @@ interface Exchange {
|
|
|
481
483
|
dapiPrivatePutOrder(params?: {}): Promise<implicitReturnType>;
|
|
482
484
|
dapiPrivatePutBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
483
485
|
dapiPrivateDeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
486
|
+
dapiPrivateDeleteAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
484
487
|
dapiPrivateDeleteAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
485
488
|
dapiPrivateDeleteBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
486
489
|
dapiPrivateDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -450,6 +450,7 @@ interface binance {
|
|
|
450
450
|
dapiPrivateGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
451
451
|
dapiPrivateGetOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
452
452
|
dapiPrivateGetOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
453
|
+
dapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
|
|
453
454
|
dapiPrivateGetAllOrders(params?: {}): Promise<implicitReturnType>;
|
|
454
455
|
dapiPrivateGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
455
456
|
dapiPrivateGetAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -471,6 +472,7 @@ interface binance {
|
|
|
471
472
|
dapiPrivateGetPmAccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
472
473
|
dapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
473
474
|
dapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
475
|
+
dapiPrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
474
476
|
dapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
475
477
|
dapiPrivatePostCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
476
478
|
dapiPrivatePostLeverage(params?: {}): Promise<implicitReturnType>;
|
|
@@ -481,6 +483,7 @@ interface binance {
|
|
|
481
483
|
dapiPrivatePutOrder(params?: {}): Promise<implicitReturnType>;
|
|
482
484
|
dapiPrivatePutBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
483
485
|
dapiPrivateDeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
486
|
+
dapiPrivateDeleteAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
484
487
|
dapiPrivateDeleteAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
485
488
|
dapiPrivateDeleteBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
486
489
|
dapiPrivateDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -502,6 +502,7 @@ interface binance {
|
|
|
502
502
|
dapiPrivateGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
503
503
|
dapiPrivateGetOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
504
504
|
dapiPrivateGetOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
505
|
+
dapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
|
|
505
506
|
dapiPrivateGetAllOrders(params?: {}): Promise<implicitReturnType>;
|
|
506
507
|
dapiPrivateGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
507
508
|
dapiPrivateGetAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -523,6 +524,7 @@ interface binance {
|
|
|
523
524
|
dapiPrivateGetPmAccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
524
525
|
dapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
525
526
|
dapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
527
|
+
dapiPrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
526
528
|
dapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
527
529
|
dapiPrivatePostCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
528
530
|
dapiPrivatePostLeverage(params?: {}): Promise<implicitReturnType>;
|
|
@@ -533,6 +535,7 @@ interface binance {
|
|
|
533
535
|
dapiPrivatePutOrder(params?: {}): Promise<implicitReturnType>;
|
|
534
536
|
dapiPrivatePutBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
535
537
|
dapiPrivateDeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
538
|
+
dapiPrivateDeleteAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
536
539
|
dapiPrivateDeleteAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
537
540
|
dapiPrivateDeleteBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
538
541
|
dapiPrivateDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -450,6 +450,7 @@ interface binance {
|
|
|
450
450
|
dapiPrivateGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
451
451
|
dapiPrivateGetOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
452
452
|
dapiPrivateGetOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
453
|
+
dapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
|
|
453
454
|
dapiPrivateGetAllOrders(params?: {}): Promise<implicitReturnType>;
|
|
454
455
|
dapiPrivateGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
455
456
|
dapiPrivateGetAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -471,6 +472,7 @@ interface binance {
|
|
|
471
472
|
dapiPrivateGetPmAccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
472
473
|
dapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
473
474
|
dapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
475
|
+
dapiPrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
474
476
|
dapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
475
477
|
dapiPrivatePostCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
476
478
|
dapiPrivatePostLeverage(params?: {}): Promise<implicitReturnType>;
|
|
@@ -481,6 +483,7 @@ interface binance {
|
|
|
481
483
|
dapiPrivatePutOrder(params?: {}): Promise<implicitReturnType>;
|
|
482
484
|
dapiPrivatePutBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
483
485
|
dapiPrivateDeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
486
|
+
dapiPrivateDeleteAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
484
487
|
dapiPrivateDeleteAllOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
485
488
|
dapiPrivateDeleteBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
486
489
|
dapiPrivateDeleteListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -28,6 +28,7 @@ interface Exchange {
|
|
|
28
28
|
publicGetDerivativesV3PublicOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
29
29
|
publicGetDerivativesV3PublicInsurance(params?: {}): Promise<implicitReturnType>;
|
|
30
30
|
publicGetV5AnnouncementsIndex(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicGetV5SystemStatus(params?: {}): Promise<implicitReturnType>;
|
|
31
32
|
publicGetV5MarketTime(params?: {}): Promise<implicitReturnType>;
|
|
32
33
|
publicGetV5MarketKline(params?: {}): Promise<implicitReturnType>;
|
|
33
34
|
publicGetV5MarketMarkPriceKline(params?: {}): Promise<implicitReturnType>;
|
|
@@ -35,6 +36,8 @@ interface Exchange {
|
|
|
35
36
|
publicGetV5MarketPremiumIndexPriceKline(params?: {}): Promise<implicitReturnType>;
|
|
36
37
|
publicGetV5MarketInstrumentsInfo(params?: {}): Promise<implicitReturnType>;
|
|
37
38
|
publicGetV5MarketOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
publicGetV5MarketRpiOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
publicGetV5MarketFullOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
38
41
|
publicGetV5MarketTickers(params?: {}): Promise<implicitReturnType>;
|
|
39
42
|
publicGetV5MarketFundingHistory(params?: {}): Promise<implicitReturnType>;
|
|
40
43
|
publicGetV5MarketRecentTrade(params?: {}): Promise<implicitReturnType>;
|
|
@@ -43,7 +46,12 @@ interface Exchange {
|
|
|
43
46
|
publicGetV5MarketInsurance(params?: {}): Promise<implicitReturnType>;
|
|
44
47
|
publicGetV5MarketRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
45
48
|
publicGetV5MarketDeliveryPrice(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
publicGetV5MarketNewDeliveryPrice(params?: {}): Promise<implicitReturnType>;
|
|
46
50
|
publicGetV5MarketAccountRatio(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
publicGetV5MarketIndexPriceComponents(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
publicGetV5MarketPriceLimit(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicGetV5MarketAdlAlert(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicGetV5MarketFeeGroupInfo(params?: {}): Promise<implicitReturnType>;
|
|
47
55
|
publicGetV5SpotLeverTokenInfo(params?: {}): Promise<implicitReturnType>;
|
|
48
56
|
publicGetV5SpotLeverTokenReference(params?: {}): Promise<implicitReturnType>;
|
|
49
57
|
publicGetV5SpotMarginTradeData(params?: {}): Promise<implicitReturnType>;
|
|
@@ -122,7 +130,9 @@ interface Exchange {
|
|
|
122
130
|
privateGetV5PositionList(params?: {}): Promise<implicitReturnType>;
|
|
123
131
|
privateGetV5ExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
124
132
|
privateGetV5PositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
privateGetV5PositionGetClosedPositions(params?: {}): Promise<implicitReturnType>;
|
|
125
134
|
privateGetV5PositionMoveHistory(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
privateGetV5PositionSymbolInfo(params?: {}): Promise<implicitReturnType>;
|
|
126
136
|
privateGetV5PreUpgradeOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
127
137
|
privateGetV5PreUpgradeExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
128
138
|
privateGetV5PreUpgradePositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
@@ -133,18 +143,27 @@ interface Exchange {
|
|
|
133
143
|
privateGetV5AccountBorrowHistory(params?: {}): Promise<implicitReturnType>;
|
|
134
144
|
privateGetV5AccountInstrumentsInfo(params?: {}): Promise<implicitReturnType>;
|
|
135
145
|
privateGetV5AccountCollateralInfo(params?: {}): Promise<implicitReturnType>;
|
|
146
|
+
privateGetV5AccountOptionAssetInfo(params?: {}): Promise<implicitReturnType>;
|
|
136
147
|
privateGetV5AssetCoinGreeks(params?: {}): Promise<implicitReturnType>;
|
|
137
148
|
privateGetV5AccountFeeRate(params?: {}): Promise<implicitReturnType>;
|
|
138
149
|
privateGetV5AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
139
150
|
privateGetV5AccountTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
140
151
|
privateGetV5AccountContractTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
privateGetV5AccountQueryDcpInfo(params?: {}): Promise<implicitReturnType>;
|
|
153
|
+
privateGetV5AccountUserSettingConfig(params?: {}): Promise<implicitReturnType>;
|
|
154
|
+
privateGetV5AccountPayInfo(params?: {}): Promise<implicitReturnType>;
|
|
155
|
+
privateGetV5AccountTradeInfoForAnalysis(params?: {}): Promise<implicitReturnType>;
|
|
141
156
|
privateGetV5AccountSmpGroup(params?: {}): Promise<implicitReturnType>;
|
|
142
157
|
privateGetV5AccountMmpState(params?: {}): Promise<implicitReturnType>;
|
|
143
158
|
privateGetV5AccountWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
159
|
+
privateGetV5AssetAssetOverview(params?: {}): Promise<implicitReturnType>;
|
|
144
160
|
privateGetV5AssetExchangeQueryCoinList(params?: {}): Promise<implicitReturnType>;
|
|
145
161
|
privateGetV5AssetExchangeConvertResultQuery(params?: {}): Promise<implicitReturnType>;
|
|
146
162
|
privateGetV5AssetExchangeQueryConvertHistory(params?: {}): Promise<implicitReturnType>;
|
|
147
163
|
privateGetV5AssetExchangeOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
164
|
+
privateGetV5AssetFundinghistory(params?: {}): Promise<implicitReturnType>;
|
|
165
|
+
privateGetV5AssetPortfolioMargin(params?: {}): Promise<implicitReturnType>;
|
|
166
|
+
privateGetV5AssetTotalMembersAssets(params?: {}): Promise<implicitReturnType>;
|
|
148
167
|
privateGetV5AssetDeliveryRecord(params?: {}): Promise<implicitReturnType>;
|
|
149
168
|
privateGetV5AssetSettlementRecord(params?: {}): Promise<implicitReturnType>;
|
|
150
169
|
privateGetV5AssetTransferQueryAssetInfo(params?: {}): Promise<implicitReturnType>;
|
|
@@ -165,6 +184,8 @@ interface Exchange {
|
|
|
165
184
|
privateGetV5AssetWithdrawQueryRecord(params?: {}): Promise<implicitReturnType>;
|
|
166
185
|
privateGetV5AssetWithdrawWithdrawableAmount(params?: {}): Promise<implicitReturnType>;
|
|
167
186
|
privateGetV5AssetWithdrawVaspList(params?: {}): Promise<implicitReturnType>;
|
|
187
|
+
privateGetV5AssetCovertSmallBalanceList(params?: {}): Promise<implicitReturnType>;
|
|
188
|
+
privateGetV5AssetCovertSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
|
|
168
189
|
privateGetV5AssetConvertSmallBalanceList(params?: {}): Promise<implicitReturnType>;
|
|
169
190
|
privateGetV5AssetConvertSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
|
|
170
191
|
privateGetV5FiatQueryCoinList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -179,13 +200,21 @@ interface Exchange {
|
|
|
179
200
|
privateGetV5UserAffCustomerInfo(params?: {}): Promise<implicitReturnType>;
|
|
180
201
|
privateGetV5UserDelSubmember(params?: {}): Promise<implicitReturnType>;
|
|
181
202
|
privateGetV5UserSubmembers(params?: {}): Promise<implicitReturnType>;
|
|
203
|
+
privateGetV5UserEscrowSubMembers(params?: {}): Promise<implicitReturnType>;
|
|
204
|
+
privateGetV5UserInvitationReferrals(params?: {}): Promise<implicitReturnType>;
|
|
182
205
|
privateGetV5AffiliateAffUserList(params?: {}): Promise<implicitReturnType>;
|
|
206
|
+
privateGetV5AffiliateAffiliateSubList(params?: {}): Promise<implicitReturnType>;
|
|
183
207
|
privateGetV5SpotLeverTokenOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
184
208
|
privateGetV5SpotMarginTradeInterestRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
185
209
|
privateGetV5SpotMarginTradeState(params?: {}): Promise<implicitReturnType>;
|
|
186
210
|
privateGetV5SpotMarginTradeMaxBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
187
211
|
privateGetV5SpotMarginTradePositionTiers(params?: {}): Promise<implicitReturnType>;
|
|
188
212
|
privateGetV5SpotMarginTradeCoinstate(params?: {}): Promise<implicitReturnType>;
|
|
213
|
+
privateGetV5SpotMarginTradeCurrencyData(params?: {}): Promise<implicitReturnType>;
|
|
214
|
+
privateGetV5SpotMarginTradeFixedborrowContractInfo(params?: {}): Promise<implicitReturnType>;
|
|
215
|
+
privateGetV5SpotMarginTradeFixedborrowOrderInfo(params?: {}): Promise<implicitReturnType>;
|
|
216
|
+
privateGetV5SpotMarginTradeFixedborrowOrderQuote(params?: {}): Promise<implicitReturnType>;
|
|
217
|
+
privateGetV5SpotMarginTradeLiability(params?: {}): Promise<implicitReturnType>;
|
|
189
218
|
privateGetV5SpotMarginTradeRepaymentAvailableAmount(params?: {}): Promise<implicitReturnType>;
|
|
190
219
|
privateGetV5SpotMarginTradeGetAutoRepayMode(params?: {}): Promise<implicitReturnType>;
|
|
191
220
|
privateGetV5SpotCrossMarginTradeLoanInfo(params?: {}): Promise<implicitReturnType>;
|
|
@@ -211,10 +240,13 @@ interface Exchange {
|
|
|
211
240
|
privateGetV5CryptoLoanFixedSupplyOrderInfo(params?: {}): Promise<implicitReturnType>;
|
|
212
241
|
privateGetV5CryptoLoanFixedRepaymentHistory(params?: {}): Promise<implicitReturnType>;
|
|
213
242
|
privateGetV5InsLoanProductInfos(params?: {}): Promise<implicitReturnType>;
|
|
243
|
+
privateGetV5InsLoanEnsureTokens(params?: {}): Promise<implicitReturnType>;
|
|
214
244
|
privateGetV5InsLoanEnsureTokensConvert(params?: {}): Promise<implicitReturnType>;
|
|
215
245
|
privateGetV5InsLoanLoanOrder(params?: {}): Promise<implicitReturnType>;
|
|
216
246
|
privateGetV5InsLoanRepaidHistory(params?: {}): Promise<implicitReturnType>;
|
|
247
|
+
privateGetV5InsLoanLtv(params?: {}): Promise<implicitReturnType>;
|
|
217
248
|
privateGetV5InsLoanLtvConvert(params?: {}): Promise<implicitReturnType>;
|
|
249
|
+
privateGetV5InsLoanCoinDeltaAmount(params?: {}): Promise<implicitReturnType>;
|
|
218
250
|
privateGetV5LendingInfo(params?: {}): Promise<implicitReturnType>;
|
|
219
251
|
privateGetV5LendingHistoryOrder(params?: {}): Promise<implicitReturnType>;
|
|
220
252
|
privateGetV5LendingAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -291,6 +323,7 @@ interface Exchange {
|
|
|
291
323
|
privatePostV5OrderAmendBatch(params?: {}): Promise<implicitReturnType>;
|
|
292
324
|
privatePostV5OrderCancelBatch(params?: {}): Promise<implicitReturnType>;
|
|
293
325
|
privatePostV5OrderDisconnectedCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
326
|
+
privatePostV5OrderPreCheck(params?: {}): Promise<implicitReturnType>;
|
|
294
327
|
privatePostV5PositionSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
295
328
|
privatePostV5PositionSwitchIsolated(params?: {}): Promise<implicitReturnType>;
|
|
296
329
|
privatePostV5PositionSetTpslMode(params?: {}): Promise<implicitReturnType>;
|
|
@@ -311,12 +344,14 @@ interface Exchange {
|
|
|
311
344
|
privatePostV5AccountRepay(params?: {}): Promise<implicitReturnType>;
|
|
312
345
|
privatePostV5AccountNoConvertRepay(params?: {}): Promise<implicitReturnType>;
|
|
313
346
|
privatePostV5AccountSetLimitPxAction(params?: {}): Promise<implicitReturnType>;
|
|
347
|
+
privatePostV5AccountSetDeltaMode(params?: {}): Promise<implicitReturnType>;
|
|
314
348
|
privatePostV5AssetExchangeQuoteApply(params?: {}): Promise<implicitReturnType>;
|
|
315
349
|
privatePostV5AssetExchangeConvertExecute(params?: {}): Promise<implicitReturnType>;
|
|
316
350
|
privatePostV5AssetTransferInterTransfer(params?: {}): Promise<implicitReturnType>;
|
|
317
351
|
privatePostV5AssetTransferSaveTransferSubMember(params?: {}): Promise<implicitReturnType>;
|
|
318
352
|
privatePostV5AssetTransferUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
319
353
|
privatePostV5AssetDepositDepositToAccount(params?: {}): Promise<implicitReturnType>;
|
|
354
|
+
privatePostV5AssetTravelRuleDepositSubmit(params?: {}): Promise<implicitReturnType>;
|
|
320
355
|
privatePostV5AssetWithdrawCreate(params?: {}): Promise<implicitReturnType>;
|
|
321
356
|
privatePostV5AssetWithdrawCancel(params?: {}): Promise<implicitReturnType>;
|
|
322
357
|
privatePostV5AssetCovertGetQuote(params?: {}): Promise<implicitReturnType>;
|
|
@@ -330,11 +365,15 @@ interface Exchange {
|
|
|
330
365
|
privatePostV5UserUpdateSubApi(params?: {}): Promise<implicitReturnType>;
|
|
331
366
|
privatePostV5UserDeleteApi(params?: {}): Promise<implicitReturnType>;
|
|
332
367
|
privatePostV5UserDeleteSubApi(params?: {}): Promise<implicitReturnType>;
|
|
368
|
+
privatePostV5UserAgreement(params?: {}): Promise<implicitReturnType>;
|
|
369
|
+
privatePostV5UserCreateDemoMember(params?: {}): Promise<implicitReturnType>;
|
|
333
370
|
privatePostV5SpotLeverTokenPurchase(params?: {}): Promise<implicitReturnType>;
|
|
334
371
|
privatePostV5SpotLeverTokenRedeem(params?: {}): Promise<implicitReturnType>;
|
|
335
372
|
privatePostV5SpotMarginTradeSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
336
373
|
privatePostV5SpotMarginTradeSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
337
374
|
privatePostV5SpotMarginTradeSetAutoRepayMode(params?: {}): Promise<implicitReturnType>;
|
|
375
|
+
privatePostV5SpotMarginTradeFixedborrow(params?: {}): Promise<implicitReturnType>;
|
|
376
|
+
privatePostV5SpotMarginTradeFixedborrowRenew(params?: {}): Promise<implicitReturnType>;
|
|
338
377
|
privatePostV5SpotCrossMarginTradeLoan(params?: {}): Promise<implicitReturnType>;
|
|
339
378
|
privatePostV5SpotCrossMarginTradeRepay(params?: {}): Promise<implicitReturnType>;
|
|
340
379
|
privatePostV5SpotCrossMarginTradeSwitch(params?: {}): Promise<implicitReturnType>;
|
|
@@ -28,6 +28,7 @@ interface bybit {
|
|
|
28
28
|
publicGetDerivativesV3PublicOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
29
29
|
publicGetDerivativesV3PublicInsurance(params?: {}): Promise<implicitReturnType>;
|
|
30
30
|
publicGetV5AnnouncementsIndex(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicGetV5SystemStatus(params?: {}): Promise<implicitReturnType>;
|
|
31
32
|
publicGetV5MarketTime(params?: {}): Promise<implicitReturnType>;
|
|
32
33
|
publicGetV5MarketKline(params?: {}): Promise<implicitReturnType>;
|
|
33
34
|
publicGetV5MarketMarkPriceKline(params?: {}): Promise<implicitReturnType>;
|
|
@@ -35,6 +36,8 @@ interface bybit {
|
|
|
35
36
|
publicGetV5MarketPremiumIndexPriceKline(params?: {}): Promise<implicitReturnType>;
|
|
36
37
|
publicGetV5MarketInstrumentsInfo(params?: {}): Promise<implicitReturnType>;
|
|
37
38
|
publicGetV5MarketOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
publicGetV5MarketRpiOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
publicGetV5MarketFullOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
38
41
|
publicGetV5MarketTickers(params?: {}): Promise<implicitReturnType>;
|
|
39
42
|
publicGetV5MarketFundingHistory(params?: {}): Promise<implicitReturnType>;
|
|
40
43
|
publicGetV5MarketRecentTrade(params?: {}): Promise<implicitReturnType>;
|
|
@@ -43,7 +46,12 @@ interface bybit {
|
|
|
43
46
|
publicGetV5MarketInsurance(params?: {}): Promise<implicitReturnType>;
|
|
44
47
|
publicGetV5MarketRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
45
48
|
publicGetV5MarketDeliveryPrice(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
publicGetV5MarketNewDeliveryPrice(params?: {}): Promise<implicitReturnType>;
|
|
46
50
|
publicGetV5MarketAccountRatio(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
publicGetV5MarketIndexPriceComponents(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
publicGetV5MarketPriceLimit(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicGetV5MarketAdlAlert(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicGetV5MarketFeeGroupInfo(params?: {}): Promise<implicitReturnType>;
|
|
47
55
|
publicGetV5SpotLeverTokenInfo(params?: {}): Promise<implicitReturnType>;
|
|
48
56
|
publicGetV5SpotLeverTokenReference(params?: {}): Promise<implicitReturnType>;
|
|
49
57
|
publicGetV5SpotMarginTradeData(params?: {}): Promise<implicitReturnType>;
|
|
@@ -122,7 +130,9 @@ interface bybit {
|
|
|
122
130
|
privateGetV5PositionList(params?: {}): Promise<implicitReturnType>;
|
|
123
131
|
privateGetV5ExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
124
132
|
privateGetV5PositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
privateGetV5PositionGetClosedPositions(params?: {}): Promise<implicitReturnType>;
|
|
125
134
|
privateGetV5PositionMoveHistory(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
privateGetV5PositionSymbolInfo(params?: {}): Promise<implicitReturnType>;
|
|
126
136
|
privateGetV5PreUpgradeOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
127
137
|
privateGetV5PreUpgradeExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
128
138
|
privateGetV5PreUpgradePositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
@@ -133,18 +143,27 @@ interface bybit {
|
|
|
133
143
|
privateGetV5AccountBorrowHistory(params?: {}): Promise<implicitReturnType>;
|
|
134
144
|
privateGetV5AccountInstrumentsInfo(params?: {}): Promise<implicitReturnType>;
|
|
135
145
|
privateGetV5AccountCollateralInfo(params?: {}): Promise<implicitReturnType>;
|
|
146
|
+
privateGetV5AccountOptionAssetInfo(params?: {}): Promise<implicitReturnType>;
|
|
136
147
|
privateGetV5AssetCoinGreeks(params?: {}): Promise<implicitReturnType>;
|
|
137
148
|
privateGetV5AccountFeeRate(params?: {}): Promise<implicitReturnType>;
|
|
138
149
|
privateGetV5AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
139
150
|
privateGetV5AccountTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
140
151
|
privateGetV5AccountContractTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
privateGetV5AccountQueryDcpInfo(params?: {}): Promise<implicitReturnType>;
|
|
153
|
+
privateGetV5AccountUserSettingConfig(params?: {}): Promise<implicitReturnType>;
|
|
154
|
+
privateGetV5AccountPayInfo(params?: {}): Promise<implicitReturnType>;
|
|
155
|
+
privateGetV5AccountTradeInfoForAnalysis(params?: {}): Promise<implicitReturnType>;
|
|
141
156
|
privateGetV5AccountSmpGroup(params?: {}): Promise<implicitReturnType>;
|
|
142
157
|
privateGetV5AccountMmpState(params?: {}): Promise<implicitReturnType>;
|
|
143
158
|
privateGetV5AccountWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
159
|
+
privateGetV5AssetAssetOverview(params?: {}): Promise<implicitReturnType>;
|
|
144
160
|
privateGetV5AssetExchangeQueryCoinList(params?: {}): Promise<implicitReturnType>;
|
|
145
161
|
privateGetV5AssetExchangeConvertResultQuery(params?: {}): Promise<implicitReturnType>;
|
|
146
162
|
privateGetV5AssetExchangeQueryConvertHistory(params?: {}): Promise<implicitReturnType>;
|
|
147
163
|
privateGetV5AssetExchangeOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
164
|
+
privateGetV5AssetFundinghistory(params?: {}): Promise<implicitReturnType>;
|
|
165
|
+
privateGetV5AssetPortfolioMargin(params?: {}): Promise<implicitReturnType>;
|
|
166
|
+
privateGetV5AssetTotalMembersAssets(params?: {}): Promise<implicitReturnType>;
|
|
148
167
|
privateGetV5AssetDeliveryRecord(params?: {}): Promise<implicitReturnType>;
|
|
149
168
|
privateGetV5AssetSettlementRecord(params?: {}): Promise<implicitReturnType>;
|
|
150
169
|
privateGetV5AssetTransferQueryAssetInfo(params?: {}): Promise<implicitReturnType>;
|
|
@@ -165,6 +184,8 @@ interface bybit {
|
|
|
165
184
|
privateGetV5AssetWithdrawQueryRecord(params?: {}): Promise<implicitReturnType>;
|
|
166
185
|
privateGetV5AssetWithdrawWithdrawableAmount(params?: {}): Promise<implicitReturnType>;
|
|
167
186
|
privateGetV5AssetWithdrawVaspList(params?: {}): Promise<implicitReturnType>;
|
|
187
|
+
privateGetV5AssetCovertSmallBalanceList(params?: {}): Promise<implicitReturnType>;
|
|
188
|
+
privateGetV5AssetCovertSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
|
|
168
189
|
privateGetV5AssetConvertSmallBalanceList(params?: {}): Promise<implicitReturnType>;
|
|
169
190
|
privateGetV5AssetConvertSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
|
|
170
191
|
privateGetV5FiatQueryCoinList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -179,13 +200,21 @@ interface bybit {
|
|
|
179
200
|
privateGetV5UserAffCustomerInfo(params?: {}): Promise<implicitReturnType>;
|
|
180
201
|
privateGetV5UserDelSubmember(params?: {}): Promise<implicitReturnType>;
|
|
181
202
|
privateGetV5UserSubmembers(params?: {}): Promise<implicitReturnType>;
|
|
203
|
+
privateGetV5UserEscrowSubMembers(params?: {}): Promise<implicitReturnType>;
|
|
204
|
+
privateGetV5UserInvitationReferrals(params?: {}): Promise<implicitReturnType>;
|
|
182
205
|
privateGetV5AffiliateAffUserList(params?: {}): Promise<implicitReturnType>;
|
|
206
|
+
privateGetV5AffiliateAffiliateSubList(params?: {}): Promise<implicitReturnType>;
|
|
183
207
|
privateGetV5SpotLeverTokenOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
184
208
|
privateGetV5SpotMarginTradeInterestRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
185
209
|
privateGetV5SpotMarginTradeState(params?: {}): Promise<implicitReturnType>;
|
|
186
210
|
privateGetV5SpotMarginTradeMaxBorrowable(params?: {}): Promise<implicitReturnType>;
|
|
187
211
|
privateGetV5SpotMarginTradePositionTiers(params?: {}): Promise<implicitReturnType>;
|
|
188
212
|
privateGetV5SpotMarginTradeCoinstate(params?: {}): Promise<implicitReturnType>;
|
|
213
|
+
privateGetV5SpotMarginTradeCurrencyData(params?: {}): Promise<implicitReturnType>;
|
|
214
|
+
privateGetV5SpotMarginTradeFixedborrowContractInfo(params?: {}): Promise<implicitReturnType>;
|
|
215
|
+
privateGetV5SpotMarginTradeFixedborrowOrderInfo(params?: {}): Promise<implicitReturnType>;
|
|
216
|
+
privateGetV5SpotMarginTradeFixedborrowOrderQuote(params?: {}): Promise<implicitReturnType>;
|
|
217
|
+
privateGetV5SpotMarginTradeLiability(params?: {}): Promise<implicitReturnType>;
|
|
189
218
|
privateGetV5SpotMarginTradeRepaymentAvailableAmount(params?: {}): Promise<implicitReturnType>;
|
|
190
219
|
privateGetV5SpotMarginTradeGetAutoRepayMode(params?: {}): Promise<implicitReturnType>;
|
|
191
220
|
privateGetV5SpotCrossMarginTradeLoanInfo(params?: {}): Promise<implicitReturnType>;
|
|
@@ -211,10 +240,13 @@ interface bybit {
|
|
|
211
240
|
privateGetV5CryptoLoanFixedSupplyOrderInfo(params?: {}): Promise<implicitReturnType>;
|
|
212
241
|
privateGetV5CryptoLoanFixedRepaymentHistory(params?: {}): Promise<implicitReturnType>;
|
|
213
242
|
privateGetV5InsLoanProductInfos(params?: {}): Promise<implicitReturnType>;
|
|
243
|
+
privateGetV5InsLoanEnsureTokens(params?: {}): Promise<implicitReturnType>;
|
|
214
244
|
privateGetV5InsLoanEnsureTokensConvert(params?: {}): Promise<implicitReturnType>;
|
|
215
245
|
privateGetV5InsLoanLoanOrder(params?: {}): Promise<implicitReturnType>;
|
|
216
246
|
privateGetV5InsLoanRepaidHistory(params?: {}): Promise<implicitReturnType>;
|
|
247
|
+
privateGetV5InsLoanLtv(params?: {}): Promise<implicitReturnType>;
|
|
217
248
|
privateGetV5InsLoanLtvConvert(params?: {}): Promise<implicitReturnType>;
|
|
249
|
+
privateGetV5InsLoanCoinDeltaAmount(params?: {}): Promise<implicitReturnType>;
|
|
218
250
|
privateGetV5LendingInfo(params?: {}): Promise<implicitReturnType>;
|
|
219
251
|
privateGetV5LendingHistoryOrder(params?: {}): Promise<implicitReturnType>;
|
|
220
252
|
privateGetV5LendingAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -291,6 +323,7 @@ interface bybit {
|
|
|
291
323
|
privatePostV5OrderAmendBatch(params?: {}): Promise<implicitReturnType>;
|
|
292
324
|
privatePostV5OrderCancelBatch(params?: {}): Promise<implicitReturnType>;
|
|
293
325
|
privatePostV5OrderDisconnectedCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
326
|
+
privatePostV5OrderPreCheck(params?: {}): Promise<implicitReturnType>;
|
|
294
327
|
privatePostV5PositionSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
295
328
|
privatePostV5PositionSwitchIsolated(params?: {}): Promise<implicitReturnType>;
|
|
296
329
|
privatePostV5PositionSetTpslMode(params?: {}): Promise<implicitReturnType>;
|
|
@@ -311,12 +344,14 @@ interface bybit {
|
|
|
311
344
|
privatePostV5AccountRepay(params?: {}): Promise<implicitReturnType>;
|
|
312
345
|
privatePostV5AccountNoConvertRepay(params?: {}): Promise<implicitReturnType>;
|
|
313
346
|
privatePostV5AccountSetLimitPxAction(params?: {}): Promise<implicitReturnType>;
|
|
347
|
+
privatePostV5AccountSetDeltaMode(params?: {}): Promise<implicitReturnType>;
|
|
314
348
|
privatePostV5AssetExchangeQuoteApply(params?: {}): Promise<implicitReturnType>;
|
|
315
349
|
privatePostV5AssetExchangeConvertExecute(params?: {}): Promise<implicitReturnType>;
|
|
316
350
|
privatePostV5AssetTransferInterTransfer(params?: {}): Promise<implicitReturnType>;
|
|
317
351
|
privatePostV5AssetTransferSaveTransferSubMember(params?: {}): Promise<implicitReturnType>;
|
|
318
352
|
privatePostV5AssetTransferUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
319
353
|
privatePostV5AssetDepositDepositToAccount(params?: {}): Promise<implicitReturnType>;
|
|
354
|
+
privatePostV5AssetTravelRuleDepositSubmit(params?: {}): Promise<implicitReturnType>;
|
|
320
355
|
privatePostV5AssetWithdrawCreate(params?: {}): Promise<implicitReturnType>;
|
|
321
356
|
privatePostV5AssetWithdrawCancel(params?: {}): Promise<implicitReturnType>;
|
|
322
357
|
privatePostV5AssetCovertGetQuote(params?: {}): Promise<implicitReturnType>;
|
|
@@ -330,11 +365,15 @@ interface bybit {
|
|
|
330
365
|
privatePostV5UserUpdateSubApi(params?: {}): Promise<implicitReturnType>;
|
|
331
366
|
privatePostV5UserDeleteApi(params?: {}): Promise<implicitReturnType>;
|
|
332
367
|
privatePostV5UserDeleteSubApi(params?: {}): Promise<implicitReturnType>;
|
|
368
|
+
privatePostV5UserAgreement(params?: {}): Promise<implicitReturnType>;
|
|
369
|
+
privatePostV5UserCreateDemoMember(params?: {}): Promise<implicitReturnType>;
|
|
333
370
|
privatePostV5SpotLeverTokenPurchase(params?: {}): Promise<implicitReturnType>;
|
|
334
371
|
privatePostV5SpotLeverTokenRedeem(params?: {}): Promise<implicitReturnType>;
|
|
335
372
|
privatePostV5SpotMarginTradeSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
336
373
|
privatePostV5SpotMarginTradeSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
337
374
|
privatePostV5SpotMarginTradeSetAutoRepayMode(params?: {}): Promise<implicitReturnType>;
|
|
375
|
+
privatePostV5SpotMarginTradeFixedborrow(params?: {}): Promise<implicitReturnType>;
|
|
376
|
+
privatePostV5SpotMarginTradeFixedborrowRenew(params?: {}): Promise<implicitReturnType>;
|
|
338
377
|
privatePostV5SpotCrossMarginTradeLoan(params?: {}): Promise<implicitReturnType>;
|
|
339
378
|
privatePostV5SpotCrossMarginTradeRepay(params?: {}): Promise<implicitReturnType>;
|
|
340
379
|
privatePostV5SpotCrossMarginTradeSwitch(params?: {}): Promise<implicitReturnType>;
|
|
@@ -2,6 +2,7 @@ import { implicitReturnType } from '../base/types.js';
|
|
|
2
2
|
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
3
|
interface Exchange {
|
|
4
4
|
publicGetExchangeOrdersRate(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetExchangeStatus(params?: {}): Promise<implicitReturnType>;
|
|
5
6
|
publicGetOrderBooks(params?: {}): Promise<implicitReturnType>;
|
|
6
7
|
publicGetRatePair(params?: {}): Promise<implicitReturnType>;
|
|
7
8
|
publicGetTicker(params?: {}): Promise<implicitReturnType>;
|
|
@@ -11,7 +12,9 @@ interface Exchange {
|
|
|
11
12
|
privateGetAccountsLeverageBalance(params?: {}): Promise<implicitReturnType>;
|
|
12
13
|
privateGetBankAccounts(params?: {}): Promise<implicitReturnType>;
|
|
13
14
|
privateGetDepositMoney(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
privateGetExchangeOrdersId(params?: {}): Promise<implicitReturnType>;
|
|
14
16
|
privateGetExchangeOrdersOpens(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privateGetExchangeOrdersCancelStatus(params?: {}): Promise<implicitReturnType>;
|
|
15
18
|
privateGetExchangeOrdersTransactions(params?: {}): Promise<implicitReturnType>;
|
|
16
19
|
privateGetExchangeOrdersTransactionsPagination(params?: {}): Promise<implicitReturnType>;
|
|
17
20
|
privateGetExchangeLeveragePositions(params?: {}): Promise<implicitReturnType>;
|
|
@@ -44,6 +44,7 @@ interface Exchange {
|
|
|
44
44
|
privatePostOpenapiWalletV1WithdrawApply(params?: {}): Promise<implicitReturnType>;
|
|
45
45
|
privatePostOpenapiV1OrderTest(params?: {}): Promise<implicitReturnType>;
|
|
46
46
|
privatePostOpenapiV1Order(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
privatePostOpenapiV1OrderCancelReplace(params?: {}): Promise<implicitReturnType>;
|
|
47
48
|
privatePostOpenapiV1CapitalWithdrawApply(params?: {}): Promise<implicitReturnType>;
|
|
48
49
|
privatePostOpenapiV1CapitalDepositApply(params?: {}): Promise<implicitReturnType>;
|
|
49
50
|
privatePostOpenapiV3PaymentRequestPaymentRequests(params?: {}): Promise<implicitReturnType>;
|
|
@@ -54,14 +55,20 @@ interface Exchange {
|
|
|
54
55
|
privatePostMerchantApiV1InvoicesCancel(params?: {}): Promise<implicitReturnType>;
|
|
55
56
|
privatePostOpenapiConvertV1GetSupportedTradingPairs(params?: {}): Promise<implicitReturnType>;
|
|
56
57
|
privatePostOpenapiConvertV1GetQuote(params?: {}): Promise<implicitReturnType>;
|
|
57
|
-
|
|
58
|
+
privatePostOpenapiConvertV1AcceptQuote(params?: {}): Promise<implicitReturnType>;
|
|
58
59
|
privatePostOpenapiConvertV1QueryOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
privatePostOpenapiOtcTradeV1GetSupportedTradingPairs(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privatePostOpenapiOtcTradeV1CreateRfq(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
privatePostOpenapiOtcTradeV1AcceptRfq(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privatePostOpenapiOtcTradeV1ManualSettle(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
privatePostOpenapiOtcTradeV1QueryOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
59
65
|
privatePostOpenapiFiatV1SupportChannel(params?: {}): Promise<implicitReturnType>;
|
|
60
66
|
privatePostOpenapiFiatV1CashOut(params?: {}): Promise<implicitReturnType>;
|
|
61
67
|
privatePostOpenapiFiatV1History(params?: {}): Promise<implicitReturnType>;
|
|
62
68
|
privatePostOpenapiMigrationV4Sellorder(params?: {}): Promise<implicitReturnType>;
|
|
63
69
|
privatePostOpenapiMigrationV4ValidateField(params?: {}): Promise<implicitReturnType>;
|
|
64
70
|
privatePostOpenapiTransferV3Transfers(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
privatePostOpenapiTransferV4Transfers(params?: {}): Promise<implicitReturnType>;
|
|
65
72
|
privatePostOpenapiV1SubAccountCreate(params?: {}): Promise<implicitReturnType>;
|
|
66
73
|
privatePostOpenapiV1SubAccountTransferUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
67
74
|
privatePostOpenapiV1SubAccountTransferSubToMaster(params?: {}): Promise<implicitReturnType>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
// -------------------------------------------------------------------------------
|
|
8
2
|
import _kucoin from '../kucoin.js';
|
|
9
3
|
class kucoin extends _kucoin {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
marketGetPriceKline(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
marketGetPriceMarkKline(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
privateGetFutures(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
privateGetFuturesAssetId(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
privateGetWalletFunds(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
privateGetFuturesFunds(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
privateGetFuturesOrders(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
privateGetFuturesOrdersHistory(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
privateGetFuturesOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
privateGetFuturesPositions(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
privateGetFuturesPositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
privateGetFuturesFeeHistory(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
privateGetFuturesAssetIdLeverage(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privateGetFuturesPositionsPositionIdLiqPrice(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
privatePostWalletFuturesTransfer(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
privatePostFuturesTransfersInr(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
privatePostFuturesAssetIdOrder(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
privatePostFuturesPositionsPositionIdClose(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privatePostFuturesPositionsPositionIdClosePartial(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privatePostFuturesPositionsPositionIdReverse(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privatePostFuturesPositionsPositionIdAddMargin(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privatePostFuturesPositionsPositionIdRiskorder(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privatePostFuturesAssetIdLeverage(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
privatePatchFuturesOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privatePatchFuturesPositionsPositionIdRiskorder(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
privateDeleteFuturesOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
}
|
|
31
|
+
declare abstract class Exchange extends _Exchange {
|
|
32
|
+
}
|
|
33
|
+
export default Exchange;
|
package/js/src/aster.js
CHANGED
|
@@ -119,6 +119,8 @@ export default class Exchange {
|
|
|
119
119
|
last_request_body: any;
|
|
120
120
|
last_request_url: string;
|
|
121
121
|
last_request_path: string;
|
|
122
|
+
fetchHistoryCache: Dictionary<any>[];
|
|
123
|
+
fetchHistoryCacheSize: number;
|
|
122
124
|
id: string;
|
|
123
125
|
markets: Dictionary<any>;
|
|
124
126
|
has: Dictionary<boolean | 'emulated' | undefined>;
|
|
@@ -312,6 +314,8 @@ export default class Exchange {
|
|
|
312
314
|
setProxyAgents(httpProxy: any, httpsProxy: any, socksProxy: any): any;
|
|
313
315
|
loadHttpProxyAgent(): Promise<any>;
|
|
314
316
|
getHttpAgentIfNeeded(url: any): any;
|
|
317
|
+
addFetchCache(data: any): void;
|
|
318
|
+
getFetchCache(): Dictionary<any>[];
|
|
315
319
|
isBinaryMessage(msg: any): msg is ArrayBuffer | Uint8Array<ArrayBufferLike>;
|
|
316
320
|
stringToBinary(content: any): Uint8Array<ArrayBufferLike>;
|
|
317
321
|
binaryToString(binary: any): string;
|
|
@@ -471,7 +475,12 @@ export default class Exchange {
|
|
|
471
475
|
* @param {boolean} [enable] true if demo trading should be enabled, false otherwise
|
|
472
476
|
*/
|
|
473
477
|
enableDemoTrading(enable: boolean): void;
|
|
474
|
-
sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: Str): {
|
|
478
|
+
sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: Str): {
|
|
479
|
+
url: any;
|
|
480
|
+
method: any;
|
|
481
|
+
headers: any;
|
|
482
|
+
body: any;
|
|
483
|
+
};
|
|
475
484
|
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
476
485
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
477
486
|
fetchTradesWs(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -43,7 +43,7 @@ let SignMode = undefined;
|
|
|
43
43
|
*/
|
|
44
44
|
export default class Exchange {
|
|
45
45
|
// this is updated by vss.js when building
|
|
46
|
-
static { this.ccxtVersion = '4.5.
|
|
46
|
+
static { this.ccxtVersion = '4.5.63'; }
|
|
47
47
|
constructor(userConfig = {}) {
|
|
48
48
|
this.isSandboxModeEnabled = false;
|
|
49
49
|
this.api = undefined;
|
|
@@ -115,6 +115,8 @@ export default class Exchange {
|
|
|
115
115
|
this.last_request_body = undefined;
|
|
116
116
|
this.last_request_url = undefined;
|
|
117
117
|
this.last_request_path = undefined;
|
|
118
|
+
this.fetchHistoryCache = [];
|
|
119
|
+
this.fetchHistoryCacheSize = 0;
|
|
118
120
|
this.id = 'Exchange';
|
|
119
121
|
this.markets = undefined;
|
|
120
122
|
this.features = undefined;
|
|
@@ -568,6 +570,18 @@ export default class Exchange {
|
|
|
568
570
|
}
|
|
569
571
|
return undefined;
|
|
570
572
|
}
|
|
573
|
+
addFetchCache(data) {
|
|
574
|
+
if (this.fetchHistoryCacheSize <= 0) {
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
if (this.fetchHistoryCache.length >= this.fetchHistoryCacheSize) {
|
|
578
|
+
this.fetchHistoryCache.shift();
|
|
579
|
+
}
|
|
580
|
+
this.fetchHistoryCache.push(data);
|
|
581
|
+
}
|
|
582
|
+
getFetchCache() {
|
|
583
|
+
return this.fetchHistoryCache;
|
|
584
|
+
}
|
|
571
585
|
isBinaryMessage(msg) {
|
|
572
586
|
return msg instanceof Uint8Array || msg instanceof ArrayBuffer;
|
|
573
587
|
}
|
|
@@ -2619,7 +2633,7 @@ export default class Exchange {
|
|
|
2619
2633
|
this.options['enableDemoTrading'] = enable;
|
|
2620
2634
|
}
|
|
2621
2635
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
2622
|
-
return {};
|
|
2636
|
+
return { 'url': undefined, 'method': undefined, 'headers': undefined, 'body': undefined };
|
|
2623
2637
|
}
|
|
2624
2638
|
async fetchAccounts(params = {}) {
|
|
2625
2639
|
throw new NotSupported(this.id + ' fetchAccounts() is not supported yet');
|
|
@@ -5192,14 +5206,31 @@ export default class Exchange {
|
|
|
5192
5206
|
[retries, params] = this.handleOptionAndParams(params, path, 'maxRetriesOnFailure', 0);
|
|
5193
5207
|
let retryDelay = undefined;
|
|
5194
5208
|
[retryDelay, params] = this.handleOptionAndParams(params, path, 'maxRetriesOnFailureDelay', 0);
|
|
5209
|
+
let fetchData = undefined;
|
|
5210
|
+
const fetchDataCacheEnabled = this.fetchHistoryCacheSize > 0;
|
|
5195
5211
|
for (let i = 0; i < retries + 1; i++) {
|
|
5212
|
+
if (fetchDataCacheEnabled) {
|
|
5213
|
+
fetchData = { 'request': undefined, 'response': { 'body': undefined }, 'error': undefined };
|
|
5214
|
+
}
|
|
5196
5215
|
try {
|
|
5197
5216
|
this.setLastRestRequestTimestamp();
|
|
5198
5217
|
const request = this.sign(path, api, method, params, headers, body);
|
|
5218
|
+
if (fetchDataCacheEnabled) {
|
|
5219
|
+
fetchData['request'] = request;
|
|
5220
|
+
}
|
|
5199
5221
|
this.setLastRequest(request);
|
|
5200
|
-
|
|
5222
|
+
const response = await this.fetch(request['url'], request['method'], request['headers'], request['body']);
|
|
5223
|
+
if (fetchDataCacheEnabled) {
|
|
5224
|
+
fetchData['response']['body'] = response;
|
|
5225
|
+
this.addFetchCache(fetchData);
|
|
5226
|
+
}
|
|
5227
|
+
return response;
|
|
5201
5228
|
}
|
|
5202
5229
|
catch (e) {
|
|
5230
|
+
if (fetchDataCacheEnabled) {
|
|
5231
|
+
fetchData['error'] = e;
|
|
5232
|
+
this.addFetchCache(fetchData);
|
|
5233
|
+
}
|
|
5203
5234
|
if (e instanceof OperationFailed) {
|
|
5204
5235
|
if (i < retries) {
|
|
5205
5236
|
if (this.verbose) {
|