ccxt 4.0.77 → 4.0.79

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.
@@ -1204,25 +1204,21 @@ class poloniex extends poloniex$1 {
1204
1204
  return this.parseOrders(response, market, since, limit, extension);
1205
1205
  }
1206
1206
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
1207
- //
1208
- // @method
1209
- // @name poloniex#createOrder
1210
- // @description create a trade order
1211
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1212
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
1213
- // @param {string} symbol unified symbol of the market to create an order in
1214
- // @param {string} type 'market' or 'limit'
1215
- // @param {string} side 'buy' or 'sell'
1216
- // @param {float} amount how much of currency you want to trade in units of base currency
1217
- // @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1218
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
1219
- // <<<<<<< HEAD
1220
- // @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
1221
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1222
- // =======
1223
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1224
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1225
- //
1207
+ /**
1208
+ * @method
1209
+ * @name poloniex#createOrder
1210
+ * @description create a trade order
1211
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
1212
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
1213
+ * @param {string} symbol unified symbol of the market to create an order in
1214
+ * @param {string} type 'market' or 'limit'
1215
+ * @param {string} side 'buy' or 'sell'
1216
+ * @param {float} amount how much of currency you want to trade in units of base currency
1217
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1218
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
1219
+ * @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
1220
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1221
+ */
1226
1222
  await this.loadMarkets();
1227
1223
  const market = this.market(symbol);
