ccxt 4.4.41 → 4.4.43
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 +36 -34
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/ace.js +1 -1
- package/dist/cjs/src/alpaca.js +0 -1
- package/dist/cjs/src/ascendex.js +0 -1
- package/dist/cjs/src/base/Exchange.js +21 -16
- package/dist/cjs/src/bigone.js +0 -1
- package/dist/cjs/src/binance.js +3 -0
- package/dist/cjs/src/bingx.js +35 -12
- package/dist/cjs/src/bitfinex.js +123 -0
- package/dist/cjs/src/bitstamp.js +54 -0
- package/dist/cjs/src/blofin.js +16 -7
- package/dist/cjs/src/cex.js +1 -1
- package/dist/cjs/src/coinbase.js +8 -9
- package/dist/cjs/src/coinbaseexchange.js +5 -6
- package/dist/cjs/src/coinbaseinternational.js +7 -8
- package/dist/cjs/src/coincatch.js +0 -1
- package/dist/cjs/src/coincheck.js +0 -1
- package/dist/cjs/src/coinex.js +91 -6
- package/dist/cjs/src/coinlist.js +3 -4
- package/dist/cjs/src/coinmate.js +1 -3
- package/dist/cjs/src/coinmetro.js +4 -5
- package/dist/cjs/src/coinone.js +0 -1
- package/dist/cjs/src/coinsph.js +7 -8
- package/dist/cjs/src/cryptocom.js +3 -0
- package/dist/cjs/src/currencycom.js +3 -4
- package/dist/cjs/src/defx.js +6 -7
- package/dist/cjs/src/deribit.js +1 -3
- package/dist/cjs/src/digifinex.js +0 -1
- package/dist/cjs/src/ellipx.js +0 -2
- package/dist/cjs/src/exmo.js +1 -2
- package/dist/cjs/src/gate.js +1 -2
- package/dist/cjs/src/gemini.js +63 -6
- package/dist/cjs/src/hashkey.js +79 -83
- package/dist/cjs/src/hitbtc.js +49 -5
- package/dist/cjs/src/hollaex.js +4 -6
- package/dist/cjs/src/htx.js +1 -3
- package/dist/cjs/src/huobijp.js +0 -1
- package/dist/cjs/src/hyperliquid.js +1 -1
- package/dist/cjs/src/idex.js +8 -8
- package/dist/cjs/src/independentreserve.js +0 -1
- package/dist/cjs/src/indodax.js +0 -1
- package/dist/cjs/src/kraken.js +63 -3
- package/dist/cjs/src/krakenfutures.js +75 -3
- package/dist/cjs/src/kucoin.js +1 -3
- package/dist/cjs/src/kucoinfutures.js +10 -9
- package/dist/cjs/src/kuna.js +1 -3
- package/dist/cjs/src/latoken.js +1 -3
- package/dist/cjs/src/lbank.js +0 -1
- package/dist/cjs/src/luno.js +0 -1
- package/dist/cjs/src/lykke.js +0 -1
- package/dist/cjs/src/mercado.js +0 -1
- package/dist/cjs/src/mexc.js +3 -4
- package/dist/cjs/src/myokx.js +35 -0
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +4 -6
- package/dist/cjs/src/oceanex.js +0 -1
- package/dist/cjs/src/okcoin.js +1 -3
- package/dist/cjs/src/okx.js +1 -3
- package/dist/cjs/src/onetrading.js +1 -3
- package/dist/cjs/src/p2b.js +1 -1
- package/dist/cjs/src/paradex.js +5 -7
- package/dist/cjs/src/phemex.js +15 -15
- package/dist/cjs/src/poloniex.js +1 -3
- package/dist/cjs/src/poloniexfutures.js +6 -6
- package/dist/cjs/src/pro/myokx.js +24 -0
- package/dist/cjs/src/probit.js +0 -1
- package/dist/cjs/src/timex.js +0 -1
- package/dist/cjs/src/tokocrypto.js +11 -14
- package/dist/cjs/src/tradeogre.js +1 -1
- package/dist/cjs/src/upbit.js +0 -1
- package/dist/cjs/src/vertex.js +69 -4
- package/dist/cjs/src/wavesexchange.js +4 -5
- package/dist/cjs/src/whitebit.js +8 -9
- package/dist/cjs/src/woo.js +101 -15
- package/dist/cjs/src/woofipro.js +96 -15
- package/dist/cjs/src/xt.js +3 -2
- package/dist/cjs/src/yobit.js +0 -1
- package/dist/cjs/src/zaif.js +0 -1
- package/dist/cjs/src/zonda.js +1 -2
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- 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/bingx.d.ts +4 -0
- package/js/src/abstract/bitstamp.d.ts +1 -0
- package/js/src/abstract/myokx.d.ts +343 -0
- package/js/src/abstract/myokx.js +11 -0
- package/js/src/ace.js +1 -1
- package/js/src/alpaca.js +0 -1
- package/js/src/ascendex.js +0 -1
- package/js/src/base/Exchange.d.ts +6 -6
- package/js/src/base/Exchange.js +21 -16
- package/js/src/bigone.js +0 -1
- package/js/src/binance.js +3 -0
- package/js/src/bingx.js +35 -12
- package/js/src/bitfinex.d.ts +11 -1
- package/js/src/bitfinex.js +123 -0
- package/js/src/bitstamp.js +54 -0
- package/js/src/blofin.d.ts +1 -1
- package/js/src/blofin.js +16 -7
- package/js/src/cex.js +1 -1
- package/js/src/coinbase.js +8 -9
- package/js/src/coinbaseexchange.js +5 -6
- package/js/src/coinbaseinternational.d.ts +1 -1
- package/js/src/coinbaseinternational.js +7 -8
- package/js/src/coincatch.js +0 -1
- package/js/src/coincheck.js +0 -1
- package/js/src/coinex.js +91 -6
- package/js/src/coinlist.js +3 -4
- package/js/src/coinmate.js +1 -3
- package/js/src/coinmetro.js +4 -5
- package/js/src/coinone.js +0 -1
- package/js/src/coinsph.js +7 -8
- package/js/src/cryptocom.js +3 -0
- package/js/src/currencycom.js +3 -4
- package/js/src/defx.js +6 -7
- package/js/src/deribit.js +1 -3
- package/js/src/digifinex.js +0 -1
- package/js/src/ellipx.js +0 -2
- package/js/src/exmo.d.ts +1 -1
- package/js/src/exmo.js +1 -2
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +1 -2
- package/js/src/gemini.js +63 -6
- package/js/src/hashkey.js +79 -83
- package/js/src/hitbtc.d.ts +11 -1
- package/js/src/hitbtc.js +49 -5
- package/js/src/hollaex.js +4 -6
- package/js/src/htx.js +1 -3
- package/js/src/huobijp.js +0 -1
- package/js/src/hyperliquid.js +1 -1
- package/js/src/idex.js +8 -8
- package/js/src/independentreserve.js +0 -1
- package/js/src/indodax.js +0 -1
- package/js/src/kraken.d.ts +2 -2
- package/js/src/kraken.js +63 -3
- package/js/src/krakenfutures.d.ts +2 -2
- package/js/src/krakenfutures.js +75 -3
- package/js/src/kucoin.js +1 -3
- package/js/src/kucoinfutures.d.ts +5 -4
- package/js/src/kucoinfutures.js +10 -9
- package/js/src/kuna.js +1 -3
- package/js/src/latoken.js +1 -3
- package/js/src/lbank.js +0 -1
- package/js/src/luno.js +0 -1
- package/js/src/lykke.js +0 -1
- package/js/src/mercado.js +0 -1
- package/js/src/mexc.js +3 -4
- package/js/src/myokx.d.ts +4 -0
- package/js/src/myokx.js +36 -0
- package/js/src/ndax.js +1 -1
- package/js/src/novadax.js +4 -6
- package/js/src/oceanex.js +0 -1
- package/js/src/okcoin.js +1 -3
- package/js/src/okx.js +1 -3
- package/js/src/onetrading.js +1 -3
- package/js/src/p2b.js +1 -1
- package/js/src/paradex.d.ts +1 -1
- package/js/src/paradex.js +5 -7
- package/js/src/phemex.d.ts +1 -0
- package/js/src/phemex.js +15 -15
- package/js/src/poloniex.js +1 -3
- package/js/src/poloniexfutures.js +6 -6
- package/js/src/pro/myokx.d.ts +4 -0
- package/js/src/pro/myokx.js +25 -0
- package/js/src/probit.js +0 -1
- package/js/src/timex.js +0 -1
- package/js/src/tokocrypto.js +11 -14
- package/js/src/tradeogre.js +1 -1
- package/js/src/upbit.js +0 -1
- package/js/src/vertex.d.ts +11 -1
- package/js/src/vertex.js +69 -4
- package/js/src/wavesexchange.d.ts +1 -1
- package/js/src/wavesexchange.js +4 -5
- package/js/src/whitebit.js +8 -9
- package/js/src/woo.d.ts +1 -1
- package/js/src/woo.js +101 -15
- package/js/src/woofipro.js +96 -15
- package/js/src/xt.d.ts +2 -1
- package/js/src/xt.js +3 -2
- package/js/src/yobit.js +0 -1
- package/js/src/zaif.js +0 -1
- package/js/src/zonda.js +1 -2
- package/package.json +15 -8
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import _okx from '../okx.js';
|
|
3
|
+
interface okx {
|
|
4
|
+
publicGetMarketBooksFull(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetMarketTickers(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetMarketTicker(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetMarketIndexTickers(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetMarketBooks(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetMarketBooksLite(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetMarketCandles(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetMarketHistoryCandles(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetMarketIndexCandles(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetMarketHistoryIndexCandles(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetMarketMarkPriceCandles(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
publicGetMarketHistoryMarkPriceCandles(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicGetMarketHistoryTrades(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
publicGetMarketOptionInstrumentFamilyTrades(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
publicGetMarketPlatform24Volume(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
publicGetMarketOpenOracle(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
publicGetMarketExchangeRate(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
publicGetMarketIndexComponents(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
publicGetPublicEconomicCalendar(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
publicGetMarketBlockTickers(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
publicGetMarketBlockTicker(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
publicGetPublicBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
publicGetPublicInstruments(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
publicGetPublicDeliveryExerciseHistory(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
publicGetPublicOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
publicGetPublicFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicGetPublicFundingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
publicGetPublicPriceLimit(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
publicGetPublicOptSummary(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
publicGetPublicEstimatedPrice(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
publicGetPublicDiscountRateInterestFreeQuota(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
publicGetPublicTime(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
publicGetPublicMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
publicGetPublicPositionTiers(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
publicGetPublicInterestRateLoanQuota(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
publicGetPublicVipInterestRateLoanQuota(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
publicGetPublicUnderlying(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
publicGetPublicInsuranceFund(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
publicGetPublicConvertContractCoin(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
publicGetPublicOptionTrades(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
publicGetPublicInstrumentTickBands(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
publicGetRubikStatTradingDataSupportCoin(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
publicGetRubikStatTakerVolume(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
publicGetRubikStatMarginLoanRatio(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
publicGetRubikStatContractsLongShortAccountRatio(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
publicGetRubikStatContractsLongShortAccountRatioContract(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
publicGetRubikStatContractsOpenInterestVolume(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
publicGetRubikStatOptionOpenInterestVolume(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicGetRubikStatOptionOpenInterestVolumeRatio(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicGetRubikStatOptionOpenInterestVolumeExpiry(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
publicGetRubikStatOptionOpenInterestVolumeStrike(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
publicGetRubikStatOptionTakerBlockVolume(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
publicGetSystemStatus(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
publicGetSprdSpreads(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
publicGetSprdBooks(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
publicGetSprdTicker(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
publicGetSprdPublicTrades(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
publicGetMarketSprdTicker(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
publicGetMarketSprdCandles(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
publicGetMarketSprdHistoryCandles(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
publicGetTradingBotGridAiParam(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
publicGetTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
publicGetTradingBotPublicRsiBackTesting(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
publicGetAssetExchangeList(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
publicGetFinanceStakingDefiEthApyHistory(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
publicGetFinanceStakingDefiSolApyHistory(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
publicGetFinanceSavingsLendingRateSummary(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
publicGetFinanceSavingsLendingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
publicGetFinanceFixedLoanLendingOffers(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
publicGetFinanceFixedLoanLendingApyHistory(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
publicGetFinanceFixedLoanPendingLendingVolume(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
publicGetFinanceSfpDcdProducts(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
publicGetCopytradingPublicLeadTraders(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
publicGetCopytradingPublicWeeklyPnl(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
publicGetCopytradingPublicStats(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
publicGetCopytradingPublicPreferenceCurrency(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
publicGetCopytradingPublicCurrentSubpositions(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
publicGetCopytradingPublicSubpositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
publicGetSupportAnnouncementsTypes(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
privateGetRfqCounterparties(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
privateGetRfqMakerInstrumentSettings(params?: {}): Promise<implicitReturnType>;
|
|
86
|
+
privateGetRfqMmpConfig(params?: {}): Promise<implicitReturnType>;
|
|
87
|
+
privateGetRfqRfqs(params?: {}): Promise<implicitReturnType>;
|
|
88
|
+
privateGetRfqQuotes(params?: {}): Promise<implicitReturnType>;
|
|
89
|
+
privateGetRfqTrades(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
privateGetRfqPublicTrades(params?: {}): Promise<implicitReturnType>;
|
|
91
|
+
privateGetSprdOrder(params?: {}): Promise<implicitReturnType>;
|
|
92
|
+
privateGetSprdOrdersPending(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
privateGetSprdOrdersHistory(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
privateGetSprdOrdersHistoryArchive(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
privateGetSprdTrades(params?: {}): Promise<implicitReturnType>;
|
|
96
|
+
privateGetTradeOrder(params?: {}): Promise<implicitReturnType>;
|
|
97
|
+
privateGetTradeOrdersPending(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
privateGetTradeOrdersHistory(params?: {}): Promise<implicitReturnType>;
|
|
99
|
+
privateGetTradeOrdersHistoryArchive(params?: {}): Promise<implicitReturnType>;
|
|
100
|
+
privateGetTradeFills(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
privateGetTradeFillsHistory(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
privateGetTradeFillsArchive(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
privateGetTradeOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
privateGetTradeOrdersAlgoPending(params?: {}): Promise<implicitReturnType>;
|
|
105
|
+
privateGetTradeOrdersAlgoHistory(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privateGetTradeEasyConvertCurrencyList(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
privateGetTradeEasyConvertHistory(params?: {}): Promise<implicitReturnType>;
|
|
108
|
+
privateGetTradeOneClickRepayCurrencyList(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
privateGetTradeOneClickRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
110
|
+
privateGetTradeAccountRateLimit(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
privateGetAssetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
112
|
+
privateGetAssetBalances(params?: {}): Promise<implicitReturnType>;
|
|
113
|
+
privateGetAssetNonTradableAssets(params?: {}): Promise<implicitReturnType>;
|
|
114
|
+
privateGetAssetAssetValuation(params?: {}): Promise<implicitReturnType>;
|
|
115
|
+
privateGetAssetTransferState(params?: {}): Promise<implicitReturnType>;
|
|
116
|
+
privateGetAssetBills(params?: {}): Promise<implicitReturnType>;
|
|
117
|
+
privateGetAssetDepositLightning(params?: {}): Promise<implicitReturnType>;
|
|
118
|
+
privateGetAssetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
119
|
+
privateGetAssetDepositHistory(params?: {}): Promise<implicitReturnType>;
|
|
120
|
+
privateGetAssetWithdrawalHistory(params?: {}): Promise<implicitReturnType>;
|
|
121
|
+
privateGetAssetDepositWithdrawStatus(params?: {}): Promise<implicitReturnType>;
|
|
122
|
+
privateGetAssetConvertCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
123
|
+
privateGetAssetConvertCurrencyPair(params?: {}): Promise<implicitReturnType>;
|
|
124
|
+
privateGetAssetConvertHistory(params?: {}): Promise<implicitReturnType>;
|
|
125
|
+
privateGetAssetMonthlyStatement(params?: {}): Promise<implicitReturnType>;
|
|
126
|
+
privateGetAccountInstruments(params?: {}): Promise<implicitReturnType>;
|
|
127
|
+
privateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
128
|
+
privateGetAccountPositions(params?: {}): Promise<implicitReturnType>;
|
|
129
|
+
privateGetAccountPositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
130
|
+
privateGetAccountAccountPositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
131
|
+
privateGetAccountBills(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
privateGetAccountBillsArchive(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
privateGetAccountBillsHistoryArchive(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
privateGetAccountConfig(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
privateGetAccountMaxSize(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
privateGetAccountMaxAvailSize(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
privateGetAccountLeverageInfo(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
privateGetAccountAdjustLeverageInfo(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
privateGetAccountMaxLoan(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
privateGetAccountTradeFee(params?: {}): Promise<implicitReturnType>;
|
|
141
|
+
privateGetAccountInterestAccrued(params?: {}): Promise<implicitReturnType>;
|
|
142
|
+
privateGetAccountInterestRate(params?: {}): Promise<implicitReturnType>;
|
|
143
|
+
privateGetAccountMaxWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
144
|
+
privateGetAccountRiskState(params?: {}): Promise<implicitReturnType>;
|
|
145
|
+
privateGetAccountQuickMarginBorrowRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
146
|
+
privateGetAccountBorrowRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
147
|
+
privateGetAccountVipInterestAccrued(params?: {}): Promise<implicitReturnType>;
|
|
148
|
+
privateGetAccountVipInterestDeducted(params?: {}): Promise<implicitReturnType>;
|
|
149
|
+
privateGetAccountVipLoanOrderList(params?: {}): Promise<implicitReturnType>;
|
|
150
|
+
privateGetAccountVipLoanOrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
151
|
+
privateGetAccountInterestLimits(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
privateGetAccountGreeks(params?: {}): Promise<implicitReturnType>;
|
|
153
|
+
privateGetAccountPositionTiers(params?: {}): Promise<implicitReturnType>;
|
|
154
|
+
privateGetAccountMmpConfig(params?: {}): Promise<implicitReturnType>;
|
|
155
|
+
privateGetAccountFixedLoanBorrowingLimit(params?: {}): Promise<implicitReturnType>;
|
|
156
|
+
privateGetAccountFixedLoanBorrowingQuote(params?: {}): Promise<implicitReturnType>;
|
|
157
|
+
privateGetAccountFixedLoanBorrowingOrdersList(params?: {}): Promise<implicitReturnType>;
|
|
158
|
+
privateGetAccountSpotManualBorrowRepay(params?: {}): Promise<implicitReturnType>;
|
|
159
|
+
privateGetAccountSetAutoRepay(params?: {}): Promise<implicitReturnType>;
|
|
160
|
+
privateGetAccountSpotBorrowRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
161
|
+
privateGetUsersSubaccountList(params?: {}): Promise<implicitReturnType>;
|
|
162
|
+
privateGetAccountSubaccountBalances(params?: {}): Promise<implicitReturnType>;
|
|
163
|
+
privateGetAssetSubaccountBalances(params?: {}): Promise<implicitReturnType>;
|
|
164
|
+
privateGetAccountSubaccountMaxWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
165
|
+
privateGetAssetSubaccountBills(params?: {}): Promise<implicitReturnType>;
|
|
166
|
+
privateGetAssetSubaccountManagedSubaccountBills(params?: {}): Promise<implicitReturnType>;
|
|
167
|
+
privateGetUsersEntrustSubaccountList(params?: {}): Promise<implicitReturnType>;
|
|
168
|
+
privateGetAccountSubaccountInterestLimits(params?: {}): Promise<implicitReturnType>;
|
|
169
|
+
privateGetTradingBotGridOrdersAlgoPending(params?: {}): Promise<implicitReturnType>;
|
|
170
|
+
privateGetTradingBotGridOrdersAlgoHistory(params?: {}): Promise<implicitReturnType>;
|
|
171
|
+
privateGetTradingBotGridOrdersAlgoDetails(params?: {}): Promise<implicitReturnType>;
|
|
172
|
+
privateGetTradingBotGridSubOrders(params?: {}): Promise<implicitReturnType>;
|
|
173
|
+
privateGetTradingBotGridPositions(params?: {}): Promise<implicitReturnType>;
|
|
174
|
+
privateGetTradingBotGridAiParam(params?: {}): Promise<implicitReturnType>;
|
|
175
|
+
privateGetTradingBotSignalSignals(params?: {}): Promise<implicitReturnType>;
|
|
176
|
+
privateGetTradingBotSignalOrdersAlgoDetails(params?: {}): Promise<implicitReturnType>;
|
|
177
|
+
privateGetTradingBotSignalOrdersAlgoHistory(params?: {}): Promise<implicitReturnType>;
|
|
178
|
+
privateGetTradingBotSignalPositions(params?: {}): Promise<implicitReturnType>;
|
|
179
|
+
privateGetTradingBotSignalPositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
180
|
+
privateGetTradingBotSignalSubOrders(params?: {}): Promise<implicitReturnType>;
|
|
181
|
+
privateGetTradingBotSignalEventHistory(params?: {}): Promise<implicitReturnType>;
|
|
182
|
+
privateGetTradingBotRecurringOrdersAlgoPending(params?: {}): Promise<implicitReturnType>;
|
|
183
|
+
privateGetTradingBotRecurringOrdersAlgoHistory(params?: {}): Promise<implicitReturnType>;
|
|
184
|
+
privateGetTradingBotRecurringOrdersAlgoDetails(params?: {}): Promise<implicitReturnType>;
|
|
185
|
+
privateGetTradingBotRecurringSubOrders(params?: {}): Promise<implicitReturnType>;
|
|
186
|
+
privateGetFinanceSavingsBalance(params?: {}): Promise<implicitReturnType>;
|
|
187
|
+
privateGetFinanceSavingsLendingHistory(params?: {}): Promise<implicitReturnType>;
|
|
188
|
+
privateGetFinanceStakingDefiOffers(params?: {}): Promise<implicitReturnType>;
|
|
189
|
+
privateGetFinanceStakingDefiOrdersActive(params?: {}): Promise<implicitReturnType>;
|
|
190
|
+
privateGetFinanceStakingDefiOrdersHistory(params?: {}): Promise<implicitReturnType>;
|
|
191
|
+
privateGetFinanceStakingDefiEthBalance(params?: {}): Promise<implicitReturnType>;
|
|
192
|
+
privateGetFinanceStakingDefiEthPurchaseRedeemHistory(params?: {}): Promise<implicitReturnType>;
|
|
193
|
+
privateGetFinanceStakingDefiEthProductInfo(params?: {}): Promise<implicitReturnType>;
|
|
194
|
+
privateGetFinanceStakingDefiSolBalance(params?: {}): Promise<implicitReturnType>;
|
|
195
|
+
privateGetFinanceStakingDefiSolPurchaseRedeemHistory(params?: {}): Promise<implicitReturnType>;
|
|
196
|
+
privateGetCopytradingCurrentSubpositions(params?: {}): Promise<implicitReturnType>;
|
|
197
|
+
privateGetCopytradingSubpositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
198
|
+
privateGetCopytradingInstruments(params?: {}): Promise<implicitReturnType>;
|
|
199
|
+
privateGetCopytradingProfitSharingDetails(params?: {}): Promise<implicitReturnType>;
|
|
200
|
+
privateGetCopytradingTotalProfitSharing(params?: {}): Promise<implicitReturnType>;
|
|
201
|
+
privateGetCopytradingUnrealizedProfitSharingDetails(params?: {}): Promise<implicitReturnType>;
|
|
202
|
+
privateGetCopytradingCopySettings(params?: {}): Promise<implicitReturnType>;
|
|
203
|
+
privateGetCopytradingBatchLeverageInfo(params?: {}): Promise<implicitReturnType>;
|
|
204
|
+
privateGetCopytradingCurrentLeadTraders(params?: {}): Promise<implicitReturnType>;
|
|
205
|
+
privateGetCopytradingLeadTradersHistory(params?: {}): Promise<implicitReturnType>;
|
|
206
|
+
privateGetBrokerNdInfo(params?: {}): Promise<implicitReturnType>;
|
|
207
|
+
privateGetBrokerNdSubaccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
208
|
+
privateGetBrokerNdSubaccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
209
|
+
privateGetAssetBrokerNdSubaccountDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
210
|
+
privateGetAssetBrokerNdSubaccountDepositHistory(params?: {}): Promise<implicitReturnType>;
|
|
211
|
+
privateGetAssetBrokerNdSubaccountWithdrawalHistory(params?: {}): Promise<implicitReturnType>;
|
|
212
|
+
privateGetBrokerNdRebateDaily(params?: {}): Promise<implicitReturnType>;
|
|
213
|
+
privateGetBrokerNdRebatePerOrders(params?: {}): Promise<implicitReturnType>;
|
|
214
|
+
privateGetFinanceSfpDcdOrder(params?: {}): Promise<implicitReturnType>;
|
|
215
|
+
privateGetFinanceSfpDcdOrders(params?: {}): Promise<implicitReturnType>;
|
|
216
|
+
privateGetBrokerFdRebatePerOrders(params?: {}): Promise<implicitReturnType>;
|
|
217
|
+
privateGetBrokerFdIfRebate(params?: {}): Promise<implicitReturnType>;
|
|
218
|
+
privateGetAffiliateInviteeDetail(params?: {}): Promise<implicitReturnType>;
|
|
219
|
+
privateGetUsersPartnerIfRebate(params?: {}): Promise<implicitReturnType>;
|
|
220
|
+
privateGetSupportAnnouncements(params?: {}): Promise<implicitReturnType>;
|
|
221
|
+
privatePostRfqCreateRfq(params?: {}): Promise<implicitReturnType>;
|
|
222
|
+
privatePostRfqCancelRfq(params?: {}): Promise<implicitReturnType>;
|
|
223
|
+
privatePostRfqCancelBatchRfqs(params?: {}): Promise<implicitReturnType>;
|
|
224
|
+
privatePostRfqCancelAllRfqs(params?: {}): Promise<implicitReturnType>;
|
|
225
|
+
privatePostRfqExecuteQuote(params?: {}): Promise<implicitReturnType>;
|
|
226
|
+
privatePostRfqMakerInstrumentSettings(params?: {}): Promise<implicitReturnType>;
|
|
227
|
+
privatePostRfqMmpReset(params?: {}): Promise<implicitReturnType>;
|
|
228
|
+
privatePostRfqMmpConfig(params?: {}): Promise<implicitReturnType>;
|
|
229
|
+
privatePostRfqCreateQuote(params?: {}): Promise<implicitReturnType>;
|
|
230
|
+
privatePostRfqCancelQuote(params?: {}): Promise<implicitReturnType>;
|
|
231
|
+
privatePostRfqCancelBatchQuotes(params?: {}): Promise<implicitReturnType>;
|
|
232
|
+
privatePostRfqCancelAllQuotes(params?: {}): Promise<implicitReturnType>;
|
|
233
|
+
privatePostSprdOrder(params?: {}): Promise<implicitReturnType>;
|
|
234
|
+
privatePostSprdCancelOrder(params?: {}): Promise<implicitReturnType>;
|
|
235
|
+
privatePostSprdMassCancel(params?: {}): Promise<implicitReturnType>;
|
|
236
|
+
privatePostSprdAmendOrder(params?: {}): Promise<implicitReturnType>;
|
|
237
|
+
privatePostSprdCancelAllAfter(params?: {}): Promise<implicitReturnType>;
|
|
238
|
+
privatePostTradeOrder(params?: {}): Promise<implicitReturnType>;
|
|
239
|
+
privatePostTradeBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
240
|
+
privatePostTradeCancelOrder(params?: {}): Promise<implicitReturnType>;
|
|
241
|
+
privatePostTradeCancelBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
242
|
+
privatePostTradeAmendOrder(params?: {}): Promise<implicitReturnType>;
|
|
243
|
+
privatePostTradeAmendBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
244
|
+
privatePostTradeClosePosition(params?: {}): Promise<implicitReturnType>;
|
|
245
|
+
privatePostTradeFillsArchive(params?: {}): Promise<implicitReturnType>;
|
|
246
|
+
privatePostTradeOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
247
|
+
privatePostTradeCancelAlgos(params?: {}): Promise<implicitReturnType>;
|
|
248
|
+
privatePostTradeAmendAlgos(params?: {}): Promise<implicitReturnType>;
|
|
249
|
+
privatePostTradeCancelAdvanceAlgos(params?: {}): Promise<implicitReturnType>;
|
|
250
|
+
privatePostTradeEasyConvert(params?: {}): Promise<implicitReturnType>;
|
|
251
|
+
privatePostTradeOneClickRepay(params?: {}): Promise<implicitReturnType>;
|
|
252
|
+
privatePostTradeMassCancel(params?: {}): Promise<implicitReturnType>;
|
|
253
|
+
privatePostTradeCancelAllAfter(params?: {}): Promise<implicitReturnType>;
|
|
254
|
+
privatePostAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
|
255
|
+
privatePostAssetWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
256
|
+
privatePostAssetWithdrawalLightning(params?: {}): Promise<implicitReturnType>;
|
|
257
|
+
privatePostAssetCancelWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
258
|
+
privatePostAssetConvertDustAssets(params?: {}): Promise<implicitReturnType>;
|
|
259
|
+
privatePostAssetConvertEstimateQuote(params?: {}): Promise<implicitReturnType>;
|
|
260
|
+
privatePostAssetConvertTrade(params?: {}): Promise<implicitReturnType>;
|
|
261
|
+
privatePostAssetMonthlyStatement(params?: {}): Promise<implicitReturnType>;
|
|
262
|
+
privatePostAccountSetPositionMode(params?: {}): Promise<implicitReturnType>;
|
|
263
|
+
privatePostAccountSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
264
|
+
privatePostAccountPositionMarginBalance(params?: {}): Promise<implicitReturnType>;
|
|
265
|
+
privatePostAccountSetGreeks(params?: {}): Promise<implicitReturnType>;
|
|
266
|
+
privatePostAccountSetIsolatedMode(params?: {}): Promise<implicitReturnType>;
|
|
267
|
+
privatePostAccountQuickMarginBorrowRepay(params?: {}): Promise<implicitReturnType>;
|
|
268
|
+
privatePostAccountBorrowRepay(params?: {}): Promise<implicitReturnType>;
|
|
269
|
+
privatePostAccountSimulatedMargin(params?: {}): Promise<implicitReturnType>;
|
|
270
|
+
privatePostAccountPositionBuilder(params?: {}): Promise<implicitReturnType>;
|
|
271
|
+
privatePostAccountSetRiskOffsetType(params?: {}): Promise<implicitReturnType>;
|
|
272
|
+
privatePostAccountActivateOption(params?: {}): Promise<implicitReturnType>;
|
|
273
|
+
privatePostAccountSetAutoLoan(params?: {}): Promise<implicitReturnType>;
|
|
274
|
+
privatePostAccountSetAccountLevel(params?: {}): Promise<implicitReturnType>;
|
|
275
|
+
privatePostAccountMmpReset(params?: {}): Promise<implicitReturnType>;
|
|
276
|
+
privatePostAccountMmpConfig(params?: {}): Promise<implicitReturnType>;
|
|
277
|
+
privatePostAccountFixedLoanBorrowingOrder(params?: {}): Promise<implicitReturnType>;
|
|
278
|
+
privatePostAccountFixedLoanAmendBorrowingOrder(params?: {}): Promise<implicitReturnType>;
|
|
279
|
+
privatePostAccountFixedLoanManualReborrow(params?: {}): Promise<implicitReturnType>;
|
|
280
|
+
privatePostAccountFixedLoanRepayBorrowingOrder(params?: {}): Promise<implicitReturnType>;
|
|
281
|
+
privatePostAccountBillsHistoryArchive(params?: {}): Promise<implicitReturnType>;
|
|
282
|
+
privatePostUsersSubaccountModifyApikey(params?: {}): Promise<implicitReturnType>;
|
|
283
|
+
privatePostAssetSubaccountTransfer(params?: {}): Promise<implicitReturnType>;
|
|
284
|
+
privatePostUsersSubaccountSetTransferOut(params?: {}): Promise<implicitReturnType>;
|
|
285
|
+
privatePostAccountSubaccountSetLoanAllocation(params?: {}): Promise<implicitReturnType>;
|
|
286
|
+
privatePostTradingBotGridOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
287
|
+
privatePostTradingBotGridAmendOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
288
|
+
privatePostTradingBotGridStopOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
289
|
+
privatePostTradingBotGridClosePosition(params?: {}): Promise<implicitReturnType>;
|
|
290
|
+
privatePostTradingBotGridCancelCloseOrder(params?: {}): Promise<implicitReturnType>;
|
|
291
|
+
privatePostTradingBotGridOrderInstantTrigger(params?: {}): Promise<implicitReturnType>;
|
|
292
|
+
privatePostTradingBotGridWithdrawIncome(params?: {}): Promise<implicitReturnType>;
|
|
293
|
+
privatePostTradingBotGridComputeMarginBalance(params?: {}): Promise<implicitReturnType>;
|
|
294
|
+
privatePostTradingBotGridMarginBalance(params?: {}): Promise<implicitReturnType>;
|
|
295
|
+
privatePostTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
|
|
296
|
+
privatePostTradingBotGridAdjustInvestment(params?: {}): Promise<implicitReturnType>;
|
|
297
|
+
privatePostTradingBotSignalCreateSignal(params?: {}): Promise<implicitReturnType>;
|
|
298
|
+
privatePostTradingBotSignalOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
299
|
+
privatePostTradingBotSignalStopOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
300
|
+
privatePostTradingBotSignalMarginBalance(params?: {}): Promise<implicitReturnType>;
|
|
301
|
+
privatePostTradingBotSignalAmendTPSL(params?: {}): Promise<implicitReturnType>;
|
|
302
|
+
privatePostTradingBotSignalSetInstruments(params?: {}): Promise<implicitReturnType>;
|
|
303
|
+
privatePostTradingBotSignalClosePosition(params?: {}): Promise<implicitReturnType>;
|
|
304
|
+
privatePostTradingBotSignalSubOrder(params?: {}): Promise<implicitReturnType>;
|
|
305
|
+
privatePostTradingBotSignalCancelSubOrder(params?: {}): Promise<implicitReturnType>;
|
|
306
|
+
privatePostTradingBotRecurringOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
307
|
+
privatePostTradingBotRecurringAmendOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
308
|
+
privatePostTradingBotRecurringStopOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
309
|
+
privatePostFinanceSavingsPurchaseRedempt(params?: {}): Promise<implicitReturnType>;
|
|
310
|
+
privatePostFinanceSavingsSetLendingRate(params?: {}): Promise<implicitReturnType>;
|
|
311
|
+
privatePostFinanceStakingDefiPurchase(params?: {}): Promise<implicitReturnType>;
|
|
312
|
+
privatePostFinanceStakingDefiRedeem(params?: {}): Promise<implicitReturnType>;
|
|
313
|
+
privatePostFinanceStakingDefiCancel(params?: {}): Promise<implicitReturnType>;
|
|
314
|
+
privatePostFinanceStakingDefiEthPurchase(params?: {}): Promise<implicitReturnType>;
|
|
315
|
+
privatePostFinanceStakingDefiEthRedeem(params?: {}): Promise<implicitReturnType>;
|
|
316
|
+
privatePostFinanceStakingDefiSolPurchase(params?: {}): Promise<implicitReturnType>;
|
|
317
|
+
privatePostFinanceStakingDefiSolRedeem(params?: {}): Promise<implicitReturnType>;
|
|
318
|
+
privatePostCopytradingAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
319
|
+
privatePostCopytradingCloseSubposition(params?: {}): Promise<implicitReturnType>;
|
|
320
|
+
privatePostCopytradingSetInstruments(params?: {}): Promise<implicitReturnType>;
|
|
321
|
+
privatePostCopytradingFirstCopySettings(params?: {}): Promise<implicitReturnType>;
|
|
322
|
+
privatePostCopytradingAmendCopySettings(params?: {}): Promise<implicitReturnType>;
|
|
323
|
+
privatePostCopytradingStopCopyTrading(params?: {}): Promise<implicitReturnType>;
|
|
324
|
+
privatePostCopytradingBatchSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
325
|
+
privatePostBrokerNdCreateSubaccount(params?: {}): Promise<implicitReturnType>;
|
|
326
|
+
privatePostBrokerNdDeleteSubaccount(params?: {}): Promise<implicitReturnType>;
|
|
327
|
+
privatePostBrokerNdSubaccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
328
|
+
privatePostBrokerNdSubaccountModifyApikey(params?: {}): Promise<implicitReturnType>;
|
|
329
|
+
privatePostBrokerNdSubaccountDeleteApikey(params?: {}): Promise<implicitReturnType>;
|
|
330
|
+
privatePostBrokerNdSetSubaccountLevel(params?: {}): Promise<implicitReturnType>;
|
|
331
|
+
privatePostBrokerNdSetSubaccountFeeRate(params?: {}): Promise<implicitReturnType>;
|
|
332
|
+
privatePostBrokerNdSetSubaccountAssets(params?: {}): Promise<implicitReturnType>;
|
|
333
|
+
privatePostAssetBrokerNdSubaccountDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
334
|
+
privatePostAssetBrokerNdModifySubaccountDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
335
|
+
privatePostBrokerNdRebatePerOrders(params?: {}): Promise<implicitReturnType>;
|
|
336
|
+
privatePostFinanceSfpDcdQuote(params?: {}): Promise<implicitReturnType>;
|
|
337
|
+
privatePostFinanceSfpDcdOrder(params?: {}): Promise<implicitReturnType>;
|
|
338
|
+
privatePostBrokerNdReportSubaccountIp(params?: {}): Promise<implicitReturnType>;
|
|
339
|
+
privatePostBrokerFdRebatePerOrders(params?: {}): Promise<implicitReturnType>;
|
|
340
|
+
}
|
|
341
|
+
declare abstract class okx extends _okx {
|
|
342
|
+
}
|
|
343
|
+
export default okx;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
// -------------------------------------------------------------------------------
|
|
8
|
+
import _okx from '../okx.js';
|
|
9
|
+
class okx extends _okx {
|
|
10
|
+
}
|
|
11
|
+
export default okx;
|
package/js/src/ace.js
CHANGED
package/js/src/alpaca.js
CHANGED
|
@@ -1214,7 +1214,6 @@ export default class alpaca extends Exchange {
|
|
|
1214
1214
|
'postOnly': undefined,
|
|
1215
1215
|
'side': this.safeString(order, 'side'),
|
|
1216
1216
|
'price': this.safeNumber(order, 'limit_price'),
|
|
1217
|
-
'stopPrice': this.safeNumber(order, 'stop_price'),
|
|
1218
1217
|
'triggerPrice': this.safeNumber(order, 'stop_price'),
|
|
1219
1218
|
'cost': undefined,
|
|
1220
1219
|
'average': this.safeNumber(order, 'filled_avg_price'),
|
package/js/src/ascendex.js
CHANGED
|
@@ -1105,12 +1105,12 @@ export default class Exchange {
|
|
|
1105
1105
|
createPostOnlyOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
1106
1106
|
createReduceOnlyOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
1107
1107
|
createReduceOnlyOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
1108
|
-
createStopOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num,
|
|
1109
|
-
createStopOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num,
|
|
1110
|
-
createStopLimitOrder(symbol: string, side: OrderSide, amount: number, price: number,
|
|
1111
|
-
createStopLimitOrderWs(symbol: string, side: OrderSide, amount: number, price: number,
|
|
1112
|
-
createStopMarketOrder(symbol: string, side: OrderSide, amount: number,
|
|
1113
|
-
createStopMarketOrderWs(symbol: string, side: OrderSide, amount: number,
|
|
1108
|
+
createStopOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, triggerPrice?: Num, params?: {}): Promise<Order>;
|
|
1109
|
+
createStopOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, triggerPrice?: Num, params?: {}): Promise<Order>;
|
|
1110
|
+
createStopLimitOrder(symbol: string, side: OrderSide, amount: number, price: number, triggerPrice: number, params?: {}): Promise<Order>;
|
|
1111
|
+
createStopLimitOrderWs(symbol: string, side: OrderSide, amount: number, price: number, triggerPrice: number, params?: {}): Promise<Order>;
|
|
1112
|
+
createStopMarketOrder(symbol: string, side: OrderSide, amount: number, triggerPrice: number, params?: {}): Promise<Order>;
|
|
1113
|
+
createStopMarketOrderWs(symbol: string, side: OrderSide, amount: number, triggerPrice: number, params?: {}): Promise<Order>;
|
|
1114
1114
|
safeCurrencyCode(currencyId: Str, currency?: Currency): string;
|
|
1115
1115
|
filterBySymbolSinceLimit(array: any, symbol?: Str, since?: Int, limit?: Int, tail?: boolean): any;
|
|
1116
1116
|
filterByCurrencySinceLimit(array: any, code?: any, since?: Int, limit?: Int, tail?: boolean): any;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -4449,10 +4449,15 @@ export default class Exchange {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
handleOptionAndParams2(params, methodName1, optionName1, optionName2, defaultValue = undefined) {
|
|
4451
4451
|
let value = undefined;
|
|
4452
|
-
[value, params] = this.handleOptionAndParams(params, methodName1, optionName1
|
|
4452
|
+
[value, params] = this.handleOptionAndParams(params, methodName1, optionName1);
|
|
4453
|
+
if (value !== undefined) {
|
|
4454
|
+
// omit optionName2 too from params
|
|
4455
|
+
params = this.omit(params, optionName2);
|
|
4456
|
+
return [value, params];
|
|
4457
|
+
}
|
|
4453
4458
|
// if still undefined, try optionName2
|
|
4454
4459
|
let value2 = undefined;
|
|
4455
|
-
[value2, params] = this.handleOptionAndParams(params, methodName1, optionName2,
|
|
4460
|
+
[value2, params] = this.handleOptionAndParams(params, methodName1, optionName2, defaultValue);
|
|
4456
4461
|
return [value2, params];
|
|
4457
4462
|
}
|
|
4458
4463
|
handleOption(methodName, optionName, defaultValue = undefined) {
|
|
@@ -5507,52 +5512,52 @@ export default class Exchange {
|
|
|
5507
5512
|
const query = this.extend(params, { 'reduceOnly': true });
|
|
5508
5513
|
return await this.createOrderWs(symbol, type, side, amount, price, query);
|
|
5509
5514
|
}
|
|
5510
|
-
async createStopOrder(symbol, type, side, amount, price = undefined,
|
|
5515
|
+
async createStopOrder(symbol, type, side, amount, price = undefined, triggerPrice = undefined, params = {}) {
|
|
5511
5516
|
if (!this.has['createStopOrder']) {
|
|
5512
5517
|
throw new NotSupported(this.id + ' createStopOrder() is not supported yet');
|
|
5513
5518
|
}
|
|
5514
|
-
if (
|
|
5519
|
+
if (triggerPrice === undefined) {
|
|
5515
5520
|
throw new ArgumentsRequired(this.id + ' create_stop_order() requires a stopPrice argument');
|
|
5516
5521
|
}
|
|
5517
|
-
const query = this.extend(params, { 'stopPrice':
|
|
5522
|
+
const query = this.extend(params, { 'stopPrice': triggerPrice });
|
|
5518
5523
|
return await this.createOrder(symbol, type, side, amount, price, query);
|
|
5519
5524
|
}
|
|
5520
|
-
async createStopOrderWs(symbol, type, side, amount, price = undefined,
|
|
5525
|
+
async createStopOrderWs(symbol, type, side, amount, price = undefined, triggerPrice = undefined, params = {}) {
|
|
5521
5526
|
if (!this.has['createStopOrderWs']) {
|
|
5522
5527
|
throw new NotSupported(this.id + ' createStopOrderWs() is not supported yet');
|
|
5523
5528
|
}
|
|
5524
|
-
if (
|
|
5529
|
+
if (triggerPrice === undefined) {
|
|
5525
5530
|
throw new ArgumentsRequired(this.id + ' createStopOrderWs() requires a stopPrice argument');
|
|
5526
5531
|
}
|
|
5527
|
-
const query = this.extend(params, { 'stopPrice':
|
|
5532
|
+
const query = this.extend(params, { 'stopPrice': triggerPrice });
|
|
5528
5533
|
return await this.createOrderWs(symbol, type, side, amount, price, query);
|
|
5529
5534
|
}
|
|
5530
|
-
async createStopLimitOrder(symbol, side, amount, price,
|
|
5535
|
+
async createStopLimitOrder(symbol, side, amount, price, triggerPrice, params = {}) {
|
|
5531
5536
|
if (!this.has['createStopLimitOrder']) {
|
|
5532
5537
|
throw new NotSupported(this.id + ' createStopLimitOrder() is not supported yet');
|
|
5533
5538
|
}
|
|
5534
|
-
const query = this.extend(params, { 'stopPrice':
|
|
5539
|
+
const query = this.extend(params, { 'stopPrice': triggerPrice });
|
|
5535
5540
|
return await this.createOrder(symbol, 'limit', side, amount, price, query);
|
|
5536
5541
|
}
|
|
5537
|
-
async createStopLimitOrderWs(symbol, side, amount, price,
|
|
5542
|
+
async createStopLimitOrderWs(symbol, side, amount, price, triggerPrice, params = {}) {
|
|
5538
5543
|
if (!this.has['createStopLimitOrderWs']) {
|
|
5539
5544
|
throw new NotSupported(this.id + ' createStopLimitOrderWs() is not supported yet');
|
|
5540
5545
|
}
|
|
5541
|
-
const query = this.extend(params, { 'stopPrice':
|
|
5546
|
+
const query = this.extend(params, { 'stopPrice': triggerPrice });
|
|
5542
5547
|
return await this.createOrderWs(symbol, 'limit', side, amount, price, query);
|
|
5543
5548
|
}
|
|
5544
|
-
async createStopMarketOrder(symbol, side, amount,
|
|
5549
|
+
async createStopMarketOrder(symbol, side, amount, triggerPrice, params = {}) {
|
|
5545
5550
|
if (!this.has['createStopMarketOrder']) {
|
|
5546
5551
|
throw new NotSupported(this.id + ' createStopMarketOrder() is not supported yet');
|
|
5547
5552
|
}
|
|
5548
|
-
const query = this.extend(params, { 'stopPrice':
|
|
5553
|
+
const query = this.extend(params, { 'stopPrice': triggerPrice });
|
|
5549
5554
|
return await this.createOrder(symbol, 'market', side, amount, undefined, query);
|
|
5550
5555
|
}
|
|
5551
|
-
async createStopMarketOrderWs(symbol, side, amount,
|
|
5556
|
+
async createStopMarketOrderWs(symbol, side, amount, triggerPrice, params = {}) {
|
|
5552
5557
|
if (!this.has['createStopMarketOrderWs']) {
|
|
5553
5558
|
throw new NotSupported(this.id + ' createStopMarketOrderWs() is not supported yet');
|
|
5554
5559
|
}
|
|
5555
|
-
const query = this.extend(params, { 'stopPrice':
|
|
5560
|
+
const query = this.extend(params, { 'stopPrice': triggerPrice });
|
|
5556
5561
|
return await this.createOrderWs(symbol, 'market', side, amount, undefined, query);
|
|
5557
5562
|
}
|
|
5558
5563
|
safeCurrencyCode(currencyId, currency = undefined) {
|
package/js/src/bigone.js
CHANGED
|
@@ -1378,7 +1378,6 @@ export default class bigone extends Exchange {
|
|
|
1378
1378
|
'postOnly': this.safeBool(order, 'post_only'),
|
|
1379
1379
|
'side': side,
|
|
1380
1380
|
'price': price,
|
|
1381
|
-
'stopPrice': triggerPrice,
|
|
1382
1381
|
'triggerPrice': triggerPrice,
|
|
1383
1382
|
'amount': amount,
|
|
1384
1383
|
'cost': cost,
|
package/js/src/binance.js
CHANGED
|
@@ -637,6 +637,8 @@ export default class binance extends Exchange {
|
|
|
637
637
|
'portfolio/bnb-transfer': 150,
|
|
638
638
|
'portfolio/repay-futures-switch': 150,
|
|
639
639
|
'portfolio/repay-futures-negative-balance': 150,
|
|
640
|
+
'portfolio/mint': 20,
|
|
641
|
+
'portfolio/redeem': 20,
|
|
640
642
|
'lending/auto-invest/plan/add': 0.1,
|
|
641
643
|
'lending/auto-invest/plan/edit': 0.1,
|
|
642
644
|
'lending/auto-invest/plan/edit-status': 0.1,
|
|
@@ -965,6 +967,7 @@ export default class binance extends Exchange {
|
|
|
965
967
|
'block/order/orders': 5,
|
|
966
968
|
'block/order/execute': 5,
|
|
967
969
|
'block/user-trades': 5,
|
|
970
|
+
'blockTrades': 5,
|
|
968
971
|
},
|
|
969
972
|
'post': {
|
|
970
973
|
'order': 1,
|
package/js/src/bingx.js
CHANGED
|
@@ -387,12 +387,26 @@ export default class bingx extends Exchange {
|
|
|
387
387
|
'get': {
|
|
388
388
|
'uid': 1,
|
|
389
389
|
'apiKey/query': 2,
|
|
390
|
+
'account/apiPermissions': 5,
|
|
390
391
|
},
|
|
391
392
|
'post': {
|
|
392
393
|
'innerTransfer/authorizeSubAccount': 1,
|
|
393
394
|
},
|
|
394
395
|
},
|
|
395
396
|
},
|
|
397
|
+
'transfer': {
|
|
398
|
+
'v1': {
|
|
399
|
+
'private': {
|
|
400
|
+
'get': {
|
|
401
|
+
'subAccount/asset/transferHistory': 1,
|
|
402
|
+
},
|
|
403
|
+
'post': {
|
|
404
|
+
'subAccount/transferAsset/supportCoins': 1,
|
|
405
|
+
'subAccount/transferAsset': 1,
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
},
|
|
396
410
|
},
|
|
397
411
|
'user': {
|
|
398
412
|
'auth': {
|
|
@@ -5601,6 +5615,9 @@ export default class bingx extends Exchange {
|
|
|
5601
5615
|
request['endTs'] = now;
|
|
5602
5616
|
}
|
|
5603
5617
|
if (market['spot']) {
|
|
5618
|
+
if (limit !== undefined) {
|
|
5619
|
+
request['limit'] = limit; // default 500, maximum 1000
|
|
5620
|
+
}
|
|
5604
5621
|
response = await this.spotV1PrivateGetTradeMyTrades(this.extend(request, params));
|
|
5605
5622
|
const data = this.safeDict(response, 'data', {});
|
|
5606
5623
|
fills = this.safeList(data, 'fills', []);
|
|
@@ -6429,23 +6446,29 @@ export default class bingx extends Exchange {
|
|
|
6429
6446
|
};
|
|
6430
6447
|
}
|
|
6431
6448
|
sign(path, section = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6449
|
+
let type = section[0];
|
|
6450
|
+
let version = section[1];
|
|
6451
|
+
let access = section[2];
|
|
6435
6452
|
const isSandbox = this.safeBool(this.options, 'sandboxMode', false);
|
|
6436
6453
|
if (isSandbox && (type !== 'swap')) {
|
|
6437
6454
|
throw new NotSupported(this.id + ' does not have a testnet/sandbox URL for ' + type + ' endpoints');
|
|
6438
6455
|
}
|
|
6439
6456
|
let url = this.implodeHostname(this.urls['api'][type]);
|
|
6440
|
-
if (type === 'spot' && version === 'v3') {
|
|
6441
|
-
url += '/api';
|
|
6442
|
-
}
|
|
6443
|
-
else {
|
|
6444
|
-
url += '/' + type;
|
|
6445
|
-
}
|
|
6446
|
-
url += '/' + version + '/';
|
|
6447
6457
|
path = this.implodeParams(path, params);
|
|
6448
|
-
|
|
6458
|
+
if (version === 'transfer') {
|
|
6459
|
+
type = 'account/transfer';
|
|
6460
|
+
version = section[2];
|
|
6461
|
+
access = section[3];
|
|
6462
|
+
}
|
|
6463
|
+
if (path !== 'account/apiPermissions') {
|
|
6464
|
+
if (type === 'spot' && version === 'v3') {
|
|
6465
|
+
url += '/api';
|
|
6466
|
+
}
|
|
6467
|
+
else {
|
|
6468
|
+
url += '/' + type;
|
|
6469
|
+
}
|
|
6470
|
+
}
|
|
6471
|
+
url += '/' + version + '/' + path;
|
|
6449
6472
|
params = this.omit(params, this.extractParams(path));
|
|
6450
6473
|
params['timestamp'] = this.nonce();
|
|
6451
6474
|
params = this.keysort(params);
|
|
@@ -6456,7 +6479,7 @@ export default class bingx extends Exchange {
|
|
|
6456
6479
|
}
|
|
6457
6480
|
else if (access === 'private') {
|
|
6458
6481
|
this.checkRequiredCredentials();
|
|
6459
|
-
const isJsonContentType = ((type === 'subAccount') && (method === 'POST'));
|
|
6482
|
+
const isJsonContentType = (((type === 'subAccount') || (type === 'account/transfer')) && (method === 'POST'));
|
|
6460
6483
|
const parsedParams = this.parseParams(params);
|
|
6461
6484
|
const signature = this.hmac(this.encode(this.rawencode(parsedParams)), this.encode(this.secret), sha256);
|
|
6462
6485
|
headers = {
|
package/js/src/bitfinex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitfinex.js';
|
|
2
|
-
import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderBook, Str, Transaction, Ticker, Balances, Tickers, Strings, Currency, Market, OpenInterest, Liquidation, OrderRequest, Num, MarginModification, Currencies, TradingFees, Dict, LedgerEntry, FundingRate, FundingRates, DepositAddress } from './base/types.js';
|
|
2
|
+
import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderBook, Str, Transaction, Ticker, Balances, Tickers, Strings, Currency, Market, OpenInterest, Liquidation, OrderRequest, Num, MarginModification, Currencies, TradingFees, Dict, LedgerEntry, FundingRate, FundingRates, DepositAddress, OpenInterests } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitfinex
|
|
5
5
|
* @augments Exchange
|
|
@@ -416,6 +416,16 @@ export default class bitfinex extends Exchange {
|
|
|
416
416
|
previousFundingTimestamp: any;
|
|
417
417
|
previousFundingDatetime: any;
|
|
418
418
|
};
|
|
419
|
+
/**
|
|
420
|
+
* @method
|
|
421
|
+
* @name bitfinex#fetchOpenInterests
|
|
422
|
+
* @description Retrieves the open interest for a list of symbols
|
|
423
|
+
* @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
|
|
424
|
+
* @param {string[]} [symbols] a list of unified CCXT market symbols
|
|
425
|
+
* @param {object} [params] exchange specific parameters
|
|
426
|
+
* @returns {object[]} a list of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
427
|
+
*/
|
|
428
|
+
fetchOpenInterests(symbols?: Strings, params?: {}): Promise<OpenInterests>;
|
|
419
429
|
/**
|
|
420
430
|
* @method
|
|
421
431
|
* @name bitfinex#fetchOpenInterest
|