ccxt 4.0.78 → 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.
package/README.md CHANGED
@@ -215,13 +215,13 @@ console.log(version, Object.keys(exchanges));
215
215
 
216
216
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
217
217
 
218
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.0.78/dist/ccxt.browser.js
219
- * unpkg: https://unpkg.com/ccxt@4.0.78/dist/ccxt.browser.js
218
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.0.79/dist/ccxt.browser.js
219
+ * unpkg: https://unpkg.com/ccxt@4.0.79/dist/ccxt.browser.js
220
220
 
221
221
  CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
222
222
 
223
223
  ```HTML
224
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.0.78/dist/ccxt.browser.js"></script>
224
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.0.79/dist/ccxt.browser.js"></script>
225
225
  ```
226
226
 
227
227
  Creates a global `ccxt` object:
@@ -15729,12 +15729,11 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15729
15729
  'api': {
15730
15730
  // the API structure below will need 3-layer apidefs
15731
15731
  'sapi': {
15732
- // IP (api) = 1200 per minute => (rateLimit = 50)
15733
15732
  // IP (sapi) request rate limit of 12 000 per minute
15734
- // 1 IP (sapi) => cost = 0.1
15733
+ // 1 IP (sapi) => cost = 0.1 => (1000 / (50 * 0.1)) * 60 = 12000
15735
15734
  // 10 IP (sapi) => cost = 1
15736
15735
  // UID (sapi) request rate limit of 180 000 per minute
15737
- // 1 UID (sapi) => cost = 1200 / 180 000 = 0.006667
15736
+ // 1 UID (sapi) => cost = 0.006667 => (1000 / (50 * 0.006667)) * 60 = 180000
15738
15737
  'get': {
15739
15738
  'system/status': 0.1,
15740
15739
  // these endpoints require this.apiKey
@@ -15750,7 +15749,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15750
15749
  'asset/transfer': 0.1,
15751
15750
  'asset/assetDetail': 0.1,
15752
15751
  'asset/tradeFee': 0.1,
15753
- 'asset/ledger-transfer/cloud-mining/queryByPage': 4,
15752
+ 'asset/ledger-transfer/cloud-mining/queryByPage': 4.0002,
15754
15753
  'asset/convert-transfer/queryByPage': 0.033335,
15755
15754
  'margin/loan': 1,
15756
15755
  'margin/repay': 1,
@@ -15779,15 +15778,16 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15779
15778
  'margin/isolatedMarginTier': 0.1,
15780
15779
  'margin/rateLimit/order': 2,
15781
15780
  'margin/dribblet': 0.1,
15782
- 'margin/dust': 20,
15781
+ 'margin/dust': 20.001,
15783
15782
  'margin/crossMarginCollateralRatio': 10,
15784
15783
  'margin/exchange-small-liability': 0.6667,
15785
15784
  'margin/exchange-small-liability-history': 0.6667,
15786
15785
  'margin/next-hourly-interest-rate': 0.6667,
15786
+ 'margin/delist-schedule': 0.6667,
15787
15787
  'loan/vip/loanable/data': 40,
15788
15788
  'loan/vip/collateral/data': 40,
15789
- 'loan/vip/request/data': 40,
15790
- 'loan/income': 40,
15789
+ 'loan/vip/request/data': 2.6668,
15790
+ 'loan/income': 40.002,
15791
15791
  'loan/ongoing/orders': 40,
15792
15792
  'loan/ltv/adjustment/history': 40,
15793
15793
  'loan/borrow/history': 40,
@@ -15806,7 +15806,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15806
15806
  'futures/loan/wallet': 1,
15807
15807
  'futures/loan/adjustCollateral/history': 1,
15808
15808
  'futures/loan/liquidationHistory': 1,
15809
- 'rebate/taxQuery': 20.001,
15809
+ 'rebate/taxQuery': 80.004,
15810
15810
  // https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi
15811
15811
  'capital/config/getall': 1,
15812
15812
  'capital/deposit/address': 1,
@@ -15815,7 +15815,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15815
15815
  'capital/deposit/subHisrec': 0.1,
15816
15816
  'capital/withdraw/history': 0.1,
15817
15817
  'capital/contract/convertible-coins': 4.0002,
15818
- 'convert/tradeFlow': 20.0001,
15818
+ 'convert/tradeFlow': 20.001,
15819
15819
  'convert/exchangeInfo': 50,
15820
15820
  'convert/assetInfo': 10,
15821
15821
  'convert/orderStatus': 0.6667,
@@ -15823,7 +15823,6 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15823
15823
  'account/apiTradingStatus': 0.1,
15824
15824
  'account/apiRestrictions/ipRestriction': 0.1,
15825
15825
  'bnbBurn': 0.1,
15826
- // 'sub-account/assets': 1, (v3 endpoint)
15827
15826
  'sub-account/futures/account': 1,
15828
15827
  'sub-account/futures/accountSummary': 0.1,
15829
15828
  'sub-account/futures/positionRisk': 1,
@@ -15837,15 +15836,16 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15837
15836
  'sub-account/transfer/subUserHistory': 0.1,
15838
15837
  'sub-account/universalTransfer': 0.1,
15839
15838
  'sub-account/apiRestrictions/ipRestriction/thirdPartyList': 1,
15840
- 'sub-account/transaction-tatistics': 0.4,
15839
+ 'sub-account/transaction-statistics': 0.40002,
15840
+ 'sub-account/subAccountApi/ipRestriction': 20.001,
15841
15841
  'managed-subaccount/asset': 0.1,
15842
15842
  'managed-subaccount/accountSnapshot': 240,
15843
15843
  'managed-subaccount/queryTransLogForInvestor': 0.1,
15844
- 'managed-subaccount/queryTransLogForTradeParent': 0.1,
15845
- 'managed-subaccount/fetch-future-asset': 0.1,
15844
+ 'managed-subaccount/queryTransLogForTradeParent': 0.40002,
15845
+ 'managed-subaccount/fetch-future-asset': 0.40002,
15846
15846
  'managed-subaccount/marginAsset': 0.1,
15847
- 'managed-subaccount/info': 0.4,
15848
- 'managed-subaccount/deposit/address': 0.1,
15847
+ 'managed-subaccount/info': 0.40002,
15848
+ 'managed-subaccount/deposit/address': 0.006667,
15849
15849
  'managed-subaccount/query-trans-log': 0.40002,
15850
15850
  // lending endpoints
15851
15851
  'lending/daily/product/list': 0.1,
@@ -15923,6 +15923,9 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15923
15923
  'giftcard/verify': 0.1,
15924
15924
  'giftcard/cryptography/rsa-public-key': 0.1,
15925
15925
  'giftcard/buyCode/token-limit': 0.1,
15926
+ 'algo/spot/openOrders': 0.1,
15927
+ 'algo/spot/historicalOrders': 0.1,
15928
+ 'algo/spot/subOrders': 0.1,
15926
15929
  'algo/futures/openOrders': 0.1,
15927
15930
  'algo/futures/historicalOrders': 0.1,
15928
15931
  'algo/futures/subOrders': 0.1,
@@ -15964,9 +15967,9 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15964
15967
  'simple-earn/flexible/history/collateralRecord': 0.1,
15965
15968
  },
15966
15969
  'post': {
15967
- 'asset/dust': 1,
15970
+ 'asset/dust': 0.06667,
15968
15971
  'asset/dust-btc': 0.1,
15969
- 'asset/transfer': 0.1,
15972
+ 'asset/transfer': 6.0003,
15970
15973
  'asset/get-funding-asset': 0.1,
15971
15974
  'asset/convert-transfer': 0.033335,
15972
15975
  'account/disableFastWithdrawSwitch': 0.1,
@@ -15976,12 +15979,12 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15976
15979
  'capital/withdraw/apply': 4.0002,
15977
15980
  'capital/contract/convertible-coins': 4.0002,
15978
15981
  'capital/deposit/credit-apply': 0.1,
15979
- 'margin/transfer': 1,
15982
+ 'margin/transfer': 4.0002,
15980
15983
  'margin/loan': 20.001,
15981
15984
  'margin/repay': 20.001,
15982
15985
  'margin/order': 0.040002,
15983
15986
  'margin/order/oco': 0.040002,
15984
- 'margin/dust': 20,
15987
+ 'margin/dust': 20.001,
15985
15988
  'margin/exchange-small-liability': 20.001,
15986
15989
  // 'margin/isolated/create': 1, discontinued
15987
15990
  'margin/isolated/transfer': 4.0002,
@@ -15998,8 +16001,6 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
15998
16001
  'sub-account/transfer/subToMaster': 0.1,
15999
16002
  'sub-account/universalTransfer': 0.1,
16000
16003
  'sub-account/options/enable': 0.1,
16001
- // v2 not supported yet
16002
- // 'sub-account/subAccountApi/ipRestriction': 20,
16003
16004
  'managed-subaccount/deposit': 0.1,
16004
16005
  'managed-subaccount/withdraw': 0.1,
16005
16006
  'userDataStream': 0.1,
@@ -16045,6 +16046,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
16045
16046
  'giftcard/createCode': 0.1,
16046
16047
  'giftcard/redeemCode': 0.1,
16047
16048
  'giftcard/buyCode': 0.1,
16049
+ 'algo/spot/newOrderTwap': 20.001,
16048
16050
  'algo/futures/newOrderVp': 20.001,
16049
16051
  'algo/futures/newOrderTwap': 20.001,
16050
16052
  // staking
@@ -16052,14 +16054,14 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
16052
16054
  'staking/redeem': 0.1,
16053
16055
  'staking/setAutoStaking': 0.1,
16054
16056
  'portfolio/repay': 20.001,
16055
- 'loan/vip/renew': 40,
16056
- 'loan/vip/borrow': 40,
16057
- 'loan/borrow': 40,
16058
- 'loan/repay': 40,
16059
- 'loan/adjust/ltv': 40,
16060
- 'loan/customize/margin_call': 40,
16061
- 'loan/vip/repay': 40,
16062
- 'convert/getQuote': 20.001,
16057
+ 'loan/vip/renew': 40.002,
16058
+ 'loan/vip/borrow': 40.002,
16059
+ 'loan/borrow': 40.002,
16060
+ 'loan/repay': 40.002,
16061
+ 'loan/adjust/ltv': 40.002,
16062
+ 'loan/customize/margin_call': 40.002,
16063
+ 'loan/vip/repay': 40.002,
16064
+ 'convert/getQuote': 1.3334,
16063
16065
  'convert/acceptQuote': 3.3335,
16064
16066
  'portfolio/auto-collection': 150,
16065
16067
  'portfolio/asset-collection': 6,
@@ -16084,15 +16086,17 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
16084
16086
  'delete': {
16085
16087
  // 'account/apiRestrictions/ipRestriction/ipList': 1, discontinued
16086
16088
  'margin/openOrders': 0.1,
16087
- 'margin/order': 0.0066667,
16088
- 'margin/orderList': 0.0066667,
16089
+ 'margin/order': 0.006667,
16090
+ 'margin/orderList': 0.006667,
16089
16091
  'margin/isolated/account': 2.0001,
16090
16092
  'userDataStream': 0.1,
16091
16093
  'userDataStream/isolated': 0.1,
16092
16094
  // brokerage API TODO NO MENTION OF RATELIMIT IN BROKERAGE DOCS
16093
16095
  'broker/subAccountApi': 1,
16094
16096
  'broker/subAccountApi/ipRestriction/ipList': 1,
16097
+ 'algo/spot/order': 0.1,
16095
16098
  'algo/futures/order': 0.1,
16099
+ 'sub-account/subAccountApi/ipRestriction/ipList': 20.001, // Weight(UID): 3000 => cost = 0.006667 * 3000 = 20.001
16096
16100
  },
16097
16101
  },
16098
16102
  'sapiV2': {
@@ -16100,10 +16104,13 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
16100
16104
  'sub-account/futures/account': 0.1,
16101
16105
  'sub-account/futures/positionRisk': 0.1,
16102
16106
  },
16107
+ 'post': {
16108
+ 'sub-account/subAccountApi/ipRestriction': 20.001, // Weight(UID): 3000 => cost = 0.006667 * 3000 = 20.001
16109
+ },
16103
16110
  },
16104
16111
  'sapiV3': {
16105
16112
  'get': {
16106
- 'sub-account/assets': 1,
16113
+ 'sub-account/assets': 0.40002, // Weight(UID): 60 => cost = 0.006667 * 60 = 0.40002
16107
16114
  },
16108
16115
  'post': {
16109
16116
  'asset/getUserAsset': 0.5,
@@ -16111,7 +16118,7 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
16111
16118
  },
16112
16119
  'sapiV4': {
16113
16120
  'get': {
16114
- 'sub-account/assets': 1,
16121
+ 'sub-account/assets': 0.40002, // Weight(UID): 60 => cost = 0.006667 * 60 = 0.40002
16115
16122
  },
16116
16123
  },
16117
16124
  // deprecated
@@ -16366,55 +16373,59 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
16366
16373
  },
16367
16374
  },
