ccxt 4.4.36 → 4.4.37
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 -7
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +6 -6
- package/dist/cjs/src/abstract/bitfinex1.js +9 -0
- package/dist/cjs/src/base/Exchange.js +6 -1
- package/dist/cjs/src/bitfinex.js +3178 -1161
- package/dist/cjs/src/bitfinex1.js +1760 -0
- package/dist/cjs/src/coinbase.js +87 -0
- package/dist/cjs/src/gate.js +1 -1
- package/dist/cjs/src/hyperliquid.js +125 -14
- package/dist/cjs/src/paradex.js +4 -2
- package/dist/cjs/src/pro/bitfinex.js +760 -271
- package/dist/cjs/src/pro/bitfinex1.js +675 -0
- package/dist/cjs/src/pro/probit.js +1 -0
- package/js/ccxt.d.ts +8 -8
- package/js/ccxt.js +6 -6
- package/js/src/abstract/bitfinex.d.ts +135 -64
- package/js/src/abstract/bitfinex1.d.ts +72 -0
- package/js/src/base/Exchange.js +6 -1
- package/js/src/bitfinex.d.ts +316 -106
- package/js/src/bitfinex.js +3179 -1162
- package/js/src/bitfinex1.d.ts +296 -0
- package/js/src/bitfinex1.js +1761 -0
- package/js/src/coinbase.d.ts +33 -0
- package/js/src/coinbase.js +87 -0
- package/js/src/gate.js +1 -1
- package/js/src/hyperliquid.d.ts +6 -1
- package/js/src/hyperliquid.js +125 -14
- package/js/src/paradex.d.ts +2 -0
- package/js/src/paradex.js +4 -2
- package/js/src/pro/bitfinex.d.ts +42 -10
- package/js/src/pro/bitfinex.js +761 -272
- package/js/src/pro/bitfinex1.d.ts +67 -0
- package/js/src/pro/bitfinex1.js +676 -0
- package/js/src/pro/probit.js +1 -0
- package/package.json +1 -1
- package/js/src/abstract/bitfinex2.d.ts +0 -143
- /package/js/src/abstract/{bitfinex2.js → bitfinex1.js} +0 -0
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.4.
|
|
7
|
+
declare const version = "4.4.36";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -20,7 +20,7 @@ import bitbank from './src/bitbank.js';
|
|
|
20
20
|
import bitbns from './src/bitbns.js';
|
|
21
21
|
import bitcoincom from './src/bitcoincom.js';
|
|
22
22
|
import bitfinex from './src/bitfinex.js';
|
|
23
|
-
import
|
|
23
|
+
import bitfinex1 from './src/bitfinex1.js';
|
|
24
24
|
import bitflyer from './src/bitflyer.js';
|
|
25
25
|
import bitget from './src/bitget.js';
|
|
26
26
|
import bithumb from './src/bithumb.js';
|
|
@@ -126,7 +126,7 @@ import binanceusdmPro from './src/pro/binanceusdm.js';
|
|
|
126
126
|
import bingxPro from './src/pro/bingx.js';
|
|
127
127
|
import bitcoincomPro from './src/pro/bitcoincom.js';
|
|
128
128
|
import bitfinexPro from './src/pro/bitfinex.js';
|
|
129
|
-
import
|
|
129
|
+
import bitfinex1Pro from './src/pro/bitfinex1.js';
|
|
130
130
|
import bitgetPro from './src/pro/bitget.js';
|
|
131
131
|
import bithumbPro from './src/pro/bithumb.js';
|
|
132
132
|
import bitmartPro from './src/pro/bitmart.js';
|
|
@@ -206,7 +206,7 @@ declare const exchanges: {
|
|
|
206
206
|
bitbns: typeof bitbns;
|
|
207
207
|
bitcoincom: typeof bitcoincom;
|
|
208
208
|
bitfinex: typeof bitfinex;
|
|
209
|
-
|
|
209
|
+
bitfinex1: typeof bitfinex1;
|
|
210
210
|
bitflyer: typeof bitflyer;
|
|
211
211
|
bitget: typeof bitget;
|
|
212
212
|
bithumb: typeof bithumb;
|
|
@@ -314,7 +314,7 @@ declare const pro: {
|
|
|
314
314
|
bingx: typeof bingxPro;
|
|
315
315
|
bitcoincom: typeof bitcoincomPro;
|
|
316
316
|
bitfinex: typeof bitfinexPro;
|
|
317
|
-
|
|
317
|
+
bitfinex1: typeof bitfinex1Pro;
|
|
318
318
|
bitget: typeof bitgetPro;
|
|
319
319
|
bithumb: typeof bithumbPro;
|
|
320
320
|
bitmart: typeof bitmartPro;
|
|
@@ -395,7 +395,7 @@ declare const ccxt: {
|
|
|
395
395
|
bingx: typeof bingxPro;
|
|
396
396
|
bitcoincom: typeof bitcoincomPro;
|
|
397
397
|
bitfinex: typeof bitfinexPro;
|
|
398
|
-
|
|
398
|
+
bitfinex1: typeof bitfinex1Pro;
|
|
399
399
|
bitget: typeof bitgetPro;
|
|
400
400
|
bithumb: typeof bithumbPro;
|
|
401
401
|
bitmart: typeof bitmartPro;
|
|
@@ -476,7 +476,7 @@ declare const ccxt: {
|
|
|
476
476
|
bitbns: typeof bitbns;
|
|
477
477
|
bitcoincom: typeof bitcoincom;
|
|
478
478
|
bitfinex: typeof bitfinex;
|
|
479
|
-
|
|
479
|
+
bitfinex1: typeof bitfinex1;
|
|
480
480
|
bitflyer: typeof bitflyer;
|
|
481
481
|
bitget: typeof bitget;
|
|
482
482
|
bithumb: typeof bithumb;
|
|
@@ -573,5 +573,5 @@ declare const ccxt: {
|
|
|
573
573
|
zaif: typeof zaif;
|
|
574
574
|
zonda: typeof zonda;
|
|
575
575
|
} & typeof functions & typeof errors;
|
|
576
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex,
|
|
576
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
577
577
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.4.
|
|
41
|
+
const version = '4.4.37';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -56,7 +56,7 @@ import bitbank from './src/bitbank.js';
|
|
|
56
56
|
import bitbns from './src/bitbns.js';
|
|
57
57
|
import bitcoincom from './src/bitcoincom.js';
|
|
58
58
|
import bitfinex from './src/bitfinex.js';
|
|
59
|
-
import
|
|
59
|
+
import bitfinex1 from './src/bitfinex1.js';
|
|
60
60
|
import bitflyer from './src/bitflyer.js';
|
|
61
61
|
import bitget from './src/bitget.js';
|
|
62
62
|
import bithumb from './src/bithumb.js';
|
|
@@ -163,7 +163,7 @@ import binanceusdmPro from './src/pro/binanceusdm.js';
|
|
|
163
163
|
import bingxPro from './src/pro/bingx.js';
|
|
164
164
|
import bitcoincomPro from './src/pro/bitcoincom.js';
|
|
165
165
|
import bitfinexPro from './src/pro/bitfinex.js';
|
|
166
|
-
import
|
|
166
|
+
import bitfinex1Pro from './src/pro/bitfinex1.js';
|
|
167
167
|
import bitgetPro from './src/pro/bitget.js';
|
|
168
168
|
import bithumbPro from './src/pro/bithumb.js';
|
|
169
169
|
import bitmartPro from './src/pro/bitmart.js';
|
|
@@ -243,7 +243,7 @@ const exchanges = {
|
|
|
243
243
|
'bitbns': bitbns,
|
|
244
244
|
'bitcoincom': bitcoincom,
|
|
245
245
|
'bitfinex': bitfinex,
|
|
246
|
-
'
|
|
246
|
+
'bitfinex1': bitfinex1,
|
|
247
247
|
'bitflyer': bitflyer,
|
|
248
248
|
'bitget': bitget,
|
|
249
249
|
'bithumb': bithumb,
|
|
@@ -351,7 +351,7 @@ const pro = {
|
|
|
351
351
|
'bingx': bingxPro,
|
|
352
352
|
'bitcoincom': bitcoincomPro,
|
|
353
353
|
'bitfinex': bitfinexPro,
|
|
354
|
-
'
|
|
354
|
+
'bitfinex1': bitfinex1Pro,
|
|
355
355
|
'bitget': bitgetPro,
|
|
356
356
|
'bithumb': bithumbPro,
|
|
357
357
|
'bitmart': bitmartPro,
|
|
@@ -428,6 +428,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
428
428
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
429
429
|
//-----------------------------------------------------------------------------
|
|
430
430
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
431
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex,
|
|
431
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
432
432
|
export default ccxt;
|
|
433
433
|
//-----------------------------------------------------------------------------
|
|
@@ -1,71 +1,142 @@
|
|
|
1
1
|
import { implicitReturnType } from '../base/types.js';
|
|
2
2
|
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
3
|
interface Exchange {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
4
|
+
publicGetConfConfig(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetConfPubActionObject(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetConfPubActionObjectDetail(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetConfPubMapObject(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetConfPubMapObjectDetail(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetConfPubMapCurrencyDetail(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetConfPubMapCurrencySym(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetConfPubMapCurrencyLabel(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetConfPubMapCurrencyUnit(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetConfPubMapCurrencyUndl(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetConfPubMapCurrencyPool(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
publicGetConfPubMapCurrencyExplorer(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
publicGetConfPubMapCurrencyTxFee(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicGetConfPubMapTxMethod(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
publicGetConfPubListObject(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
publicGetConfPubListObjectDetail(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
publicGetConfPubListCurrency(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
publicGetConfPubListPairExchange(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
publicGetConfPubListPairMargin(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
publicGetConfPubListPairFutures(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
publicGetConfPubListCompetitions(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
publicGetConfPubInfoObject(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
publicGetConfPubInfoObjectDetail(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
publicGetConfPubInfoPair(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
publicGetConfPubInfoPairFutures(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
publicGetConfPubInfoTxStatus(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
publicGetConfPubFees(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicGetPlatformStatus(params?: {}): Promise<implicitReturnType>;
|
|
31
32
|
publicGetTickers(params?: {}): Promise<implicitReturnType>;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
33
|
+
publicGetTickerSymbol(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
publicGetTickersHist(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
publicGetTradesSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
publicGetBookSymbolPrecision(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
publicGetBookSymbolP0(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
publicGetBookSymbolP1(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
publicGetBookSymbolP2(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
publicGetBookSymbolP3(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
publicGetBookSymbolR0(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
publicGetStats1KeySizeSymbolSideSection(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
publicGetStats1KeySizeSymbolSideLast(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
publicGetStats1KeySizeSymbolSideHist(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
publicGetStats1KeySizeSymbolSection(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
publicGetStats1KeySizeSymbolLast(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
publicGetStats1KeySizeSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
publicGetStats1KeySizeSymbolLongLast(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
publicGetStats1KeySizeSymbolLongHist(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
publicGetStats1KeySizeSymbolShortLast(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
publicGetStats1KeySizeSymbolShortHist(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
publicGetCandlesTradeTimeframeSymbolPeriodSection(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
publicGetCandlesTradeTimeframeSymbolSection(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
publicGetCandlesTradeTimeframeSymbolLast(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
publicGetCandlesTradeTimeframeSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
publicGetStatusType(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
publicGetStatusDeriv(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
publicGetStatusDerivSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
publicGetLiquidationsHist(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
publicGetRankingsKeyTimeframeSymbolSection(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
publicGetRankingsKeyTimeframeSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
publicGetPulseHist(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
publicGetPulseProfileNickname(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
publicGetFundingStatsSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
publicGetExtVasps(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
publicPostCalcTradeAvg(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
publicPostCalcFx(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
privatePostAuthRWallets(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
privatePostAuthRWalletsHist(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
privatePostAuthROrders(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
privatePostAuthROrdersSymbol(params?: {}): Promise<implicitReturnType>;
|
|
72
|
+
privatePostAuthWOrderSubmit(params?: {}): Promise<implicitReturnType>;
|
|
73
|
+
privatePostAuthWOrderUpdate(params?: {}): Promise<implicitReturnType>;
|
|
74
|
+
privatePostAuthWOrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
75
|
+
privatePostAuthWOrderMulti(params?: {}): Promise<implicitReturnType>;
|
|
76
|
+
privatePostAuthWOrderCancelMulti(params?: {}): Promise<implicitReturnType>;
|
|
77
|
+
privatePostAuthROrdersSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
78
|
+
privatePostAuthROrdersHist(params?: {}): Promise<implicitReturnType>;
|
|
79
|
+
privatePostAuthROrderSymbolIdTrades(params?: {}): Promise<implicitReturnType>;
|
|
80
|
+
privatePostAuthRTradesSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
81
|
+
privatePostAuthRTradesHist(params?: {}): Promise<implicitReturnType>;
|
|
82
|
+
privatePostAuthRLedgersCurrencyHist(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
privatePostAuthRLedgersHist(params?: {}): Promise<implicitReturnType>;
|
|
84
|
+
privatePostAuthRInfoMarginKey(params?: {}): Promise<implicitReturnType>;
|
|
85
|
+
privatePostAuthRInfoMarginBase(params?: {}): Promise<implicitReturnType>;
|
|
86
|
+
privatePostAuthRInfoMarginSymAll(params?: {}): Promise<implicitReturnType>;
|
|
87
|
+
privatePostAuthRPositions(params?: {}): Promise<implicitReturnType>;
|
|
88
|
+
privatePostAuthWPositionClaim(params?: {}): Promise<implicitReturnType>;
|
|
89
|
+
privatePostAuthWPositionIncrease(params?: {}): Promise<implicitReturnType>;
|
|
90
|
+
privatePostAuthRPositionIncreaseInfo(params?: {}): Promise<implicitReturnType>;
|
|
91
|
+
privatePostAuthRPositionsHist(params?: {}): Promise<implicitReturnType>;
|
|
92
|
+
privatePostAuthRPositionsAudit(params?: {}): Promise<implicitReturnType>;
|
|
93
|
+
privatePostAuthRPositionsSnap(params?: {}): Promise<implicitReturnType>;
|
|
94
|
+
privatePostAuthWDerivCollateralSet(params?: {}): Promise<implicitReturnType>;
|
|
95
|
+
privatePostAuthWDerivCollateralLimits(params?: {}): Promise<implicitReturnType>;
|
|
96
|
+
privatePostAuthRFundingOffers(params?: {}): Promise<implicitReturnType>;
|
|
97
|
+
privatePostAuthRFundingOffersSymbol(params?: {}): Promise<implicitReturnType>;
|
|
98
|
+
privatePostAuthWFundingOfferSubmit(params?: {}): Promise<implicitReturnType>;
|
|
99
|
+
privatePostAuthWFundingOfferCancel(params?: {}): Promise<implicitReturnType>;
|
|
100
|
+
privatePostAuthWFundingOfferCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
101
|
+
privatePostAuthWFundingClose(params?: {}): Promise<implicitReturnType>;
|
|
102
|
+
privatePostAuthWFundingAuto(params?: {}): Promise<implicitReturnType>;
|
|
103
|
+
privatePostAuthWFundingKeep(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
privatePostAuthRFundingOffersSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
105
|
+
privatePostAuthRFundingOffersHist(params?: {}): Promise<implicitReturnType>;
|
|
106
|
+
privatePostAuthRFundingLoans(params?: {}): Promise<implicitReturnType>;
|
|
107
|
+
privatePostAuthRFundingLoansHist(params?: {}): Promise<implicitReturnType>;
|
|
108
|
+
privatePostAuthRFundingLoansSymbol(params?: {}): Promise<implicitReturnType>;
|
|
109
|
+
privatePostAuthRFundingLoansSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
110
|
+
privatePostAuthRFundingCredits(params?: {}): Promise<implicitReturnType>;
|
|
111
|
+
privatePostAuthRFundingCreditsHist(params?: {}): Promise<implicitReturnType>;
|
|
112
|
+
privatePostAuthRFundingCreditsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
113
|
+
privatePostAuthRFundingCreditsSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
114
|
+
privatePostAuthRFundingTradesSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
115
|
+
privatePostAuthRFundingTradesHist(params?: {}): Promise<implicitReturnType>;
|
|
116
|
+
privatePostAuthRInfoFundingKey(params?: {}): Promise<implicitReturnType>;
|
|
117
|
+
privatePostAuthRInfoUser(params?: {}): Promise<implicitReturnType>;
|
|
118
|
+
privatePostAuthRSummary(params?: {}): Promise<implicitReturnType>;
|
|
119
|
+
privatePostAuthRLoginsHist(params?: {}): Promise<implicitReturnType>;
|
|
120
|
+
privatePostAuthRPermissions(params?: {}): Promise<implicitReturnType>;
|
|
121
|
+
privatePostAuthWToken(params?: {}): Promise<implicitReturnType>;
|
|
122
|
+
privatePostAuthRAuditHist(params?: {}): Promise<implicitReturnType>;
|
|
123
|
+
privatePostAuthWTransfer(params?: {}): Promise<implicitReturnType>;
|
|
124
|
+
privatePostAuthWDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
125
|
+
privatePostAuthWDepositInvoice(params?: {}): Promise<implicitReturnType>;
|
|
126
|
+
privatePostAuthWWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
127
|
+
privatePostAuthRMovementsCurrencyHist(params?: {}): Promise<implicitReturnType>;
|
|
128
|
+
privatePostAuthRMovementsHist(params?: {}): Promise<implicitReturnType>;
|
|
129
|
+
privatePostAuthRAlerts(params?: {}): Promise<implicitReturnType>;
|
|
130
|
+
privatePostAuthWAlertSet(params?: {}): Promise<implicitReturnType>;
|
|
131
|
+
privatePostAuthWAlertPriceSymbolPriceDel(params?: {}): Promise<implicitReturnType>;
|
|
132
|
+
privatePostAuthWAlertTypeSymbolPriceDel(params?: {}): Promise<implicitReturnType>;
|
|
133
|
+
privatePostAuthCalcOrderAvail(params?: {}): Promise<implicitReturnType>;
|
|
134
|
+
privatePostAuthWSettingsSet(params?: {}): Promise<implicitReturnType>;
|
|
135
|
+
privatePostAuthRSettings(params?: {}): Promise<implicitReturnType>;
|
|
136
|
+
privatePostAuthWSettingsDel(params?: {}): Promise<implicitReturnType>;
|
|
137
|
+
privatePostAuthRPulseHist(params?: {}): Promise<implicitReturnType>;
|
|
138
|
+
privatePostAuthWPulseAdd(params?: {}): Promise<implicitReturnType>;
|
|
139
|
+
privatePostAuthWPulseDel(params?: {}): Promise<implicitReturnType>;
|
|
69
140
|
}
|
|
70
141
|
declare abstract class Exchange extends _Exchange {
|
|
71
142
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
v2GetPlatformStatus(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
v2GetTickers(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
v2GetTickerSymbol(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
v2GetTickersHist(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
v2GetTradesSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
v2GetBookSymbolPrecision(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
v2GetBookSymbolP0(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
v2GetBookSymbolP1(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
v2GetBookSymbolP2(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
v2GetBookSymbolP3(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
v2GetBookSymbolR0(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
v2GetStats1KeySizeSymbolSideSection(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
v2GetStats1KeySizeSymbolSection(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
v2GetStats1KeySizeSymbolLongLast(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
v2GetStats1KeySizeSymbolLongHist(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
v2GetStats1KeySizeSymbolShortLast(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
v2GetStats1KeySizeSymbolShortHist(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
v2GetCandlesTradeTimeframeSymbolSection(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
v2GetCandlesTradeTimeframeSymbolLast(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
v2GetCandlesTradeTimeframeSymbolHist(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
publicGetBookSymbol(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
publicGetLendbookCurrency(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
publicGetLendsCurrency(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
publicGetPubtickerSymbol(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
publicGetStatsSymbol(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
publicGetSymbols(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
publicGetSymbolsDetails(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
publicGetTickers(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
publicGetTradesSymbol(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
privatePostAccountFees(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
privatePostAccountInfos(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
privatePostBalances(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
privatePostBasketManage(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
privatePostCredits(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
privatePostDepositNew(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
privatePostFundingClose(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
privatePostHistory(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
privatePostHistoryMovements(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
privatePostKeyInfo(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
privatePostMarginInfos(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
privatePostMytrades(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
privatePostMytradesFunding(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
privatePostOfferCancel(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
privatePostOfferNew(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
privatePostOfferStatus(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
privatePostOffers(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
privatePostOffersHist(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
privatePostOrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
privatePostOrderCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
privatePostOrderCancelMulti(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
privatePostOrderCancelReplace(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
privatePostOrderNew(params?: {}): Promise<implicitReturnType>;
|
|
56
|
+
privatePostOrderNewMulti(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
privatePostOrderStatus(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
privatePostOrders(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
privatePostOrdersHist(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
privatePostPositionClaim(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
privatePostPositionClose(params?: {}): Promise<implicitReturnType>;
|
|
62
|
+
privatePostPositions(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
privatePostSummary(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
privatePostTakenFunds(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
privatePostTotalTakenFunds(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
privatePostTransfer(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
privatePostUnusedTakenFunds(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
privatePostWithdraw(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
}
|
|
70
|
+
declare abstract class Exchange extends _Exchange {
|
|
71
|
+
}
|
|
72
|
+
export default Exchange;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -2388,10 +2388,15 @@ export default class Exchange {
|
|
|
2388
2388
|
featuresObj['createOrder']['stopLoss'] = value;
|
|
2389
2389
|
featuresObj['createOrder']['takeProfit'] = value;
|
|
2390
2390
|
}
|
|
2391
|
-
//
|
|
2391
|
+
// for spot, default 'hedged' to false
|
|
2392
2392
|
if (marketType === 'spot') {
|
|
2393
2393
|
featuresObj['createOrder']['hedged'] = false;
|
|
2394
2394
|
}
|
|
2395
|
+
// default 'GTC' to true
|
|
2396
|
+
const gtcValue = this.safeBool(featuresObj['createOrder']['timeInForce'], 'gtc');
|
|
2397
|
+
if (gtcValue === undefined) {
|
|
2398
|
+
featuresObj['createOrder']['timeInForce']['gtc'] = true;
|
|
2399
|
+
}
|
|
2395
2400
|
}
|
|
2396
2401
|
return featuresObj;
|
|
2397
2402
|
}
|