ccxt 4.0.101 → 4.0.102

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/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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending } from './src/base/errors.js';
7
- declare const version = "4.0.100";
7
+ declare const version = "4.0.101";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -36,7 +36,6 @@ import bitstamp from './src/bitstamp.js';
36
36
  import bitstamp1 from './src/bitstamp1.js';
37
37
  import bittrex from './src/bittrex.js';
38
38
  import bitvavo from './src/bitvavo.js';
39
- import bkex from './src/bkex.js';
40
39
  import bl3p from './src/bl3p.js';
41
40
  import blockchaincom from './src/blockchaincom.js';
42
41
  import btcalpha from './src/btcalpha.js';
@@ -202,7 +201,6 @@ declare const exchanges: {
202
201
  bitstamp1: typeof bitstamp1;
203
202
  bittrex: typeof bittrex;
204
203
  bitvavo: typeof bitvavo;
205
- bkex: typeof bkex;
206
204
  bl3p: typeof bl3p;
207
205
  blockchaincom: typeof blockchaincom;
208
206
  btcalpha: typeof btcalpha;
@@ -437,7 +435,6 @@ declare const ccxt: {
437
435
  bitstamp1: typeof bitstamp1;
438
436
  bittrex: typeof bittrex;
439
437
  bitvavo: typeof bitvavo;
440
- bkex: typeof bkex;
441
438
  bl3p: typeof bl3p;
442
439
  blockchaincom: typeof blockchaincom;
443
440
  btcalpha: typeof btcalpha;
@@ -513,5 +510,5 @@ declare const ccxt: {
513
510
  zaif: typeof zaif;
514
511
  zonda: typeof zonda;
515
512
  } & typeof functions & typeof errors;
516
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bkex, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btctradeua, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinfalcon, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
513
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btctradeua, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinfalcon, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
517
514
  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, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.0.101';
41
+ const version = '4.0.102';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -72,7 +72,6 @@ import bitstamp from './src/bitstamp.js';
72
72
  import bitstamp1 from './src/bitstamp1.js';
73
73
  import bittrex from './src/bittrex.js';
74
74
  import bitvavo from './src/bitvavo.js';
75
- import bkex from './src/bkex.js';
76
75
  import bl3p from './src/bl3p.js';
77
76
  import blockchaincom from './src/blockchaincom.js';
78
77
  import btcalpha from './src/btcalpha.js';
@@ -239,7 +238,6 @@ const exchanges = {
239
238
  'bitstamp1': bitstamp1,
240
239
  'bittrex': bittrex,
241
240
  'bitvavo': bitvavo,
242
- 'bkex': bkex,
243
241
  'bl3p': bl3p,
244
242
  'blockchaincom': blockchaincom,
245
243
  'btcalpha': btcalpha,
@@ -388,6 +386,6 @@ pro.exchanges = Object.keys(pro);
388
386
  pro['Exchange'] = Exchange; // now the same for rest and ts
389
387
  //-----------------------------------------------------------------------------
390
388
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
391
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bkex, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btctradeua, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinfalcon, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
389
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btctradeua, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinfalcon, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
392
390
  export default ccxt;
393
391
  //-----------------------------------------------------------------------------
@@ -195,6 +195,7 @@ interface Exchange {
195
195
  sapiGetPortfolioInterestHistory(params?: {}): Promise<implicitReturnType>;
196
196
  sapiGetPortfolioAssetIndexPrice(params?: {}): Promise<implicitReturnType>;
197
197
  sapiGetPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
198
+ sapiGetPortfolioMarginAssetLeverage(params?: {}): Promise<implicitReturnType>;
198
199
  sapiGetStakingProductList(params?: {}): Promise<implicitReturnType>;
199
200
  sapiGetStakingPosition(params?: {}): Promise<implicitReturnType>;
200
201
  sapiGetStakingStakingRecord(params?: {}): Promise<implicitReturnType>;
@@ -206,6 +207,11 @@ interface Exchange {
206
207
  sapiGetLendingAutoInvestPlanList(params?: {}): Promise<implicitReturnType>;
207
208
  sapiGetLendingAutoInvestPlanId(params?: {}): Promise<implicitReturnType>;
208
209
  sapiGetLendingAutoInvestHistoryList(params?: {}): Promise<implicitReturnType>;
210
+ sapiGetLendingAutoInvestIndexInfo(params?: {}): Promise<implicitReturnType>;
211
+ sapiGetLendingAutoInvestIndexUserSummary(params?: {}): Promise<implicitReturnType>;
212
+ sapiGetLendingAutoInvestOneOffStatus(params?: {}): Promise<implicitReturnType>;
213
+ sapiGetLendingAutoInvestRedeemHistory(params?: {}): Promise<implicitReturnType>;
214
+ sapiGetLendingAutoInvestRebalanceHistory(params?: {}): Promise<implicitReturnType>;
209
215
  sapiGetSimpleEarnFlexibleList(params?: {}): Promise<implicitReturnType>;
210
216
  sapiGetSimpleEarnLockedList(params?: {}): Promise<implicitReturnType>;
211
217
  sapiGetSimpleEarnFlexiblePersonalLeftQuota(params?: {}): Promise<implicitReturnType>;
@@ -321,6 +327,8 @@ interface Exchange {
321
327
  sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
322
328
  sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
323
329
  sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
330
+ sapiPostLendingAutoInvestOneOff(params?: {}): Promise<implicitReturnType>;
331
+ sapiPostLendingAutoInvestRedeem(params?: {}): Promise<implicitReturnType>;
324
332
  sapiPostSimpleEarnFlexibleSubscribe(params?: {}): Promise<implicitReturnType>;
325
333
  sapiPostSimpleEarnLockedSubscribe(params?: {}): Promise<implicitReturnType>;
326
334
  sapiPostSimpleEarnFlexibleRedeem(params?: {}): Promise<implicitReturnType>;
@@ -195,6 +195,7 @@ interface binance {
195
195
  sapiGetPortfolioInterestHistory(params?: {}): Promise<implicitReturnType>;
196
196
  sapiGetPortfolioAssetIndexPrice(params?: {}): Promise<implicitReturnType>;
197
197
  sapiGetPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
198
+ sapiGetPortfolioMarginAssetLeverage(params?: {}): Promise<implicitReturnType>;
198
199
  sapiGetStakingProductList(params?: {}): Promise<implicitReturnType>;
199
200
  sapiGetStakingPosition(params?: {}): Promise<implicitReturnType>;
200
201
  sapiGetStakingStakingRecord(params?: {}): Promise<implicitReturnType>;
@@ -206,6 +207,11 @@ interface binance {
206
207
  sapiGetLendingAutoInvestPlanList(params?: {}): Promise<implicitReturnType>;
207
208
  sapiGetLendingAutoInvestPlanId(params?: {}): Promise<implicitReturnType>;
208
209
  sapiGetLendingAutoInvestHistoryList(params?: {}): Promise<implicitReturnType>;
210
+ sapiGetLendingAutoInvestIndexInfo(params?: {}): Promise<implicitReturnType>;
211
+ sapiGetLendingAutoInvestIndexUserSummary(params?: {}): Promise<implicitReturnType>;
212
+ sapiGetLendingAutoInvestOneOffStatus(params?: {}): Promise<implicitReturnType>;
213
+ sapiGetLendingAutoInvestRedeemHistory(params?: {}): Promise<implicitReturnType>;
214
+ sapiGetLendingAutoInvestRebalanceHistory(params?: {}): Promise<implicitReturnType>;
209
215
  sapiGetSimpleEarnFlexibleList(params?: {}): Promise<implicitReturnType>;
210
216
  sapiGetSimpleEarnLockedList(params?: {}): Promise<implicitReturnType>;
211
217
  sapiGetSimpleEarnFlexiblePersonalLeftQuota(params?: {}): Promise<implicitReturnType>;
@@ -321,6 +327,8 @@ interface binance {
321
327
  sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
322
328
  sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
323
329
  sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
330
+ sapiPostLendingAutoInvestOneOff(params?: {}): Promise<implicitReturnType>;
331
+ sapiPostLendingAutoInvestRedeem(params?: {}): Promise<implicitReturnType>;
324
332
  sapiPostSimpleEarnFlexibleSubscribe(params?: {}): Promise<implicitReturnType>;
325
333
  sapiPostSimpleEarnLockedSubscribe(params?: {}): Promise<implicitReturnType>;
326
334
  sapiPostSimpleEarnFlexibleRedeem(params?: {}): Promise<implicitReturnType>;
@@ -195,6 +195,7 @@ interface binance {
195
195
  sapiGetPortfolioInterestHistory(params?: {}): Promise<implicitReturnType>;
196
196
  sapiGetPortfolioAssetIndexPrice(params?: {}): Promise<implicitReturnType>;
197
197
  sapiGetPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
198
+ sapiGetPortfolioMarginAssetLeverage(params?: {}): Promise<implicitReturnType>;
198
199
  sapiGetStakingProductList(params?: {}): Promise<implicitReturnType>;
199
200
  sapiGetStakingPosition(params?: {}): Promise<implicitReturnType>;
200
201
  sapiGetStakingStakingRecord(params?: {}): Promise<implicitReturnType>;
@@ -206,6 +207,11 @@ interface binance {
206
207
  sapiGetLendingAutoInvestPlanList(params?: {}): Promise<implicitReturnType>;
207
208
  sapiGetLendingAutoInvestPlanId(params?: {}): Promise<implicitReturnType>;
208
209
  sapiGetLendingAutoInvestHistoryList(params?: {}): Promise<implicitReturnType>;
210
+ sapiGetLendingAutoInvestIndexInfo(params?: {}): Promise<implicitReturnType>;
211
+ sapiGetLendingAutoInvestIndexUserSummary(params?: {}): Promise<implicitReturnType>;
212
+ sapiGetLendingAutoInvestOneOffStatus(params?: {}): Promise<implicitReturnType>;
213
+ sapiGetLendingAutoInvestRedeemHistory(params?: {}): Promise<implicitReturnType>;
214
+ sapiGetLendingAutoInvestRebalanceHistory(params?: {}): Promise<implicitReturnType>;
209
215
  sapiGetSimpleEarnFlexibleList(params?: {}): Promise<implicitReturnType>;
210
216
  sapiGetSimpleEarnLockedList(params?: {}): Promise<implicitReturnType>;
211
217
  sapiGetSimpleEarnFlexiblePersonalLeftQuota(params?: {}): Promise<implicitReturnType>;
@@ -321,6 +327,8 @@ interface binance {
321
327
  sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
322
328
  sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
323
329
  sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
330
+ sapiPostLendingAutoInvestOneOff(params?: {}): Promise<implicitReturnType>;
331
+ sapiPostLendingAutoInvestRedeem(params?: {}): Promise<implicitReturnType>;
324
332
  sapiPostSimpleEarnFlexibleSubscribe(params?: {}): Promise<implicitReturnType>;
325
333
  sapiPostSimpleEarnLockedSubscribe(params?: {}): Promise<implicitReturnType>;
326
334
  sapiPostSimpleEarnFlexibleRedeem(params?: {}): Promise<implicitReturnType>;
@@ -195,6 +195,7 @@ interface binance {
195
195
  sapiGetPortfolioInterestHistory(params?: {}): Promise<implicitReturnType>;
196
196
  sapiGetPortfolioAssetIndexPrice(params?: {}): Promise<implicitReturnType>;
197
197
  sapiGetPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
198
+ sapiGetPortfolioMarginAssetLeverage(params?: {}): Promise<implicitReturnType>;
198
199
  sapiGetStakingProductList(params?: {}): Promise<implicitReturnType>;
199
200
  sapiGetStakingPosition(params?: {}): Promise<implicitReturnType>;
200
201
  sapiGetStakingStakingRecord(params?: {}): Promise<implicitReturnType>;
@@ -206,6 +207,11 @@ interface binance {
206
207
  sapiGetLendingAutoInvestPlanList(params?: {}): Promise<implicitReturnType>;
207
208
  sapiGetLendingAutoInvestPlanId(params?: {}): Promise<implicitReturnType>;
208
209
  sapiGetLendingAutoInvestHistoryList(params?: {}): Promise<implicitReturnType>;
210
+ sapiGetLendingAutoInvestIndexInfo(params?: {}): Promise<implicitReturnType>;
211
+ sapiGetLendingAutoInvestIndexUserSummary(params?: {}): Promise<implicitReturnType>;
212
+ sapiGetLendingAutoInvestOneOffStatus(params?: {}): Promise<implicitReturnType>;
213
+ sapiGetLendingAutoInvestRedeemHistory(params?: {}): Promise<implicitReturnType>;
214
+ sapiGetLendingAutoInvestRebalanceHistory(params?: {}): Promise<implicitReturnType>;
209
215
  sapiGetSimpleEarnFlexibleList(params?: {}): Promise<implicitReturnType>;
210
216
  sapiGetSimpleEarnLockedList(params?: {}): Promise<implicitReturnType>;
211
217
  sapiGetSimpleEarnFlexiblePersonalLeftQuota(params?: {}): Promise<implicitReturnType>;
@@ -321,6 +327,8 @@ interface binance {
321
327
  sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
322
328
  sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
323
329
  sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
330
+ sapiPostLendingAutoInvestOneOff(params?: {}): Promise<implicitReturnType>;
331
+ sapiPostLendingAutoInvestRedeem(params?: {}): Promise<implicitReturnType>;
324
332
  sapiPostSimpleEarnFlexibleSubscribe(params?: {}): Promise<implicitReturnType>;
325
333
  sapiPostSimpleEarnLockedSubscribe(params?: {}): Promise<implicitReturnType>;
326
334
  sapiPostSimpleEarnFlexibleRedeem(params?: {}): Promise<implicitReturnType>;
@@ -29,6 +29,7 @@ interface Exchange {
29
29
  swapV2PublicGetQuoteKlines(params?: {}): Promise<implicitReturnType>;
30
30
  swapV2PublicGetQuoteOpenInterest(params?: {}): Promise<implicitReturnType>;
31
31
  swapV2PublicGetQuoteTicker(params?: {}): Promise<implicitReturnType>;
32
+ swapV2PublicGetQuoteBookTicker(params?: {}): Promise<implicitReturnType>;
32
33
  swapV2PrivateGetUserBalance(params?: {}): Promise<implicitReturnType>;
33
34
  swapV2PrivateGetUserPositions(params?: {}): Promise<implicitReturnType>;
34
35
  swapV2PrivateGetUserIncome(params?: {}): Promise<implicitReturnType>;
@@ -56,18 +57,32 @@ interface Exchange {
56
57
  contractV1PrivateGetAllOrders(params?: {}): Promise<implicitReturnType>;
57
58
  contractV1PrivateGetBalance(params?: {}): Promise<implicitReturnType>;
58
59
  walletsV1PrivateGetCapitalConfigGetall(params?: {}): Promise<implicitReturnType>;
60
+ walletsV1PrivateGetCapitalDepositAddress(params?: {}): Promise<implicitReturnType>;
61
+ walletsV1PrivateGetCapitalInnerTransferRecords(params?: {}): Promise<implicitReturnType>;
62
+ walletsV1PrivateGetCapitalSubAccountDepositAddress(params?: {}): Promise<implicitReturnType>;
63
+ walletsV1PrivateGetCapitalDepositSubHisrec(params?: {}): Promise<implicitReturnType>;
64
+ walletsV1PrivateGetCapitalSubAccountInnerTransferRecords(params?: {}): Promise<implicitReturnType>;
59
65
  walletsV1PrivatePostCapitalWithdrawApply(params?: {}): Promise<implicitReturnType>;
60
66
  walletsV1PrivatePostCapitalInnerTransferApply(params?: {}): Promise<implicitReturnType>;
61
67
  walletsV1PrivatePostCapitalSubAccountInnerTransferApply(params?: {}): Promise<implicitReturnType>;
68
+ walletsV1PrivatePostCapitalDepositCreateSubAddress(params?: {}): Promise<implicitReturnType>;
62
69
  subAccountV1PrivateGetList(params?: {}): Promise<implicitReturnType>;
63
70
  subAccountV1PrivateGetAssets(params?: {}): Promise<implicitReturnType>;
71
+ subAccountV1PrivateGetApiKeyQuery(params?: {}): Promise<implicitReturnType>;
64
72
  subAccountV1PrivatePostCreate(params?: {}): Promise<implicitReturnType>;
65
73
  subAccountV1PrivatePostApiKeyCreate(params?: {}): Promise<implicitReturnType>;
66
74
  subAccountV1PrivatePostApiKeyEdit(params?: {}): Promise<implicitReturnType>;
67
75
  subAccountV1PrivatePostApiKeyDel(params?: {}): Promise<implicitReturnType>;
68
76
  subAccountV1PrivatePostUpdateStatus(params?: {}): Promise<implicitReturnType>;
69
- accountV1PrivatePostUid(params?: {}): Promise<implicitReturnType>;
77
+ accountV1PrivateGetUid(params?: {}): Promise<implicitReturnType>;
70
78
  accountV1PrivatePostInnerTransferAuthorizeSubAccount(params?: {}): Promise<implicitReturnType>;
79
+ copyTradingV1PrivateGetSwapTraceCurrentTrack(params?: {}): Promise<implicitReturnType>;
80
+ copyTradingV1PrivatePostSwapTraceCloseTrackOrder(params?: {}): Promise<implicitReturnType>;
81
+ copyTradingV1PrivatePostSwapTraceSetTPSL(params?: {}): Promise<implicitReturnType>;
82
+ apiV3PrivateGetAssetTransfer(params?: {}): Promise<implicitReturnType>;
83
+ apiV3PrivateGetCapitalDepositHisrec(params?: {}): Promise<implicitReturnType>;
84
+ apiV3PrivateGetCapitalWithdrawHistory(params?: {}): Promise<implicitReturnType>;
85
+ apiV3PrivatePostPostAssetTransfer(params?: {}): Promise<implicitReturnType>;
71
86
  }
72
87
  declare abstract class Exchange extends _Exchange {
73
88
  }
package/js/src/binance.js CHANGED
@@ -403,6 +403,7 @@ export default class binance extends Exchange {
403
403
  'portfolio/interest-history': 0.6667,
404
404
  'portfolio/asset-index-price': 0.1,
405
405
  'portfolio/repay-futures-switch': 3,
406
+ 'portfolio/margin-asset-leverage': 5,
406
407
  // staking
407
408
  'staking/productList': 0.1,
408
409
  'staking/position': 0.1,
@@ -415,6 +416,11 @@ export default class binance extends Exchange {
415
416
  'lending/auto-invest/plan/list': 0.1,
416
417
  'lending/auto-invest/plan/id': 0.1,
417
418
  'lending/auto-invest/history/list': 0.1,
419
+ 'lending/auto-invest/index/info': 0.1,
420
+ 'lending/auto-invest/index/user-summary': 0.1,
421
+ 'lending/auto-invest/one-off/status': 0.1,
422
+ 'lending/auto-invest/redeem/history': 0.1,
423
+ 'lending/auto-invest/rebalance/history': 0.1,
418
424
  // simple earn
419
425
  'simple-earn/flexible/list': 15,
420
426
  'simple-earn/locked/list': 15,
@@ -542,6 +548,8 @@ export default class binance extends Exchange {
542
548
  'lending/auto-invest/plan/add': 0.1,
543
549
  'lending/auto-invest/plan/edit': 0.1,
544
550
  'lending/auto-invest/plan/edit-status': 0.1,
551
+ 'lending/auto-invest/one-off': 0.1,
552
+ 'lending/auto-invest/redeem': 0.1,
545
553
  // simple earn
546
554
  'simple-earn/flexible/subscribe': 0.1,
547
555
  'simple-earn/locked/subscribe': 0.1,
package/js/src/bingx.js CHANGED
@@ -139,6 +139,7 @@ export default class bingx extends Exchange {
139
139
  'quote/klines': 1,
140
140
  'quote/openInterest': 1,
141
141
  'quote/ticker': 1,
142
+ 'quote/bookTicker': 1,
142
143
  },
143
144
  },
144
145
  'private': {
@@ -190,11 +191,17 @@ export default class bingx extends Exchange {
190
191
  'private': {
191
192
  'get': {
192
193
  'capital/config/getall': 3,
194
+ 'capital/deposit/address': 1,
195
+ 'capital/innerTransfer/records': 1,
196
+ 'capital/subAccount/deposit/address': 1,
197
+ 'capital/deposit/subHisrec': 1,
198
+ 'capital/subAccount/innerTransfer/records': 1,
193
199
  },
194
200
  'post': {
195
201
  'capital/withdraw/apply': 3,
196
202
  'capital/innerTransfer/apply': 3,
197
203
  'capital/subAccountInnerTransfer/apply': 3,
204
+ 'capital/deposit/createSubAddress': 1,
198
205
  },
199
206
  },
200
207
  },
@@ -205,6 +212,7 @@ export default class bingx extends Exchange {
205
212
  'get': {
206
213
  'list': 3,
207
214
  'assets': 3,
215
+ 'apiKey/query': 1,
208
216
  },
209
217
  'post': {
210
218
  'create': 3,
@@ -219,13 +227,42 @@ export default class bingx extends Exchange {
219
227
  'account': {
220
228
  'v1': {
221
229
  'private': {
230
+ 'get': {
231
+ 'uid': 1,
232
+ },
222
233
  'post': {
223
- 'uid': 3,
224
234
  'innerTransfer/authorizeSubAccount': 3,
225
235
  },
226
236
  },
227
237
  },
228
238
  },
239
+ 'copyTrading': {
240
+ 'v1': {
241
+ 'private': {
242
+ 'get': {
243
+ 'swap/trace/currentTrack': 1,
244
+ },
245
+ 'post': {
246
+ 'swap/trace/closeTrackOrder': 1,
247
+ 'swap/trace/setTPSL': 1,
248
+ },
249
+ },
250
+ },
251
+ },
252
+ 'api': {
253
+ 'v3': {
254
+ 'private': {
255
+ 'get': {
256
+ 'asset/transfer': 1,
257
+ 'capital/deposit/hisrec': 1,
258
+ 'capital/withdraw/history': 1,
259
+ },
260
+ 'post': {
261
+ 'post/asset/transfer': 1,
262
+ },
263
+ },
264
+ },
265
+ },
229
266
  },
230
267
  'timeframes': {
231
268
  '1m': '1m',
@@ -1489,9 +1526,9 @@ export default class bingx extends Exchange {
1489
1526
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1490
1527
  * @param {object} [params] extra parameters specific to the bingx api endpoint
1491
1528
  * @param {bool} [params.postOnly] true to place a post only order
1492
- * @param {object} [params.triggerPrice] triggerPrice at which the attached take profit / stop loss order will be triggered (swap markets only)
1493
- * @param {float} [params.stopLossPrice] stop loss trigger price (swap markets only)
1494
- * @param {float} [params.takeProfitPrice] take profit trigger price (swap markets only)
1529
+ * @param {float} [params.triggerPrice] *swap only* triggerPrice at which the attached take profit / stop loss order will be triggered
1530
+ * @param {float} [params.stopLossPrice] *swap only* stop loss trigger price
1531
+ * @param {float} [params.takeProfitPrice] *swap only* take profit trigger price
1495
1532
  * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1496
1533
  */
1497
1534
  await this.loadMarkets();
@@ -225,6 +225,44 @@ export default class bitmart extends Exchange {
225
225
  info: any;
226
226
  };
227
227
  setLeverage(leverage: any, symbol?: string, params?: {}): Promise<any>;
228
+ fetchFundingRate(symbol: string, params?: {}): Promise<{
229
+ info: any;
230
+ symbol: any;
231
+ markPrice: any;
232
+ indexPrice: any;
233
+ interestRate: any;
234
+ estimatedSettlePrice: any;
235
+ timestamp: number;
236
+ datetime: string;
237
+ fundingRate: number;
238
+ fundingTimestamp: any;
239
+ fundingDatetime: any;
240
+ nextFundingRate: any;
241
+ nextFundingTimestamp: any;
242
+ nextFundingDatetime: any;
243
+ previousFundingRate: number;
244
+ previousFundingTimestamp: any;
245
+ previousFundingDatetime: any;
246
+ }>;
247
+ parseFundingRate(contract: any, market?: any): {
248
+ info: any;
249
+ symbol: any;
250
+ markPrice: any;
251
+ indexPrice: any;
252
+ interestRate: any;
253
+ estimatedSettlePrice: any;
254
+ timestamp: number;
255
+ datetime: string;
256
+ fundingRate: number;
257
+ fundingTimestamp: any;
258
+ fundingDatetime: any;
259
+ nextFundingRate: any;
260
+ nextFundingTimestamp: any;
261
+ nextFundingDatetime: any;
262
+ previousFundingRate: number;
263
+ previousFundingTimestamp: any;
264
+ previousFundingDatetime: any;
265
+ };
228
266
  nonce(): number;
229
267
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
230
268
  url: string;
package/js/src/bitmart.js CHANGED
@@ -60,6 +60,9 @@ export default class bitmart extends Exchange {
60
60
  'fetchDepositWithdrawFee': true,
61
61
  'fetchDepositWithdrawFees': false,
62
62
  'fetchFundingHistory': undefined,
63
+ 'fetchFundingRate': true,
64
+ 'fetchFundingRateHistory': false,
65
+ 'fetchFundingRates': false,
63
66
  'fetchMarginMode': false,
64
67
  'fetchMarkets': true,
65
68
  'fetchMyTrades': true,
@@ -3253,6 +3256,72 @@ export default class bitmart extends Exchange {
3253
3256
  };
3254
3257
  return await this.privatePostContractPrivateSubmitLeverage(this.extend(request, params));
3255
3258
  }
3259
+ async fetchFundingRate(symbol, params = {}) {
3260
+ /**
3261
+ * @method
3262
+ * @name bitmart#fetchFundingRate
3263
+ * @description fetch the current funding rate
3264
+ * @see https://developer-pro.bitmart.com/en/futures/#get-current-funding-rate
3265
+ * @param {string} symbol unified market symbol
3266
+ * @param {object} [params] extra parameters specific to the bitmart api endpoint
3267
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
3268
+ */
3269
+ await this.loadMarkets();
3270
+ const market = this.market(symbol);
3271
+ if (!market['swap']) {
3272
+ throw new BadSymbol(this.id + ' fetchFundingRate() supports swap contracts only');
3273
+ }
3274
+ const request = {
3275
+ 'symbol': market['id'],
3276
+ };
3277
+ const response = await this.publicGetContractPublicFundingRate(this.extend(request, params));
3278
+ //
3279
+ // {
3280
+ // "code": 1000,
3281
+ // "message": "Ok",
3282
+ // "data": {
3283
+ // "timestamp": 1695184410697,
3284
+ // "symbol": "BTCUSDT",
3285
+ // "rate_value": "-0.00002614",
3286
+ // "expected_rate": "-0.00002"
3287
+ // },
3288
+ // "trace": "4cad855074654097ac7ba5257c47305d.54.16951844206655589"
3289
+ // }
3290
+ //
3291
+ const data = this.safeValue(response, 'data', {});
3292
+ return this.parseFundingRate(data, market);
3293
+ }
3294
+ parseFundingRate(contract, market = undefined) {
3295
+ //
3296
+ // {
3297
+ // "timestamp": 1695184410697,
3298
+ // "symbol": "BTCUSDT",
3299
+ // "rate_value": "-0.00002614",
3300
+ // "expected_rate": "-0.00002"
3301
+ // }
3302
+ //
3303
+ const marketId = this.safeString(contract, 'symbol');
3304
+ const timestamp = this.safeInteger(contract, 'timestamp');
3305
+ return {
3306
+ 'info': contract,
3307
+ 'symbol': this.safeSymbol(marketId, market),
3308
+ 'markPrice': undefined,
3309
+ 'indexPrice': undefined,
3310
+ 'interestRate': undefined,
3311
+ 'estimatedSettlePrice': undefined,
3312
+ 'timestamp': timestamp,
3313
+ 'datetime': this.iso8601(timestamp),
3314
+ 'fundingRate': this.safeNumber(contract, 'expected_rate'),
3315
+ 'fundingTimestamp': undefined,
3316
+ 'fundingDatetime': undefined,
3317
+ 'nextFundingRate': undefined,
3318
+ 'nextFundingTimestamp': undefined,
3319
+ 'nextFundingDatetime': undefined,
3320
+ 'previousFundingRate': this.safeNumber(contract, 'rate_value'),
3321
+ 'previousFundingTimestamp': undefined,
3322
+ 'previousFundingDatetime': undefined,
3323
+ };
3324
+ }
3256
3325
  nonce() {
3257
3326
  return this.milliseconds();
3258
3327
  }
package/js/src/bl3p.js CHANGED
@@ -35,6 +35,9 @@ export default class bl3p extends Exchange {
35
35
  'cancelOrder': true,
36
36
  'createOrder': true,
37
37
  'createReduceOnlyOrder': false,
38
+ 'createStopLimitOrder': false,
39
+ 'createStopMarketOrder': false,
40
+ 'createStopOrder': false,
38
41
  'fetchBalance': true,
39
42
  'fetchBorrowRate': false,
40
43
  'fetchBorrowRateHistories': false,
@@ -367,12 +370,17 @@ export default class bl3p extends Exchange {
367
370
  * @method
368
371
  * @name bl3p#createOrder
369
372
  * @description create a trade order
373
+ * @see https://github.com/BitonicNL/bl3p-api/blob/master/examples/nodejs/example.md#21---create-an-order
370
374
  * @param {string} symbol unified symbol of the market to create an order in
371
375
  * @param {string} type 'market' or 'limit'
372
376
  * @param {string} side 'buy' or 'sell'
373
377
  * @param {float} amount how much of currency you want to trade in units of base currency
374
378
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
375
379
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
380
+ *
381
+ * EXCHANGE SPECIFIC PARAMETERS
382
+ * @param {int} [params.amount_funds] maximal EUR amount to spend (*1e5)
383
+ * @param {string} [params.fee_currency] 'EUR' or 'BTC'
376
384
  * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
377
385
  */
378
386
  const market = this.market(symbol);