ccxt 4.3.43 → 4.3.44
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/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/lykke.js +10 -2
- package/dist/cjs/src/ndax.js +5 -1
- package/dist/cjs/src/poloniexfutures.js +2 -2
- package/dist/cjs/src/pro/bitmex.js +9 -0
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/xt.js +134 -95
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/xt.d.ts +155 -0
- package/js/src/abstract/xt.js +11 -0
- package/js/src/lykke.d.ts +2 -2
- package/js/src/lykke.js +10 -2
- package/js/src/ndax.d.ts +1 -1
- package/js/src/ndax.js +5 -1
- package/js/src/poloniexfutures.js +2 -2
- package/js/src/pro/bitmex.js +9 -0
- package/js/src/pro/woo.js +1 -1
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/xt.d.ts +161 -0
- package/js/src/xt.js +4761 -0
- package/package.json +1 -1
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, TransferEntries, LeverageTiers } 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.43";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -107,6 +107,7 @@ import wazirx from './src/wazirx.js';
|
|
|
107
107
|
import whitebit from './src/whitebit.js';
|
|
108
108
|
import woo from './src/woo.js';
|
|
109
109
|
import woofipro from './src/woofipro.js';
|
|
110
|
+
import xt from './src/xt.js';
|
|
110
111
|
import yobit from './src/yobit.js';
|
|
111
112
|
import zaif from './src/zaif.js';
|
|
112
113
|
import zonda from './src/zonda.js';
|
|
@@ -278,6 +279,7 @@ declare const exchanges: {
|
|
|
278
279
|
whitebit: typeof whitebit;
|
|
279
280
|
woo: typeof woo;
|
|
280
281
|
woofipro: typeof woofipro;
|
|
282
|
+
xt: typeof xt;
|
|
281
283
|
yobit: typeof yobit;
|
|
282
284
|
zaif: typeof zaif;
|
|
283
285
|
zonda: typeof zonda;
|
|
@@ -524,9 +526,10 @@ declare const ccxt: {
|
|
|
524
526
|
whitebit: typeof whitebit;
|
|
525
527
|
woo: typeof woo;
|
|
526
528
|
woofipro: typeof woofipro;
|
|
529
|
+
xt: typeof xt;
|
|
527
530
|
yobit: typeof yobit;
|
|
528
531
|
zaif: typeof zaif;
|
|
529
532
|
zonda: typeof zonda;
|
|
530
533
|
} & typeof functions & typeof errors;
|
|
531
|
-
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, 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, TransferEntries, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
|
|
534
|
+
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, 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, TransferEntries, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
532
535
|
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.44';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -143,6 +143,7 @@ import wazirx from './src/wazirx.js';
|
|
|
143
143
|
import whitebit from './src/whitebit.js';
|
|
144
144
|
import woo from './src/woo.js';
|
|
145
145
|
import woofipro from './src/woofipro.js';
|
|
146
|
+
import xt from './src/xt.js';
|
|
146
147
|
import yobit from './src/yobit.js';
|
|
147
148
|
import zaif from './src/zaif.js';
|
|
148
149
|
import zonda from './src/zonda.js';
|
|
@@ -315,6 +316,7 @@ const exchanges = {
|
|
|
315
316
|
'whitebit': whitebit,
|
|
316
317
|
'woo': woo,
|
|
317
318
|
'woofipro': woofipro,
|
|
319
|
+
'xt': xt,
|
|
318
320
|
'yobit': yobit,
|
|
319
321
|
'zaif': zaif,
|
|
320
322
|
'zonda': zonda,
|
|
@@ -398,6 +400,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
398
400
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
399
401
|
//-----------------------------------------------------------------------------
|
|
400
402
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
401
|
-
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, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
|
|
403
|
+
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, 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
402
404
|
export default ccxt;
|
|
403
405
|
//-----------------------------------------------------------------------------
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicSpotGetCurrencies(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicSpotGetDepth(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicSpotGetKline(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicSpotGetSymbol(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicSpotGetTicker(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicSpotGetTickerBook(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicSpotGetTickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicSpotGetTicker24h(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicSpotGetTime(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicSpotGetTradeHistory(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicSpotGetTradeRecent(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
publicSpotGetWalletSupportCurrency(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicLinearGetFutureMarketV1PublicContractRiskBalance(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicLinearGetFutureMarketV1PublicContractOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
publicLinearGetFutureMarketV1PublicLeverageBracketDetail(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
publicLinearGetFutureMarketV1PublicLeverageBracketList(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
publicLinearGetFutureMarketV1PublicQAggTicker(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
publicLinearGetFutureMarketV1PublicQAggTickers(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
publicLinearGetFutureMarketV1PublicQDeal(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
publicLinearGetFutureMarketV1PublicQDepth(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
publicLinearGetFutureMarketV1PublicQFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
publicLinearGetFutureMarketV1PublicQFundingRateRecord(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
publicLinearGetFutureMarketV1PublicQIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
publicLinearGetFutureMarketV1PublicQKline(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
publicLinearGetFutureMarketV1PublicQMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
publicLinearGetFutureMarketV1PublicQSymbolIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
publicLinearGetFutureMarketV1PublicQSymbolMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicLinearGetFutureMarketV1PublicQTicker(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
publicLinearGetFutureMarketV1PublicQTickers(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
publicLinearGetFutureMarketV1PublicSymbolCoins(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
publicLinearGetFutureMarketV1PublicSymbolDetail(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
publicLinearGetFutureMarketV1PublicSymbolList(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
publicInverseGetFutureMarketV1PublicContractRiskBalance(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
publicInverseGetFutureMarketV1PublicContractOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
publicInverseGetFutureMarketV1PublicLeverageBracketDetail(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
publicInverseGetFutureMarketV1PublicLeverageBracketList(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
publicInverseGetFutureMarketV1PublicQAggTicker(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
publicInverseGetFutureMarketV1PublicQAggTickers(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
publicInverseGetFutureMarketV1PublicQDeal(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
publicInverseGetFutureMarketV1PublicQDepth(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
publicInverseGetFutureMarketV1PublicQFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
publicInverseGetFutureMarketV1PublicQFundingRateRecord(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
publicInverseGetFutureMarketV1PublicQIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
publicInverseGetFutureMarketV1PublicQKline(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
publicInverseGetFutureMarketV1PublicQMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
publicInverseGetFutureMarketV1PublicQSymbolIndexPrice(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
publicInverseGetFutureMarketV1PublicQSymbolMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
publicInverseGetFutureMarketV1PublicQTicker(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
publicInverseGetFutureMarketV1PublicQTickers(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicInverseGetFutureMarketV1PublicSymbolCoins(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicInverseGetFutureMarketV1PublicSymbolDetail(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
publicInverseGetFutureMarketV1PublicSymbolList(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
privateSpotGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privateSpotGetBalances(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
privateSpotGetBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
privateSpotGetDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
privateSpotGetDepositHistory(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privateSpotGetHistoryOrder(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
privateSpotGetOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privateSpotGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
privateSpotGetOrderOrderId(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
privateSpotGetTrade(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
privateSpotGetWithdrawHistory(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
privateSpotPostOrder(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
privateSpotPostWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
privateSpotPostBalanceTransfer(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
privateSpotPostBalanceAccountTransfer(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
privateSpotDeleteBatchOrder(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
privateSpotDeleteOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
privateSpotDeleteOrderOrderId(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
privateLinearGetFutureTradeV1EntrustPlanDetail(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
privateLinearGetFutureTradeV1EntrustPlanList(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
privateLinearGetFutureTradeV1EntrustPlanListHistory(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
privateLinearGetFutureTradeV1EntrustProfitDetail(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
privateLinearGetFutureTradeV1EntrustProfitList(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
privateLinearGetFutureTradeV1OrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
privateLinearGetFutureTradeV1OrderList(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
privateLinearGetFutureTradeV1OrderListHistory(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
privateLinearGetFutureTradeV1OrderTradeList(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
privateLinearGetFutureUserV1AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
privateLinearGetFutureUserV1BalanceBills(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
privateLinearGetFutureUserV1BalanceDetail(params?: {}): Promise<implicitReturnType>;
|
|
86
|
+
privateLinearGetFutureUserV1BalanceFundingRateList(params?: {}): Promise<implicitReturnType>;
|
|
87
|
+
privateLinearGetFutureUserV1BalanceList(params?: {}): Promise<implicitReturnType>;
|
|
88
|
+
privateLinearGetFutureUserV1PositionAdl(params?: {}): Promise<implicitReturnType>;
|
|
89
|
+
privateLinearGetFutureUserV1PositionList(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
privateLinearGetFutureUserV1UserCollectionList(params?: {}): Promise<implicitReturnType>;
|
|
91
|
+
privateLinearGetFutureUserV1UserListenKey(params?: {}): Promise<implicitReturnType>;
|
|
92
|
+
privateLinearPostFutureTradeV1EntrustCancelAllPlan(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
privateLinearPostFutureTradeV1EntrustCancelAllProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
privateLinearPostFutureTradeV1EntrustCancelPlan(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
privateLinearPostFutureTradeV1EntrustCancelProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
96
|
+
privateLinearPostFutureTradeV1EntrustCreatePlan(params?: {}): Promise<implicitReturnType>;
|
|
97
|
+
privateLinearPostFutureTradeV1EntrustCreateProfit(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
privateLinearPostFutureTradeV1EntrustUpdateProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
99
|
+
privateLinearPostFutureTradeV1OrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
100
|
+
privateLinearPostFutureTradeV1OrderCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
privateLinearPostFutureTradeV1OrderCreate(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
privateLinearPostFutureTradeV1OrderCreateBatch(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
privateLinearPostFutureUserV1AccountOpen(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
privateLinearPostFutureUserV1PositionAdjustLeverage(params?: {}): Promise<implicitReturnType>;
|
|
105
|
+
privateLinearPostFutureUserV1PositionAutoMargin(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privateLinearPostFutureUserV1PositionCloseAll(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
privateLinearPostFutureUserV1PositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
108
|
+
privateLinearPostFutureUserV1UserCollectionAdd(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
privateLinearPostFutureUserV1UserCollectionCancel(params?: {}): Promise<implicitReturnType>;
|
|
110
|
+
privateInverseGetFutureTradeV1EntrustPlanDetail(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
privateInverseGetFutureTradeV1EntrustPlanList(params?: {}): Promise<implicitReturnType>;
|
|
112
|
+
privateInverseGetFutureTradeV1EntrustPlanListHistory(params?: {}): Promise<implicitReturnType>;
|
|
113
|
+
privateInverseGetFutureTradeV1EntrustProfitDetail(params?: {}): Promise<implicitReturnType>;
|
|
114
|
+
privateInverseGetFutureTradeV1EntrustProfitList(params?: {}): Promise<implicitReturnType>;
|
|
115
|
+
privateInverseGetFutureTradeV1OrderDetail(params?: {}): Promise<implicitReturnType>;
|
|
116
|
+
privateInverseGetFutureTradeV1OrderList(params?: {}): Promise<implicitReturnType>;
|
|
117
|
+
privateInverseGetFutureTradeV1OrderListHistory(params?: {}): Promise<implicitReturnType>;
|
|
118
|
+
privateInverseGetFutureTradeV1OrderTradeList(params?: {}): Promise<implicitReturnType>;
|
|
119
|
+
privateInverseGetFutureUserV1AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
120
|
+
privateInverseGetFutureUserV1BalanceBills(params?: {}): Promise<implicitReturnType>;
|
|
121
|
+
privateInverseGetFutureUserV1BalanceDetail(params?: {}): Promise<implicitReturnType>;
|
|
122
|
+
privateInverseGetFutureUserV1BalanceFundingRateList(params?: {}): Promise<implicitReturnType>;
|
|
123
|
+
privateInverseGetFutureUserV1BalanceList(params?: {}): Promise<implicitReturnType>;
|
|
124
|
+
privateInverseGetFutureUserV1PositionAdl(params?: {}): Promise<implicitReturnType>;
|
|
125
|
+
privateInverseGetFutureUserV1PositionList(params?: {}): Promise<implicitReturnType>;
|
|
126
|
+
privateInverseGetFutureUserV1UserCollectionList(params?: {}): Promise<implicitReturnType>;
|
|
127
|
+
privateInverseGetFutureUserV1UserListenKey(params?: {}): Promise<implicitReturnType>;
|
|
128
|
+
privateInversePostFutureTradeV1EntrustCancelAllPlan(params?: {}): Promise<implicitReturnType>;
|
|
129
|
+
privateInversePostFutureTradeV1EntrustCancelAllProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
130
|
+
privateInversePostFutureTradeV1EntrustCancelPlan(params?: {}): Promise<implicitReturnType>;
|
|
131
|
+
privateInversePostFutureTradeV1EntrustCancelProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
privateInversePostFutureTradeV1EntrustCreatePlan(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
privateInversePostFutureTradeV1EntrustCreateProfit(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
privateInversePostFutureTradeV1EntrustUpdateProfitStop(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
privateInversePostFutureTradeV1OrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
privateInversePostFutureTradeV1OrderCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
privateInversePostFutureTradeV1OrderCreate(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
privateInversePostFutureTradeV1OrderCreateBatch(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
privateInversePostFutureUserV1AccountOpen(params?: {}): Promise<implicitReturnType>;
|
|
140
|
+
privateInversePostFutureUserV1PositionAdjustLeverage(params?: {}): Promise<implicitReturnType>;
|
|
141
|
+
privateInversePostFutureUserV1PositionAutoMargin(params?: {}): Promise<implicitReturnType>;
|
|
142
|
+
privateInversePostFutureUserV1PositionCloseAll(params?: {}): Promise<implicitReturnType>;
|
|
143
|
+
privateInversePostFutureUserV1PositionMargin(params?: {}): Promise<implicitReturnType>;
|
|
144
|
+
privateInversePostFutureUserV1UserCollectionAdd(params?: {}): Promise<implicitReturnType>;
|
|
145
|
+
privateInversePostFutureUserV1UserCollectionCancel(params?: {}): Promise<implicitReturnType>;
|
|
146
|
+
privateUserGetUserAccount(params?: {}): Promise<implicitReturnType>;
|
|
147
|
+
privateUserGetUserAccountApiKey(params?: {}): Promise<implicitReturnType>;
|
|
148
|
+
privateUserPostUserAccount(params?: {}): Promise<implicitReturnType>;
|
|
149
|
+
privateUserPostUserAccountApiKey(params?: {}): Promise<implicitReturnType>;
|
|
150
|
+
privateUserPutUserAccountApiKey(params?: {}): Promise<implicitReturnType>;
|
|
151
|
+
privateUserDeleteUserAccountApikeyId(params?: {}): Promise<implicitReturnType>;
|
|
152
|
+
}
|
|
153
|
+
declare abstract class Exchange extends _Exchange {
|
|
154
|
+
}
|
|
155
|
+
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/lykke.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export default class lykke extends Exchange {
|
|
|
19
19
|
parseOrderStatus(status: Str): string;
|
|
20
20
|
parseOrder(order: Dict, market?: Market): Order;
|
|
21
21
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
22
|
-
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<
|
|
23
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<
|
|
22
|
+
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
23
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
24
24
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
25
25
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
26
26
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
package/js/src/lykke.js
CHANGED
|
@@ -883,7 +883,10 @@ export default class lykke extends Exchange {
|
|
|
883
883
|
// "error":null
|
|
884
884
|
// }
|
|
885
885
|
//
|
|
886
|
-
|
|
886
|
+
const response = await this.privateDeleteOrdersOrderId(this.extend(request, params));
|
|
887
|
+
return this.safeOrder({
|
|
888
|
+
'info': response,
|
|
889
|
+
});
|
|
887
890
|
}
|
|
888
891
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
889
892
|
/**
|
|
@@ -910,7 +913,12 @@ export default class lykke extends Exchange {
|
|
|
910
913
|
// "error":null
|
|
911
914
|
// }
|
|
912
915
|
//
|
|
913
|
-
|
|
916
|
+
const response = await this.privateDeleteOrders(this.extend(request, params));
|
|
917
|
+
return [
|
|
918
|
+
this.safeOrder({
|
|
919
|
+
'info': response,
|
|
920
|
+
}),
|
|
921
|
+
];
|
|
914
922
|
}
|
|
915
923
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
916
924
|
/**
|
package/js/src/ndax.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default class ndax extends Exchange {
|
|
|
45
45
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
46
46
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
47
47
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
48
|
-
cancelAllOrders(symbol?: Str, params?: {}): Promise<
|
|
48
|
+
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
49
49
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
|
|
50
50
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
51
51
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
package/js/src/ndax.js
CHANGED
|
@@ -1575,7 +1575,11 @@ export default class ndax extends Exchange {
|
|
|
1575
1575
|
// "detail":null
|
|
1576
1576
|
// }
|
|
1577
1577
|
//
|
|
1578
|
-
return
|
|
1578
|
+
return [
|
|
1579
|
+
this.safeOrder({
|
|
1580
|
+
'info': response,
|
|
1581
|
+
}),
|
|
1582
|
+
];
|
|
1579
1583
|
}
|
|
1580
1584
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1581
1585
|
/**
|
|
@@ -1239,7 +1239,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1239
1239
|
const cancelledOrderIdsLength = cancelledOrderIds.length;
|
|
1240
1240
|
for (let i = 0; i < cancelledOrderIdsLength; i++) {
|
|
1241
1241
|
const cancelledOrderId = this.safeString(cancelledOrderIds, i);
|
|
1242
|
-
result.push({
|
|
1242
|
+
result.push(this.safeOrder({
|
|
1243
1243
|
'id': cancelledOrderId,
|
|
1244
1244
|
'clientOrderId': undefined,
|
|
1245
1245
|
'timestamp': undefined,
|
|
@@ -1261,7 +1261,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1261
1261
|
'postOnly': undefined,
|
|
1262
1262
|
'stopPrice': undefined,
|
|
1263
1263
|
'info': response,
|
|
1264
|
-
});
|
|
1264
|
+
}));
|
|
1265
1265
|
}
|
|
1266
1266
|
return result;
|
|
1267
1267
|
}
|
package/js/src/pro/bitmex.js
CHANGED
|
@@ -1539,11 +1539,17 @@ export default class bitmex extends bitmexRest {
|
|
|
1539
1539
|
//
|
|
1540
1540
|
const action = this.safeString(message, 'action');
|
|
1541
1541
|
const table = this.safeString(message, 'table');
|
|
1542
|
+
if (table === undefined) {
|
|
1543
|
+
return; // protecting from weird updates
|
|
1544
|
+
}
|
|
1542
1545
|
const data = this.safeValue(message, 'data', []);
|
|
1543
1546
|
// if it's an initial snapshot
|
|
1544
1547
|
if (action === 'partial') {
|
|
1545
1548
|
const filter = this.safeDict(message, 'filter', {});
|
|
1546
1549
|
const marketId = this.safeValue(filter, 'symbol');
|
|
1550
|
+
if (marketId === undefined) {
|
|
1551
|
+
return; // protecting from weird update
|
|
1552
|
+
}
|
|
1547
1553
|
const market = this.safeMarket(marketId);
|
|
1548
1554
|
const symbol = market['symbol'];
|
|
1549
1555
|
if (table === 'orderBookL2') {
|
|
@@ -1576,6 +1582,9 @@ export default class bitmex extends bitmexRest {
|
|
|
1576
1582
|
const numUpdatesByMarketId = {};
|
|
1577
1583
|
for (let i = 0; i < data.length; i++) {
|
|
1578
1584
|
const marketId = this.safeValue(data[i], 'symbol');
|
|
1585
|
+
if (marketId === undefined) {
|
|
1586
|
+
return; // protecting from weird update
|
|
1587
|
+
}
|
|
1579
1588
|
if (!(marketId in numUpdatesByMarketId)) {
|
|
1580
1589
|
numUpdatesByMarketId[marketId] = 0;
|
|
1581
1590
|
}
|
package/js/src/pro/woo.js
CHANGED
|
@@ -15,7 +15,7 @@ export declare class BigInteger {
|
|
|
15
15
|
protected intValue(): number;
|
|
16
16
|
protected byteValue(): number;
|
|
17
17
|
protected shortValue(): number;
|
|
18
|
-
protected signum():
|
|
18
|
+
protected signum(): 0 | 1 | -1;
|
|
19
19
|
toByteArray(): number[];
|
|
20
20
|
protected equals(a: BigInteger): boolean;
|
|
21
21
|
protected min(a: BigInteger): BigInteger;
|
package/js/src/xt.d.ts
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import Exchange from './abstract/xt.js';
|
|
2
|
+
import { Currencies, Currency, Dict, FundingHistory, FundingRateHistory, Int, LeverageTier, MarginModification, Market, Num, OHLCV, Order, OrderSide, OrderType, Str, Tickers, Transaction, TransferEntry } from './base/types.js';
|
|
3
|
+
export default class xt extends Exchange {
|
|
4
|
+
describe(): any;
|
|
5
|
+
nonce(): number;
|
|
6
|
+
fetchTime(params?: {}): Promise<number>;
|
|
7
|
+
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
8
|
+
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
9
|
+
fetchSpotMarkets(params?: {}): Promise<any[]>;
|
|
10
|
+
fetchSwapAndFutureMarkets(params?: {}): Promise<any[]>;
|
|
11
|
+
parseMarkets(markets: any): any[];
|
|
12
|
+
parseMarket(market: Dict): Market;
|
|
13
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
14
|
+
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
15
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
|
|
16
|
+
fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
|
|
17
|
+
fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
18
|
+
fetchBidsAsks(symbols?: string[], params?: {}): Promise<Tickers>;
|
|
19
|
+
parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
|
|
20
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
|
|
21
|
+
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
|
|
22
|
+
parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
|
|
23
|
+
fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
|
|
24
|
+
parseBalance(response: any): import("./base/types.js").Balances;
|
|
25
|
+
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
26
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
27
|
+
createSpotOrder(symbol: string, type: any, side: any, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
28
|
+
createContractOrder(symbol: string, type: any, side: any, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
29
|
+
fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
30
|
+
fetchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
31
|
+
fetchOrdersByStatus(status: any, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
32
|
+
fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
33
|
+
fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
34
|
+
fetchCanceledOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
35
|
+
cancelOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
36
|
+
cancelAllOrders(symbol?: string, params?: {}): Promise<Order[]>;
|
|
37
|
+
cancelOrders(ids: string[], symbol?: string, params?: {}): Promise<Order[]>;
|
|
38
|
+
parseOrder(order: any, market?: any): Order;
|
|
39
|
+
parseOrderStatus(status: any): string;
|
|
40
|
+
fetchLedger(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
41
|
+
parseLedgerEntry(item: any, currency?: any): {
|
|
42
|
+
id: string;
|
|
43
|
+
direction: string;
|
|
44
|
+
account: any;
|
|
45
|
+
referenceId: any;
|
|
46
|
+
referenceAccount: any;
|
|
47
|
+
type: string;
|
|
48
|
+
currency: string;
|
|
49
|
+
amount: number;
|
|
50
|
+
timestamp: number;
|
|
51
|
+
datetime: string;
|
|
52
|
+
before: any;
|
|
53
|
+
after: number;
|
|
54
|
+
status: any;
|
|
55
|
+
fee: {
|
|
56
|
+
currency: any;
|
|
57
|
+
cost: any;
|
|
58
|
+
};
|
|
59
|
+
info: any;
|
|
60
|
+
};
|
|
61
|
+
parseLedgerEntryType(type: any): string;
|
|
62
|
+
fetchDepositAddress(code: string, params?: {}): Promise<{
|
|
63
|
+
currency: string;
|
|
64
|
+
address: string;
|
|
65
|
+
tag: string;
|
|
66
|
+
network: any;
|
|
67
|
+
info: any;
|
|
68
|
+
}>;
|
|
69
|
+
parseDepositAddress(depositAddress: any, currency?: any): {
|
|
70
|
+
currency: string;
|
|
71
|
+
address: string;
|
|
72
|
+
tag: string;
|
|
73
|
+
network: any;
|
|
74
|
+
info: any;
|
|
75
|
+
};
|
|
76
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
77
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
78
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
79
|
+
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
80
|
+
parseTransactionStatus(status: any): string;
|
|
81
|
+
setLeverage(leverage: Int, symbol?: string, params?: {}): Promise<any>;
|
|
82
|
+
addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
83
|
+
reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
84
|
+
modifyMarginHelper(symbol: string, amount: any, addOrReduce: any, params?: {}): Promise<MarginModification>;
|
|
85
|
+
parseMarginModification(data: any, market?: any): MarginModification;
|
|
86
|
+
fetchLeverageTiers(symbols?: string[], params?: {}): Promise<{}>;
|
|
87
|
+
parseLeverageTiers(response: any, symbols?: any, marketIdKey?: any): {};
|
|
88
|
+
fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<LeverageTier[]>;
|
|
89
|
+
parseMarketLeverageTiers(info: any, market?: any): any[];
|
|
90
|
+
fetchFundingRateHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
91
|
+
fetchFundingRate(symbol: string, params?: {}): Promise<{
|
|
92
|
+
info: any;
|
|
93
|
+
symbol: string;
|
|
94
|
+
markPrice: any;
|
|
95
|
+
indexPrice: any;
|
|
96
|
+
interestRate: any;
|
|
97
|
+
estimatedSettlePrice: any;
|
|
98
|
+
timestamp: any;
|
|
99
|
+
datetime: any;
|
|
100
|
+
fundingRate: number;
|
|
101
|
+
fundingTimestamp: number;
|
|
102
|
+
fundingDatetime: string;
|
|
103
|
+
nextFundingRate: any;
|
|
104
|
+
nextFundingTimestamp: any;
|
|
105
|
+
nextFundingDatetime: any;
|
|
106
|
+
previousFundingRate: any;
|
|
107
|
+
previousFundingTimestamp: any;
|
|
108
|
+
previousFundingDatetime: any;
|
|
109
|
+
}>;
|
|
110
|
+
parseFundingRate(contract: any, market?: any): {
|
|
111
|
+
info: any;
|
|
112
|
+
symbol: string;
|
|
113
|
+
markPrice: any;
|
|
114
|
+
indexPrice: any;
|
|
115
|
+
interestRate: any;
|
|
116
|
+
estimatedSettlePrice: any;
|
|
117
|
+
timestamp: any;
|
|
118
|
+
datetime: any;
|
|
119
|
+
fundingRate: number;
|
|
120
|
+
fundingTimestamp: number;
|
|
121
|
+
fundingDatetime: string;
|
|
122
|
+
nextFundingRate: any;
|
|
123
|
+
nextFundingTimestamp: any;
|
|
124
|
+
nextFundingDatetime: any;
|
|
125
|
+
previousFundingRate: any;
|
|
126
|
+
previousFundingTimestamp: any;
|
|
127
|
+
previousFundingDatetime: any;
|
|
128
|
+
};
|
|
129
|
+
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
|
|
130
|
+
parseFundingHistory(contract: any, market?: any): {
|
|
131
|
+
info: any;
|
|
132
|
+
symbol: string;
|
|
133
|
+
code: string;
|
|
134
|
+
timestamp: number;
|
|
135
|
+
datetime: string;
|
|
136
|
+
id: string;
|
|
137
|
+
amount: number;
|
|
138
|
+
};
|
|
139
|
+
fetchPosition(symbol: string, params?: {}): Promise<import("./base/types.js").Position>;
|
|
140
|
+
fetchPositions(symbols?: string[], params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
141
|
+
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
|
142
|
+
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
143
|
+
parseTransfer(transfer: any, currency?: any): {
|
|
144
|
+
info: any;
|
|
145
|
+
id: string;
|
|
146
|
+
timestamp: any;
|
|
147
|
+
datetime: any;
|
|
148
|
+
currency: any;
|
|
149
|
+
amount: any;
|
|
150
|
+
fromAccount: any;
|
|
151
|
+
toAccount: any;
|
|
152
|
+
status: any;
|
|
153
|
+
};
|
|
154
|
+
handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
155
|
+
sign(path: any, api?: any[], method?: string, params?: {}, headers?: any, body?: any): {
|
|
156
|
+
url: any;
|
|
157
|
+
method: string;
|
|
158
|
+
body: any;
|
|
159
|
+
headers: any;
|
|
160
|
+
};
|
|
161
|
+
}
|