16368
16375
  'public': {
16376
+ // IP (api) request rate limit of 6000 per minute
16377
+ // 1 IP (api) => cost = 0.2 => (1000 / (50 * 0.2)) * 60 = 6000
16369
16378
  'get': {
16370
- 'ping': 1,
16371
- 'time': 1,
16372
- 'depth': { 'cost': 1, 'byLimit': [[100, 1], [500, 5], [1000, 10], [5000, 50]] },
16373
- 'trades': 1,
16374
- 'aggTrades': 1,
16375
- 'historicalTrades': 5,
16376
- 'klines': 1,
16377
- 'ticker/24hr': { 'cost': 1, 'noSymbol': 40 },
16378
- 'ticker/price': { 'cost': 1, 'noSymbol': 2 },
16379
- 'ticker/bookTicker': { 'cost': 1, 'noSymbol': 2 },
16380
- 'exchangeInfo': 10,
16379
+ 'ping': 0.2,
16380
+ 'time': 0.2,
16381
+ 'depth': { 'cost': 0.4, 'byLimit': [[100, 0.4], [500, 2], [1000, 4], [5000, 20]] },
16382
+ 'trades': 0.4,
16383
+ 'aggTrades': 0.4,
16384
+ 'historicalTrades': 2,
16385
+ 'klines': 0.4,
16386
+ 'uiKlines': 0.4,
16387
+ 'ticker/24hr': { 'cost': 0.4, 'noSymbol': 16 },
16388
+ 'ticker/price': { 'cost': 0.4, 'noSymbol': 0.8 },
16389
+ 'ticker/bookTicker': { 'cost': 0.4, 'noSymbol': 0.8 },
16390
+ 'exchangeInfo': 4,
16391
+ 'avgPrice': 0.4,
16381
16392
  },
16382
16393
  'put': {
16383
- 'userDataStream': 1,
16394
+ 'userDataStream': 0.4,
16384
16395
  },
16385
16396
  'post': {
16386
- 'userDataStream': 1,
16397
+ 'userDataStream': 0.4,
16387
16398
  },
16388
16399
  'delete': {
16389
- 'userDataStream': 1,
16400
+ 'userDataStream': 0.4,
16390
16401
  },
16391
16402
  },