1228
1224
  if (!market['spot']) {
@@ -1291,26 +1287,22 @@ class poloniex extends poloniex$1 {
1291
1287
  return [request, params];
1292
1288
  }
1293
1289
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
1294
- //
1295
- // @method
1296
- // @name poloniex#editOrder
1297
- // @description edit a trade order
1298
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1299
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
1300
- // @param {string} id order id
1301
- // @param {string} symbol unified symbol of the market to create an order in
1302
- // @param {string} type 'market' or 'limit'
1303
- // @param {string} side 'buy' or 'sell'
1304
- // @param {float} [amount] how much of the currency you want to trade in units of the base currency
1305
- // @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1306
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
1307
- // <<<<<<< HEAD
1308
- // @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
1309
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1310
- // =======
1311
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1312
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1313
- //
1290
+ /**
1291
+ * @method
1292
+ * @name poloniex#editOrder
1293
+ * @description edit a trade order
1294
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
1295
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
1296
+ * @param {string} id order id
1297
+ * @param {string} symbol unified symbol of the market to create an order in
1298
+ * @param {string} type 'market' or 'limit'
1299
+ * @param {string} side 'buy' or 'sell'
1300
+ * @param {float} [amount] how much of the currency you want to trade in units of the base currency
1301
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1302
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
1303
+ * @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
1304
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1305
+ */
1314
1306
  await this.loadMarkets();
1315
1307
  const market = this.market(symbol);
1316
1308
  if (!market['spot']) {
@@ -1350,12 +1342,8 @@ class poloniex extends poloniex$1 {
1350
1342
  // @param {string} id order id
1351
1343
  // @param {string} symbol unified symbol of the market the order was made in
1352
1344
  // @param {object} [params] extra parameters specific to the poloniex api endpoint
1353
- // <<<<<<< HEAD
1354
1345
  // @param {boolean} [params.trigger] true if canceling a trigger order
1355
1346
  // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1356
- // =======
1357
- // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1358
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1359
1347
  //
1360
1348
  await this.loadMarkets();
1361
1349
  const request = {};
@@ -1385,21 +1373,17 @@ class poloniex extends poloniex$1 {
1385
1373
  return this.parseOrder(response);
1386
1374
  }
1387
1375
  async cancelAllOrders(symbol = undefined, params = {}) {
1388
- //
1389
- // @method
1390
- // @name poloniex#cancelAllOrders
1391
- // @description cancel all open orders
1392
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1393
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
1394
- // @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1395
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
1396
- // <<<<<<< HEAD
1397
- // @param {boolean} [params.trigger] true if canceling trigger orders
1398
- // @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1399
- // =======
1400
- // @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1401
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1402
- //
1376
+ /**
1377
+ * @method
1378
+ * @name poloniex#cancelAllOrders
1379
+ * @description cancel all open orders
1380
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
1381
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
1382
+ * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1383
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
1384
+ * @param {boolean} [params.trigger] true if canceling trigger orders
1385
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1386
+ */
1403
1387
  await this.loadMarkets();
1404
1388
  const request = {
1405
1389
  // 'accountTypes': 'SPOT',
@@ -1441,22 +1425,18 @@ class poloniex extends poloniex$1 {
1441
1425
  return this.parseOrders(response, market);
1442
1426
  }
1443
1427
  async fetchOrder(id, symbol = undefined, params = {}) {
1444
- //
1445
- // @method
1446
- // @name poloniex#fetchOrder
1447
- // @description fetch an order by it's id
1448
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1449
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1450
- // @param {string} id order id
1451
- // @param {string} symbol unified market symbol, default is undefined
1452
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
1453
- // <<<<<<< HEAD
1454
- // @param {boolean} [params.trigger] true if fetching a trigger order
1455
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1456
- // =======
1457
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1458
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
1459
- //
1428
+ /**
1429
+ * @method
1430
+ * @name poloniex#fetchOrder
1431
+ * @description fetch an order by it's id
1432
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
1433
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
1434
+ * @param {string} id order id
1435
+ * @param {string} symbol unified market symbol, default is undefined
1436
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
1437
+ * @param {boolean} [params.trigger] true if fetching a trigger order
1438
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1439
+ */
1460
1440
  await this.loadMarkets();
1461
1441
  id = id.toString();
1462
1442
  const request = {
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 } 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.76";
7
+ declare const version = "4.0.78";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
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.77';
41
+ const version = '4.0.79';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -47,6 +47,7 @@ interface Exchange {
47
47
  sapiGetMarginExchangeSmallLiability(params?: {}): Promise<implicitReturnType>;
48
48
  sapiGetMarginExchangeSmallLiabilityHistory(params?: {}): Promise<implicitReturnType>;
49
49
  sapiGetMarginNextHourlyInterestRate(params?: {}): Promise<implicitReturnType>;
50
+ sapiGetMarginDelistSchedule(params?: {}): Promise<implicitReturnType>;
50
51
  sapiGetLoanVipLoanableData(params?: {}): Promise<implicitReturnType>;
51
52
  sapiGetLoanVipCollateralData(params?: {}): Promise<implicitReturnType>;
52
53
  sapiGetLoanVipRequestData(params?: {}): Promise<implicitReturnType>;
@@ -98,7 +99,8 @@ interface Exchange {
98
99
  sapiGetSubAccountTransferSubUserHistory(params?: {}): Promise<implicitReturnType>;
99
100
  sapiGetSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
100
101
  sapiGetSubAccountApiRestrictionsIpRestrictionThirdPartyList(params?: {}): Promise<implicitReturnType>;
101
- sapiGetSubAccountTransactionTatistics(params?: {}): Promise<implicitReturnType>;
102
+ sapiGetSubAccountTransactionStatistics(params?: {}): Promise<implicitReturnType>;
103
+ sapiGetSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
102
104
  sapiGetManagedSubaccountAsset(params?: {}): Promise<implicitReturnType>;
103
105
  sapiGetManagedSubaccountAccountSnapshot(params?: {}): Promise<implicitReturnType>;
104
106
  sapiGetManagedSubaccountQueryTransLogForInvestor(params?: {}): Promise<implicitReturnType>;
@@ -174,6 +176,9 @@ interface Exchange {
174
176
  sapiGetGiftcardVerify(params?: {}): Promise<implicitReturnType>;
175
177
  sapiGetGiftcardCryptographyRsaPublicKey(params?: {}): Promise<implicitReturnType>;
176
178
  sapiGetGiftcardBuyCodeTokenLimit(params?: {}): Promise<implicitReturnType>;
179
+ sapiGetAlgoSpotOpenOrders(params?: {}): Promise<implicitReturnType>;
180
+ sapiGetAlgoSpotHistoricalOrders(params?: {}): Promise<implicitReturnType>;
181
+ sapiGetAlgoSpotSubOrders(params?: {}): Promise<implicitReturnType>;
177
182
  sapiGetAlgoFuturesOpenOrders(params?: {}): Promise<implicitReturnType>;
178
183
  sapiGetAlgoFuturesHistoricalOrders(params?: {}): Promise<implicitReturnType>;
179
184
  sapiGetAlgoFuturesSubOrders(params?: {}): Promise<implicitReturnType>;
@@ -282,6 +287,7 @@ interface Exchange {
282
287
  sapiPostGiftcardCreateCode(params?: {}): Promise<implicitReturnType>;
283
288
  sapiPostGiftcardRedeemCode(params?: {}): Promise<implicitReturnType>;
284
289
  sapiPostGiftcardBuyCode(params?: {}): Promise<implicitReturnType>;
290
+ sapiPostAlgoSpotNewOrderTwap(params?: {}): Promise<implicitReturnType>;
285
291
  sapiPostAlgoFuturesNewOrderVp(params?: {}): Promise<implicitReturnType>;
286
292
  sapiPostAlgoFuturesNewOrderTwap(params?: {}): Promise<implicitReturnType>;
287
293
  sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
@@ -321,9 +327,12 @@ interface Exchange {
321
327
  sapiDeleteUserDataStreamIsolated(params?: {}): Promise<implicitReturnType>;
322
328
  sapiDeleteBrokerSubAccountApi(params?: {}): Promise<implicitReturnType>;
323
329
  sapiDeleteBrokerSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
330
+ sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
324
331
  sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
332
+ sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
325
333
  sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
326
334
  sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
335
+ sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
327
336
  sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
328
337
  sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
329
338
  sapiV4GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
@@ -518,10 +527,12 @@ interface Exchange {
518
527
  publicGetAggTrades(params?: {}): Promise<implicitReturnType>;
519
528
  publicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
520
529
  publicGetKlines(params?: {}): Promise<implicitReturnType>;
530
+ publicGetUiKlines(params?: {}): Promise<implicitReturnType>;
521
531
  publicGetTicker24hr(params?: {}): Promise<implicitReturnType>;
522
532
  publicGetTickerPrice(params?: {}): Promise<implicitReturnType>;
523
533
  publicGetTickerBookTicker(params?: {}): Promise<implicitReturnType>;
524
534
  publicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
535
+ publicGetAvgPrice(params?: {}): Promise<implicitReturnType>;
525
536
  publicPutUserDataStream(params?: {}): Promise<implicitReturnType>;
526
537
  publicPostUserDataStream(params?: {}): Promise<implicitReturnType>;
527
538
  publicDeleteUserDataStream(params?: {}): Promise<implicitReturnType>;
@@ -47,6 +47,7 @@ interface binance {
47
47
  sapiGetMarginExchangeSmallLiability(params?: {}): Promise<implicitReturnType>;
48
48
  sapiGetMarginExchangeSmallLiabilityHistory(params?: {}): Promise<implicitReturnType>;
49
49
  sapiGetMarginNextHourlyInterestRate(params?: {}): Promise<implicitReturnType>;
50
+ sapiGetMarginDelistSchedule(params?: {}): Promise<implicitReturnType>;
50
51
  sapiGetLoanVipLoanableData(params?: {}): Promise<implicitReturnType>;
51
52
  sapiGetLoanVipCollateralData(params?: {}): Promise<implicitReturnType>;
52
53
  sapiGetLoanVipRequestData(params?: {}): Promise<implicitReturnType>;
@@ -98,7 +99,8 @@ interface binance {
98
99
  sapiGetSubAccountTransferSubUserHistory(params?: {}): Promise<implicitReturnType>;
99
100
  sapiGetSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
100
101
  sapiGetSubAccountApiRestrictionsIpRestrictionThirdPartyList(params?: {}): Promise<implicitReturnType>;
101
- sapiGetSubAccountTransactionTatistics(params?: {}): Promise<implicitReturnType>;
102
+ sapiGetSubAccountTransactionStatistics(params?: {}): Promise<implicitReturnType>;
103
+ sapiGetSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
102
104
  sapiGetManagedSubaccountAsset(params?: {}): Promise<implicitReturnType>;
103
105
  sapiGetManagedSubaccountAccountSnapshot(params?: {}): Promise<implicitReturnType>;
104
106
  sapiGetManagedSubaccountQueryTransLogForInvestor(params?: {}): Promise<implicitReturnType>;
@@ -174,6 +176,9 @@ interface binance {
174
176
  sapiGetGiftcardVerify(params?: {}): Promise<implicitReturnType>;
175
177
  sapiGetGiftcardCryptographyRsaPublicKey(params?: {}): Promise<implicitReturnType>;
176
178
  sapiGetGiftcardBuyCodeTokenLimit(params?: {}): Promise<implicitReturnType>;
179
+ sapiGetAlgoSpotOpenOrders(params?: {}): Promise<implicitReturnType>;
180
+ sapiGetAlgoSpotHistoricalOrders(params?: {}): Promise<implicitReturnType>;
181
+ sapiGetAlgoSpotSubOrders(params?: {}): Promise<implicitReturnType>;
177
182
  sapiGetAlgoFuturesOpenOrders(params?: {}): Promise<implicitReturnType>;
178
183
  sapiGetAlgoFuturesHistoricalOrders(params?: {}): Promise<implicitReturnType>;
179
184
  sapiGetAlgoFuturesSubOrders(params?: {}): Promise<implicitReturnType>;
@@ -282,6 +287,7 @@ interface binance {
282
287
  sapiPostGiftcardCreateCode(params?: {}): Promise<implicitReturnType>;
283
288
  sapiPostGiftcardRedeemCode(params?: {}): Promise<implicitReturnType>;
284
289
  sapiPostGiftcardBuyCode(params?: {}): Promise<implicitReturnType>;
290
+ sapiPostAlgoSpotNewOrderTwap(params?: {}): Promise<implicitReturnType>;
285
291
  sapiPostAlgoFuturesNewOrderVp(params?: {}): Promise<implicitReturnType>;
286
292
  sapiPostAlgoFuturesNewOrderTwap(params?: {}): Promise<implicitReturnType>;
287
293
  sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
@@ -321,9 +327,12 @@ interface binance {
321
327
  sapiDeleteUserDataStreamIsolated(params?: {}): Promise<implicitReturnType>;
322
328
  sapiDeleteBrokerSubAccountApi(params?: {}): Promise<implicitReturnType>;
323
329
  sapiDeleteBrokerSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
330
+ sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
324
331
  sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
332
+ sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
325
333
  sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
326
334
  sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
335
+ sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
327
336
  sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
328
337
  sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
329
338
  sapiV4GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
@@ -518,10 +527,12 @@ interface binance {
518
527
  publicGetAggTrades(params?: {}): Promise<implicitReturnType>;
519
528
  publicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
520
529
  publicGetKlines(params?: {}): Promise<implicitReturnType>;
530
+ publicGetUiKlines(params?: {}): Promise<implicitReturnType>;
521
531
  publicGetTicker24hr(params?: {}): Promise<implicitReturnType>;
522
532
  publicGetTickerPrice(params?: {}): Promise<implicitReturnType>;
523
533
  publicGetTickerBookTicker(params?: {}): Promise<implicitReturnType>;
524
534
  publicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
535
+ publicGetAvgPrice(params?: {}): Promise<implicitReturnType>;
525
536
  publicPutUserDataStream(params?: {}): Promise<implicitReturnType>;
526
537
  publicPostUserDataStream(params?: {}): Promise<implicitReturnType>;
527
538
  publicDeleteUserDataStream(params?: {}): Promise<implicitReturnType>;
@@ -47,6 +47,7 @@ interface binance {
47
47
  sapiGetMarginExchangeSmallLiability(params?: {}): Promise<implicitReturnType>;
48
48
  sapiGetMarginExchangeSmallLiabilityHistory(params?: {}): Promise<implicitReturnType>;
49
49
  sapiGetMarginNextHourlyInterestRate(params?: {}): Promise<implicitReturnType>;
50
+ sapiGetMarginDelistSchedule(params?: {}): Promise<implicitReturnType>;
50
51
  sapiGetLoanVipLoanableData(params?: {}): Promise<implicitReturnType>;
51
52
  sapiGetLoanVipCollateralData(params?: {}): Promise<implicitReturnType>;
52
53
  sapiGetLoanVipRequestData(params?: {}): Promise<implicitReturnType>;
@@ -98,7 +99,8 @@ interface binance {
98
99
  sapiGetSubAccountTransferSubUserHistory(params?: {}): Promise<implicitReturnType>;
99
100
  sapiGetSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
100
101
  sapiGetSubAccountApiRestrictionsIpRestrictionThirdPartyList(params?: {}): Promise<implicitReturnType>;
101
- sapiGetSubAccountTransactionTatistics(params?: {}): Promise<implicitReturnType>;
102
+ sapiGetSubAccountTransactionStatistics(params?: {}): Promise<implicitReturnType>;
103
+ sapiGetSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
102
104
  sapiGetManagedSubaccountAsset(params?: {}): Promise<implicitReturnType>;
103
105
  sapiGetManagedSubaccountAccountSnapshot(params?: {}): Promise<implicitReturnType>;
104
106
  sapiGetManagedSubaccountQueryTransLogForInvestor(params?: {}): Promise<implicitReturnType>;
@@ -174,6 +176,9 @@ interface binance {
174
176
  sapiGetGiftcardVerify(params?: {}): Promise<implicitReturnType>;
175
177
  sapiGetGiftcardCryptographyRsaPublicKey(params?: {}): Promise<implicitReturnType>;
176
178
  sapiGetGiftcardBuyCodeTokenLimit(params?: {}): Promise<implicitReturnType>;
179
+ sapiGetAlgoSpotOpenOrders(params?: {}): Promise<implicitReturnType>;
180
+ sapiGetAlgoSpotHistoricalOrders(params?: {}): Promise<implicitReturnType>;
181
+ sapiGetAlgoSpotSubOrders(params?: {}): Promise<implicitReturnType>;
177
182
  sapiGetAlgoFuturesOpenOrders(params?: {}): Promise<implicitReturnType>;
178
183
  sapiGetAlgoFuturesHistoricalOrders(params?: {}): Promise<implicitReturnType>;
179
184
  sapiGetAlgoFuturesSubOrders(params?: {}): Promise<implicitReturnType>;
@@ -282,6 +287,7 @@ interface binance {
282
287
  sapiPostGiftcardCreateCode(params?: {}): Promise<implicitReturnType>;
283
288
  sapiPostGiftcardRedeemCode(params?: {}): Promise<implicitReturnType>;
284
289
  sapiPostGiftcardBuyCode(params?: {}): Promise<implicitReturnType>;
290
+ sapiPostAlgoSpotNewOrderTwap(params?: {}): Promise<implicitReturnType>;
285
291
  sapiPostAlgoFuturesNewOrderVp(params?: {}): Promise<implicitReturnType>;
286
292
  sapiPostAlgoFuturesNewOrderTwap(params?: {}): Promise<implicitReturnType>;
287
293
  sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
@@ -321,9 +327,12 @@ interface binance {
321
327
  sapiDeleteUserDataStreamIsolated(params?: {}): Promise<implicitReturnType>;
322
328
  sapiDeleteBrokerSubAccountApi(params?: {}): Promise<implicitReturnType>;
323
329
  sapiDeleteBrokerSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
330
+ sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
324
331
  sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
332
+ sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
325
333
  sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
326
334
  sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
335
+ sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
327
336
  sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
328
337
  sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
329
338
  sapiV4GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
@@ -518,10 +527,12 @@ interface binance {
518
527
  publicGetAggTrades(params?: {}): Promise<implicitReturnType>;
519
528
  publicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
520
529
  publicGetKlines(params?: {}): Promise<implicitReturnType>;
530
+ publicGetUiKlines(params?: {}): Promise<implicitReturnType>;
521
531
  publicGetTicker24hr(params?: {}): Promise<implicitReturnType>;
522
532
  publicGetTickerPrice(params?: {}): Promise<implicitReturnType>;
523
533
  publicGetTickerBookTicker(params?: {}): Promise<implicitReturnType>;
524
534
  publicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
535
+ publicGetAvgPrice(params?: {}): Promise<implicitReturnType>;
525
536
  publicPutUserDataStream(params?: {}): Promise<implicitReturnType>;
526
537
  publicPostUserDataStream(params?: {}): Promise<implicitReturnType>;
527
538
  publicDeleteUserDataStream(params?: {}): Promise<implicitReturnType>;
@@ -47,6 +47,7 @@ interface binance {
47
47
  sapiGetMarginExchangeSmallLiability(params?: {}): Promise<implicitReturnType>;
48
48
  sapiGetMarginExchangeSmallLiabilityHistory(params?: {}): Promise<implicitReturnType>;
49
49
  sapiGetMarginNextHourlyInterestRate(params?: {}): Promise<implicitReturnType>;
50
+ sapiGetMarginDelistSchedule(params?: {}): Promise<implicitReturnType>;
50
51
  sapiGetLoanVipLoanableData(params?: {}): Promise<implicitReturnType>;
51
52
  sapiGetLoanVipCollateralData(params?: {}): Promise<implicitReturnType>;
52
53
  sapiGetLoanVipRequestData(params?: {}): Promise<implicitReturnType>;
@@ -98,7 +99,8 @@ interface binance {
98
99
  sapiGetSubAccountTransferSubUserHistory(params?: {}): Promise<implicitReturnType>;
99
100
  sapiGetSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
100
101
  sapiGetSubAccountApiRestrictionsIpRestrictionThirdPartyList(params?: {}): Promise<implicitReturnType>;
101
- sapiGetSubAccountTransactionTatistics(params?: {}): Promise<implicitReturnType>;
102
+ sapiGetSubAccountTransactionStatistics(params?: {}): Promise<implicitReturnType>;
103
+ sapiGetSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
102
104
  sapiGetManagedSubaccountAsset(params?: {}): Promise<implicitReturnType>;
103
105
  sapiGetManagedSubaccountAccountSnapshot(params?: {}): Promise<implicitReturnType>;
104
106
  sapiGetManagedSubaccountQueryTransLogForInvestor(params?: {}): Promise<implicitReturnType>;
@@ -174,6 +176,9 @@ interface binance {
174
176
  sapiGetGiftcardVerify(params?: {}): Promise<implicitReturnType>;
175
177
  sapiGetGiftcardCryptographyRsaPublicKey(params?: {}): Promise<implicitReturnType>;
176
178
  sapiGetGiftcardBuyCodeTokenLimit(params?: {}): Promise<implicitReturnType>;
179
+ sapiGetAlgoSpotOpenOrders(params?: {}): Promise<implicitReturnType>;
180
+ sapiGetAlgoSpotHistoricalOrders(params?: {}): Promise<implicitReturnType>;
181
+ sapiGetAlgoSpotSubOrders(params?: {}): Promise<implicitReturnType>;
177
182
  sapiGetAlgoFuturesOpenOrders(params?: {}): Promise<implicitReturnType>;
178
183
  sapiGetAlgoFuturesHistoricalOrders(params?: {}): Promise<implicitReturnType>;
179
184
  sapiGetAlgoFuturesSubOrders(params?: {}): Promise<implicitReturnType>;
@@ -282,6 +287,7 @@ interface binance {
282
287
  sapiPostGiftcardCreateCode(params?: {}): Promise<implicitReturnType>;
283
288
  sapiPostGiftcardRedeemCode(params?: {}): Promise<implicitReturnType>;
284
289
  sapiPostGiftcardBuyCode(params?: {}): Promise<implicitReturnType>;
290
+ sapiPostAlgoSpotNewOrderTwap(params?: {}): Promise<implicitReturnType>;
285
291
  sapiPostAlgoFuturesNewOrderVp(params?: {}): Promise<implicitReturnType>;
286
292
  sapiPostAlgoFuturesNewOrderTwap(params?: {}): Promise<implicitReturnType>;
287
293
  sapiPostStakingPurchase(params?: {}): Promise<implicitReturnType>;
@@ -321,9 +327,12 @@ interface binance {
321
327
  sapiDeleteUserDataStreamIsolated(params?: {}): Promise<implicitReturnType>;
322
328
  sapiDeleteBrokerSubAccountApi(params?: {}): Promise<implicitReturnType>;
323
329
  sapiDeleteBrokerSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
330
+ sapiDeleteAlgoSpotOrder(params?: {}): Promise<implicitReturnType>;
324
331
  sapiDeleteAlgoFuturesOrder(params?: {}): Promise<implicitReturnType>;
332
+ sapiDeleteSubAccountSubAccountApiIpRestrictionIpList(params?: {}): Promise<implicitReturnType>;
325
333
  sapiV2GetSubAccountFuturesAccount(params?: {}): Promise<implicitReturnType>;
326
334
  sapiV2GetSubAccountFuturesPositionRisk(params?: {}): Promise<implicitReturnType>;
335
+ sapiV2PostSubAccountSubAccountApiIpRestriction(params?: {}): Promise<implicitReturnType>;
327
336
  sapiV3GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
328
337
  sapiV3PostAssetGetUserAsset(params?: {}): Promise<implicitReturnType>;
329
338
  sapiV4GetSubAccountAssets(params?: {}): Promise<implicitReturnType>;
@@ -518,10 +527,12 @@ interface binance {
518
527
  publicGetAggTrades(params?: {}): Promise<implicitReturnType>;
519
528
  publicGetHistoricalTrades(params?: {}): Promise<implicitReturnType>;
520
529
  publicGetKlines(params?: {}): Promise<implicitReturnType>;
530
+ publicGetUiKlines(params?: {}): Promise<implicitReturnType>;
521
531
  publicGetTicker24hr(params?: {}): Promise<implicitReturnType>;
522
532
  publicGetTickerPrice(params?: {}): Promise<implicitReturnType>;
523
533
  publicGetTickerBookTicker(params?: {}): Promise<implicitReturnType>;
524
534
  publicGetExchangeInfo(params?: {}): Promise<implicitReturnType>;
535
+ publicGetAvgPrice(params?: {}): Promise<implicitReturnType>;
525
536
  publicPutUserDataStream(params?: {}): Promise<implicitReturnType>;
526
537
  publicPostUserDataStream(params?: {}): Promise<implicitReturnType>;
527
538
  publicDeleteUserDataStream(params?: {}): Promise<implicitReturnType>;
@@ -5,11 +5,11 @@ interface Exchange {
5
5
  spotV1PublicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
6
6
  spotV1PublicGetMarketDepth(params?: {}): Promise<implicitReturnType>;
7
7
  spotV1PublicGetMarketKline(params?: {}): Promise<implicitReturnType>;
8
+ spotV1PublicGetTicker24hr(params?: {}): Promise<implicitReturnType>;
8
9
  spotV1PrivateGetTradeQuery(params?: {}): Promise<implicitReturnType>;
9
10
  spotV1PrivateGetTradeOpenOrders(params?: {}): Promise<implicitReturnType>;
10
11
  spotV1PrivateGetTradeHistoryOrders(params?: {}): Promise<implicitReturnType>;
11
12
  spotV1PrivateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
12
- spotV1PrivateGetTicker24hr(params?: {}): Promise<implicitReturnType>;
13
13
  spotV1PrivatePostTradeOrder(params?: {}): Promise<implicitReturnType>;
14
14
  spotV1PrivatePostTradeCancel(params?: {}): Promise<implicitReturnType>;
15
15
  spotV1PrivatePostTradeBatchOrders(params?: {}): Promise<implicitReturnType>;
@@ -48,6 +48,7 @@ interface Exchange {
48
48
  spotPrivateGetRebateDetail(params?: {}): Promise<implicitReturnType>;
49
49
  spotPrivateGetRebateDetailKickback(params?: {}): Promise<implicitReturnType>;
50
50
  spotPrivateGetRebateReferCode(params?: {}): Promise<implicitReturnType>;
51
+ spotPrivateGetRebateAffiliateCommission(params?: {}): Promise<implicitReturnType>;
51
52
  spotPrivateGetMxDeductEnable(params?: {}): Promise<implicitReturnType>;
52
53
  spotPrivateGetUserDataStream(params?: {}): Promise<implicitReturnType>;
53
54
  spotPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
@@ -48,6 +48,7 @@ interface mexc {
48
48
  spotPrivateGetRebateDetail(params?: {}): Promise<implicitReturnType>;
49
49
  spotPrivateGetRebateDetailKickback(params?: {}): Promise<implicitReturnType>;
50
50
  spotPrivateGetRebateReferCode(params?: {}): Promise<implicitReturnType>;
51
+ spotPrivateGetRebateAffiliateCommission(params?: {}): Promise<implicitReturnType>;
51
52
  spotPrivateGetMxDeductEnable(params?: {}): Promise<implicitReturnType>;
52
53
  spotPrivateGetUserDataStream(params?: {}): Promise<implicitReturnType>;
53
54
  spotPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
@@ -59,6 +59,7 @@ interface okx {
59
59
  publicGetTradingBotGridAiParam(params?: {}): Promise<implicitReturnType>;
60
60
  publicGetTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
61
61
  publicGetTradingBotPublicRsiBackTesting(params?: {}): Promise<implicitReturnType>;
62
+ publicGetAssetExchangeList(params?: {}): Promise<implicitReturnType>;
62
63
  publicGetFinanceSavingsLendingRateSummary(params?: {}): Promise<implicitReturnType>;
63
64
  publicGetFinanceSavingsLendingRateHistory(params?: {}): Promise<implicitReturnType>;
64
65
  publicGetFinanceSfpDcdProducts(params?: {}): Promise<implicitReturnType>;
@@ -59,6 +59,7 @@ interface okex {
59
59
  publicGetTradingBotGridAiParam(params?: {}): Promise<implicitReturnType>;
60
60
  publicGetTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
61
61
  publicGetTradingBotPublicRsiBackTesting(params?: {}): Promise<implicitReturnType>;
62
+ publicGetAssetExchangeList(params?: {}): Promise<implicitReturnType>;
62
63
  publicGetFinanceSavingsLendingRateSummary(params?: {}): Promise<implicitReturnType>;
63
64
  publicGetFinanceSavingsLendingRateHistory(params?: {}): Promise<implicitReturnType>;
64
65
  publicGetFinanceSfpDcdProducts(params?: {}): Promise<implicitReturnType>;
@@ -59,6 +59,7 @@ interface Exchange {
59
59
  publicGetTradingBotGridAiParam(params?: {}): Promise<implicitReturnType>;
60
60
  publicGetTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
61
61
  publicGetTradingBotPublicRsiBackTesting(params?: {}): Promise<implicitReturnType>;
62
+ publicGetAssetExchangeList(params?: {}): Promise<implicitReturnType>;
62
63
  publicGetFinanceSavingsLendingRateSummary(params?: {}): Promise<implicitReturnType>;
63
64
  publicGetFinanceSavingsLendingRateHistory(params?: {}): Promise<implicitReturnType>;
64
65
  publicGetFinanceSfpDcdProducts(params?: {}): Promise<implicitReturnType>;
@@ -734,6 +734,7 @@ export default class Exchange {
734
734
  amountToPrecision(symbol: string, amount: any): any;
735
735
  feeToPrecision(symbol: string, fee: any): any;
736
736
  currencyToPrecision(code: string, fee: any, networkCode?: any): any;
737
+ forceString(value: any): any;
737
738
  isTickPrecision(): boolean;
738
739
  isDecimalPrecision(): boolean;
739
740
  isSignificantPrecision(): boolean;
@@ -3361,12 +3361,18 @@ export default class Exchange {
3361
3361
  precision = this.safeValue(networkItem, 'precision', precision);
3362
3362
  }
3363
3363
  if (precision === undefined) {
3364
- return fee;
3364
+ return this.forceString(fee);
3365
3365
  }
3366
3366
  else {
3367
3367
  return this.decimalToPrecision(fee, ROUND, precision, this.precisionMode, this.paddingMode);
3368
3368
  }
3369
3369
  }
3370
+ forceString(value) {
3371
+ if (typeof value !== 'string') {
3372
+ return this.numberToString(value);
3373
+ }
3374
+ return value;
3375
+ }
3370
3376
  isTickPrecision() {
3371
3377
  return this.precisionMode === TICK_SIZE;
3372
3378
  }