ccxt 4.1.46 → 4.1.48
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 +124 -124
- package/dist/ccxt.browser.js +662 -406
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/htx.js +9 -0
- package/dist/cjs/src/base/Exchange.js +3 -0
- package/dist/cjs/src/binance.js +6 -0
- package/dist/cjs/src/bitmart.js +185 -64
- package/dist/cjs/src/hitbtc.js +79 -1
- package/dist/cjs/src/htx.js +8505 -0
- package/dist/cjs/src/huobi.js +5 -8503
- package/dist/cjs/src/kraken.js +0 -4
- package/dist/cjs/src/krakenfutures.js +13 -3
- package/dist/cjs/src/pro/binance.js +2 -2
- package/dist/cjs/src/pro/bitget.js +2 -2
- package/dist/cjs/src/pro/bybit.js +2 -2
- package/dist/cjs/src/pro/cryptocom.js +2 -2
- package/dist/cjs/src/pro/gate.js +2 -2
- package/dist/cjs/src/pro/htx.js +2356 -0
- package/dist/cjs/src/pro/huobi.js +5 -2345
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/okx.js +2 -2
- package/dist/cjs/src/timex.js +1 -1
- package/js/ccxt.d.ts +9 -3
- package/js/ccxt.js +6 -2
- package/js/src/abstract/binance.d.ts +6 -0
- package/js/src/abstract/binancecoinm.d.ts +6 -0
- package/js/src/abstract/binanceus.d.ts +6 -0
- package/js/src/abstract/binanceusdm.d.ts +6 -0
- package/js/src/abstract/htx.d.ts +544 -0
- package/js/src/abstract/htx.js +11 -0
- package/js/src/abstract/huobi.d.ts +4 -4
- package/js/src/ace.d.ts +2 -2
- package/js/src/ascendex.d.ts +5 -5
- package/js/src/base/Exchange.d.ts +3 -2
- package/js/src/base/Exchange.js +3 -0
- package/js/src/base/types.d.ts +5 -1
- package/js/src/bigone.d.ts +4 -4
- package/js/src/binance.d.ts +5 -58
- package/js/src/binance.js +6 -0
- package/js/src/bingx.d.ts +5 -57
- package/js/src/bitbns.d.ts +4 -4
- package/js/src/bitfinex.d.ts +4 -4
- package/js/src/bitfinex2.d.ts +4 -4
- package/js/src/bitflyer.d.ts +2 -2
- package/js/src/bitget.d.ts +5 -55
- package/js/src/bithumb.d.ts +2 -2
- package/js/src/bitmart.d.ts +6 -4
- package/js/src/bitmart.js +185 -64
- package/js/src/bitmex.d.ts +3 -3
- package/js/src/bitopro.d.ts +4 -4
- package/js/src/bitpanda.d.ts +4 -4
- package/js/src/bitrue.d.ts +4 -4
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitstamp.d.ts +4 -4
- package/js/src/bittrex.d.ts +6 -6
- package/js/src/bitvavo.d.ts +4 -4
- package/js/src/blockchaincom.d.ts +5 -5
- package/js/src/btcalpha.d.ts +4 -4
- package/js/src/btcmarkets.d.ts +3 -3
- package/js/src/btcturk.d.ts +2 -2
- package/js/src/bybit.d.ts +4 -4
- package/js/src/cex.d.ts +2 -2
- package/js/src/coinbase.d.ts +6 -6
- package/js/src/coinbasepro.d.ts +5 -5
- package/js/src/coincheck.d.ts +2 -2
- package/js/src/coinex.d.ts +9 -9
- package/js/src/coinfalcon.d.ts +4 -4
- package/js/src/coinlist.d.ts +3 -3
- package/js/src/coinmate.d.ts +1 -1
- package/js/src/coinone.d.ts +2 -2
- package/js/src/coinsph.d.ts +4 -4
- package/js/src/coinspot.d.ts +2 -2
- package/js/src/cryptocom.d.ts +4 -4
- package/js/src/currencycom.d.ts +7 -7
- package/js/src/delta.d.ts +2 -2
- package/js/src/deribit.d.ts +4 -4
- package/js/src/digifinex.d.ts +4 -4
- package/js/src/exmo.d.ts +5 -5
- package/js/src/gate.d.ts +4 -4
- package/js/src/gemini.d.ts +4 -52
- package/js/src/hitbtc.d.ts +6 -5
- package/js/src/hitbtc.js +79 -1
- package/js/src/hollaex.d.ts +4 -4
- package/js/src/htx.d.ts +257 -0
- package/js/src/htx.js +8506 -0
- package/js/src/huobi.d.ts +2 -255
- package/js/src/huobi.js +5 -8503
- package/js/src/huobijp.d.ts +4 -4
- package/js/src/idex.d.ts +4 -4
- package/js/src/indodax.d.ts +3 -3
- package/js/src/kraken.d.ts +4 -4
- package/js/src/kraken.js +0 -4
- package/js/src/krakenfutures.d.ts +2 -2
- package/js/src/krakenfutures.js +14 -4
- package/js/src/kucoin.d.ts +4 -4
- package/js/src/kucoinfutures.d.ts +3 -3
- package/js/src/kuna.d.ts +4 -4
- package/js/src/latoken.d.ts +3 -3
- package/js/src/lbank.d.ts +2 -2
- package/js/src/lbank2.d.ts +4 -4
- package/js/src/luno.d.ts +2 -2
- package/js/src/lykke.d.ts +3 -3
- package/js/src/mexc.d.ts +4 -4
- package/js/src/ndax.d.ts +2 -2
- package/js/src/novadax.d.ts +5 -5
- package/js/src/oceanex.d.ts +2 -2
- package/js/src/okcoin.d.ts +10 -10
- package/js/src/okx.d.ts +9 -9
- package/js/src/phemex.d.ts +7 -7
- package/js/src/poloniex.d.ts +5 -5
- package/js/src/poloniexfutures.d.ts +2 -2
- package/js/src/pro/binance.js +2 -2
- package/js/src/pro/bitget.js +2 -2
- package/js/src/pro/bybit.js +2 -2
- package/js/src/pro/cryptocom.js +2 -2
- package/js/src/pro/gate.js +2 -2
- package/js/src/pro/htx.d.ts +45 -0
- package/js/src/pro/htx.js +2357 -0
- package/js/src/pro/huobi.d.ts +2 -43
- package/js/src/pro/huobi.js +5 -2345
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/okx.js +2 -2
- package/js/src/probit.d.ts +4 -4
- package/js/src/tidex.d.ts +2 -2
- package/js/src/timex.d.ts +5 -55
- package/js/src/timex.js +1 -1
- package/js/src/tokocrypto.d.ts +6 -6
- package/js/src/upbit.d.ts +4 -4
- package/js/src/wavesexchange.d.ts +3 -3
- package/js/src/wazirx.d.ts +2 -2
- package/js/src/whitebit.d.ts +3 -3
- package/js/src/woo.d.ts +3 -3
- package/js/src/yobit.d.ts +2 -2
- package/js/src/zonda.d.ts +2 -2
- package/package.json +1 -1
- package/skip-tests.json +9 -4
package/js/src/huobijp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/huobijp.js';
|
|
2
|
-
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class huobijp
|
|
5
5
|
* @extends Exchange
|
|
@@ -31,7 +31,7 @@ export default class huobijp extends Exchange {
|
|
|
31
31
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
32
32
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
33
33
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
34
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
34
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
35
35
|
parseTrade(trade: any, market?: any): Trade;
|
|
36
36
|
fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
37
37
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -64,8 +64,8 @@ export default class huobijp extends Exchange {
|
|
|
64
64
|
network: string;
|
|
65
65
|
info: any;
|
|
66
66
|
};
|
|
67
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
68
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
67
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
68
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
69
69
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
70
70
|
parseTransactionStatus(status: any): string;
|
|
71
71
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
package/js/src/idex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/idex.js';
|
|
2
|
-
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class idex
|
|
5
5
|
* @extends Exchange
|
|
@@ -9,7 +9,7 @@ export default class idex extends Exchange {
|
|
|
9
9
|
priceToPrecision(symbol: any, price: any): any;
|
|
10
10
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
11
11
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
12
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
12
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
13
13
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
14
14
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
15
15
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
@@ -35,10 +35,10 @@ export default class idex extends Exchange {
|
|
|
35
35
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
36
36
|
handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
37
37
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
38
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
38
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
39
39
|
fetchTime(params?: {}): Promise<number>;
|
|
40
40
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
41
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
41
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
42
42
|
fetchTransactionsHelper(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
43
43
|
parseTransactionStatus(status: any): string;
|
|
44
44
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
package/js/src/indodax.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/indodax.js';
|
|
2
|
-
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class indodax
|
|
5
5
|
* @extends Exchange
|
|
@@ -14,7 +14,7 @@ export default class indodax extends Exchange {
|
|
|
14
14
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
15
15
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
16
16
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
17
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
17
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
18
18
|
parseTrade(trade: any, market?: any): Trade;
|
|
19
19
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
20
20
|
parseOrderStatus(status: any): string;
|
|
@@ -29,7 +29,7 @@ export default class indodax extends Exchange {
|
|
|
29
29
|
rate: number;
|
|
30
30
|
currency: any;
|
|
31
31
|
}>;
|
|
32
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
32
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
33
33
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
34
34
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
35
35
|
parseTransactionStatus(status: any): string;
|
package/js/src/kraken.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/kraken.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, OHLCV, Trade, Order, Balances, Transaction, Ticker, OrderBook } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, OHLCV, Trade, Order, Balances, Transaction, Ticker, OrderBook, Tickers } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class kraken
|
|
5
5
|
* @extends Exchange
|
|
@@ -30,7 +30,7 @@ export default class kraken extends Exchange {
|
|
|
30
30
|
parseBidAsk(bidask: any, priceKey?: number, amountKey?: number): number[];
|
|
31
31
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
32
32
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
33
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
33
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
34
34
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
35
35
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
36
36
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
@@ -81,9 +81,9 @@ export default class kraken extends Exchange {
|
|
|
81
81
|
parseTransactionStatus(status: any): string;
|
|
82
82
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
83
83
|
parseTransactionsByType(type: any, transactions: any, code?: string, since?: Int, limit?: Int): any;
|
|
84
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
84
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
85
85
|
fetchTime(params?: {}): Promise<number>;
|
|
86
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
86
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
87
87
|
createDepositAddress(code: string, params?: {}): Promise<{
|
|
88
88
|
currency: any;
|
|
89
89
|
address: string;
|
package/js/src/kraken.js
CHANGED
|
@@ -981,7 +981,6 @@ export default class kraken extends Exchange {
|
|
|
981
981
|
/**
|
|
982
982
|
* @method
|
|
983
983
|
* @name kraken#fetchLedger
|
|
984
|
-
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
|
985
984
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
986
985
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
|
|
987
986
|
* @param {string} code unified currency code, default is undefined
|
|
@@ -1957,7 +1956,6 @@ export default class kraken extends Exchange {
|
|
|
1957
1956
|
/**
|
|
1958
1957
|
* @method
|
|
1959
1958
|
* @name kraken#fetchOpenOrders
|
|
1960
|
-
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
|
1961
1959
|
* @description fetch all unfilled currently open orders
|
|
1962
1960
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
|
|
1963
1961
|
* @param {string} symbol unified market symbol
|
|
@@ -1990,7 +1988,6 @@ export default class kraken extends Exchange {
|
|
|
1990
1988
|
/**
|
|
1991
1989
|
* @method
|
|
1992
1990
|
* @name kraken#fetchClosedOrders
|
|
1993
|
-
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
|
1994
1991
|
* @description fetches information on multiple closed orders made by the user
|
|
1995
1992
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
|
1996
1993
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
@@ -2191,7 +2188,6 @@ export default class kraken extends Exchange {
|
|
|
2191
2188
|
/**
|
|
2192
2189
|
* @method
|
|
2193
2190
|
* @name kraken#fetchDeposits
|
|
2194
|
-
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
|
2195
2191
|
* @description fetch all deposits made to an account
|
|
2196
2192
|
* @see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
|
|
2197
2193
|
* @param {string} code unified currency code
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/krakenfutures.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, OHLCV, Trade, FundingRateHistory, OrderRequest, Order, Balances, Ticker, OrderBook } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, OHLCV, Trade, FundingRateHistory, OrderRequest, Order, Balances, Ticker, OrderBook, Tickers } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class krakenfutures
|
|
5
5
|
* @extends Exchange
|
|
@@ -8,7 +8,7 @@ export default class krakenfutures extends Exchange {
|
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
10
10
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
11
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
11
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
12
12
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
13
13
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
14
14
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
package/js/src/krakenfutures.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
import Exchange from './abstract/krakenfutures.js';
|
|
9
9
|
import { TICK_SIZE } from './base/functions/number.js';
|
|
10
|
-
import { ArgumentsRequired, AuthenticationError, BadRequest, DDoSProtection, DuplicateOrderId, ExchangeError, ExchangeNotAvailable, InsufficientFunds, InvalidNonce, InvalidOrder, OrderImmediatelyFillable, OrderNotFillable, OrderNotFound, RateLimitExceeded } from './base/errors.js';
|
|
10
|
+
import { ArgumentsRequired, AuthenticationError, BadRequest, ContractUnavailable, DDoSProtection, DuplicateOrderId, ExchangeError, ExchangeNotAvailable, InsufficientFunds, InvalidNonce, InvalidOrder, OrderImmediatelyFillable, OrderNotFillable, OrderNotFound, RateLimitExceeded } from './base/errors.js';
|
|
11
11
|
import { Precise } from './base/Precise.js';
|
|
12
12
|
import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
|
|
13
13
|
import { sha512 } from './static_dependencies/noble-hashes/sha512.js';
|
|
@@ -159,7 +159,7 @@ export default class krakenfutures extends Exchange {
|
|
|
159
159
|
'exceptions': {
|
|
160
160
|
'exact': {
|
|
161
161
|
'apiLimitExceeded': RateLimitExceeded,
|
|
162
|
-
'marketUnavailable':
|
|
162
|
+
'marketUnavailable': ContractUnavailable,
|
|
163
163
|
'requiredArgumentMissing': BadRequest,
|
|
164
164
|
'unavailable': ExchangeNotAvailable,
|
|
165
165
|
'authenticationError': AuthenticationError,
|
|
@@ -168,7 +168,14 @@ export default class krakenfutures extends Exchange {
|
|
|
168
168
|
'invalidAmount': BadRequest,
|
|
169
169
|
'insufficientFunds': InsufficientFunds,
|
|
170
170
|
'Bad Request': BadRequest,
|
|
171
|
-
'Unavailable': InsufficientFunds,
|
|
171
|
+
'Unavailable': InsufficientFunds,
|
|
172
|
+
'invalidUnit': BadRequest,
|
|
173
|
+
'Json Parse Error': ExchangeError,
|
|
174
|
+
'nonceBelowThreshold': InvalidNonce,
|
|
175
|
+
'nonceDuplicate': InvalidNonce,
|
|
176
|
+
'notFound': BadRequest,
|
|
177
|
+
'Server Error': ExchangeError,
|
|
178
|
+
'unknownError': ExchangeError,
|
|
172
179
|
},
|
|
173
180
|
'broad': {
|
|
174
181
|
'invalidArgument': BadRequest,
|
|
@@ -2308,7 +2315,10 @@ export default class krakenfutures extends Exchange {
|
|
|
2308
2315
|
if (code === 429) {
|
|
2309
2316
|
throw new DDoSProtection(this.id + ' ' + body);
|
|
2310
2317
|
}
|
|
2311
|
-
const
|
|
2318
|
+
const errors = this.safeValue(response, 'errors');
|
|
2319
|
+
const firstError = this.safeValue(errors, 0);
|
|
2320
|
+
const firtErrorMessage = this.safeString(firstError, 'message');
|
|
2321
|
+
const message = this.safeString(response, 'error', firtErrorMessage);
|
|
2312
2322
|
if (message === undefined) {
|
|
2313
2323
|
return undefined;
|
|
2314
2324
|
}
|
package/js/src/kucoin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/kucoin.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Transaction, Ticker, OrderBook } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Transaction, Ticker, OrderBook, Tickers } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class kucoin
|
|
5
5
|
* @extends Exchange
|
|
@@ -49,7 +49,7 @@ export default class kucoin extends Exchange {
|
|
|
49
49
|
};
|
|
50
50
|
isFuturesMethod(methodName: any, params: any): boolean;
|
|
51
51
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
52
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
52
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
53
53
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
54
54
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
55
55
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
@@ -103,8 +103,8 @@ export default class kucoin extends Exchange {
|
|
|
103
103
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
104
104
|
parseTransactionStatus(status: any): string;
|
|
105
105
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
106
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
107
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
106
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
107
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
108
108
|
parseBalanceHelper(entry: any): import("./base/types.js").Balance;
|
|
109
109
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
110
110
|
transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import kucoin from './abstract/kucoinfutures.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, OHLCV, Order, Trade, FundingRateHistory, FundingHistory, Balances, Ticker, OrderBook } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, OHLCV, Order, Trade, FundingRateHistory, FundingHistory, Balances, Ticker, OrderBook, Transaction } from './base/types.js';
|
|
3
3
|
export default class kucoinfutures extends kucoin {
|
|
4
4
|
describe(): any;
|
|
5
5
|
fetchStatus(params?: {}): Promise<{
|
|
@@ -82,8 +82,8 @@ export default class kucoinfutures extends kucoin {
|
|
|
82
82
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
83
83
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
84
84
|
parseTrade(trade: any, market?: any): Trade;
|
|
85
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
86
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
85
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
86
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
87
87
|
fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<any[]>;
|
|
88
88
|
parseMarketLeverageTiers(info: any, market?: any): any[];
|
|
89
89
|
fetchFundingRateHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
package/js/src/kuna.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/kuna.js';
|
|
2
|
-
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class kuna
|
|
5
5
|
* @extends Exchange
|
|
@@ -37,7 +37,7 @@ export default class kuna extends Exchange {
|
|
|
37
37
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
38
38
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
39
39
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
40
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
40
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
41
41
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
42
42
|
fetchL3OrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
43
43
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -55,7 +55,7 @@ export default class kuna extends Exchange {
|
|
|
55
55
|
fetchOrdersByStatus(status: any, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
56
56
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
57
57
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
58
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
58
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
59
59
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
60
60
|
createDepositAddress(code: string, params?: {}): Promise<{
|
|
61
61
|
info: string;
|
|
@@ -79,7 +79,7 @@ export default class kuna extends Exchange {
|
|
|
79
79
|
tag: any;
|
|
80
80
|
};
|
|
81
81
|
parseTransactionStatus(status: any): string;
|
|
82
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
82
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
83
83
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
84
84
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
85
85
|
nonce(): number;
|
package/js/src/latoken.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/latoken.js';
|
|
2
|
-
import { Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class latoken
|
|
5
5
|
* @extends Exchange
|
|
@@ -11,11 +11,11 @@ export default class latoken extends Exchange {
|
|
|
11
11
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
12
12
|
fetchCurrenciesFromCache(params?: {}): Promise<any>;
|
|
13
13
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
14
|
-
fetchBalance(params?: {}): Promise<
|
|
14
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
15
15
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
16
16
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
17
17
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
18
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
18
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
19
19
|
parseTrade(trade: any, market?: any): Trade;
|
|
20
20
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
21
21
|
fetchTradingFee(symbol: string, params?: {}): Promise<any>;
|
package/js/src/lbank.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/lbank.js';
|
|
2
|
-
import { Balances, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class lbank
|
|
5
5
|
* @extends Exchange
|
|
@@ -9,7 +9,7 @@ export default class lbank extends Exchange {
|
|
|
9
9
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
10
10
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
11
11
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
12
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
12
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
13
13
|
fetchOrderBook(symbol: string, limit?: number, params?: {}): Promise<import("./base/types.js").OrderBook>;
|
|
14
14
|
parseTrade(trade: any, market?: any): Trade;
|
|
15
15
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
package/js/src/lbank2.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/lbank2.js';
|
|
2
|
-
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class lbank2
|
|
5
5
|
* @extends Exchange
|
|
@@ -12,7 +12,7 @@ export default class lbank2 extends Exchange {
|
|
|
12
12
|
fetchSwapMarkets(params?: {}): Promise<any[]>;
|
|
13
13
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
14
14
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
15
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
15
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
16
16
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
17
17
|
parseTrade(trade: any, market?: any): Trade;
|
|
18
18
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -61,8 +61,8 @@ export default class lbank2 extends Exchange {
|
|
|
61
61
|
}>;
|
|
62
62
|
parseTransactionStatus(status: any, type: any): string;
|
|
63
63
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
64
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
65
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
64
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
65
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
66
66
|
fetchTransactionFees(codes?: any, params?: {}): Promise<any>;
|
|
67
67
|
fetchPrivateTransactionFees(params?: {}): Promise<{
|
|
68
68
|
withdraw: {};
|
package/js/src/luno.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/luno.js';
|
|
2
|
-
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class luno
|
|
5
5
|
* @extends Exchange
|
|
@@ -19,7 +19,7 @@ export default class luno extends Exchange {
|
|
|
19
19
|
fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
20
20
|
fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
21
21
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
22
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
22
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
23
23
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
24
24
|
parseTrade(trade: any, market?: any): Trade;
|
|
25
25
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
package/js/src/lykke.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/lykke.js';
|
|
2
|
-
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class lykke
|
|
5
5
|
* @extends Exchange
|
|
@@ -10,7 +10,7 @@ export default class lykke extends Exchange {
|
|
|
10
10
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
11
11
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
12
12
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
13
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
13
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
14
14
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
15
15
|
parseTrade(trade: any, market?: any): Trade;
|
|
16
16
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -34,7 +34,7 @@ export default class lykke extends Exchange {
|
|
|
34
34
|
info: any;
|
|
35
35
|
}>;
|
|
36
36
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
37
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
37
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
38
38
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
39
39
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
40
40
|
url: string;
|
package/js/src/mexc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/mexc.js';
|
|
2
|
-
import { IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Trade, Transaction, Ticker } from './base/types.js';
|
|
2
|
+
import { IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Trade, Transaction, Ticker, Tickers } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class mexc
|
|
5
5
|
* @extends Exchange
|
|
@@ -26,7 +26,7 @@ export default class mexc extends Exchange {
|
|
|
26
26
|
syntheticTradeId(market?: any, timestamp?: any, side?: any, amount?: any, price?: any, orderType?: any, takerOrMaker?: any): string;
|
|
27
27
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
28
28
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
29
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
29
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
30
30
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
31
31
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
32
32
|
fetchBidsAsks(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
|
|
@@ -120,8 +120,8 @@ export default class mexc extends Exchange {
|
|
|
120
120
|
tag: string;
|
|
121
121
|
}>;
|
|
122
122
|
fetchDepositAddress(code: string, params?: {}): Promise<any>;
|
|
123
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
124
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
123
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
124
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
125
125
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
126
126
|
parseTransactionStatusByType(status: any, type?: any): string;
|
|
127
127
|
fetchPosition(symbol: string, params?: {}): Promise<Position>;
|
package/js/src/ndax.d.ts
CHANGED
|
@@ -71,8 +71,8 @@ export default class ndax extends Exchange {
|
|
|
71
71
|
network: any;
|
|
72
72
|
info: any;
|
|
73
73
|
}>;
|
|
74
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
75
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
74
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
75
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
76
76
|
parseTransactionStatusByType(status: any, type?: any): string;
|
|
77
77
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
78
78
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
package/js/src/novadax.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/novadax.js';
|
|
2
|
-
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class novadax
|
|
5
5
|
* @extends Exchange
|
|
@@ -10,7 +10,7 @@ export default class novadax extends Exchange {
|
|
|
10
10
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
11
11
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
12
12
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
13
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
13
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
14
14
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
15
15
|
parseTrade(trade: any, market?: any): Trade;
|
|
16
16
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -54,9 +54,9 @@ export default class novadax extends Exchange {
|
|
|
54
54
|
parseTransferStatus(status: any): string;
|
|
55
55
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
56
56
|
fetchAccounts(params?: {}): Promise<any[]>;
|
|
57
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
58
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
59
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
57
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
58
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
59
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
60
60
|
parseTransactionStatus(status: any): string;
|
|
61
61
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
62
62
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
package/js/src/oceanex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/oceanex.js';
|
|
2
|
-
import { Balances, Dictionary, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade } from './base/types.js';
|
|
2
|
+
import { Balances, Dictionary, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class oceanex
|
|
5
5
|
* @extends Exchange
|
|
@@ -8,7 +8,7 @@ export default class oceanex extends Exchange {
|
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
10
10
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
11
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
11
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
12
12
|
parseTicker(data: any, market?: any): Ticker;
|
|
13
13
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
14
14
|
fetchOrderBooks(symbols?: string[], limit?: Int, params?: {}): Promise<Dictionary<OrderBook>>;
|
package/js/src/okcoin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/okcoin.js';
|
|
2
|
-
import { Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class okcoin
|
|
5
5
|
* @extends Exchange
|
|
@@ -9,21 +9,21 @@ export default class okcoin extends Exchange {
|
|
|
9
9
|
fetchTime(params?: {}): Promise<number>;
|
|
10
10
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
11
11
|
parseMarkets(markets: any): any[];
|
|
12
|
-
parseMarket(market: any):
|
|
12
|
+
parseMarket(market: any): Market;
|
|
13
13
|
safeNetwork(networkId: any): string;
|
|
14
14
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
15
15
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
16
16
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
17
17
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
18
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
18
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
19
19
|
parseTrade(trade: any, market?: any): Trade;
|
|
20
20
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
21
21
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
22
22
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
23
|
-
parseAccountBalance(response: any):
|
|
24
|
-
fetchBalance(params?: {}): Promise<
|
|
25
|
-
parseTradingBalance(response: any):
|
|
26
|
-
parseFundingBalance(response: any):
|
|
23
|
+
parseAccountBalance(response: any): Balances;
|
|
24
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
25
|
+
parseTradingBalance(response: any): Balances;
|
|
26
|
+
parseFundingBalance(response: any): Balances;
|
|
27
27
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
28
28
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): any;
|
|
29
29
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
|
|
@@ -67,8 +67,8 @@ export default class okcoin extends Exchange {
|
|
|
67
67
|
};
|
|
68
68
|
parseTransferStatus(status: any): string;
|
|
69
69
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
70
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
71
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
70
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
71
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
72
72
|
parseTransactionStatus(status: any): string;
|
|
73
73
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
74
74
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -98,6 +98,6 @@ export default class okcoin extends Exchange {
|
|
|
98
98
|
body: any;
|
|
99
99
|
headers: any;
|
|
100
100
|
};
|
|
101
|
-
parseBalanceByType(type: any, response: any):
|
|
101
|
+
parseBalanceByType(type: any, response: any): Balances;
|
|
102
102
|
handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
103
103
|
}
|
package/js/src/okx.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/okx.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Transaction, Ticker, OrderBook } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Transaction, Ticker, OrderBook, Balances, Tickers, Market } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class okx
|
|
5
5
|
* @extends Exchange
|
|
@@ -66,7 +66,7 @@ export default class okx extends Exchange {
|
|
|
66
66
|
fetchAccounts(params?: {}): Promise<any[]>;
|
|
67
67
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
68
68
|
parseMarkets(markets: any): any[];
|
|
69
|
-
parseMarket(market: any):
|
|
69
|
+
parseMarket(market: any): Market;
|
|
70
70
|
fetchMarketsByType(type: any, params?: {}): Promise<any[]>;
|
|
71
71
|
safeNetwork(networkId: any): string;
|
|
72
72
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
@@ -74,15 +74,15 @@ export default class okx extends Exchange {
|
|
|
74
74
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
75
75
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
76
76
|
fetchTickersByType(type: any, symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
|
|
77
|
-
fetchTickers(symbols?: string[], params?: {}): Promise<
|
|
77
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
78
78
|
parseTrade(trade: any, market?: any): Trade;
|
|
79
79
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
80
80
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
81
81
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
82
82
|
fetchFundingRateHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
83
|
-
parseBalanceByType(type: any, response: any):
|
|
84
|
-
parseTradingBalance(response: any):
|
|
85
|
-
parseFundingBalance(response: any):
|
|
83
|
+
parseBalanceByType(type: any, response: any): Balances;
|
|
84
|
+
parseTradingBalance(response: any): Balances;
|
|
85
|
+
parseFundingBalance(response: any): Balances;
|
|
86
86
|
parseTradingFee(fee: any, market?: any): {
|
|
87
87
|
info: any;
|
|
88
88
|
symbol: any;
|
|
@@ -95,7 +95,7 @@ export default class okx extends Exchange {
|
|
|
95
95
|
maker: number;
|
|
96
96
|
taker: number;
|
|
97
97
|
}>;
|
|
98
|
-
fetchBalance(params?: {}): Promise<
|
|
98
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
99
99
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): any;
|
|
100
100
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
101
101
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
@@ -141,9 +141,9 @@ export default class okx extends Exchange {
|
|
|
141
141
|
fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<{}>;
|
|
142
142
|
fetchDepositAddress(code: string, params?: {}): Promise<any>;
|
|
143
143
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
144
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
144
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
145
145
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
146
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
146
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
147
147
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
148
148
|
parseTransactionStatus(status: any): string;
|
|
149
149
|
parseTransaction(transaction: any, currency?: any): Transaction;
|