ccxt 4.4.38 → 4.4.40

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.
Files changed (192) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/alpaca.js +73 -2
  5. package/dist/cjs/src/ascendex.js +9 -9
  6. package/dist/cjs/src/base/Exchange.js +38 -27
  7. package/dist/cjs/src/binance.js +13 -19
  8. package/dist/cjs/src/bingx.js +1 -2
  9. package/dist/cjs/src/bit2c.js +0 -1
  10. package/dist/cjs/src/bitbank.js +0 -1
  11. package/dist/cjs/src/bitbns.js +0 -1
  12. package/dist/cjs/src/bitfinex.js +17 -18
  13. package/dist/cjs/src/bitfinex1.js +0 -1
  14. package/dist/cjs/src/bitflyer.js +0 -1
  15. package/dist/cjs/src/bitget.js +1 -2
  16. package/dist/cjs/src/bithumb.js +0 -1
  17. package/dist/cjs/src/bitmart.js +3 -4
  18. package/dist/cjs/src/bitmex.js +5 -6
  19. package/dist/cjs/src/bitopro.js +4 -5
  20. package/dist/cjs/src/bitrue.js +5 -7
  21. package/dist/cjs/src/bitso.js +1 -2
  22. package/dist/cjs/src/bitstamp.js +1 -2
  23. package/dist/cjs/src/bitteam.js +1 -3
  24. package/dist/cjs/src/bitvavo.js +2 -4
  25. package/dist/cjs/src/blockchaincom.js +5 -5
  26. package/dist/cjs/src/blofin.js +10 -10
  27. package/dist/cjs/src/btcalpha.js +0 -1
  28. package/dist/cjs/src/btcbox.js +0 -1
  29. package/dist/cjs/src/btcmarkets.js +1 -3
  30. package/dist/cjs/src/bybit.js +2 -3
  31. package/dist/cjs/src/cex.js +1 -1
  32. package/dist/cjs/src/coinbase.js +77 -1
  33. package/dist/cjs/src/coinbaseexchange.js +1 -1
  34. package/dist/cjs/src/coinbaseinternational.js +62 -0
  35. package/dist/cjs/src/coincatch.js +1 -1
  36. package/dist/cjs/src/coinex.js +9 -9
  37. package/dist/cjs/src/coinlist.js +1 -1
  38. package/dist/cjs/src/coinmetro.js +1 -1
  39. package/dist/cjs/src/cryptocom.js +91 -2
  40. package/dist/cjs/src/currencycom.js +1 -1
  41. package/dist/cjs/src/defx.js +1 -2
  42. package/dist/cjs/src/delta.js +1 -1
  43. package/dist/cjs/src/digifinex.js +59 -19
  44. package/dist/cjs/src/exmo.js +2 -2
  45. package/dist/cjs/src/gate.js +1 -1
  46. package/dist/cjs/src/hashkey.js +3 -5
  47. package/dist/cjs/src/htx.js +155 -33
  48. package/dist/cjs/src/hyperliquid.js +1 -1
  49. package/dist/cjs/src/kraken.js +1 -1
  50. package/dist/cjs/src/kucoin.js +25 -24
  51. package/dist/cjs/src/luno.js +1 -1
  52. package/dist/cjs/src/mexc.js +174 -27
  53. package/dist/cjs/src/ndax.js +1 -1
  54. package/dist/cjs/src/okcoin.js +18 -18
  55. package/dist/cjs/src/okx.js +22 -21
  56. package/dist/cjs/src/phemex.js +12 -8
  57. package/dist/cjs/src/poloniex.js +1 -1
  58. package/dist/cjs/src/poloniexfutures.js +6 -6
  59. package/dist/cjs/src/pro/bitget.js +1 -1
  60. package/dist/cjs/src/pro/bybit.js +13 -1
  61. package/dist/cjs/src/pro/coinex.js +2 -2
  62. package/dist/cjs/src/pro/gate.js +6 -6
  63. package/dist/cjs/src/pro/kucoin.js +3 -3
  64. package/dist/cjs/src/pro/okx.js +11 -11
  65. package/dist/cjs/src/pro/upbit.js +3 -3
  66. package/dist/cjs/src/pro/woo.js +1 -1
  67. package/dist/cjs/src/vertex.js +11 -11
  68. package/dist/cjs/src/woo.js +37 -37
  69. package/dist/cjs/src/woofipro.js +24 -24
  70. package/dist/cjs/src/xt.js +26 -26
  71. package/dist/cjs/src/zonda.js +1 -1
  72. package/js/ccxt.d.ts +1 -1
  73. package/js/ccxt.js +1 -1
  74. package/js/src/abstract/digifinex.d.ts +1 -0
  75. package/js/src/abstract/mexc.d.ts +1 -0
  76. package/js/src/alpaca.d.ts +11 -1
  77. package/js/src/alpaca.js +73 -2
  78. package/js/src/ascendex.d.ts +2 -2
  79. package/js/src/ascendex.js +9 -9
  80. package/js/src/base/Exchange.js +38 -27
  81. package/js/src/binance.d.ts +9 -9
  82. package/js/src/binance.js +13 -19
  83. package/js/src/bingx.d.ts +1 -1
  84. package/js/src/bingx.js +1 -2
  85. package/js/src/bit2c.js +0 -1
  86. package/js/src/bitbank.js +0 -1
  87. package/js/src/bitbns.js +0 -1
  88. package/js/src/bitfinex.d.ts +3 -3
  89. package/js/src/bitfinex.js +17 -18
  90. package/js/src/bitfinex1.js +0 -1
  91. package/js/src/bitflyer.js +0 -1
  92. package/js/src/bitget.d.ts +1 -1
  93. package/js/src/bitget.js +1 -2
  94. package/js/src/bithumb.js +0 -1
  95. package/js/src/bitmart.d.ts +1 -1
  96. package/js/src/bitmart.js +3 -4
  97. package/js/src/bitmex.d.ts +1 -1
  98. package/js/src/bitmex.js +5 -6
  99. package/js/src/bitopro.js +4 -5
  100. package/js/src/bitrue.js +5 -7
  101. package/js/src/bitso.d.ts +1 -1
  102. package/js/src/bitso.js +1 -2
  103. package/js/src/bitstamp.d.ts +1 -1
  104. package/js/src/bitstamp.js +1 -2
  105. package/js/src/bitteam.js +1 -3
  106. package/js/src/bitvavo.d.ts +1 -1
  107. package/js/src/bitvavo.js +2 -4
  108. package/js/src/blockchaincom.js +5 -5
  109. package/js/src/blofin.d.ts +3 -3
  110. package/js/src/blofin.js +10 -10
  111. package/js/src/btcalpha.js +0 -1
  112. package/js/src/btcbox.js +0 -1
  113. package/js/src/btcmarkets.js +1 -3
  114. package/js/src/bybit.d.ts +1 -1
  115. package/js/src/bybit.js +2 -3
  116. package/js/src/cex.d.ts +1 -1
  117. package/js/src/cex.js +1 -1
  118. package/js/src/coinbase.d.ts +1 -1
  119. package/js/src/coinbase.js +77 -1
  120. package/js/src/coinbaseexchange.d.ts +1 -1
  121. package/js/src/coinbaseexchange.js +1 -1
  122. package/js/src/coinbaseinternational.js +62 -0
  123. package/js/src/coincatch.d.ts +1 -1
  124. package/js/src/coincatch.js +1 -1
  125. package/js/src/coinex.js +9 -9
  126. package/js/src/coinlist.d.ts +1 -1
  127. package/js/src/coinlist.js +1 -1
  128. package/js/src/coinmetro.d.ts +1 -1
  129. package/js/src/coinmetro.js +1 -1
  130. package/js/src/cryptocom.d.ts +2 -2
  131. package/js/src/cryptocom.js +91 -2
  132. package/js/src/currencycom.d.ts +1 -1
  133. package/js/src/currencycom.js +1 -1
  134. package/js/src/defx.d.ts +1 -2
  135. package/js/src/defx.js +1 -2
  136. package/js/src/delta.d.ts +1 -1
  137. package/js/src/delta.js +1 -1
  138. package/js/src/digifinex.d.ts +5 -3
  139. package/js/src/digifinex.js +59 -19
  140. package/js/src/exmo.js +2 -2
  141. package/js/src/gate.d.ts +1 -1
  142. package/js/src/gate.js +1 -1
  143. package/js/src/hashkey.d.ts +1 -1
  144. package/js/src/hashkey.js +3 -5
  145. package/js/src/htx.d.ts +6 -6
  146. package/js/src/htx.js +155 -33
  147. package/js/src/hyperliquid.d.ts +1 -1
  148. package/js/src/hyperliquid.js +1 -1
  149. package/js/src/kraken.d.ts +1 -1
  150. package/js/src/kraken.js +1 -1
  151. package/js/src/kucoin.d.ts +13 -13
  152. package/js/src/kucoin.js +25 -24
  153. package/js/src/luno.d.ts +1 -1
  154. package/js/src/luno.js +1 -1
  155. package/js/src/mexc.d.ts +8 -9
  156. package/js/src/mexc.js +174 -27
  157. package/js/src/ndax.d.ts +1 -1
  158. package/js/src/ndax.js +1 -1
  159. package/js/src/okcoin.d.ts +4 -4
  160. package/js/src/okcoin.js +18 -18
  161. package/js/src/okx.d.ts +4 -3
  162. package/js/src/okx.js +22 -21
  163. package/js/src/phemex.js +12 -8
  164. package/js/src/poloniex.d.ts +1 -1
  165. package/js/src/poloniex.js +1 -1
  166. package/js/src/poloniexfutures.d.ts +1 -1
  167. package/js/src/poloniexfutures.js +6 -6
  168. package/js/src/pro/bitget.d.ts +1 -1
  169. package/js/src/pro/bitget.js +1 -1
  170. package/js/src/pro/bybit.d.ts +1 -1
  171. package/js/src/pro/bybit.js +13 -1
  172. package/js/src/pro/coinex.js +2 -2
  173. package/js/src/pro/gate.d.ts +2 -2
  174. package/js/src/pro/gate.js +6 -6
  175. package/js/src/pro/kucoin.d.ts +1 -1
  176. package/js/src/pro/kucoin.js +3 -3
  177. package/js/src/pro/okx.d.ts +2 -2
  178. package/js/src/pro/okx.js +11 -11
  179. package/js/src/pro/upbit.d.ts +3 -3
  180. package/js/src/pro/upbit.js +3 -3
  181. package/js/src/pro/woo.js +1 -1
  182. package/js/src/vertex.d.ts +3 -3
  183. package/js/src/vertex.js +11 -11
  184. package/js/src/woo.d.ts +7 -7
  185. package/js/src/woo.js +37 -37
  186. package/js/src/woofipro.d.ts +1 -1
  187. package/js/src/woofipro.js +24 -24
  188. package/js/src/xt.d.ts +7 -7
  189. package/js/src/xt.js +26 -26
  190. package/js/src/zonda.d.ts +1 -1
  191. package/js/src/zonda.js +1 -1
  192. package/package.json +1 -1