16392
16403
  'private': {
16393
16404
  'get': {
16394
- 'allOrderList': 10,
16395
- 'openOrderList': 3,
16396
- 'orderList': 2,
16397
- 'order': 2,
16398
- 'openOrders': { 'cost': 3, 'noSymbol': 40 },
16399
- 'allOrders': 10,
16400
- 'account': 10,
16401
- 'myTrades': 10,
16402
- 'rateLimit/order': 20,
16403
- 'myPreventedMatches': 1,
16404
- 'myAllocations': 10,
16405
+ 'allOrderList': 4,
16406
+ 'openOrderList': 1.2,
16407
+ 'orderList': 0.8,
16408
+ 'order': 0.8,
16409
+ 'openOrders': { 'cost': 1.2, 'noSymbol': 16 },
16410
+ 'allOrders': 4,
16411
+ 'account': 4,
16412
+ 'myTrades': 4,
16413
+ 'rateLimit/order': 8,
16414
+ 'myPreventedMatches': 4,
16415
+ 'myAllocations': 4,
16405
16416
  },
16406
16417
  'post': {
16407
- 'order/oco': 1,
16408
- 'sor/order': 1,
16409
- 'sor/order/test': 1,
16410
- 'order': 1,
16411
- 'order/cancelReplace': 1,
16412
- 'order/test': 1,
16418
+ 'order/oco': 0.2,
16419
+ 'sor/order': 0.2,
16420
+ 'sor/order/test': 0.2,
16421
+ 'order': 0.2,
16422
+ 'order/cancelReplace': 0.2,
16423
+ 'order/test': 0.2,
16413
16424
  },
16414
16425
  'delete': {
16415
- 'openOrders': 1,
16416
- 'orderList': 1,
16417
- 'order': 1,
16426
+ 'openOrders': 0.2,
16427
+ 'orderList': 0.2,
16428
+ 'order': 0.2,
16418
16429
  },
16419
16430
  },
