ccxt 4.3.17 → 4.3.19
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 +7 -5
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/woofipro.js +9 -0
- package/dist/cjs/src/ascendex.js +3 -4
- package/dist/cjs/src/base/Exchange.js +43 -3
- package/dist/cjs/src/base/functions/crypto.js +10 -3
- package/dist/cjs/src/base/functions/encode.js +6 -3
- package/dist/cjs/src/base/functions/number.js +8 -5
- package/dist/cjs/src/base/functions/rsa.js +5 -5
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +32 -8
- package/dist/cjs/src/bitfinex.js +25 -1
- package/dist/cjs/src/bitfinex2.js +59 -51
- package/dist/cjs/src/bitget.js +1 -5
- package/dist/cjs/src/bitmart.js +3 -3
- package/dist/cjs/src/bitstamp.js +1 -3
- package/dist/cjs/src/bybit.js +1 -0
- package/dist/cjs/src/coinex.js +321 -537
- package/dist/cjs/src/coinlist.js +1 -2
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/hollaex.js +3 -3
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/mexc.js +1 -1
- package/dist/cjs/src/novadax.js +0 -1
- package/dist/cjs/src/okx.js +17 -0
- package/dist/cjs/src/poloniex.js +1 -2
- package/dist/cjs/src/pro/bitget.js +136 -192
- package/dist/cjs/src/pro/bybit.js +4 -2
- package/dist/cjs/src/pro/coinbaseinternational.js +9 -1
- package/dist/cjs/src/pro/okx.js +85 -0
- package/dist/cjs/src/pro/woofipro.js +1263 -0
- package/dist/cjs/src/wavesexchange.js +2 -2
- package/dist/cjs/src/woo.js +17 -3
- package/dist/cjs/src/woofipro.js +2698 -0
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/okx.d.ts +1 -0
- package/js/src/abstract/woofipro.d.ts +122 -0
- package/js/src/abstract/woofipro.js +11 -0
- package/js/src/ace.d.ts +2 -2
- package/js/src/ascendex.d.ts +5 -15
- package/js/src/ascendex.js +3 -4
- package/js/src/base/Exchange.d.ts +27 -18
- package/js/src/base/Exchange.js +43 -3
- package/js/src/base/functions/crypto.d.ts +1 -1
- package/js/src/base/functions/crypto.js +10 -3
- package/js/src/base/functions/encode.d.ts +1 -1
- package/js/src/base/functions/encode.js +6 -3
- package/js/src/base/functions/number.d.ts +1 -1
- package/js/src/base/functions/number.js +8 -5
- package/js/src/base/functions/rsa.js +6 -6
- package/js/src/base/types.d.ts +4 -0
- package/js/src/bigone.d.ts +4 -14
- package/js/src/bigone.js +1 -1
- package/js/src/binance.d.ts +13 -71
- package/js/src/binance.js +32 -8
- package/js/src/binancecoinm.d.ts +2 -22
- package/js/src/binanceusdm.d.ts +2 -22
- package/js/src/bingx.d.ts +4 -14
- package/js/src/bit2c.d.ts +2 -2
- package/js/src/bitbank.d.ts +2 -2
- package/js/src/bitbns.d.ts +2 -2
- package/js/src/bitfinex.d.ts +6 -16
- package/js/src/bitfinex.js +25 -1
- package/js/src/bitfinex2.d.ts +6 -16
- package/js/src/bitfinex2.js +59 -51
- package/js/src/bitflyer.d.ts +2 -2
- package/js/src/bitget.d.ts +7 -17
- package/js/src/bitget.js +1 -5
- package/js/src/bithumb.d.ts +3 -3
- package/js/src/bitmart.d.ts +5 -14
- package/js/src/bitmart.js +3 -3
- package/js/src/bitmex.d.ts +4 -4
- package/js/src/bitopro.d.ts +2 -2
- package/js/src/bitrue.d.ts +5 -5
- package/js/src/bitso.d.ts +2 -2
- package/js/src/bitstamp.d.ts +3 -3
- package/js/src/bitstamp.js +1 -3
- package/js/src/bitteam.d.ts +2 -2
- package/js/src/bitvavo.d.ts +5 -5
- package/js/src/bl3p.d.ts +2 -2
- package/js/src/blockchaincom.d.ts +2 -2
- package/js/src/blofin.d.ts +4 -14
- package/js/src/btcalpha.d.ts +2 -2
- package/js/src/btcbox.d.ts +2 -2
- package/js/src/btcmarkets.d.ts +2 -2
- package/js/src/btcturk.d.ts +2 -2
- package/js/src/bybit.d.ts +8 -56
- package/js/src/bybit.js +1 -0
- package/js/src/cex.d.ts +2 -2
- package/js/src/coinbase.d.ts +4 -4
- package/js/src/coinbasepro.d.ts +3 -3
- package/js/src/coincheck.d.ts +2 -2
- package/js/src/coinex.d.ts +6 -16
- package/js/src/coinex.js +321 -537
- package/js/src/coinlist.d.ts +5 -15
- package/js/src/coinlist.js +1 -2
- package/js/src/coinmate.d.ts +2 -2
- package/js/src/coinmetro.d.ts +3 -3
- package/js/src/coinone.d.ts +2 -2
- package/js/src/coinsph.d.ts +2 -2
- package/js/src/coinspot.d.ts +2 -2
- package/js/src/cryptocom.d.ts +2 -2
- package/js/src/currencycom.d.ts +3 -3
- package/js/src/delta.d.ts +5 -43
- package/js/src/deribit.d.ts +7 -55
- package/js/src/deribit.js +1 -1
- package/js/src/digifinex.d.ts +5 -15
- package/js/src/exmo.d.ts +2 -2
- package/js/src/gate.d.ts +6 -54
- package/js/src/gemini.d.ts +2 -2
- package/js/src/hitbtc.d.ts +4 -14
- package/js/src/hollaex.d.ts +3 -3
- package/js/src/hollaex.js +3 -3
- package/js/src/htx.d.ts +6 -16
- package/js/src/htx.js +1 -1
- package/js/src/huobijp.d.ts +4 -4
- package/js/src/hyperliquid.d.ts +1 -1
- package/js/src/idex.d.ts +3 -3
- package/js/src/independentreserve.d.ts +2 -2
- package/js/src/indodax.d.ts +2 -2
- package/js/src/indodax.js +1 -1
- package/js/src/kraken.d.ts +4 -14
- package/js/src/krakenfutures.d.ts +4 -14
- package/js/src/kucoin.d.ts +5 -15
- package/js/src/kucoinfutures.d.ts +4 -14
- package/js/src/kuna.d.ts +2 -2
- package/js/src/latoken.d.ts +5 -15
- package/js/src/latoken.js +1 -1
- package/js/src/lbank.d.ts +2 -2
- package/js/src/luno.d.ts +2 -2
- package/js/src/lykke.d.ts +2 -2
- package/js/src/mercado.d.ts +2 -2
- package/js/src/mexc.d.ts +8 -28
- package/js/src/mexc.js +1 -1
- package/js/src/ndax.d.ts +2 -2
- package/js/src/novadax.d.ts +4 -15
- package/js/src/novadax.js +0 -1
- package/js/src/okcoin.d.ts +4 -14
- package/js/src/okx.d.ts +10 -68
- package/js/src/okx.js +17 -0
- package/js/src/onetrading.d.ts +2 -2
- package/js/src/paymium.d.ts +4 -14
- package/js/src/phemex.d.ts +5 -15
- package/js/src/poloniex.d.ts +3 -13
- package/js/src/poloniex.js +1 -2
- package/js/src/poloniexfutures.d.ts +2 -2
- package/js/src/pro/bitget.js +137 -193
- package/js/src/pro/bybit.js +4 -2
- package/js/src/pro/coinbaseinternational.d.ts +3 -3
- package/js/src/pro/coinbaseinternational.js +9 -1
- package/js/src/pro/okx.d.ts +4 -1
- package/js/src/pro/okx.js +85 -0
- package/js/src/pro/woofipro.d.ts +47 -0
- package/js/src/pro/woofipro.js +1264 -0
- package/js/src/probit.d.ts +3 -3
- package/js/src/timex.d.ts +2 -2
- package/js/src/tokocrypto.d.ts +3 -3
- package/js/src/upbit.d.ts +2 -2
- package/js/src/wavesexchange.d.ts +3 -3
- package/js/src/wavesexchange.js +2 -2
- package/js/src/wazirx.d.ts +2 -2
- package/js/src/whitebit.d.ts +3 -13
- package/js/src/woo.d.ts +7 -17
- package/js/src/woo.js +17 -3
- package/js/src/woofipro.d.ts +131 -0
- package/js/src/woofipro.js +2699 -0
- package/js/src/yobit.d.ts +2 -2
- package/js/src/zaif.d.ts +2 -2
- package/js/src/zonda.d.ts +4 -14
- 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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.18";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -105,6 +105,7 @@ import wavesexchange from './src/wavesexchange.js';
|
|
|
105
105
|
import wazirx from './src/wazirx.js';
|
|
106
106
|
import whitebit from './src/whitebit.js';
|
|
107
107
|
import woo from './src/woo.js';
|
|
108
|
+
import woofipro from './src/woofipro.js';
|
|
108
109
|
import yobit from './src/yobit.js';
|
|
109
110
|
import zaif from './src/zaif.js';
|
|
110
111
|
import zonda from './src/zonda.js';
|
|
@@ -172,6 +173,7 @@ import upbitPro from './src/pro/upbit.js';
|
|
|
172
173
|
import wazirxPro from './src/pro/wazirx.js';
|
|
173
174
|
import whitebitPro from './src/pro/whitebit.js';
|
|
174
175
|
import wooPro from './src/pro/woo.js';
|
|
176
|
+
import woofiproPro from './src/pro/woofipro.js';
|
|
175
177
|
declare const exchanges: {
|
|
176
178
|
ace: typeof ace;
|
|
177
179
|
alpaca: typeof alpaca;
|
|
@@ -273,6 +275,7 @@ declare const exchanges: {
|
|
|
273
275
|
wazirx: typeof wazirx;
|
|
274
276
|
whitebit: typeof whitebit;
|
|
275
277
|
woo: typeof woo;
|
|
278
|
+
woofipro: typeof woofipro;
|
|
276
279
|
yobit: typeof yobit;
|
|
277
280
|
zaif: typeof zaif;
|
|
278
281
|
zonda: typeof zonda;
|
|
@@ -342,6 +345,7 @@ declare const pro: {
|
|
|
342
345
|
wazirx: typeof wazirxPro;
|
|
343
346
|
whitebit: typeof whitebitPro;
|
|
344
347
|
woo: typeof wooPro;
|
|
348
|
+
woofipro: typeof woofiproPro;
|
|
345
349
|
};
|
|
346
350
|
declare const ccxt: {
|
|
347
351
|
version: string;
|
|
@@ -413,6 +417,7 @@ declare const ccxt: {
|
|
|
413
417
|
wazirx: typeof wazirxPro;
|
|
414
418
|
whitebit: typeof whitebitPro;
|
|
415
419
|
woo: typeof wooPro;
|
|
420
|
+
woofipro: typeof woofiproPro;
|
|
416
421
|
};
|
|
417
422
|
} & {
|
|
418
423
|
ace: typeof ace;
|
|
@@ -515,9 +520,10 @@ declare const ccxt: {
|
|
|
515
520
|
wazirx: typeof wazirx;
|
|
516
521
|
whitebit: typeof whitebit;
|
|
517
522
|
woo: typeof woo;
|
|
523
|
+
woofipro: typeof woofipro;
|
|
518
524
|
yobit: typeof yobit;
|
|
519
525
|
zaif: typeof zaif;
|
|
520
526
|
zonda: typeof zonda;
|
|
521
527
|
} & typeof functions & typeof errors;
|
|
522
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, 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, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
|
|
528
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, 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, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
|
|
523
529
|
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, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.19';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -141,6 +141,7 @@ import wavesexchange from './src/wavesexchange.js';
|
|
|
141
141
|
import wazirx from './src/wazirx.js';
|
|
142
142
|
import whitebit from './src/whitebit.js';
|
|
143
143
|
import woo from './src/woo.js';
|
|
144
|
+
import woofipro from './src/woofipro.js';
|
|
144
145
|
import yobit from './src/yobit.js';
|
|
145
146
|
import zaif from './src/zaif.js';
|
|
146
147
|
import zonda from './src/zonda.js';
|
|
@@ -209,6 +210,7 @@ import upbitPro from './src/pro/upbit.js';
|
|
|
209
210
|
import wazirxPro from './src/pro/wazirx.js';
|
|
210
211
|
import whitebitPro from './src/pro/whitebit.js';
|
|
211
212
|
import wooPro from './src/pro/woo.js';
|
|
213
|
+
import woofiproPro from './src/pro/woofipro.js';
|
|
212
214
|
const exchanges = {
|
|
213
215
|
'ace': ace,
|
|
214
216
|
'alpaca': alpaca,
|
|
@@ -310,6 +312,7 @@ const exchanges = {
|
|
|
310
312
|
'wazirx': wazirx,
|
|
311
313
|
'whitebit': whitebit,
|
|
312
314
|
'woo': woo,
|
|
315
|
+
'woofipro': woofipro,
|
|
313
316
|
'yobit': yobit,
|
|
314
317
|
'zaif': zaif,
|
|
315
318
|
'zonda': zonda,
|
|
@@ -379,6 +382,7 @@ const pro = {
|
|
|
379
382
|
'wazirx': wazirxPro,
|
|
380
383
|
'whitebit': whitebitPro,
|
|
381
384
|
'woo': wooPro,
|
|
385
|
+
'woofipro': woofiproPro,
|
|
382
386
|
};
|
|
383
387
|
for (const exchange in pro) {
|
|
384
388
|
// const ccxtExchange = exchanges[exchange]
|
|
@@ -392,6 +396,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
392
396
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
393
397
|
//-----------------------------------------------------------------------------
|
|
394
398
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
395
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, 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, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
|
|
399
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, 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, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
|
|
396
400
|
export default ccxt;
|
|
397
401
|
//-----------------------------------------------------------------------------
|
|
@@ -149,6 +149,7 @@ interface Exchange {
|
|
|
149
149
|
privateGetV5AssetCoinQueryInfo(params?: {}): Promise<implicitReturnType>;
|
|
150
150
|
privateGetV5AssetWithdrawQueryRecord(params?: {}): Promise<implicitReturnType>;
|
|
151
151
|
privateGetV5AssetWithdrawWithdrawableAmount(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
privateGetV5AssetWithdrawVaspList(params?: {}): Promise<implicitReturnType>;
|
|
152
153
|
privateGetV5UserQuerySubMembers(params?: {}): Promise<implicitReturnType>;
|
|
153
154
|
privateGetV5UserQueryApi(params?: {}): Promise<implicitReturnType>;
|
|
154
155
|
privateGetV5UserSubApikeys(params?: {}): Promise<implicitReturnType>;
|
package/js/src/abstract/okx.d.ts
CHANGED
|
@@ -266,6 +266,7 @@ interface Exchange {
|
|
|
266
266
|
privatePostTradingBotGridComputeMarginBalance(params?: {}): Promise<implicitReturnType>;
|
|
267
267
|
privatePostTradingBotGridMarginBalance(params?: {}): Promise<implicitReturnType>;
|
|
268
268
|
privatePostTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
|
|
269
|
+
privatePostTradingBotGridAdjustInvestment(params?: {}): Promise<implicitReturnType>;
|
|
269
270
|
privatePostTradingBotSignalCreateSignal(params?: {}): Promise<implicitReturnType>;
|
|
270
271
|
privatePostTradingBotSignalOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
271
272
|
privatePostTradingBotSignalStopOrderAlgo(params?: {}): Promise<implicitReturnType>;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
v1PublicGetPublicVolumeStats(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
v1PublicGetPublicBrokerName(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
v1PublicGetPublicChainInfoBrokerId(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
v1PublicGetPublicSystemInfo(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
v1PublicGetPublicVaultBalance(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
v1PublicGetPublicInsurancefund(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
v1PublicGetPublicChainInfo(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
v1PublicGetFaucetUsdc(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
v1PublicGetPublicAccount(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
v1PublicGetGetAccount(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
v1PublicGetRegistrationNonce(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
v1PublicGetGetOrderlyKey(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
v1PublicGetPublicLiquidation(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
v1PublicGetPublicLiquidatedPositions(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
v1PublicGetPublicConfig(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
v1PublicGetPublicCampaignRanking(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
v1PublicGetPublicCampaignStats(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
v1PublicGetPublicCampaignUser(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
v1PublicGetPublicCampaignStatsDetails(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
v1PublicGetPublicCampaigns(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
v1PublicGetPublicPointsLeaderboard(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
v1PublicGetClientPoints(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
v1PublicGetPublicPointsEpoch(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
v1PublicGetPublicPointsEpochDates(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
v1PublicGetPublicReferralCheckRefCode(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
v1PublicGetPublicReferralVerifyRefCode(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
v1PublicGetReferralAdminInfo(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
v1PublicGetReferralInfo(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
v1PublicGetReferralRefereeInfo(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
v1PublicGetReferralRefereeRebateSummary(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
v1PublicGetReferralRefereeHistory(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
v1PublicGetReferralReferralHistory(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
v1PublicGetReferralRebateSummary(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
v1PublicGetClientDistributionHistory(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
v1PublicGetTvConfig(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
v1PublicGetTvHistory(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
v1PublicGetTvSymbolInfo(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
v1PublicGetPublicFundingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
v1PublicGetPublicFundingRateSymbol(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
v1PublicGetPublicFundingRates(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
v1PublicGetPublicInfo(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
v1PublicGetPublicInfoSymbol(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
v1PublicGetPublicMarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
v1PublicGetPublicToken(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
v1PublicGetPublicFutures(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
v1PublicGetPublicFuturesSymbol(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
v1PublicPostRegisterAccount(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
v1PrivateGetClientKeyInfo(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
v1PrivateGetClientOrderlyKeyIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
v1PrivateGetOrderOid(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
v1PrivateGetClientOrderClientOrderId(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
v1PrivateGetAlgoOrderOid(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
v1PrivateGetAlgoClientOrderClientOrderId(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
v1PrivateGetOrders(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
v1PrivateGetAlgoOrders(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
v1PrivateGetTradeTid(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
v1PrivateGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
v1PrivateGetOrderOidTrades(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
v1PrivateGetClientLiquidatorLiquidations(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
v1PrivateGetLiquidations(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
v1PrivateGetAssetHistory(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
v1PrivateGetClientHolding(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
v1PrivateGetWithdrawNonce(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
v1PrivateGetSettleNonce(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
v1PrivateGetPnlSettlementHistory(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
v1PrivateGetVolumeUserDaily(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
v1PrivateGetVolumeUserStats(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
v1PrivateGetClientStatistics(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
v1PrivateGetClientInfo(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
v1PrivateGetClientStatisticsDaily(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
v1PrivateGetPositions(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
v1PrivateGetPositionSymbol(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
v1PrivateGetFundingFeeHistory(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
v1PrivateGetNotificationInboxNotifications(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
v1PrivateGetNotificationInboxUnread(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
v1PrivateGetVolumeBrokerDaily(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
v1PrivateGetBrokerFeeRateDefault(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
v1PrivateGetBrokerUserInfo(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
v1PrivateGetOrderbookSymbol(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
v1PrivateGetKline(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
v1PrivatePostOrderlyKey(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
v1PrivatePostClientSetOrderlyKeyIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
86
|
+
v1PrivatePostClientResetOrderlyKeyIpRestriction(params?: {}): Promise<implicitReturnType>;
|
|
87
|
+
v1PrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
88
|
+
v1PrivatePostBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
89
|
+
v1PrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
v1PrivatePostLiquidation(params?: {}): Promise<implicitReturnType>;
|
|
91
|
+
v1PrivatePostClaimInsuranceFund(params?: {}): Promise<implicitReturnType>;
|
|
92
|
+
v1PrivatePostWithdrawRequest(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
v1PrivatePostSettlePnl(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
v1PrivatePostNotificationInboxMarkRead(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
v1PrivatePostNotificationInboxMarkReadAll(params?: {}): Promise<implicitReturnType>;
|
|
96
|
+
v1PrivatePostClientLeverage(params?: {}): Promise<implicitReturnType>;
|
|
97
|
+
v1PrivatePostClientMaintenanceConfig(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
v1PrivatePostDelegateSigner(params?: {}): Promise<implicitReturnType>;
|
|
99
|
+
v1PrivatePostDelegateOrderlyKey(params?: {}): Promise<implicitReturnType>;
|
|
100
|
+
v1PrivatePostDelegateSettlePnl(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
v1PrivatePostDelegateWithdrawRequest(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
v1PrivatePostBrokerFeeRateSet(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
v1PrivatePostBrokerFeeRateSetDefault(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
v1PrivatePostBrokerFeeRateDefault(params?: {}): Promise<implicitReturnType>;
|
|
105
|
+
v1PrivatePostReferralCreate(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
v1PrivatePostReferralUpdate(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
v1PrivatePostReferralBind(params?: {}): Promise<implicitReturnType>;
|
|
108
|
+
v1PrivatePostReferralEditSplit(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
v1PrivatePutOrder(params?: {}): Promise<implicitReturnType>;
|
|
110
|
+
v1PrivatePutAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
v1PrivateDeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
112
|
+
v1PrivateDeleteAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
113
|
+
v1PrivateDeleteClientOrder(params?: {}): Promise<implicitReturnType>;
|
|
114
|
+
v1PrivateDeleteAlgoClientOrder(params?: {}): Promise<implicitReturnType>;
|
|
115
|
+
v1PrivateDeleteAlgoOrders(params?: {}): Promise<implicitReturnType>;
|
|
116
|
+
v1PrivateDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
117
|
+
v1PrivateDeleteBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
118
|
+
v1PrivateDeleteClientBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
119
|
+
}
|
|
120
|
+
declare abstract class Exchange extends _Exchange {
|
|
121
|
+
}
|
|
122
|
+
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;
|
package/js/src/ace.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/ace.js';
|
|
2
|
-
import type { Balances, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
|
|
2
|
+
import type { Balances, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class ace
|
|
5
5
|
* @augments Exchange
|
|
@@ -8,7 +8,7 @@ export default class ace extends Exchange {
|
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
10
10
|
parseMarket(market: any): Market;
|
|
11
|
-
parseTicker(ticker:
|
|
11
|
+
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
12
12
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
13
13
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
14
14
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
package/js/src/ascendex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/ascendex.js';
|
|
2
|
-
import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees } from './base/types.js';
|
|
2
|
+
import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees, Dict } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class ascendex
|
|
5
5
|
* @augments Exchange
|
|
@@ -16,7 +16,7 @@ export default class ascendex extends Exchange {
|
|
|
16
16
|
parseSwapBalance(response: any): Balances;
|
|
17
17
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
18
18
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
19
|
-
parseTicker(ticker:
|
|
19
|
+
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
20
20
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
21
21
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
22
22
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -92,18 +92,8 @@ export default class ascendex extends Exchange {
|
|
|
92
92
|
};
|
|
93
93
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
94
94
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
95
|
-
parseTransfer(transfer:
|
|
96
|
-
|
|
97
|
-
id: any;
|
|
98
|
-
timestamp: any;
|
|
99
|
-
datetime: any;
|
|
100
|
-
currency: string;
|
|
101
|
-
amount: any;
|
|
102
|
-
fromAccount: any;
|
|
103
|
-
toAccount: any;
|
|
104
|
-
status: string;
|
|
105
|
-
};
|
|
106
|
-
parseTransferStatus(status: any): "ok" | "failed";
|
|
95
|
+
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
96
|
+
parseTransferStatus(status: Str): Str;
|
|
107
97
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
|
|
108
98
|
parseIncome(income: any, market?: Market): {
|
|
109
99
|
info: any;
|
|
@@ -117,7 +107,7 @@ export default class ascendex extends Exchange {
|
|
|
117
107
|
fetchMarginModes(symbols?: string[], params?: {}): Promise<MarginModes>;
|
|
118
108
|
parseMarginMode(marginMode: any, market?: any): MarginMode;
|
|
119
109
|
fetchLeverages(symbols?: string[], params?: {}): Promise<Leverages>;
|
|
120
|
-
parseLeverage(leverage:
|
|
110
|
+
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
121
111
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
122
112
|
url: string;
|
|
123
113
|
method: string;
|
package/js/src/ascendex.js
CHANGED
|
@@ -3165,7 +3165,6 @@ export default class ascendex extends Exchange {
|
|
|
3165
3165
|
const account = this.safeValue(this.accounts, 0, {});
|
|
3166
3166
|
const accountGroup = this.safeString(account, 'id');
|
|
3167
3167
|
const currency = this.currency(code);
|
|
3168
|
-
amount = this.currencyToPrecision(code, amount);
|
|
3169
3168
|
const accountsByType = this.safeValue(this.options, 'accountsByType', {});
|
|
3170
3169
|
const fromId = this.safeString(accountsByType, fromAccount, fromAccount);
|
|
3171
3170
|
const toId = this.safeString(accountsByType, toAccount, toAccount);
|
|
@@ -3174,7 +3173,7 @@ export default class ascendex extends Exchange {
|
|
|
3174
3173
|
}
|
|
3175
3174
|
const request = {
|
|
3176
3175
|
'account-group': accountGroup,
|
|
3177
|
-
'amount': amount,
|
|
3176
|
+
'amount': this.currencyToPrecision(code, amount),
|
|
3178
3177
|
'asset': currency['id'],
|
|
3179
3178
|
'fromAccount': fromId,
|
|
3180
3179
|
'toAccount': toId,
|
|
@@ -3198,7 +3197,7 @@ export default class ascendex extends Exchange {
|
|
|
3198
3197
|
//
|
|
3199
3198
|
// { "code": "0" }
|
|
3200
3199
|
//
|
|
3201
|
-
const status = this.
|
|
3200
|
+
const status = this.safeString(transfer, 'code');
|
|
3202
3201
|
const currencyCode = this.safeCurrencyCode(undefined, currency);
|
|
3203
3202
|
return {
|
|
3204
3203
|
'info': transfer,
|
|
@@ -3213,7 +3212,7 @@ export default class ascendex extends Exchange {
|
|
|
3213
3212
|
};
|
|
3214
3213
|
}
|
|
3215
3214
|
parseTransferStatus(status) {
|
|
3216
|
-
if (status === 0) {
|
|
3215
|
+
if (status === '0') {
|
|
3217
3216
|
return 'ok';
|
|
3218
3217
|
}
|
|
3219
3218
|
return 'failed';
|
|
@@ -3,7 +3,7 @@ import { // eslint-disable-line object-curly-newline
|
|
|
3
3
|
ExchangeError, AuthenticationError, DDoSProtection, RequestTimeout, ExchangeNotAvailable, RateLimitExceeded } from "./errors.js";
|
|
4
4
|
import WsClient from './ws/WsClient.js';
|
|
5
5
|
import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './ws/OrderBook.js';
|
|
6
|
-
import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CancellationRequest, IsolatedBorrowRate, IsolatedBorrowRates, CrossBorrowRates, CrossBorrowRate } from './types.js';
|
|
6
|
+
import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CancellationRequest, IsolatedBorrowRate, IsolatedBorrowRates, CrossBorrowRates, CrossBorrowRate, Dict, TransferEntries, FundingRates } from './types.js';
|
|
7
7
|
export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, CrossBorrowRate, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, Conversion } from './types.js';
|
|
8
8
|
import { ArrayCache, ArrayCacheByTimestamp } from './ws/Cache.js';
|
|
9
9
|
import { OrderBook as Ob } from './ws/OrderBook.js';
|
|
@@ -69,6 +69,7 @@ export default class Exchange {
|
|
|
69
69
|
apiKey: string;
|
|
70
70
|
secret: string;
|
|
71
71
|
uid: string;
|
|
72
|
+
accountId: string;
|
|
72
73
|
login: string;
|
|
73
74
|
password: string;
|
|
74
75
|
privateKey: string;
|
|
@@ -77,6 +78,7 @@ export default class Exchange {
|
|
|
77
78
|
balance: {};
|
|
78
79
|
orderbooks: Dictionary<Ob>;
|
|
79
80
|
tickers: Dictionary<Ticker>;
|
|
81
|
+
fundingRates: Dictionary<FundingRate>;
|
|
80
82
|
bidsasks: Dictionary<Ticker>;
|
|
81
83
|
orders: ArrayCache;
|
|
82
84
|
triggerOrders: ArrayCache;
|
|
@@ -119,6 +121,7 @@ export default class Exchange {
|
|
|
119
121
|
apiKey: boolean;
|
|
120
122
|
secret: boolean;
|
|
121
123
|
uid: boolean;
|
|
124
|
+
accountId: boolean;
|
|
122
125
|
login: boolean;
|
|
123
126
|
password: boolean;
|
|
124
127
|
twofa: boolean;
|
|
@@ -187,7 +190,7 @@ export default class Exchange {
|
|
|
187
190
|
precisionFromString: typeof functions.precisionFromString;
|
|
188
191
|
capitalize: (s: string) => string;
|
|
189
192
|
now: () => number;
|
|
190
|
-
decimalToPrecision: (x:
|
|
193
|
+
decimalToPrecision: (x: string, roundingMode: number, numPrecisionDigits: any, countingMode?: number, paddingMode?: number) => string;
|
|
191
194
|
safeValue: (o: any, k: IndexType, $default?: any) => any;
|
|
192
195
|
safeValue2: (o: any, k1: IndexType, k2: IndexType, $default?: any) => any;
|
|
193
196
|
safeString: (o: any, k: IndexType, $default?: string) => string;
|
|
@@ -276,6 +279,7 @@ export default class Exchange {
|
|
|
276
279
|
base64ToString: (string: string) => string;
|
|
277
280
|
crc32: typeof functions.crc32;
|
|
278
281
|
packb: typeof functions.packb;
|
|
282
|
+
urlencodeBase64: (payload: string | Uint8Array) => string;
|
|
279
283
|
describe(): {
|
|
280
284
|
id: any;
|
|
281
285
|
name: any;
|
|
@@ -509,6 +513,7 @@ export default class Exchange {
|
|
|
509
513
|
apiKey: boolean;
|
|
510
514
|
secret: boolean;
|
|
511
515
|
uid: boolean;
|
|
516
|
+
accountId: boolean;
|
|
512
517
|
login: boolean;
|
|
513
518
|
password: boolean;
|
|
514
519
|
twofa: boolean;
|
|
@@ -700,11 +705,11 @@ export default class Exchange {
|
|
|
700
705
|
fetchTradingLimits(symbols?: string[], params?: {}): Promise<{}>;
|
|
701
706
|
parseMarket(market: any): Market;
|
|
702
707
|
parseMarkets(markets: any): Market[];
|
|
703
|
-
parseTicker(ticker:
|
|
708
|
+
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
704
709
|
parseDepositAddress(depositAddress: any, currency?: Currency): object;
|
|
705
710
|
parseTrade(trade: object, market?: Market): Trade;
|
|
706
711
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
707
|
-
parseTransfer(transfer:
|
|
712
|
+
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
708
713
|
parseAccount(account: any): Account;
|
|
709
714
|
parseLedgerEntry(item: any, currency?: Currency): object;
|
|
710
715
|
parseOrder(order: any, market?: Market): Order;
|
|
@@ -721,8 +726,8 @@ export default class Exchange {
|
|
|
721
726
|
parseWsOrderTrade(trade: any, market?: Market): Trade;
|
|
722
727
|
parseWsOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
723
728
|
fetchFundingRates(symbols?: string[], params?: {}): Promise<{}>;
|
|
724
|
-
watchFundingRate(symbol: string, params?: {}): Promise<
|
|
725
|
-
watchFundingRates(symbols: string[], params?: {}): Promise<
|
|
729
|
+
watchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
730
|
+
watchFundingRates(symbols: string[], params?: {}): Promise<FundingRates>;
|
|
726
731
|
watchFundingRatesForSymbols(symbols: string[], params?: {}): Promise<{}>;
|
|
727
732
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
728
733
|
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
@@ -744,6 +749,7 @@ export default class Exchange {
|
|
|
744
749
|
parseToInt(number: any): number;
|
|
745
750
|
parseToNumeric(number: any): number;
|
|
746
751
|
isRoundNumber(value: number): boolean;
|
|
752
|
+
safeIntegerOmitZero(obj: object, key: IndexType, defaultValue?: Int): Int;
|
|
747
753
|
afterConstruct(): void;
|
|
748
754
|
createNetworksByIdObject(): void;
|
|
749
755
|
getDefaultOptions(): {
|
|
@@ -816,7 +822,7 @@ export default class Exchange {
|
|
|
816
822
|
filterBySymbol(objects: any, symbol?: Str): any;
|
|
817
823
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
818
824
|
networkCodeToId(networkCode: string, currencyCode?: Str): string;
|
|
819
|
-
networkIdToCode(networkId
|
|
825
|
+
networkIdToCode(networkId?: Str, currencyCode?: Str): string;
|
|
820
826
|
handleNetworkCodeAndParams(params: any): any[];
|
|
821
827
|
defaultNetworkCode(currencyCode: string): any;
|
|
822
828
|
selectNetworkCodeFromUnifiedNetworks(currencyCode: any, networkCode: any, indexedNetworkEntries: any): any;
|
|
@@ -832,7 +838,7 @@ export default class Exchange {
|
|
|
832
838
|
parseAccounts(accounts: any[], params?: {}): Account[];
|
|
833
839
|
parseTrades(trades: any[], market?: Market, since?: Int, limit?: Int, params?: {}): Trade[];
|
|
834
840
|
parseTransactions(transactions: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): Transaction[];
|
|
835
|
-
parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}):
|
|
841
|
+
parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): TransferEntries;
|
|
836
842
|
parseLedger(data: any, currency?: Currency, since?: Int, limit?: Int, params?: {}): any;
|
|
837
843
|
nonce(): number;
|
|
838
844
|
setHeaders(headers: any): any;
|
|
@@ -865,7 +871,7 @@ export default class Exchange {
|
|
|
865
871
|
fetchPositions(symbols?: string[], params?: {}): Promise<Position[]>;
|
|
866
872
|
fetchPositionsWs(symbols?: string[], params?: {}): Promise<Position[]>;
|
|
867
873
|
fetchPositionsRisk(symbols?: string[], params?: {}): Promise<Position[]>;
|
|
868
|
-
fetchBidsAsks(symbols?:
|
|
874
|
+
fetchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
869
875
|
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
|
|
870
876
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
871
877
|
fetchLedgerEntry(id: string, code?: Str, params?: {}): Promise<LedgerEntry>;
|
|
@@ -989,11 +995,11 @@ export default class Exchange {
|
|
|
989
995
|
createMarketBuyOrderWs(symbol: string, amount: number, params?: {}): Promise<Order>;
|
|
990
996
|
createMarketSellOrder(symbol: string, amount: number, params?: {}): Promise<Order>;
|
|
991
997
|
createMarketSellOrderWs(symbol: string, amount: number, params?: {}): Promise<Order>;
|
|
992
|
-
costToPrecision(symbol: string, cost: any):
|
|
998
|
+
costToPrecision(symbol: string, cost: any): string;
|
|
993
999
|
priceToPrecision(symbol: string, price: any): string;
|
|
994
|
-
amountToPrecision(symbol: string, amount: any):
|
|
995
|
-
feeToPrecision(symbol: string, fee: any):
|
|
996
|
-
currencyToPrecision(code: string, fee: any, networkCode?: any):
|
|
1000
|
+
amountToPrecision(symbol: string, amount: any): string;
|
|
1001
|
+
feeToPrecision(symbol: string, fee: any): string;
|
|
1002
|
+
currencyToPrecision(code: string, fee: any, networkCode?: any): string;
|
|
997
1003
|
forceString(value: any): string;
|
|
998
1004
|
isTickPrecision(): boolean;
|
|
999
1005
|
isDecimalPrecision(): boolean;
|
|
@@ -1020,7 +1026,7 @@ export default class Exchange {
|
|
|
1020
1026
|
filterByCurrencySinceLimit(array: any, code?: any, since?: Int, limit?: Int, tail?: boolean): any;
|
|
1021
1027
|
filterBySymbolsSinceLimit(array: any, symbols?: string[], since?: Int, limit?: Int, tail?: boolean): any;
|
|
1022
1028
|
parseLastPrices(pricesData: any, symbols?: string[], params?: {}): LastPrices;
|
|
1023
|
-
parseTickers(tickers: any, symbols?:
|
|
1029
|
+
parseTickers(tickers: any, symbols?: Strings, params?: {}): Tickers;
|
|
1024
1030
|
parseDepositAddresses(addresses: any, codes?: string[], indexed?: boolean, params?: {}): Dictionary<any>;
|
|
1025
1031
|
parseBorrowInterests(response: any, market?: Market): any[];
|
|
1026
1032
|
parseIsolatedBorrowRates(info: any): IsolatedBorrowRates;
|
|
@@ -1028,6 +1034,7 @@ export default class Exchange {
|
|
|
1028
1034
|
safeSymbol(marketId: Str, market?: Market, delimiter?: Str, marketType?: Str): string;
|
|
1029
1035
|
parseFundingRate(contract: string, market?: Market): object;
|
|
1030
1036
|
parseFundingRates(response: any, market?: Market): {};
|
|
1037
|
+
handleTriggerAndParams(params: any): any[];
|
|
1031
1038
|
isTriggerOrder(params: any): any[];
|
|
1032
1039
|
isPostOnly(isMarketOrder: boolean, exchangeSpecificParam: any, params?: {}): boolean;
|
|
1033
1040
|
handlePostOnly(isMarketOrder: boolean, exchangeSpecificPostOnlyOption: boolean, params?: any): any[];
|
|
@@ -1070,15 +1077,15 @@ export default class Exchange {
|
|
|
1070
1077
|
safeOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
1071
1078
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
1072
1079
|
parseLiquidations(liquidations: any, market?: any, since?: Int, limit?: Int): Liquidation[];
|
|
1073
|
-
parseGreeks(greeks:
|
|
1074
|
-
parseOption(chain:
|
|
1080
|
+
parseGreeks(greeks: Dict, market?: Market): Greeks;
|
|
1081
|
+
parseOption(chain: Dict, currency?: Currency, market?: Market): Option;
|
|
1075
1082
|
parseOptionChain(response: object[], currencyKey?: Str, symbolKey?: Str): OptionChain;
|
|
1076
1083
|
parseMarginModes(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): MarginModes;
|
|
1077
1084
|
parseMarginMode(marginMode: any, market?: Market): MarginMode;
|
|
1078
1085
|
parseLeverages(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): Leverages;
|
|
1079
|
-
parseLeverage(leverage:
|
|
1086
|
+
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
1080
1087
|
parseConversions(conversions: any[], code?: Str, fromCurrencyKey?: Str, toCurrencyKey?: Str, since?: Int, limit?: Int, params?: {}): Conversion[];
|
|
1081
|
-
parseConversion(conversion:
|
|
1088
|
+
parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
|
|
1082
1089
|
convertExpireDate(date: string): string;
|
|
1083
1090
|
convertExpireDateToMarketIdDate(date: string): string;
|
|
1084
1091
|
convertMarketIdExpireDate(date: string): string;
|
|
@@ -1086,5 +1093,7 @@ export default class Exchange {
|
|
|
1086
1093
|
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
1087
1094
|
parseMarginModification(data: any, market?: Market): MarginModification;
|
|
1088
1095
|
parseMarginModifications(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): MarginModification[];
|
|
1096
|
+
fetchTransfer(id: string, code?: Str, params?: {}): Promise<TransferEntry>;
|
|
1097
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntries>;
|
|
1089
1098
|
}
|
|
1090
1099
|
export { Exchange, };
|