ccxt 4.4.35 → 4.4.36
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 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/defx.js +9 -0
- package/dist/cjs/src/bitfinex2.js +20 -12
- package/dist/cjs/src/bitmex.js +103 -1
- package/dist/cjs/src/bitopro.js +22 -4
- package/dist/cjs/src/bitso.js +2 -1
- package/dist/cjs/src/bybit.js +20 -0
- package/dist/cjs/src/defx.js +2048 -0
- package/dist/cjs/src/deribit.js +34 -14
- package/dist/cjs/src/gate.js +15 -1
- package/dist/cjs/src/hashkey.js +1 -1
- package/dist/cjs/src/htx.js +14 -2
- package/dist/cjs/src/kraken.js +39 -48
- package/dist/cjs/src/pro/defx.js +864 -0
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bitopro.d.ts +1 -0
- package/js/src/abstract/bybit.d.ts +15 -0
- package/js/src/abstract/defx.d.ts +72 -0
- package/js/src/abstract/defx.js +11 -0
- package/js/src/abstract/deribit.d.ts +1 -0
- package/js/src/abstract/gate.d.ts +14 -0
- package/js/src/abstract/gateio.d.ts +14 -0
- package/js/src/bitfinex2.js +21 -13
- package/js/src/bitmex.js +103 -1
- package/js/src/bitopro.d.ts +11 -0
- package/js/src/bitopro.js +22 -4
- package/js/src/bitso.js +2 -1
- package/js/src/bybit.js +20 -0
- package/js/src/defx.d.ts +349 -0
- package/js/src/defx.js +2049 -0
- package/js/src/deribit.d.ts +2 -0
- package/js/src/deribit.js +34 -14
- package/js/src/gate.js +15 -1
- package/js/src/hashkey.js +1 -1
- package/js/src/htx.d.ts +3 -0
- package/js/src/htx.js +14 -2
- package/js/src/kraken.js +39 -48
- package/js/src/pro/defx.d.ts +236 -0
- package/js/src/pro/defx.js +865 -0
- package/package.json +1 -1
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.4.
|
|
7
|
+
declare const version = "4.4.35";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -57,6 +57,7 @@ import coinsph from './src/coinsph.js';
|
|
|
57
57
|
import coinspot from './src/coinspot.js';
|
|
58
58
|
import cryptocom from './src/cryptocom.js';
|
|
59
59
|
import currencycom from './src/currencycom.js';
|
|
60
|
+
import defx from './src/defx.js';
|
|
60
61
|
import delta from './src/delta.js';
|
|
61
62
|
import deribit from './src/deribit.js';
|
|
62
63
|
import digifinex from './src/digifinex.js';
|
|
@@ -149,6 +150,7 @@ import coinexPro from './src/pro/coinex.js';
|
|
|
149
150
|
import coinonePro from './src/pro/coinone.js';
|
|
150
151
|
import cryptocomPro from './src/pro/cryptocom.js';
|
|
151
152
|
import currencycomPro from './src/pro/currencycom.js';
|
|
153
|
+
import defxPro from './src/pro/defx.js';
|
|
152
154
|
import deribitPro from './src/pro/deribit.js';
|
|
153
155
|
import exmoPro from './src/pro/exmo.js';
|
|
154
156
|
import gatePro from './src/pro/gate.js';
|
|
@@ -241,6 +243,7 @@ declare const exchanges: {
|
|
|
241
243
|
coinspot: typeof coinspot;
|
|
242
244
|
cryptocom: typeof cryptocom;
|
|
243
245
|
currencycom: typeof currencycom;
|
|
246
|
+
defx: typeof defx;
|
|
244
247
|
delta: typeof delta;
|
|
245
248
|
deribit: typeof deribit;
|
|
246
249
|
digifinex: typeof digifinex;
|
|
@@ -335,6 +338,7 @@ declare const pro: {
|
|
|
335
338
|
coinone: typeof coinonePro;
|
|
336
339
|
cryptocom: typeof cryptocomPro;
|
|
337
340
|
currencycom: typeof currencycomPro;
|
|
341
|
+
defx: typeof defxPro;
|
|
338
342
|
deribit: typeof deribitPro;
|
|
339
343
|
exmo: typeof exmoPro;
|
|
340
344
|
gate: typeof gatePro;
|
|
@@ -415,6 +419,7 @@ declare const ccxt: {
|
|
|
415
419
|
coinone: typeof coinonePro;
|
|
416
420
|
cryptocom: typeof cryptocomPro;
|
|
417
421
|
currencycom: typeof currencycomPro;
|
|
422
|
+
defx: typeof defxPro;
|
|
418
423
|
deribit: typeof deribitPro;
|
|
419
424
|
exmo: typeof exmoPro;
|
|
420
425
|
gate: typeof gatePro;
|
|
@@ -508,6 +513,7 @@ declare const ccxt: {
|
|
|
508
513
|
coinspot: typeof coinspot;
|
|
509
514
|
cryptocom: typeof cryptocom;
|
|
510
515
|
currencycom: typeof currencycom;
|
|
516
|
+
defx: typeof defx;
|
|
511
517
|
delta: typeof delta;
|
|
512
518
|
deribit: typeof deribit;
|
|
513
519
|
digifinex: typeof digifinex;
|
|
@@ -567,5 +573,5 @@ declare const ccxt: {
|
|
|
567
573
|
zaif: typeof zaif;
|
|
568
574
|
zonda: typeof zonda;
|
|
569
575
|
} & typeof functions & typeof errors;
|
|
570
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
576
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
571
577
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.4.
|
|
41
|
+
const version = '4.4.36';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -93,6 +93,7 @@ import coinsph from './src/coinsph.js';
|
|
|
93
93
|
import coinspot from './src/coinspot.js';
|
|
94
94
|
import cryptocom from './src/cryptocom.js';
|
|
95
95
|
import currencycom from './src/currencycom.js';
|
|
96
|
+
import defx from './src/defx.js';
|
|
96
97
|
import delta from './src/delta.js';
|
|
97
98
|
import deribit from './src/deribit.js';
|
|
98
99
|
import digifinex from './src/digifinex.js';
|
|
@@ -186,6 +187,7 @@ import coinexPro from './src/pro/coinex.js';
|
|
|
186
187
|
import coinonePro from './src/pro/coinone.js';
|
|
187
188
|
import cryptocomPro from './src/pro/cryptocom.js';
|
|
188
189
|
import currencycomPro from './src/pro/currencycom.js';
|
|
190
|
+
import defxPro from './src/pro/defx.js';
|
|
189
191
|
import deribitPro from './src/pro/deribit.js';
|
|
190
192
|
import exmoPro from './src/pro/exmo.js';
|
|
191
193
|
import gatePro from './src/pro/gate.js';
|
|
@@ -278,6 +280,7 @@ const exchanges = {
|
|
|
278
280
|
'coinspot': coinspot,
|
|
279
281
|
'cryptocom': cryptocom,
|
|
280
282
|
'currencycom': currencycom,
|
|
283
|
+
'defx': defx,
|
|
281
284
|
'delta': delta,
|
|
282
285
|
'deribit': deribit,
|
|
283
286
|
'digifinex': digifinex,
|
|
@@ -372,6 +375,7 @@ const pro = {
|
|
|
372
375
|
'coinone': coinonePro,
|
|
373
376
|
'cryptocom': cryptocomPro,
|
|
374
377
|
'currencycom': currencycomPro,
|
|
378
|
+
'defx': defxPro,
|
|
375
379
|
'deribit': deribitPro,
|
|
376
380
|
'exmo': exmoPro,
|
|
377
381
|
'gate': gatePro,
|
|
@@ -424,6 +428,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
424
428
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
425
429
|
//-----------------------------------------------------------------------------
|
|
426
430
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
427
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
431
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
428
432
|
export default ccxt;
|
|
429
433
|
//-----------------------------------------------------------------------------
|
|
@@ -19,6 +19,7 @@ interface Exchange {
|
|
|
19
19
|
privateGetWalletWithdrawCurrencyIdId(params?: {}): Promise<implicitReturnType>;
|
|
20
20
|
privateGetWalletDepositHistoryCurrency(params?: {}): Promise<implicitReturnType>;
|
|
21
21
|
privateGetWalletWithdrawHistoryCurrency(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetOrdersOpen(params?: {}): Promise<implicitReturnType>;
|
|
22
23
|
privatePostOrdersPair(params?: {}): Promise<implicitReturnType>;
|
|
23
24
|
privatePostOrdersBatch(params?: {}): Promise<implicitReturnType>;
|
|
24
25
|
privatePostWalletWithdrawCurrency(params?: {}): Promise<implicitReturnType>;
|
|
@@ -50,6 +50,8 @@ interface Exchange {
|
|
|
50
50
|
publicGetV5SpotCrossMarginTradeData(params?: {}): Promise<implicitReturnType>;
|
|
51
51
|
publicGetV5SpotCrossMarginTradePledgeToken(params?: {}): Promise<implicitReturnType>;
|
|
52
52
|
publicGetV5SpotCrossMarginTradeBorrowToken(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicGetV5CryptoLoanCollateralData(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicGetV5CryptoLoanLoanableData(params?: {}): Promise<implicitReturnType>;
|
|
53
55
|
publicGetV5InsLoanProductInfos(params?: {}): Promise<implicitReturnType>;
|
|
54
56
|
publicGetV5InsLoanEnsureTokensConvert(params?: {}): Promise<implicitReturnType>;
|
|
55
57
|
privateGetV5MarketInstrumentsInfo(params?: {}): Promise<implicitReturnType>;
|
|
@@ -161,6 +163,7 @@ interface Exchange {
|
|
|
161
163
|
privateGetV5UserAffCustomerInfo(params?: {}): Promise<implicitReturnType>;
|
|
162
164
|
privateGetV5UserDelSubmember(params?: {}): Promise<implicitReturnType>;
|
|
163
165
|
privateGetV5UserSubmembers(params?: {}): Promise<implicitReturnType>;
|
|
166
|
+
privateGetV5AffiliateAffUserList(params?: {}): Promise<implicitReturnType>;
|
|
164
167
|
privateGetV5SpotLeverTokenOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
165
168
|
privateGetV5SpotMarginTradeInterestRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
166
169
|
privateGetV5SpotMarginTradeState(params?: {}): Promise<implicitReturnType>;
|
|
@@ -168,6 +171,12 @@ interface Exchange {
|
|
|
168
171
|
privateGetV5SpotCrossMarginTradeAccount(params?: {}): Promise<implicitReturnType>;
|
|
169
172
|
privateGetV5SpotCrossMarginTradeOrders(params?: {}): Promise<implicitReturnType>;
|
|
170
173
|
privateGetV5SpotCrossMarginTradeRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
174
|
+
privateGetV5CryptoLoanBorrowableCollateralisableNumber(params?: {}): Promise<implicitReturnType>;
|
|
175
|
+
privateGetV5CryptoLoanOngoingOrders(params?: {}): Promise<implicitReturnType>;
|
|
176
|
+
privateGetV5CryptoLoanRepaymentHistory(params?: {}): Promise<implicitReturnType>;
|
|
177
|
+
privateGetV5CryptoLoanBorrowHistory(params?: {}): Promise<implicitReturnType>;
|
|
178
|
+
privateGetV5CryptoLoanMaxCollateralAmount(params?: {}): Promise<implicitReturnType>;
|
|
179
|
+
privateGetV5CryptoLoanAdjustmentHistory(params?: {}): Promise<implicitReturnType>;
|
|
171
180
|
privateGetV5InsLoanProductInfos(params?: {}): Promise<implicitReturnType>;
|
|
172
181
|
privateGetV5InsLoanEnsureTokensConvert(params?: {}): Promise<implicitReturnType>;
|
|
173
182
|
privateGetV5InsLoanLoanOrder(params?: {}): Promise<implicitReturnType>;
|
|
@@ -282,6 +291,9 @@ interface Exchange {
|
|
|
282
291
|
privatePostV5SpotCrossMarginTradeLoan(params?: {}): Promise<implicitReturnType>;
|
|
283
292
|
privatePostV5SpotCrossMarginTradeRepay(params?: {}): Promise<implicitReturnType>;
|
|
284
293
|
privatePostV5SpotCrossMarginTradeSwitch(params?: {}): Promise<implicitReturnType>;
|
|
294
|
+
privatePostV5CryptoLoanBorrow(params?: {}): Promise<implicitReturnType>;
|
|
295
|
+
privatePostV5CryptoLoanRepay(params?: {}): Promise<implicitReturnType>;
|
|
296
|
+
privatePostV5CryptoLoanAdjustLtv(params?: {}): Promise<implicitReturnType>;
|
|
285
297
|
privatePostV5InsLoanAssociationUid(params?: {}): Promise<implicitReturnType>;
|
|
286
298
|
privatePostV5LendingPurchase(params?: {}): Promise<implicitReturnType>;
|
|
287
299
|
privatePostV5LendingRedeem(params?: {}): Promise<implicitReturnType>;
|
|
@@ -289,6 +301,9 @@ interface Exchange {
|
|
|
289
301
|
privatePostV5AccountSetCollateralSwitch(params?: {}): Promise<implicitReturnType>;
|
|
290
302
|
privatePostV5AccountSetCollateralSwitchBatch(params?: {}): Promise<implicitReturnType>;
|
|
291
303
|
privatePostV5AccountDemoApplyMoney(params?: {}): Promise<implicitReturnType>;
|
|
304
|
+
privatePostV5BrokerAwardInfo(params?: {}): Promise<implicitReturnType>;
|
|
305
|
+
privatePostV5BrokerAwardDistributeAward(params?: {}): Promise<implicitReturnType>;
|
|
306
|
+
privatePostV5BrokerAwardDistributionRecord(params?: {}): Promise<implicitReturnType>;
|
|
292
307
|
}
|
|
293
308
|
declare abstract class Exchange extends _Exchange {
|
|
294
309
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
v1PublicGetHealthcheckPing(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
v1PublicGetSymbolsSymbolOhlc(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
v1PublicGetSymbolsSymbolTrades(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
v1PublicGetSymbolsSymbolPrices(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
v1PublicGetSymbolsSymbolTicker24hr(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
v1PublicGetSymbolsSymbolDepthLevelSlab(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
v1PublicGetTicker24HrAgg(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
v1PublicGetCMarkets(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
v1PublicGetCMarketsMetadata(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
v1PublicGetAnalyticsMarketStatsNewUsers(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
v1PublicGetAnalyticsMarketStatsTvl(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
v1PublicGetAnalyticsMarketStatsVolumeByInstrument(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
v1PublicGetAnalyticsMarketStatsLiquidation(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
v1PublicGetAnalyticsMarketStatsTotalVolume(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
v1PublicGetAnalyticsMarketStatsOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
v1PublicGetAnalyticsMarketStatsTotalTrades(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
v1PublicGetAnalyticsMarketStatsBasis(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
v1PublicGetAnalyticsMarketStatsInsuranceFund(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
v1PublicGetAnalyticsMarketStatsLongAndShortRatio(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
v1PublicGetAnalyticsMarketStatsFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
v1PublicGetAnalyticsMarketOverview(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
v1PublicGetExplorerSearch(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
v1PublicGetExplorerTransactions(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
v1PublicGetExplorerBlocks(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
v1PrivateGetApiOrderOrderId(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
v1PrivateGetApiOrders(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
v1PrivateGetApiOrdersOcoParentOrderId(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
v1PrivateGetApiTrades(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
v1PrivateGetApiPositionActive(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
v1PrivateGetApiUsersMetadataLeverage(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
v1PrivateGetApiUsersMetadataFeeMultiplier(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
v1PrivateGetApiUsersMetadataSlippage(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
v1PrivateGetApiUsersReferral(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
v1PrivateGetApiUsersApikeys(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
v1PrivateGetConnectionSignatureMessageEvm(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
v1PrivateGetApiUsersProfileWallets(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
v1PrivateGetApiNotifications(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
v1PrivateGetApiWalletBalance(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
v1PrivateGetApiWalletTransactions(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
v1PrivateGetApiAnalyticsUserOverview(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
v1PrivateGetApiAnalyticsUserPnl(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
v1PrivateGetApiAnalyticsPointsOverview(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
v1PrivateGetApiAnalyticsPointsHistory(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
v1PrivatePostApiOrder(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
v1PrivatePostApiPositionOco(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
v1PrivatePostApiUsersSocketListenKeys(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
v1PrivatePostApiUsersMetadataLeverage(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
v1PrivatePostApiUsersMetadataFeeMultiplier(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
v1PrivatePostApiUsersMetadataSlippage(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
v1PrivatePostApiUsersReferralRecordReferralSignup(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
v1PrivatePostApiUsersApikeys(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
v1PrivatePostApiUsersProfileWallets(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
v1PrivatePostApiTransfersWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
v1PrivatePostApiTransfersBridgeWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
v1PrivatePutApiPositionUpdatePositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
v1PrivatePutApiUsersSocketListenKeysListenKey(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
v1PrivatePutApiUsersApikeysAccessKeyStatus(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
v1PrivatePutApiUsersReferral(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
v1PrivatePatchApiUsersApikeysAccessKey(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
v1PrivateDeleteApiOrdersAllOpen(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
v1PrivateDeleteApiOrderOrderId(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
v1PrivateDeleteApiPositionPositionId(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
v1PrivateDeleteApiPositionAll(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
v1PrivateDeleteApiUsersSocketListenKeysListenKey(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
v1PrivateDeleteApiUsersApikeysAccessKey(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
}
|
|
70
|
+
declare abstract class Exchange extends _Exchange {
|
|
71
|
+
}
|
|
72
|
+
export default Exchange;
|
|
@@ -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 { Exchange as _Exchange } from '../base/Exchange.js';
|
|
9
|
+
class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
export default Exchange;
|
|
@@ -58,6 +58,7 @@ interface Exchange {
|
|
|
58
58
|
privateGetEnableApiKey(params?: {}): Promise<implicitReturnType>;
|
|
59
59
|
privateGetGetAccessLog(params?: {}): Promise<implicitReturnType>;
|
|
60
60
|
privateGetGetAccountSummary(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privateGetGetAccountSummaries(params?: {}): Promise<implicitReturnType>;
|
|
61
62
|
privateGetGetAffiliateProgramInfo(params?: {}): Promise<implicitReturnType>;
|
|
62
63
|
privateGetGetEmailLanguage(params?: {}): Promise<implicitReturnType>;
|
|
63
64
|
privateGetGetNewAnnouncements(params?: {}): Promise<implicitReturnType>;
|
|
@@ -31,6 +31,7 @@ interface Exchange {
|
|
|
31
31
|
publicFuturesGetSettleContractStats(params?: {}): Promise<implicitReturnType>;
|
|
32
32
|
publicFuturesGetSettleIndexConstituentsIndex(params?: {}): Promise<implicitReturnType>;
|
|
33
33
|
publicFuturesGetSettleLiqOrders(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
publicFuturesGetSettleRiskLimitTiers(params?: {}): Promise<implicitReturnType>;
|
|
34
35
|
publicDeliveryGetSettleContracts(params?: {}): Promise<implicitReturnType>;
|
|
35
36
|
publicDeliveryGetSettleContractsContract(params?: {}): Promise<implicitReturnType>;
|
|
36
37
|
publicDeliveryGetSettleOrderBook(params?: {}): Promise<implicitReturnType>;
|
|
@@ -53,11 +54,13 @@ interface Exchange {
|
|
|
53
54
|
publicEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
54
55
|
publicEarnGetUniCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
55
56
|
privateWithdrawalsPostWithdrawals(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privateWithdrawalsPostPush(params?: {}): Promise<implicitReturnType>;
|
|
56
58
|
privateWithdrawalsDeleteWithdrawalsWithdrawalId(params?: {}): Promise<implicitReturnType>;
|
|
57
59
|
privateWalletGetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
58
60
|
privateWalletGetWithdrawals(params?: {}): Promise<implicitReturnType>;
|
|
59
61
|
privateWalletGetDeposits(params?: {}): Promise<implicitReturnType>;
|
|
60
62
|
privateWalletGetSubAccountTransfers(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privateWalletGetOrderStatus(params?: {}): Promise<implicitReturnType>;
|
|
61
64
|
privateWalletGetWithdrawStatus(params?: {}): Promise<implicitReturnType>;
|
|
62
65
|
privateWalletGetSubAccountBalances(params?: {}): Promise<implicitReturnType>;
|
|
63
66
|
privateWalletGetSubAccountMarginBalances(params?: {}): Promise<implicitReturnType>;
|
|
@@ -68,6 +71,7 @@ interface Exchange {
|
|
|
68
71
|
privateWalletGetTotalBalance(params?: {}): Promise<implicitReturnType>;
|
|
69
72
|
privateWalletGetSmallBalance(params?: {}): Promise<implicitReturnType>;
|
|
70
73
|
privateWalletGetSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
privateWalletGetPush(params?: {}): Promise<implicitReturnType>;
|
|
71
75
|
privateWalletPostTransfers(params?: {}): Promise<implicitReturnType>;
|
|
72
76
|
privateWalletPostSubAccountTransfers(params?: {}): Promise<implicitReturnType>;
|
|
73
77
|
privateWalletPostSubAccountToSubAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -94,9 +98,12 @@ interface Exchange {
|
|
|
94
98
|
privateUnifiedGetRiskUnits(params?: {}): Promise<implicitReturnType>;
|
|
95
99
|
privateUnifiedGetUnifiedMode(params?: {}): Promise<implicitReturnType>;
|
|
96
100
|
privateUnifiedGetLoanMarginTiers(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
privateUnifiedGetLeverageUserCurrencyConfig(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
privateUnifiedGetLeverageUserCurrencySetting(params?: {}): Promise<implicitReturnType>;
|
|
97
103
|
privateUnifiedPostAccountMode(params?: {}): Promise<implicitReturnType>;
|
|
98
104
|
privateUnifiedPostLoans(params?: {}): Promise<implicitReturnType>;
|
|
99
105
|
privateUnifiedPostPortfolioCalculator(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privateUnifiedPostLeverageUserCurrencySetting(params?: {}): Promise<implicitReturnType>;
|
|
100
107
|
privateUnifiedPutUnifiedMode(params?: {}): Promise<implicitReturnType>;
|
|
101
108
|
privateSpotGetFee(params?: {}): Promise<implicitReturnType>;
|
|
102
109
|
privateSpotGetBatchFee(params?: {}): Promise<implicitReturnType>;
|
|
@@ -225,7 +232,11 @@ interface Exchange {
|
|
|
225
232
|
privateOptionsGetOrders(params?: {}): Promise<implicitReturnType>;
|
|
226
233
|
privateOptionsGetOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
227
234
|
privateOptionsGetMyTrades(params?: {}): Promise<implicitReturnType>;
|
|
235
|
+
privateOptionsGetMmp(params?: {}): Promise<implicitReturnType>;
|
|
228
236
|
privateOptionsPostOrders(params?: {}): Promise<implicitReturnType>;
|
|
237
|
+
privateOptionsPostCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
238
|
+
privateOptionsPostMmp(params?: {}): Promise<implicitReturnType>;
|
|
239
|
+
privateOptionsPostMmpReset(params?: {}): Promise<implicitReturnType>;
|
|
229
240
|
privateOptionsDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
230
241
|
privateOptionsDeleteOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
231
242
|
privateEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
@@ -253,6 +264,7 @@ interface Exchange {
|
|
|
253
264
|
privateLoanGetMultiCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
254
265
|
privateLoanGetMultiCollateralLtv(params?: {}): Promise<implicitReturnType>;
|
|
255
266
|
privateLoanGetMultiCollateralFixedRate(params?: {}): Promise<implicitReturnType>;
|
|
267
|
+
privateLoanGetMultiCollateralCurrentRate(params?: {}): Promise<implicitReturnType>;
|
|
256
268
|
privateLoanPostCollateralOrders(params?: {}): Promise<implicitReturnType>;
|
|
257
269
|
privateLoanPostCollateralRepay(params?: {}): Promise<implicitReturnType>;
|
|
258
270
|
privateLoanPostCollateralCollaterals(params?: {}): Promise<implicitReturnType>;
|
|
@@ -260,8 +272,10 @@ interface Exchange {
|
|
|
260
272
|
privateLoanPostMultiCollateralRepay(params?: {}): Promise<implicitReturnType>;
|
|
261
273
|
privateLoanPostMultiCollateralMortgage(params?: {}): Promise<implicitReturnType>;
|
|
262
274
|
privateAccountGetDetail(params?: {}): Promise<implicitReturnType>;
|
|
275
|
+
privateAccountGetRateLimit(params?: {}): Promise<implicitReturnType>;
|
|
263
276
|
privateAccountGetStpGroups(params?: {}): Promise<implicitReturnType>;
|
|
264
277
|
privateAccountGetStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
278
|
+
privateAccountGetStpGroupsDebitFee(params?: {}): Promise<implicitReturnType>;
|
|
265
279
|
privateAccountPostStpGroups(params?: {}): Promise<implicitReturnType>;
|
|
266
280
|
privateAccountPostStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
267
281
|
privateAccountDeleteStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
@@ -31,6 +31,7 @@ interface gate {
|
|
|
31
31
|
publicFuturesGetSettleContractStats(params?: {}): Promise<implicitReturnType>;
|
|
32
32
|
publicFuturesGetSettleIndexConstituentsIndex(params?: {}): Promise<implicitReturnType>;
|
|
33
33
|
publicFuturesGetSettleLiqOrders(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
publicFuturesGetSettleRiskLimitTiers(params?: {}): Promise<implicitReturnType>;
|
|
34
35
|
publicDeliveryGetSettleContracts(params?: {}): Promise<implicitReturnType>;
|
|
35
36
|
publicDeliveryGetSettleContractsContract(params?: {}): Promise<implicitReturnType>;
|
|
36
37
|
publicDeliveryGetSettleOrderBook(params?: {}): Promise<implicitReturnType>;
|
|
@@ -53,11 +54,13 @@ interface gate {
|
|
|
53
54
|
publicEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
54
55
|
publicEarnGetUniCurrenciesCurrency(params?: {}): Promise<implicitReturnType>;
|
|
55
56
|
privateWithdrawalsPostWithdrawals(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privateWithdrawalsPostPush(params?: {}): Promise<implicitReturnType>;
|
|
56
58
|
privateWithdrawalsDeleteWithdrawalsWithdrawalId(params?: {}): Promise<implicitReturnType>;
|
|
57
59
|
privateWalletGetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
58
60
|
privateWalletGetWithdrawals(params?: {}): Promise<implicitReturnType>;
|
|
59
61
|
privateWalletGetDeposits(params?: {}): Promise<implicitReturnType>;
|
|
60
62
|
privateWalletGetSubAccountTransfers(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privateWalletGetOrderStatus(params?: {}): Promise<implicitReturnType>;
|
|
61
64
|
privateWalletGetWithdrawStatus(params?: {}): Promise<implicitReturnType>;
|
|
62
65
|
privateWalletGetSubAccountBalances(params?: {}): Promise<implicitReturnType>;
|
|
63
66
|
privateWalletGetSubAccountMarginBalances(params?: {}): Promise<implicitReturnType>;
|
|
@@ -68,6 +71,7 @@ interface gate {
|
|
|
68
71
|
privateWalletGetTotalBalance(params?: {}): Promise<implicitReturnType>;
|
|
69
72
|
privateWalletGetSmallBalance(params?: {}): Promise<implicitReturnType>;
|
|
70
73
|
privateWalletGetSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
privateWalletGetPush(params?: {}): Promise<implicitReturnType>;
|
|
71
75
|
privateWalletPostTransfers(params?: {}): Promise<implicitReturnType>;
|
|
72
76
|
privateWalletPostSubAccountTransfers(params?: {}): Promise<implicitReturnType>;
|
|
73
77
|
privateWalletPostSubAccountToSubAccount(params?: {}): Promise<implicitReturnType>;
|
|
@@ -94,9 +98,12 @@ interface gate {
|
|
|
94
98
|
privateUnifiedGetRiskUnits(params?: {}): Promise<implicitReturnType>;
|
|
95
99
|
privateUnifiedGetUnifiedMode(params?: {}): Promise<implicitReturnType>;
|
|
96
100
|
privateUnifiedGetLoanMarginTiers(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
privateUnifiedGetLeverageUserCurrencyConfig(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
privateUnifiedGetLeverageUserCurrencySetting(params?: {}): Promise<implicitReturnType>;
|
|
97
103
|
privateUnifiedPostAccountMode(params?: {}): Promise<implicitReturnType>;
|
|
98
104
|
privateUnifiedPostLoans(params?: {}): Promise<implicitReturnType>;
|
|
99
105
|
privateUnifiedPostPortfolioCalculator(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privateUnifiedPostLeverageUserCurrencySetting(params?: {}): Promise<implicitReturnType>;
|
|
100
107
|
privateUnifiedPutUnifiedMode(params?: {}): Promise<implicitReturnType>;
|
|
101
108
|
privateSpotGetFee(params?: {}): Promise<implicitReturnType>;
|
|
102
109
|
privateSpotGetBatchFee(params?: {}): Promise<implicitReturnType>;
|
|
@@ -225,7 +232,11 @@ interface gate {
|
|
|
225
232
|
privateOptionsGetOrders(params?: {}): Promise<implicitReturnType>;
|
|
226
233
|
privateOptionsGetOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
227
234
|
privateOptionsGetMyTrades(params?: {}): Promise<implicitReturnType>;
|
|
235
|
+
privateOptionsGetMmp(params?: {}): Promise<implicitReturnType>;
|
|
228
236
|
privateOptionsPostOrders(params?: {}): Promise<implicitReturnType>;
|
|
237
|
+
privateOptionsPostCountdownCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
238
|
+
privateOptionsPostMmp(params?: {}): Promise<implicitReturnType>;
|
|
239
|
+
privateOptionsPostMmpReset(params?: {}): Promise<implicitReturnType>;
|
|
229
240
|
privateOptionsDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
230
241
|
privateOptionsDeleteOrdersOrderId(params?: {}): Promise<implicitReturnType>;
|
|
231
242
|
privateEarnGetUniCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
@@ -253,6 +264,7 @@ interface gate {
|
|
|
253
264
|
privateLoanGetMultiCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
254
265
|
privateLoanGetMultiCollateralLtv(params?: {}): Promise<implicitReturnType>;
|
|
255
266
|
privateLoanGetMultiCollateralFixedRate(params?: {}): Promise<implicitReturnType>;
|
|
267
|
+
privateLoanGetMultiCollateralCurrentRate(params?: {}): Promise<implicitReturnType>;
|
|
256
268
|
privateLoanPostCollateralOrders(params?: {}): Promise<implicitReturnType>;
|
|
257
269
|
privateLoanPostCollateralRepay(params?: {}): Promise<implicitReturnType>;
|
|
258
270
|
privateLoanPostCollateralCollaterals(params?: {}): Promise<implicitReturnType>;
|
|
@@ -260,8 +272,10 @@ interface gate {
|
|
|
260
272
|
privateLoanPostMultiCollateralRepay(params?: {}): Promise<implicitReturnType>;
|
|
261
273
|
privateLoanPostMultiCollateralMortgage(params?: {}): Promise<implicitReturnType>;
|
|
262
274
|
privateAccountGetDetail(params?: {}): Promise<implicitReturnType>;
|
|
275
|
+
privateAccountGetRateLimit(params?: {}): Promise<implicitReturnType>;
|
|
263
276
|
privateAccountGetStpGroups(params?: {}): Promise<implicitReturnType>;
|
|
264
277
|
privateAccountGetStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
278
|
+
privateAccountGetStpGroupsDebitFee(params?: {}): Promise<implicitReturnType>;
|
|
265
279
|
privateAccountPostStpGroups(params?: {}): Promise<implicitReturnType>;
|
|
266
280
|
privateAccountPostStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
|
267
281
|
privateAccountDeleteStpGroupsStpIdUsers(params?: {}): Promise<implicitReturnType>;
|
package/js/src/bitfinex2.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
6
|
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
|
-
import { ExchangeError,
|
|
8
|
+
import { ExchangeError, ArgumentsRequired, InsufficientFunds, AuthenticationError, OrderNotFound, InvalidOrder, BadRequest, InvalidNonce, BadSymbol, OnMaintenance, NotSupported, PermissionDenied, ExchangeNotAvailable, RateLimitExceeded } from './base/errors.js';
|
|
9
9
|
import { Precise } from './base/Precise.js';
|
|
10
10
|
import Exchange from './abstract/bitfinex2.js';
|
|
11
11
|
import { SIGNIFICANT_DIGITS, DECIMAL_PLACES, TRUNCATE, ROUND } from './base/functions/number.js';
|
|
@@ -416,12 +416,10 @@ export default class bitfinex2 extends Exchange {
|
|
|
416
416
|
'temporarily_unavailable': ExchangeNotAvailable,
|
|
417
417
|
},
|
|
418
418
|
'broad': {
|
|
419
|
-
'address': InvalidAddress,
|
|
420
419
|
'available balance is only': InsufficientFunds,
|
|
421
420
|
'not enough exchange balance': InsufficientFunds,
|
|
422
421
|
'Order not found': OrderNotFound,
|
|
423
422
|
'symbol: invalid': BadSymbol,
|
|
424
|
-
'Invalid order': InvalidOrder,
|
|
425
423
|
},
|
|
426
424
|
},
|
|
427
425
|
'commonCurrencies': {
|
|
@@ -773,7 +771,11 @@ export default class bitfinex2 extends Exchange {
|
|
|
773
771
|
const name = this.safeString(label, 1);
|
|
774
772
|
const pool = this.safeValue(indexed['pool'], id, []);
|
|
775
773
|
const rawType = this.safeString(pool, 1);
|
|
776
|
-
const
|
|
774
|
+
const isCryptoCoin = (rawType !== undefined) || (id in indexed['explorer']); // "hacky" solution
|
|
775
|
+
let type = undefined;
|
|
776
|
+
if (isCryptoCoin) {
|
|
777
|
+
type = 'crypto';
|
|
778
|
+
}
|
|
777
779
|
const feeValues = this.safeValue(indexed['fees'], id, []);
|
|
778
780
|
const fees = this.safeValue(feeValues, 1, []);
|
|
779
781
|
const fee = this.safeNumber(fees, 1);
|
|
@@ -1727,7 +1729,8 @@ export default class bitfinex2 extends Exchange {
|
|
|
1727
1729
|
}
|
|
1728
1730
|
const orders = this.safeList(response, 4, []);
|
|
1729
1731
|
const order = this.safeList(orders, 0);
|
|
1730
|
-
|
|
1732
|
+
const newOrder = { 'result': order };
|
|
1733
|
+
return this.parseOrder(newOrder, market);
|
|
1731
1734
|
}
|
|
1732
1735
|
/**
|
|
1733
1736
|
* @method
|
|
@@ -1826,6 +1829,10 @@ export default class bitfinex2 extends Exchange {
|
|
|
1826
1829
|
await this.loadMarkets();
|
|
1827
1830
|
const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
|
|
1828
1831
|
let request = undefined;
|
|
1832
|
+
let market = undefined;
|
|
1833
|
+
if (symbol !== undefined) {
|
|
1834
|
+
market = this.market(symbol);
|
|
1835
|
+
}
|
|
1829
1836
|
if (cid !== undefined) {
|
|
1830
1837
|
const cidDate = this.safeValue(params, 'cidDate'); // client order id date
|
|
1831
1838
|
if (cidDate === undefined) {
|
|
@@ -1844,8 +1851,8 @@ export default class bitfinex2 extends Exchange {
|
|
|
1844
1851
|
}
|
|
1845
1852
|
const response = await this.privatePostAuthWOrderCancel(this.extend(request, params));
|
|
1846
1853
|
const order = this.safeValue(response, 4);
|
|
1847
|
-
const
|
|
1848
|
-
return this.parseOrder(
|
|
1854
|
+
const newOrder = { 'result': order };
|
|
1855
|
+
return this.parseOrder(newOrder, market);
|
|
1849
1856
|
}
|
|
1850
1857
|
/**
|
|
1851
1858
|
* @method
|
|
@@ -2371,6 +2378,8 @@ export default class bitfinex2 extends Exchange {
|
|
|
2371
2378
|
}
|
|
2372
2379
|
tag = this.safeString(data, 3);
|
|
2373
2380
|
type = 'withdrawal';
|
|
2381
|
+
const networkId = this.safeString(data, 2);
|
|
2382
|
+
network = this.networkIdToCode(networkId.toUpperCase()); // withdraw returns in lowercase
|
|
2374
2383
|
}
|
|
2375
2384
|
else if (transactionLength === 22) {
|
|
2376
2385
|
id = this.safeString(transaction, 0);
|
|
@@ -2686,10 +2695,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
2686
2695
|
if (text !== 'success') {
|
|
2687
2696
|
this.throwBroadlyMatchedException(this.exceptions['broad'], text, text);
|
|
2688
2697
|
}
|
|
2689
|
-
|
|
2690
|
-
return this.extend(transaction, {
|
|
2691
|
-
'address': address,
|
|
2692
|
-
});
|
|
2698
|
+
return this.parseTransaction(response, currency);
|
|
2693
2699
|
}
|
|
2694
2700
|
/**
|
|
2695
2701
|
* @method
|
|
@@ -3639,7 +3645,8 @@ export default class bitfinex2 extends Exchange {
|
|
|
3639
3645
|
// ]
|
|
3640
3646
|
//
|
|
3641
3647
|
const order = this.safeList(response, 0);
|
|
3642
|
-
|
|
3648
|
+
const newOrder = { 'result': order };
|
|
3649
|
+
return this.parseOrder(newOrder, market);
|
|
3643
3650
|
}
|
|
3644
3651
|
/**
|
|
3645
3652
|
* @method
|
|
@@ -3765,6 +3772,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
3765
3772
|
throw new ExchangeError(this.id + ' ' + response[6] + ': ' + errorText + ' (#' + errorCode + ')');
|
|
3766
3773
|
}
|
|
3767
3774
|
const order = this.safeList(response, 4, []);
|
|
3768
|
-
|
|
3775
|
+
const newOrder = { 'result': order };
|
|
3776
|
+
return this.parseOrder(newOrder, market);
|
|
3769
3777
|
}
|
|
3770
3778
|
}
|