16420
16431
  'papi': {
@@ -42794,7 +42805,7 @@ class bithumb extends _abstract_bithumb_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
42794
42805
  await this.loadMarkets();
42795
42806
  const market = this.market(symbol);
42796
42807
  const request = {
42797
- 'currency': market['base'],
42808
+ 'currency': market['base'] + '_' + market['quote'],
42798
42809
  };
42799
42810
  if (limit !== undefined) {
42800
42811
  request['count'] = limit; // default 20, max 100
@@ -163028,6 +163039,7 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
163028
163039
  'rebate/detail': 1,
163029
163040
  'rebate/detail/kickback': 1,
163030
163041
  'rebate/referCode': 1,
163042
+ 'rebate/affiliate/commission': 1,
163031
163043
  'mxDeduct/enable': 1,
163032
163044
  'userDataStream': 1,
163033
163045
  },
@@ -186020,8 +186032,13 @@ class phemex extends _abstract_phemex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
186020
186032
  id = this.safeString2(trade, 'execId', 'execID');
186021
186033
  orderId = this.safeString(trade, 'orderID');
186022
186034
  if (market['settle'] === 'USDT') {
186023
- const sideId = this.safeString(trade, 'side');
186024
- side = (sideId === '1') ? 'buy' : 'sell';
186035
+ const sideId = this.safeStringLower(trade, 'side');
186036
+ if ((sideId === 'buy') || (sideId === 'sell')) {
186037
+ side = sideId;
186038
+ }
186039
+ else if (sideId !== undefined) {
186040
+ side = (sideId === '1') ? 'buy' : 'sell';
186041
+ }
186025
186042
  const ordType = this.safeString(trade, 'ordType');
186026
186043
  if (ordType === '1') {
186027
186044
  type = 'market';
@@ -186029,7 +186046,7 @@ class phemex extends _abstract_phemex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
186029
186046
  else if (ordType === '2') {
186030
186047
  type = 'limit';
186031
186048
  }
186032
- priceString = this.safeString(trade, 'priceRp');
186049
+ priceString = this.safeString(trade, 'execPriceRp');
186033
186050
  amountString = this.safeString(trade, 'execQtyRq');
186034
186051
  costString = this.safeString(trade, 'execValueRv');
186035
186052
  feeCostString = this.safeString(trade, 'execFeeRv');
@@ -190017,25 +190034,21 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
190017
190034
  return this.parseOrders(response, market, since, limit, extension);
190018
190035
  }
190019
190036
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
190020
- //
190021
- // @method
190022
- // @name poloniex#createOrder
190023
- // @description create a trade order
190024
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
190025
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
190026
- // @param {string} symbol unified symbol of the market to create an order in
190027
- // @param {string} type 'market' or 'limit'
190028
- // @param {string} side 'buy' or 'sell'
190029
- // @param {float} amount how much of currency you want to trade in units of base currency
190030
- // @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
190031
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
190032
- // <<<<<<< HEAD
190033
- // @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
190034
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190035
- // =======
190036
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190037
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
190038
- //
190037
+ /**
190038
+ * @method
190039
+ * @name poloniex#createOrder
190040
+ * @description create a trade order
190041
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-create-order
190042
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-create-order // trigger orders
190043
+ * @param {string} symbol unified symbol of the market to create an order in
190044
+ * @param {string} type 'market' or 'limit'
190045
+ * @param {string} side 'buy' or 'sell'
190046
+ * @param {float} amount how much of currency you want to trade in units of base currency
190047
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
190048
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
190049
+ * @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
190050
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190051
+ */
190039
190052
  await this.loadMarkets();
190040
190053
  const market = this.market(symbol);
190041
190054
  if (!market['spot']) {
@@ -190104,26 +190117,22 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
190104
190117
  return [request, params];
190105
190118
  }
190106
190119
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
190107
- //
190108
- // @method
190109
- // @name poloniex#editOrder
190110
- // @description edit a trade order
190111
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
190112
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
190113
- // @param {string} id order id
190114
- // @param {string} symbol unified symbol of the market to create an order in
190115
- // @param {string} type 'market' or 'limit'
190116
- // @param {string} side 'buy' or 'sell'
190117
- // @param {float} [amount] how much of the currency you want to trade in units of the base currency
190118
- // @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
190119
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
190120
- // <<<<<<< HEAD
190121
- // @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
190122
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190123
- // =======
190124
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190125
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
190126
- //
190120
+ /**
190121
+ * @method
190122
+ * @name poloniex#editOrder
190123
+ * @description edit a trade order
190124
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-replace-order
190125
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-replace-order
190126
+ * @param {string} id order id
190127
+ * @param {string} symbol unified symbol of the market to create an order in
190128
+ * @param {string} type 'market' or 'limit'
190129
+ * @param {string} side 'buy' or 'sell'
190130
+ * @param {float} [amount] how much of the currency you want to trade in units of the base currency
190131
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
190132
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
190133
+ * @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
190134
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190135
+ */
190127
190136
  await this.loadMarkets();
190128
190137
  const market = this.market(symbol);
190129
190138
  if (!market['spot']) {
@@ -190163,12 +190172,8 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
190163
190172
  // @param {string} id order id
190164
190173
  // @param {string} symbol unified symbol of the market the order was made in
190165
190174
  // @param {object} [params] extra parameters specific to the poloniex api endpoint
190166
- // <<<<<<< HEAD
190167
190175
  // @param {boolean} [params.trigger] true if canceling a trigger order
190168
190176
  // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190169
- // =======
190170
- // @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190171
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
190172
190177
  //
190173
190178
  await this.loadMarkets();
190174
190179
  const request = {};
@@ -190198,21 +190203,17 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
190198
190203
  return this.parseOrder(response);
190199
190204
  }
190200
190205
  async cancelAllOrders(symbol = undefined, params = {}) {
190201
- //
190202
- // @method
190203
- // @name poloniex#cancelAllOrders
190204
- // @description cancel all open orders
190205
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
190206
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
190207
- // @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
190208
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
190209
- // <<<<<<< HEAD
190210
- // @param {boolean} [params.trigger] true if canceling trigger orders
190211
- // @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190212
- // =======
190213
- // @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190214
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
190215
- //
190206
+ /**
190207
+ * @method
190208
+ * @name poloniex#cancelAllOrders
190209
+ * @description cancel all open orders
190210
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
190211
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
190212
+ * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
190213
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
190214
+ * @param {boolean} [params.trigger] true if canceling trigger orders
190215
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190216
+ */
190216
190217
  await this.loadMarkets();
190217
190218
  const request = {
190218
190219
  // 'accountTypes': 'SPOT',
@@ -190254,22 +190255,18 @@ class poloniex extends _abstract_poloniex_js__WEBPACK_IMPORTED_MODULE_0__/* ["de
190254
190255
  return this.parseOrders(response, market);
190255
190256
  }
190256
190257
  async fetchOrder(id, symbol = undefined, params = {}) {
190257
- //
190258
- // @method
190259
- // @name poloniex#fetchOrder
190260
- // @description fetch an order by it's id
190261
- // @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
190262
- // @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
190263
- // @param {string} id order id
190264
- // @param {string} symbol unified market symbol, default is undefined
190265
- // @param {object} [params] extra parameters specific to the poloniex api endpoint
190266
- // <<<<<<< HEAD
190267
- // @param {boolean} [params.trigger] true if fetching a trigger order
190268
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190269
- // =======
190270
- // @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190271
- // >>>>>>> 1e1c747220aa06f7c710fc71e9b6658d1260c4d1
190272
- //
190258
+ /**
190259
+ * @method
190260
+ * @name poloniex#fetchOrder
190261
+ * @description fetch an order by it's id
190262
+ * @see https://docs.poloniex.com/#authenticated-endpoints-orders-order-details
190263
+ * @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
190264
+ * @param {string} id order id
190265
+ * @param {string} symbol unified market symbol, default is undefined
190266
+ * @param {object} [params] extra parameters specific to the poloniex api endpoint
190267
+ * @param {boolean} [params.trigger] true if fetching a trigger order
190268
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
190269
+ */
190273
190270
  await this.loadMarkets();
190274
190271
  id = id.toString();
190275
190272
  const request = {
@@ -273444,7 +273441,7 @@ SOFTWARE.
273444
273441
 
273445
273442
  //-----------------------------------------------------------------------------
273446
273443
  // this is updated by vss.js when building
273447
- const version = '4.0.78';
273444
+ const version = '4.0.79';
273448
273445
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange.ccxtVersion */ .e.ccxtVersion = version;
273449
273446
  //-----------------------------------------------------------------------------
273450
273447