ccxt 4.3.68 → 4.3.69
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 +5 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +359 -353
- package/dist/cjs/src/bingx.js +134 -75
- package/dist/cjs/src/btcbox.js +2 -1
- package/dist/cjs/src/coinbaseinternational.js +79 -1
- package/dist/cjs/src/hyperliquid.js +0 -3
- package/dist/cjs/src/kucoin.js +12 -5
- package/dist/cjs/src/oxfun.js +2 -2
- package/dist/cjs/src/poloniex.js +33 -33
- package/dist/cjs/src/poloniexfutures.js +26 -26
- package/dist/cjs/src/pro/poloniex.js +13 -13
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/js/ccxt.d.ts +3 -3
- package/js/ccxt.js +1 -1
- package/js/src/base/Exchange.d.ts +107 -82
- package/js/src/base/Exchange.js +359 -353
- package/js/src/base/types.d.ts +0 -2
- package/js/src/binance.d.ts +2 -2
- package/js/src/bingx.d.ts +2 -2
- package/js/src/bingx.js +134 -75
- package/js/src/bitget.d.ts +2 -2
- package/js/src/bitmart.d.ts +2 -2
- package/js/src/bitrue.d.ts +2 -2
- package/js/src/btcbox.js +2 -1
- package/js/src/bybit.d.ts +2 -2
- package/js/src/coinbaseinternational.d.ts +11 -0
- package/js/src/coinbaseinternational.js +79 -1
- package/js/src/coinex.d.ts +2 -2
- package/js/src/coinlist.d.ts +2 -2
- package/js/src/deribit.d.ts +2 -2
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/hyperliquid.js +0 -3
- package/js/src/kucoin.js +12 -5
- package/js/src/latoken.d.ts +2 -2
- package/js/src/mexc.d.ts +2 -2
- package/js/src/okx.d.ts +2 -2
- package/js/src/oxfun.d.ts +1 -1
- package/js/src/oxfun.js +2 -2
- package/js/src/phemex.d.ts +2 -2
- package/js/src/poloniex.js +33 -33
- package/js/src/poloniexfutures.js +26 -26
- package/js/src/pro/poloniex.js +13 -13
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/woo.d.ts +2 -2
- package/package.json +1 -1
package/js/ccxt.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Exchange } from './src/base/Exchange.js';
|
|
|
2
2
|
import { Precise } from './src/base/Precise.js';
|
|
3
3
|
import * as functions from './src/base/functions.js';
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
|
-
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates,
|
|
5
|
+
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.68";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -546,5 +546,5 @@ declare const ccxt: {
|
|
|
546
546
|
zaif: typeof zaif;
|
|
547
547
|
zonda: typeof zonda;
|
|
548
548
|
} & typeof functions & typeof errors;
|
|
549
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates,
|
|
549
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, 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, coinbaseadvanced, coinbaseexchange, coinbaseinternational, 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, oxfun, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
550
550
|
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, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending } 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.69';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -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, Dict,
|
|
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, FundingRates, LeverageTiers, Bool, int } from './types.js';
|
|
7
7
|
export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, Bool, 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';
|
|
@@ -18,6 +18,9 @@ export default class Exchange {
|
|
|
18
18
|
throttleProp: any;
|
|
19
19
|
sleep: (ms: any) => Promise<unknown>;
|
|
20
20
|
api: any;
|
|
21
|
+
certified: boolean;
|
|
22
|
+
pro: boolean;
|
|
23
|
+
countries: Str[];
|
|
21
24
|
proxy: any;
|
|
22
25
|
proxyUrl: string;
|
|
23
26
|
proxy_url: string;
|
|
@@ -104,8 +107,11 @@ export default class Exchange {
|
|
|
104
107
|
requiresWeb3: boolean;
|
|
105
108
|
requiresEddsa: boolean;
|
|
106
109
|
precision: {
|
|
107
|
-
amount:
|
|
108
|
-
price:
|
|
110
|
+
amount: Num;
|
|
111
|
+
price: Num;
|
|
112
|
+
cost?: Num;
|
|
113
|
+
base?: Num;
|
|
114
|
+
quote?: Num;
|
|
109
115
|
};
|
|
110
116
|
enableLastJsonResponse: boolean;
|
|
111
117
|
enableLastHttpResponse: boolean;
|
|
@@ -120,18 +126,23 @@ export default class Exchange {
|
|
|
120
126
|
id: string;
|
|
121
127
|
markets: Dictionary<any>;
|
|
122
128
|
has: Dictionary<boolean | 'emulated'>;
|
|
123
|
-
status:
|
|
129
|
+
status: {
|
|
130
|
+
status: Str;
|
|
131
|
+
updated: Num;
|
|
132
|
+
eta: Num;
|
|
133
|
+
url: Str;
|
|
134
|
+
info: any;
|
|
135
|
+
};
|
|
124
136
|
requiredCredentials: {
|
|
125
|
-
apiKey:
|
|
126
|
-
secret:
|
|
127
|
-
uid:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
token: boolean;
|
|
137
|
+
apiKey: Bool;
|
|
138
|
+
secret: Bool;
|
|
139
|
+
uid: Bool;
|
|
140
|
+
login: Bool;
|
|
141
|
+
password: Bool;
|
|
142
|
+
twofa: Bool;
|
|
143
|
+
privateKey: Bool;
|
|
144
|
+
walletAddress: Bool;
|
|
145
|
+
token: Bool;
|
|
135
146
|
};
|
|
136
147
|
rateLimit: Num;
|
|
137
148
|
tokenBucket: any;
|
|
@@ -144,7 +155,20 @@ export default class Exchange {
|
|
|
144
155
|
leverage?: MinMax;
|
|
145
156
|
price?: MinMax;
|
|
146
157
|
};
|
|
147
|
-
fees:
|
|
158
|
+
fees: {
|
|
159
|
+
trading: {
|
|
160
|
+
tierBased: Bool;
|
|
161
|
+
percentage: Bool;
|
|
162
|
+
taker: Num;
|
|
163
|
+
maker: Num;
|
|
164
|
+
};
|
|
165
|
+
funding: {
|
|
166
|
+
tierBased: Bool;
|
|
167
|
+
percentage: Bool;
|
|
168
|
+
withdraw: {};
|
|
169
|
+
deposit: {};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
148
172
|
markets_by_id: Dictionary<any>;
|
|
149
173
|
symbols: string[];
|
|
150
174
|
ids: string[];
|
|
@@ -284,12 +308,78 @@ export default class Exchange {
|
|
|
284
308
|
crc32: typeof functions.crc32;
|
|
285
309
|
packb: typeof functions.packb;
|
|
286
310
|
urlencodeBase64: (payload: string | Uint8Array) => string;
|
|
311
|
+
constructor(userConfig?: {});
|
|
312
|
+
encodeURIComponent(...args: any[]): string;
|
|
313
|
+
checkRequiredVersion(requiredVersion: any, error?: boolean): boolean;
|
|
314
|
+
checkAddress(address: any): any;
|
|
315
|
+
initRestRateLimiter(): void;
|
|
316
|
+
throttle(cost?: any): any;
|
|
317
|
+
defineRestApiEndpoint(methodName: any, uppercaseMethod: any, lowercaseMethod: any, camelcaseMethod: any, path: any, paths: any, config?: {}): void;
|
|
318
|
+
defineRestApi(api: any, methodName: any, paths?: any[]): void;
|
|
319
|
+
log(...args: any[]): void;
|
|
320
|
+
httpProxyAgentModule: any;
|
|
321
|
+
httpsProxyAgentModule: any;
|
|
322
|
+
socksProxyAgentModule: any;
|
|
323
|
+
socksProxyAgentModuleChecked: boolean;
|
|
324
|
+
proxyDictionaries: any;
|
|
325
|
+
proxiesModulesLoading: Promise<any>;
|
|
326
|
+
loadProxyModules(): Promise<any>;
|
|
327
|
+
setProxyAgents(httpProxy: any, httpsProxy: any, socksProxy: any): any;
|
|
328
|
+
loadHttpProxyAgent(): Promise<any>;
|
|
329
|
+
getHttpAgentIfNeeded(url: any): any;
|
|
330
|
+
fetch(url: any, method?: string, headers?: any, body?: any): Promise<any>;
|
|
331
|
+
parseJson(jsonString: any): any;
|
|
332
|
+
getResponseHeaders(response: any): {};
|
|
333
|
+
handleRestResponse(response: any, url: any, method?: string, requestHeaders?: any, requestBody?: any): any;
|
|
334
|
+
onRestResponse(statusCode: any, statusText: any, url: any, method: any, responseHeaders: any, responseBody: any, requestHeaders: any, requestBody: any): any;
|
|
335
|
+
onJsonResponse(responseBody: any): any;
|
|
336
|
+
loadMarketsHelper(reload?: boolean, params?: {}): Promise<Dictionary<any>>;
|
|
337
|
+
loadMarkets(reload?: boolean, params?: {}): Promise<Dictionary<Market>>;
|
|
338
|
+
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
339
|
+
fetchCurrenciesWs(params?: {}): Promise<unknown>;
|
|
340
|
+
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
341
|
+
fetchMarketsWs(params?: {}): Promise<Market[]>;
|
|
342
|
+
checkRequiredDependencies(): void;
|
|
343
|
+
parseNumber(value: any, d?: Num): number;
|
|
344
|
+
checkOrderArguments(market: any, type: any, side: any, amount: any, price: any, params: any): void;
|
|
345
|
+
handleHttpStatusCode(code: any, reason: any, url: any, method: any, body: any): void;
|
|
346
|
+
remove0xPrefix(hexData: any): any;
|
|
347
|
+
spawn(method: any, ...args: any[]): import("./ws/Future.js").FutureInterface;
|
|
348
|
+
delay(timeout: any, method: any, ...args: any[]): void;
|
|
349
|
+
orderBook(snapshot?: {}, depth?: number): WsOrderBook;
|
|
350
|
+
indexedOrderBook(snapshot?: {}, depth?: number): IndexedOrderBook;
|
|
351
|
+
countedOrderBook(snapshot?: {}, depth?: number): CountedOrderBook;
|
|
352
|
+
handleMessage(client: any, message: any): void;
|
|
353
|
+
ping(client: Client): any;
|
|
354
|
+
client(url: string): WsClient;
|
|
355
|
+
watchMultiple(url: string, messageHashes: string[], message?: any, subscribeHashes?: any, subscription?: any): import("./ws/Future.js").FutureInterface;
|
|
356
|
+
watch(url: string, messageHash: string, message?: any, subscribeHash?: any, subscription?: any): any;
|
|
357
|
+
onConnected(client: any, message?: any): void;
|
|
358
|
+
onError(client: any, error: any): void;
|
|
359
|
+
onClose(client: any, error: any): void;
|
|
360
|
+
close(): Promise<void>;
|
|
361
|
+
loadOrderBook(client: any, messageHash: string, symbol: string, limit?: Int, params?: {}): Promise<void>;
|
|
362
|
+
convertToBigInt(value: string): bigint;
|
|
363
|
+
stringToCharsArray(value: string): string[];
|
|
364
|
+
valueIsDefined(value: any): boolean;
|
|
365
|
+
arraySlice(array: any, first: any, second?: any): any;
|
|
366
|
+
getProperty(obj: any, property: any, defaultValue?: any): any;
|
|
367
|
+
setProperty(obj: any, property: any, defaultValue?: any): void;
|
|
368
|
+
axolotl(payload: any, hexKey: any, ed25519: any): string;
|
|
369
|
+
fixStringifiedJsonMembers(content: string): any;
|
|
370
|
+
ethAbiEncode(types: any, args: any): Uint8Array;
|
|
371
|
+
ethEncodeStructuredData(domain: any, messageTypes: any, messageData: any): Uint8Array;
|
|
372
|
+
intToBase16(elem: any): string;
|
|
373
|
+
extendExchangeOptions(newOptions: Dict): void;
|
|
374
|
+
createSafeDictionary(): {};
|
|
375
|
+
randomBytes(length: number): string;
|
|
287
376
|
describe(): {
|
|
288
377
|
id: any;
|
|
289
378
|
name: any;
|
|
290
379
|
countries: any;
|
|
291
380
|
enableRateLimit: boolean;
|
|
292
381
|
rateLimit: number;
|
|
382
|
+
timeout: number;
|
|
293
383
|
certified: boolean;
|
|
294
384
|
pro: boolean;
|
|
295
385
|
alias: boolean;
|
|
@@ -607,71 +697,6 @@ export default class Exchange {
|
|
|
607
697
|
};
|
|
608
698
|
};
|
|
609
699
|
};
|
|
610
|
-
constructor(userConfig?: {});
|
|
611
|
-
encodeURIComponent(...args: any[]): string;
|
|
612
|
-
checkRequiredVersion(requiredVersion: any, error?: boolean): boolean;
|
|
613
|
-
checkAddress(address: any): any;
|
|
614
|
-
initRestRateLimiter(): void;
|
|
615
|
-
throttle(cost?: any): any;
|
|
616
|
-
defineRestApiEndpoint(methodName: any, uppercaseMethod: any, lowercaseMethod: any, camelcaseMethod: any, path: any, paths: any, config?: {}): void;
|
|
617
|
-
defineRestApi(api: any, methodName: any, paths?: any[]): void;
|
|
618
|
-
log(...args: any[]): void;
|
|
619
|
-
httpProxyAgentModule: any;
|
|
620
|
-
httpsProxyAgentModule: any;
|
|
621
|
-
socksProxyAgentModule: any;
|
|
622
|
-
socksProxyAgentModuleChecked: boolean;
|
|
623
|
-
proxyDictionaries: any;
|
|
624
|
-
proxiesModulesLoading: Promise<any>;
|
|
625
|
-
loadProxyModules(): Promise<any>;
|
|
626
|
-
setProxyAgents(httpProxy: any, httpsProxy: any, socksProxy: any): any;
|
|
627
|
-
loadHttpProxyAgent(): Promise<any>;
|
|
628
|
-
getHttpAgentIfNeeded(url: any): any;
|
|
629
|
-
fetch(url: any, method?: string, headers?: any, body?: any): Promise<any>;
|
|
630
|
-
parseJson(jsonString: any): any;
|
|
631
|
-
getResponseHeaders(response: any): {};
|
|
632
|
-
handleRestResponse(response: any, url: any, method?: string, requestHeaders?: any, requestBody?: any): any;
|
|
633
|
-
onRestResponse(statusCode: any, statusText: any, url: any, method: any, responseHeaders: any, responseBody: any, requestHeaders: any, requestBody: any): any;
|
|
634
|
-
onJsonResponse(responseBody: any): any;
|
|
635
|
-
loadMarketsHelper(reload?: boolean, params?: {}): Promise<Dictionary<any>>;
|
|
636
|
-
loadMarkets(reload?: boolean, params?: {}): Promise<Dictionary<Market>>;
|
|
637
|
-
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
638
|
-
fetchCurrenciesWs(params?: {}): Promise<unknown>;
|
|
639
|
-
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
640
|
-
fetchMarketsWs(params?: {}): Promise<Market[]>;
|
|
641
|
-
checkRequiredDependencies(): void;
|
|
642
|
-
parseNumber(value: any, d?: Num): number;
|
|
643
|
-
checkOrderArguments(market: any, type: any, side: any, amount: any, price: any, params: any): void;
|
|
644
|
-
handleHttpStatusCode(code: any, reason: any, url: any, method: any, body: any): void;
|
|
645
|
-
remove0xPrefix(hexData: any): any;
|
|
646
|
-
spawn(method: any, ...args: any[]): import("./ws/Future.js").FutureInterface;
|
|
647
|
-
delay(timeout: any, method: any, ...args: any[]): void;
|
|
648
|
-
orderBook(snapshot?: {}, depth?: number): WsOrderBook;
|
|
649
|
-
indexedOrderBook(snapshot?: {}, depth?: number): IndexedOrderBook;
|
|
650
|
-
countedOrderBook(snapshot?: {}, depth?: number): CountedOrderBook;
|
|
651
|
-
handleMessage(client: any, message: any): void;
|
|
652
|
-
ping(client: Client): any;
|
|
653
|
-
client(url: string): WsClient;
|
|
654
|
-
watchMultiple(url: string, messageHashes: string[], message?: any, subscribeHashes?: any, subscription?: any): import("./ws/Future.js").FutureInterface;
|
|
655
|
-
watch(url: string, messageHash: string, message?: any, subscribeHash?: any, subscription?: any): any;
|
|
656
|
-
onConnected(client: any, message?: any): void;
|
|
657
|
-
onError(client: any, error: any): void;
|
|
658
|
-
onClose(client: any, error: any): void;
|
|
659
|
-
close(): Promise<void>;
|
|
660
|
-
loadOrderBook(client: any, messageHash: string, symbol: string, limit?: Int, params?: {}): Promise<void>;
|
|
661
|
-
convertToBigInt(value: string): bigint;
|
|
662
|
-
stringToCharsArray(value: string): string[];
|
|
663
|
-
valueIsDefined(value: any): boolean;
|
|
664
|
-
arraySlice(array: any, first: any, second?: any): any;
|
|
665
|
-
getProperty(obj: any, property: any, defaultValue?: any): any;
|
|
666
|
-
setProperty(obj: any, property: any, defaultValue?: any): void;
|
|
667
|
-
axolotl(payload: any, hexKey: any, ed25519: any): string;
|
|
668
|
-
fixStringifiedJsonMembers(content: string): any;
|
|
669
|
-
ethAbiEncode(types: any, args: any): Uint8Array;
|
|
670
|
-
ethEncodeStructuredData(domain: any, messageTypes: any, messageData: any): Uint8Array;
|
|
671
|
-
intToBase16(elem: any): string;
|
|
672
|
-
extendExchangeOptions(newOptions: Dict): void;
|
|
673
|
-
createSafeDictionary(): {};
|
|
674
|
-
randomBytes(length: number): string;
|
|
675
700
|
safeBoolN(dictionaryOrList: any, keys: IndexType[], defaultValue?: boolean): boolean | undefined;
|
|
676
701
|
safeBool2(dictionary: any, key1: IndexType, key2: IndexType, defaultValue?: boolean): boolean | undefined;
|
|
677
702
|
safeBool(dictionary: any, key: IndexType, defaultValue?: boolean): boolean | undefined;
|
|
@@ -853,7 +878,7 @@ export default class Exchange {
|
|
|
853
878
|
parseAccounts(accounts: any[], params?: {}): Account[];
|
|
854
879
|
parseTrades(trades: any[], market?: Market, since?: Int, limit?: Int, params?: {}): Trade[];
|
|
855
880
|
parseTransactions(transactions: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): Transaction[];
|
|
856
|
-
parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}):
|
|
881
|
+
parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): TransferEntry[];
|
|
857
882
|
parseLedger(data: any, currency?: Currency, since?: Int, limit?: Int, params?: {}): any;
|
|
858
883
|
nonce(): number;
|
|
859
884
|
setHeaders(headers: any): any;
|
|
@@ -1113,6 +1138,6 @@ export default class Exchange {
|
|
|
1113
1138
|
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
1114
1139
|
parseMarginModifications(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): MarginModification[];
|
|
1115
1140
|
fetchTransfer(id: string, code?: Str, params?: {}): Promise<TransferEntry>;
|
|
1116
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
1141
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
1117
1142
|
}
|
|
1118
1143
|
export { Exchange, };
|