package/js/src/hashkey.js CHANGED
@@ -2241,7 +2241,7 @@ export default class hashkey extends Exchange {
2241
2241
  * @param {int} [params.until] the latest time in ms to fetch entries for
2242
2242
  * @param {int} [params.flowType] trade, fee, transfer, deposit, withdrawal
2243
2243
  * @param {int} [params.accountType] spot, swap, custody
2244
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
2244
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
2245
2245
  */
2246
2246
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
2247
2247
  const methodName = 'fetchLedger';
@@ -3482,10 +3482,8 @@ export default class hashkey extends Exchange {
3482
3482
  }
3483
3483
  }
3484
3484
  handleTriggerOptionAndParams(params, methodName, defaultValue = undefined) {
3485
- let isStop = defaultValue;
3486
- [isStop, params] = this.handleOptionAndParams(params, methodName, 'stop', isStop);
3487
- let isTrigger = isStop;
3488
- [isTrigger, params] = this.handleOptionAndParams(params, methodName, 'trigger', isTrigger);
3485
+ let isTrigger = defaultValue;
3486
+ [isTrigger, params] = this.handleOptionAndParams2(params, methodName, 'stop', 'trigger', isTrigger);
3489
3487
  return [isTrigger, params];
3490
3488
  }
3491
3489
  parseOrder(order, market = undefined) {
package/js/src/htx.d.ts CHANGED
@@ -332,7 +332,7 @@ export default class htx extends Exchange {
332
332
  * @param {int} [since] the earliest time in ms to fetch orders for
333
333
  * @param {int} [limit] the maximum number of order structures to retrieve
334
334
  * @param {object} [params] extra parameters specific to the exchange API endpoint
335
- * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
335
+ * @param {bool} [params.trigger] *contract only* if the orders are trigger trigger orders or not
336
336
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
337
337
  * @param {int} [params.until] the latest time in ms to fetch entries for
338
338
  * @param {boolean} [params.trailing] *contract only* set to true if you want to fetch trailing stop orders
@@ -369,7 +369,7 @@ export default class htx extends Exchange {
369
369
  * @param {int} [since] the earliest time in ms to fetch open orders for
370
370
  * @param {int} [limit] the maximum number of open order structures to retrieve
371
371
  * @param {object} [params] extra parameters specific to the exchange API endpoint
372
- * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
372
+ * @param {bool} [params.trigger] *contract only* if the orders are trigger trigger orders or not
373
373
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
374
374
  * @param {boolean} [params.trailing] *contract only* set to true if you want to fetch trailing stop orders
375
375
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -478,7 +478,7 @@ export default class htx extends Exchange {
478
478
  * @param {string} id order id
479
479
  * @param {string} symbol unified symbol of the market the order was made in
480
480
  * @param {object} [params] extra parameters specific to the exchange API endpoint
481
- * @param {boolean} [params.stop] *contract only* if the order is a stop trigger order or not
481
+ * @param {boolean} [params.trigger] *contract only* if the order is a trigger trigger order or not
482
482
  * @param {boolean} [params.stopLossTakeProfit] *contract only* if the order is a stop-loss or take-profit order
483
483
  * @param {boolean} [params.trailing] *contract only* set to true if you want to cancel a trailing order
484
484
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -491,7 +491,7 @@ export default class htx extends Exchange {
491
491
  * @param {string[]} ids order ids
492
492
  * @param {string} symbol unified market symbol, default is undefined
493
493
  * @param {object} [params] extra parameters specific to the exchange API endpoint
494
- * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
494
+ * @param {bool} [params.trigger] *contract only* if the orders are trigger trigger orders or not
495
495
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
496
496
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
497
497
  */
@@ -503,7 +503,7 @@ export default class htx extends Exchange {
503
503
  * @description cancel all open orders
504
504
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
505
505
  * @param {object} [params] extra parameters specific to the exchange API endpoint
506
- * @param {boolean} [params.stop] *contract only* if the orders are stop trigger orders or not
506
+ * @param {boolean} [params.trigger] *contract only* if the orders are trigger trigger orders or not
507
507
  * @param {boolean} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
508
508
  * @param {boolean} [params.trailing] *contract only* set to true if you want to cancel all trailing orders
509
509
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -759,7 +759,7 @@ export default class htx extends Exchange {
759
759
  * @param {object} [params] extra parameters specific to the exchange API endpoint
760
760
  * @param {int} [params.until] the latest time in ms to fetch entries for
761
761
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
762
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
762
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
763
763
  */
764
764
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
765
765
  /**
package/js/src/htx.js CHANGED
@@ -1235,6 +1235,128 @@ export default class htx extends Exchange {
1235
1235
  'BIFI': 'BITCOINFILE',
1236
1236
  'FUD': 'FTX Users Debt',
1237
1237
  },
1238
+ 'features': {
1239
+ 'spot': {
1240
+ 'sandbox': true,
1241
+ 'createOrder': {
1242
+ 'marginMode': true,
1243
+ 'triggerPrice': true,
1244
+ 'triggerDirection': true,
1245
+ 'triggerPriceType': undefined,
1246
+ 'stopLossPrice': false,
1247
+ 'takeProfitPrice': false,
1248
+ 'attachedStopLossTakeProfit': undefined,
1249
+ 'timeInForce': {
1250
+ 'IOC': true,
1251
+ 'FOK': true,
1252
+ 'PO': true,
1253
+ 'GTD': false,
1254
+ },
1255
+ 'hedged': false,
1256
+ 'trailing': false,
1257
+ // exchange-specific features
1258
+ 'iceberg': false,
1259
+ 'selfTradePrevention': true,
1260
+ },
1261
+ 'createOrders': {
1262
+ 'max': 10,
1263
+ },
1264
+ 'fetchMyTrades': {
1265
+ 'marginMode': false,
1266
+ 'limit': 500,
1267
+ 'daysBack': 120,
1268
+ 'untilDays': 2,
1269
+ },
1270
+ 'fetchOrder': {
1271
+ 'marginMode': false,
1272
+ 'trigger': false,
1273
+ 'trailing': false,
1274
+ },
1275
+ 'fetchOpenOrders': {
1276
+ 'marginMode': false,
1277
+ 'trigger': true,
1278
+ 'trailing': false,
1279
+ 'limit': 500,
1280
+ },
1281
+ 'fetchOrders': {
1282
+ 'marginMode': false,
1283
+ 'trigger': true,
1284
+ 'trailing': false,
1285
+ 'limit': 500,
1286
+ 'untilDays': 2,
1287
+ 'daysBack': 180,
1288
+ },
1289
+ 'fetchClosedOrders': {
1290
+ 'marginMode': false,
1291
+ 'trigger': true,
1292
+ 'trailing': false,
1293
+ 'untilDays': 2,
1294
+ 'limit': 500,
1295
+ 'daysBackClosed': 180,
1296
+ 'daysBackCanceled': 1 / 12,
1297
+ },
1298
+ 'fetchOHLCV': {
1299
+ 'limit': 1000, // 2000 for non-historical
1300
+ },
1301
+ },
1302
+ 'forDerivatives': {
1303
+ 'extends': 'spot',
1304
+ 'createOrder': {
1305
+ 'stopLossPrice': true,
1306
+ 'takeProfitPrice': true,
1307
+ 'trailing': true,
1308
+ 'hedged': true,
1309
+ // 'leverage': true, // todo
1310
+ },
1311
+ 'createOrders': {
1312
+ 'max': 25,
1313
+ },
1314
+ 'fetchOrder': {
1315
+ 'marginMode': true,
1316
+ },
1317
+ 'fetchOpenOrders': {
1318
+ 'marginMode': true,
1319
+ 'trigger': false,
1320
+ 'trailing': false,
1321
+ 'limit': 50,
1322
+ },
1323
+ 'fetchOrders': {
1324
+ 'marginMode': true,
1325
+ 'trigger': false,
1326
+ 'trailing': false,
1327
+ 'limit': 50,
1328
+ 'daysBack': 90,
1329
+ },
1330
+ 'fetchClosedOrders': {
1331
+ 'marginMode': true,
1332
+ 'trigger': false,
1333
+ 'trailing': false,
1334
+ 'untilDays': 2,
1335
+ 'limit': 50,
1336
+ 'daysBackClosed': 90,
1337
+ 'daysBackCanceled': 1 / 12,
1338
+ },
1339
+ 'fetchOHLCV': {
1340
+ 'limit': 2000,
1341
+ },
1342
+ },
1343
+ 'swap': {
1344
+ 'linear': {
1345
+ 'extends': 'forDerivatives',
1346
+ },
1347
+ 'inverse': {
1348
+ 'extends': 'forDerivatives',
1349
+ },
1350
+ },
1351
+ 'future': {
1352
+ 'linear': {
1353
+ 'extends': 'forDerivatives',
1354
+ },
1355
+ 'inverse': {
1356
+ 'extends': 'forDerivatives',
1357
+ },
1358
+ },
1359
+ },
1238
1360
  });
1239
1361
  }
1240
1362
  /**
@@ -4084,11 +4206,11 @@ export default class htx extends Exchange {
4084
4206
  'status': '0', // support multiple query seperated by ',',such as '3,4,5', 0: all. 3. Have sumbmitted the orders; 4. Orders partially matched; 5. Orders cancelled with partially matched; 6. Orders fully matched; 7. Orders cancelled;
4085
4207
  };
4086
4208
  let response = undefined;
4087
- const stop = this.safeBool2(params, 'stop', 'trigger');
4209
+ const trigger = this.safeBool2(params, 'stop', 'trigger');
4088
4210
  const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
4089
4211
  const trailing = this.safeBool(params, 'trailing', false);
4090
4212
  params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
4091
- if (stop || stopLossTakeProfit || trailing) {
4213
+ if (trigger || stopLossTakeProfit || trailing) {
4092
4214
  if (limit !== undefined) {
4093
4215
  request['page_size'] = limit;
4094
4216
  }
@@ -4109,7 +4231,7 @@ export default class htx extends Exchange {
4109
4231
  [marginMode, params] = this.handleMarginModeAndParams('fetchContractOrders', params);
4110
4232
  marginMode = (marginMode === undefined) ? 'cross' : marginMode;
4111
4233
  if (marginMode === 'isolated') {
4112
- if (stop) {
4234
+ if (trigger) {
4113
4235
  response = await this.contractPrivatePostLinearSwapApiV1SwapTriggerHisorders(this.extend(request, params));
4114
4236
  }
4115
4237
  else if (stopLossTakeProfit) {
@@ -4123,7 +4245,7 @@ export default class htx extends Exchange {
4123
4245
  }
4124
4246
  }
4125
4247
  else if (marginMode === 'cross') {
4126
- if (stop) {
4248
+ if (trigger) {
4127
4249
  response = await this.contractPrivatePostLinearSwapApiV1SwapCrossTriggerHisorders(this.extend(request, params));
4128
4250
  }
4129
4251
  else if (stopLossTakeProfit) {
@@ -4139,7 +4261,7 @@ export default class htx extends Exchange {
4139
4261
  }
4140
4262
  else if (market['inverse']) {
4141
4263
  if (market['swap']) {
4142
- if (stop) {
4264
+ if (trigger) {
4143
4265
  response = await this.contractPrivatePostSwapApiV1SwapTriggerHisorders(this.extend(request, params));
4144
4266
  }
4145
4267
  else if (stopLossTakeProfit) {
@@ -4154,7 +4276,7 @@ export default class htx extends Exchange {
4154
4276
  }
4155
4277
  else if (market['future']) {
4156
4278
  request['symbol'] = market['settleId'];
4157
- if (stop) {
4279
+ if (trigger) {
4158
4280
  response = await this.contractPrivatePostApiV1ContractTriggerHisorders(this.extend(request, params));
4159
4281
  }
4160
4282
  else if (stopLossTakeProfit) {
@@ -4336,7 +4458,7 @@ export default class htx extends Exchange {
4336
4458
  * @param {int} [since] the earliest time in ms to fetch orders for
4337
4459
  * @param {int} [limit] the maximum number of order structures to retrieve
4338
4460
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4339
- * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
4461
+ * @param {bool} [params.trigger] *contract only* if the orders are trigger trigger orders or not
4340
4462
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
4341
4463
  * @param {int} [params.until] the latest time in ms to fetch entries for
4342
4464
  * @param {boolean} [params.trailing] *contract only* set to true if you want to fetch trailing stop orders
@@ -4410,7 +4532,7 @@ export default class htx extends Exchange {
4410
4532
  * @param {int} [since] the earliest time in ms to fetch open orders for
4411
4533
  * @param {int} [limit] the maximum number of open order structures to retrieve
4412
4534
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4413
- * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
4535
+ * @param {bool} [params.trigger] *contract only* if the orders are trigger trigger orders or not
4414
4536
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
4415
4537
  * @param {boolean} [params.trailing] *contract only* set to true if you want to fetch trailing stop orders
4416
4538
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -4459,7 +4581,7 @@ export default class htx extends Exchange {
4459
4581
  request['page_size'] = limit;
4460
4582
  }
4461
4583
  request['contract_code'] = market['id'];
4462
- const stop = this.safeBool2(params, 'stop', 'trigger');
4584
+ const trigger = this.safeBool2(params, 'stop', 'trigger');
4463
4585
  const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
4464
4586
  const trailing = this.safeBool(params, 'trailing', false);
4465
4587
  params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
@@ -4468,7 +4590,7 @@ export default class htx extends Exchange {
4468
4590
  [marginMode, params] = this.handleMarginModeAndParams('fetchOpenOrders', params);
4469
4591
  marginMode = (marginMode === undefined) ? 'cross' : marginMode;
4470
4592
  if (marginMode === 'isolated') {
4471
- if (stop) {
4593
+ if (trigger) {
4472
4594
  response = await this.contractPrivatePostLinearSwapApiV1SwapTriggerOpenorders(this.extend(request, params));
4473
4595
  }
4474
4596
  else if (stopLossTakeProfit) {
@@ -4482,7 +4604,7 @@ export default class htx extends Exchange {
4482
4604
  }
4483
4605
  }
4484
4606
  else if (marginMode === 'cross') {
4485
- if (stop) {
4607
+ if (trigger) {
4486
4608
  response = await this.contractPrivatePostLinearSwapApiV1SwapCrossTriggerOpenorders(this.extend(request, params));
4487
4609
  }
4488
4610
  else if (stopLossTakeProfit) {
@@ -4498,7 +4620,7 @@ export default class htx extends Exchange {
4498
4620
  }
4499
4621
  else if (market['inverse']) {
4500
4622
  if (market['swap']) {
4501
- if (stop) {
4623
+ if (trigger) {
4502
4624
  response = await this.contractPrivatePostSwapApiV1SwapTriggerOpenorders(this.extend(request, params));
4503
4625
  }
4504
4626
  else if (stopLossTakeProfit) {
@@ -4513,7 +4635,7 @@ export default class htx extends Exchange {
4513
4635
  }
4514
4636
  else if (market['future']) {
4515
4637
  request['symbol'] = market['settleId'];
4516
- if (stop) {
4638
+ if (trigger) {
4517
4639
  response = await this.contractPrivatePostApiV1ContractTriggerOpenorders(this.extend(request, params));
4518
4640
  }
4519
4641
  else if (stopLossTakeProfit) {
@@ -5262,7 +5384,7 @@ export default class htx extends Exchange {
5262
5384
  if (triggerPrice === undefined) {
5263
5385
  const stopOrderTypes = this.safeValue(options, 'stopOrderTypes', {});
5264
5386
  if (orderType in stopOrderTypes) {
5265
- throw new ArgumentsRequired(this.id + ' createOrder() requires a triggerPrice for a stop order');
5387
+ throw new ArgumentsRequired(this.id + ' createOrder() requires a triggerPrice for a trigger order');
5266
5388
  }
5267
5389
  }
5268
5390
  else {
@@ -5792,7 +5914,7 @@ export default class htx extends Exchange {
5792
5914
  * @param {string} id order id
5793
5915
  * @param {string} symbol unified symbol of the market the order was made in
5794
5916
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5795
- * @param {boolean} [params.stop] *contract only* if the order is a stop trigger order or not
5917
+ * @param {boolean} [params.trigger] *contract only* if the order is a trigger trigger order or not
5796
5918
  * @param {boolean} [params.stopLossTakeProfit] *contract only* if the order is a stop-loss or take-profit order
5797
5919
  * @param {boolean} [params.trailing] *contract only* set to true if you want to cancel a trailing order
5798
5920
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -5848,7 +5970,7 @@ export default class htx extends Exchange {
5848
5970
  else {
5849
5971
  request['contract_code'] = market['id'];
5850
5972
  }
5851
- const stop = this.safeBool2(params, 'stop', 'trigger');
5973
+ const trigger = this.safeBool2(params, 'stop', 'trigger');
5852
5974
  const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
5853
5975
  const trailing = this.safeBool(params, 'trailing', false);
5854
5976
  params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
@@ -5857,7 +5979,7 @@ export default class htx extends Exchange {
5857
5979
  [marginMode, params] = this.handleMarginModeAndParams('cancelOrder', params);
5858
5980
  marginMode = (marginMode === undefined) ? 'cross' : marginMode;
5859
5981
  if (marginMode === 'isolated') {
5860
- if (stop) {
5982
+ if (trigger) {
5861
5983
  response = await this.contractPrivatePostLinearSwapApiV1SwapTriggerCancel(this.extend(request, params));
5862
5984
  }
5863
5985
  else if (stopLossTakeProfit) {
@@ -5871,7 +5993,7 @@ export default class htx extends Exchange {
5871
5993
  }
5872
5994
  }
5873
5995
  else if (marginMode === 'cross') {
5874
- if (stop) {
5996
+ if (trigger) {
5875
5997
  response = await this.contractPrivatePostLinearSwapApiV1SwapCrossTriggerCancel(this.extend(request, params));
5876
5998
  }
5877
5999
  else if (stopLossTakeProfit) {
@@ -5887,7 +6009,7 @@ export default class htx extends Exchange {
5887
6009
  }
5888
6010
  else if (market['inverse']) {
5889
6011
  if (market['swap']) {
5890
- if (stop) {
6012
+ if (trigger) {
5891
6013
  response = await this.contractPrivatePostSwapApiV1SwapTriggerCancel(this.extend(request, params));
5892
6014
  }
5893
6015
  else if (stopLossTakeProfit) {
@@ -5901,7 +6023,7 @@ export default class htx extends Exchange {
5901
6023
  }
5902
6024
  }
5903
6025
  else if (market['future']) {
5904
- if (stop) {
6026
+ if (trigger) {
5905
6027
  response = await this.contractPrivatePostApiV1ContractTriggerCancel(this.extend(request, params));
5906
6028
  }
5907
6029
  else if (stopLossTakeProfit) {
@@ -5950,7 +6072,7 @@ export default class htx extends Exchange {
5950
6072
  * @param {string[]} ids order ids
5951
6073
  * @param {string} symbol unified market symbol, default is undefined
5952
6074
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5953
- * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
6075
+ * @param {bool} [params.trigger] *contract only* if the orders are trigger trigger orders or not
5954
6076
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
5955
6077
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
5956
6078
  */
@@ -6014,7 +6136,7 @@ export default class htx extends Exchange {
6014
6136
  else {
6015
6137
  request['contract_code'] = market['id'];
6016
6138
  }
6017
- const stop = this.safeBool2(params, 'stop', 'trigger');
6139
+ const trigger = this.safeBool2(params, 'stop', 'trigger');
6018
6140
  const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
6019
6141
  params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trigger']);
6020
6142
  if (market['linear']) {
@@ -6022,7 +6144,7 @@ export default class htx extends Exchange {
6022
6144
  [marginMode, params] = this.handleMarginModeAndParams('cancelOrders', params);
6023
6145
  marginMode = (marginMode === undefined) ? 'cross' : marginMode;
6024
6146
  if (marginMode === 'isolated') {
6025
- if (stop) {
6147
+ if (trigger) {
6026
6148
  response = await this.contractPrivatePostLinearSwapApiV1SwapTriggerCancel(this.extend(request, params));
6027
6149
  }
6028
6150
  else if (stopLossTakeProfit) {
@@ -6033,7 +6155,7 @@ export default class htx extends Exchange {
6033
6155
  }
6034
6156
  }
6035
6157
  else if (marginMode === 'cross') {
6036
- if (stop) {
6158
+ if (trigger) {
6037
6159
  response = await this.contractPrivatePostLinearSwapApiV1SwapCrossTriggerCancel(this.extend(request, params));
6038
6160
  }
6039
6161
  else if (stopLossTakeProfit) {
@@ -6046,7 +6168,7 @@ export default class htx extends Exchange {
6046
6168
  }
6047
6169
  else if (market['inverse']) {
6048
6170
  if (market['swap']) {
6049
- if (stop) {
6171
+ if (trigger) {
6050
6172
  response = await this.contractPrivatePostSwapApiV1SwapTriggerCancel(this.extend(request, params));
6051
6173
  }
6052
6174
  else if (stopLossTakeProfit) {
@@ -6057,7 +6179,7 @@ export default class htx extends Exchange {
6057
6179
  }
6058
6180
  }
6059
6181
  else if (market['future']) {
6060
- if (stop) {
6182
+ if (trigger) {
6061
6183
  response = await this.contractPrivatePostApiV1ContractTriggerCancel(this.extend(request, params));
6062
6184
  }
6063
6185
  else if (stopLossTakeProfit) {
@@ -6190,7 +6312,7 @@ export default class htx extends Exchange {
6190
6312
  * @description cancel all open orders
6191
6313
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
6192
6314
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6193
- * @param {boolean} [params.stop] *contract only* if the orders are stop trigger orders or not
6315
+ * @param {boolean} [params.trigger] *contract only* if the orders are trigger trigger orders or not
6194
6316
  * @param {boolean} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
6195
6317
  * @param {boolean} [params.trailing] *contract only* set to true if you want to cancel all trailing orders
6196
6318
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -6248,7 +6370,7 @@ export default class htx extends Exchange {
6248
6370
  request['symbol'] = market['settleId'];
6249
6371
  }
6250
6372
  request['contract_code'] = market['id'];
6251
- const stop = this.safeBool2(params, 'stop', 'trigger');
6373
+ const trigger = this.safeBool2(params, 'stop', 'trigger');
6252
6374
  const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
6253
6375
  const trailing = this.safeBool(params, 'trailing', false);
6254
6376
  params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
@@ -6257,7 +6379,7 @@ export default class htx extends Exchange {
6257
6379
  [marginMode, params] = this.handleMarginModeAndParams('cancelAllOrders', params);
6258
6380
  marginMode = (marginMode === undefined) ? 'cross' : marginMode;
6259
6381
  if (marginMode === 'isolated') {
6260
- if (stop) {
6382
+ if (trigger) {
6261
6383
  response = await this.contractPrivatePostLinearSwapApiV1SwapTriggerCancelall(this.extend(request, params));
6262
6384
  }
6263
6385
  else if (stopLossTakeProfit) {
@@ -6271,7 +6393,7 @@ export default class htx extends Exchange {
6271
6393
  }
6272
6394
  }
6273
6395
  else if (marginMode === 'cross') {
6274
- if (stop) {
6396
+ if (trigger) {
6275
6397
  response = await this.contractPrivatePostLinearSwapApiV1SwapCrossTriggerCancelall(this.extend(request, params));
6276
6398
  }
6277
6399
  else if (stopLossTakeProfit) {
@@ -6287,7 +6409,7 @@ export default class htx extends Exchange {
6287
6409
  }
6288
6410
  else if (market['inverse']) {
6289
6411
  if (market['swap']) {
6290
- if (stop) {
6412
+ if (trigger) {
6291
6413
  response = await this.contractPrivatePostSwapApiV1SwapTriggerCancelall(this.extend(request, params));
6292
6414
  }
6293
6415
  else if (stopLossTakeProfit) {
@@ -6301,7 +6423,7 @@ export default class htx extends Exchange {
6301
6423
  }
6302
6424
  }
6303
6425
  else if (market['future']) {
6304
- if (stop) {
6426
+ if (trigger) {
6305
6427
  response = await this.contractPrivatePostApiV1ContractTriggerCancelall(this.extend(request, params));
6306
6428
  }
6307
6429
  else if (stopLossTakeProfit) {
@@ -8267,7 +8389,7 @@ export default class htx extends Exchange {
8267
8389
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8268
8390
  * @param {int} [params.until] the latest time in ms to fetch entries for
8269
8391
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
8270
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
8392
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
8271
8393
  */
8272
8394
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
8273
8395
  await this.loadMarkets();
@@ -501,7 +501,7 @@ export default class hyperliquid extends Exchange {
501
501
  * @param {int} [limit] max number of ledger entries to return
502
502
  * @param {object} [params] extra parameters specific to the exchange API endpoint
503
503
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
504
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
504
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
505
505
  */
506
506
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
507
507
  parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
@@ -3082,7 +3082,7 @@ export default class hyperliquid extends Exchange {
3082
3082
  * @param {int} [limit] max number of ledger entries to return
3083
3083
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3084
3084
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
3085
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
3085
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
3086
3086
  */
3087
3087
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
3088
3088
  await this.loadMarkets();
@@ -122,7 +122,7 @@ export default class kraken extends Exchange {
122
122
  * @param {object} [params] extra parameters specific to the exchange API endpoint
123
123
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
124
124
  * @param {int} [params.end] timestamp in seconds of the latest ledger entry
125
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
125
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
126
126
  */
127
127
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
128
128
  fetchLedgerEntriesByIds(ids: any, code?: Str, params?: {}): Promise<LedgerEntry[]>;
package/js/src/kraken.js CHANGED
@@ -1137,7 +1137,7 @@ export default class kraken extends Exchange {
1137
1137
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1138
1138
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
1139
1139
  * @param {int} [params.end] timestamp in seconds of the latest ledger entry
1140
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
1140
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
1141
1141
  */
1142
1142
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
1143
1143
  // https://www.kraken.com/features/api#get-ledgers-info
@@ -231,7 +231,7 @@ export default class kucoin extends Exchange {
231
231
  * market orders --------------------------------------------------
232
232
  * @param {string} [params.funds] // Amount of quote currency to use
233
233
  * stop orders ----------------------------------------------------
234
- * @param {string} [params.stop] Either loss or entry, the default is loss. Requires stopPrice to be defined
234
+ * @param {string} [params.stop] Either loss or entry, the default is loss. Requires triggerPrice to be defined
235
235
  * margin orders --------------------------------------------------
236
236
  * @param {float} [params.leverage] Leverage size of the order
237
237
  * @param {string} [params.stp] '', // self trade prevention, CN, CO, CB or DC
@@ -323,7 +323,7 @@ export default class kucoin extends Exchange {
323
323
  * @param {string} id order id
324
324
  * @param {string} symbol unified symbol of the market the order was made in
325
325
  * @param {object} [params] extra parameters specific to the exchange API endpoint
326
- * @param {bool} [params.stop] True if cancelling a stop order
326
+ * @param {bool} [params.trigger] True if cancelling a stop order
327
327
  * @param {bool} [params.hf] false, // true for hf order
328
328
  * @param {bool} [params.sync] false, // true to use the hf sync call
329
329
  * @returns Response from the exchange
@@ -338,7 +338,7 @@ export default class kucoin extends Exchange {
338
338
  * @see https://docs.kucoin.com/spot-hf/#cancel-all-hf-orders-by-symbol
339
339
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
340
340
  * @param {object} [params] extra parameters specific to the exchange API endpoint
341
- * @param {bool} [params.stop] *invalid for isolated margin* true if cancelling all stop orders
341
+ * @param {bool} [params.trigger] *invalid for isolated margin* true if cancelling all stop orders
342
342
  * @param {string} [params.marginMode] 'cross' or 'isolated'
343
343
  * @param {string} [params.orderIds] *stop orders only* Comma seperated order IDs
344
344
  * @param {bool} [params.hf] false, // true for hf order
@@ -362,9 +362,9 @@ export default class kucoin extends Exchange {
362
362
  * @param {string} [params.side] buy or sell
363
363
  * @param {string} [params.type] limit, market, limit_stop or market_stop
364
364
  * @param {string} [params.tradeType] TRADE for spot trading, MARGIN_TRADE for Margin Trading
365
- * @param {int} [params.currentPage] *stop orders only* current page
366
- * @param {string} [params.orderIds] *stop orders only* comma seperated order ID list
367
- * @param {bool} [params.stop] True if fetching a stop order
365
+ * @param {int} [params.currentPage] *trigger orders only* current page
366
+ * @param {string} [params.orderIds] *trigger orders only* comma seperated order ID list
367
+ * @param {bool} [params.trigger] True if fetching a trigger order
368
368
  * @param {bool} [params.hf] false, // true for hf order
369
369
  * @returns An [array of order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
370
370
  */
@@ -385,7 +385,7 @@ export default class kucoin extends Exchange {
385
385
  * @param {string} [params.side] buy or sell
386
386
  * @param {string} [params.type] limit, market, limit_stop or market_stop
387
387
  * @param {string} [params.tradeType] TRADE for spot trading, MARGIN_TRADE for Margin Trading
388
- * @param {bool} [params.stop] True if fetching a stop order
388
+ * @param {bool} [params.trigger] True if fetching a trigger order
389
389
  * @param {bool} [params.hf] false, // true for hf order
390
390
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
391
391
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -404,12 +404,12 @@ export default class kucoin extends Exchange {
404
404
  * @param {int} [limit] the maximum number of open orders structures to retrieve
405
405
  * @param {object} [params] extra parameters specific to the exchange API endpoint
406
406
  * @param {int} [params.until] end time in ms
407
- * @param {bool} [params.stop] true if fetching stop orders
407
+ * @param {bool} [params.trigger] true if fetching trigger orders
408
408
  * @param {string} [params.side] buy or sell
409
409
  * @param {string} [params.type] limit, market, limit_stop or market_stop
410
410
  * @param {string} [params.tradeType] TRADE for spot trading, MARGIN_TRADE for Margin Trading
411
- * @param {int} [params.currentPage] *stop orders only* current page
412
- * @param {string} [params.orderIds] *stop orders only* comma seperated order ID list
411
+ * @param {int} [params.currentPage] *trigger orders only* current page
412
+ * @param {string} [params.orderIds] *trigger orders only* comma seperated order ID list
413
413
  * @param {bool} [params.hf] false, // true for hf order
414
414
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
415
415
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -426,9 +426,9 @@ export default class kucoin extends Exchange {
426
426
  * @see https://docs.kucoin.com/spot-hf/#details-of-a-single-hf-order
427
427
  * @see https://docs.kucoin.com/spot-hf/#obtain-details-of-a-single-hf-order-using-clientoid
428
428
  * @param {string} id Order id
429
- * @param {string} symbol not sent to exchange except for stop orders with clientOid, but used internally by CCXT to filter
429
+ * @param {string} symbol not sent to exchange except for trigger orders with clientOid, but used internally by CCXT to filter
430
430
  * @param {object} [params] exchange specific parameters
431
- * @param {bool} [params.stop] true if fetching a stop order
431
+ * @param {bool} [params.trigger] true if fetching a trigger order
432
432
  * @param {bool} [params.hf] false, // true for hf order
433
433
  * @param {bool} [params.clientOid] unique order id created by users to identify their orders
434
434
  * @returns An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -581,7 +581,7 @@ export default class kucoin extends Exchange {
581
581
  * @param {boolean} [params.hf] default false, when true will fetch ledger entries for the high frequency trading account
582
582
  * @param {int} [params.until] the latest time in ms to fetch entries for
583
583
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
584
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
584
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
585
585
  */
586
586
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
587
587
  calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?: {}): any;