ccxt 4.4.40 → 4.4.42

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 (183) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/ace.js +1 -1
  5. package/dist/cjs/src/alpaca.js +0 -1
  6. package/dist/cjs/src/ascendex.js +0 -1
  7. package/dist/cjs/src/base/Exchange.js +41 -19
  8. package/dist/cjs/src/bigone.js +0 -1
  9. package/dist/cjs/src/binance.js +27 -24
  10. package/dist/cjs/src/bingx.js +6 -1
  11. package/dist/cjs/src/bitfinex.js +124 -1
  12. package/dist/cjs/src/bitget.js +1 -0
  13. package/dist/cjs/src/bitmart.js +254 -1
  14. package/dist/cjs/src/blofin.js +16 -7
  15. package/dist/cjs/src/bybit.js +8 -8
  16. package/dist/cjs/src/cex.js +1 -1
  17. package/dist/cjs/src/coinbase.js +8 -9
  18. package/dist/cjs/src/coinbaseexchange.js +5 -6
  19. package/dist/cjs/src/coinbaseinternational.js +7 -8
  20. package/dist/cjs/src/coincatch.js +0 -1
  21. package/dist/cjs/src/coincheck.js +0 -1
  22. package/dist/cjs/src/coinex.js +91 -6
  23. package/dist/cjs/src/coinlist.js +3 -4
  24. package/dist/cjs/src/coinmate.js +1 -3
  25. package/dist/cjs/src/coinmetro.js +4 -5
  26. package/dist/cjs/src/coinone.js +0 -1
  27. package/dist/cjs/src/coinsph.js +7 -8
  28. package/dist/cjs/src/cryptocom.js +3 -0
  29. package/dist/cjs/src/currencycom.js +3 -4
  30. package/dist/cjs/src/defx.js +6 -7
  31. package/dist/cjs/src/deribit.js +1 -3
  32. package/dist/cjs/src/digifinex.js +0 -1
  33. package/dist/cjs/src/ellipx.js +0 -2
  34. package/dist/cjs/src/exmo.js +63 -6
  35. package/dist/cjs/src/gate.js +2 -3
  36. package/dist/cjs/src/gemini.js +4 -5
  37. package/dist/cjs/src/hashkey.js +79 -83
  38. package/dist/cjs/src/hitbtc.js +49 -5
  39. package/dist/cjs/src/hollaex.js +4 -6
  40. package/dist/cjs/src/htx.js +2 -4
  41. package/dist/cjs/src/huobijp.js +0 -1
  42. package/dist/cjs/src/hyperliquid.js +65 -1
  43. package/dist/cjs/src/idex.js +8 -8
  44. package/dist/cjs/src/independentreserve.js +0 -1
  45. package/dist/cjs/src/indodax.js +0 -1
  46. package/dist/cjs/src/kraken.js +192 -29
  47. package/dist/cjs/src/krakenfutures.js +75 -3
  48. package/dist/cjs/src/kucoin.js +7 -4
  49. package/dist/cjs/src/kucoinfutures.js +10 -9
  50. package/dist/cjs/src/kuna.js +1 -3
  51. package/dist/cjs/src/latoken.js +1 -3
  52. package/dist/cjs/src/lbank.js +0 -1
  53. package/dist/cjs/src/luno.js +0 -1
  54. package/dist/cjs/src/lykke.js +0 -1
  55. package/dist/cjs/src/mercado.js +0 -1
  56. package/dist/cjs/src/mexc.js +6 -7
  57. package/dist/cjs/src/ndax.js +1 -1
  58. package/dist/cjs/src/novadax.js +4 -6
  59. package/dist/cjs/src/oceanex.js +0 -1
  60. package/dist/cjs/src/okcoin.js +1 -3
  61. package/dist/cjs/src/okx.js +7 -4
  62. package/dist/cjs/src/onetrading.js +1 -3
  63. package/dist/cjs/src/p2b.js +1 -1
  64. package/dist/cjs/src/paradex.js +5 -7
  65. package/dist/cjs/src/phemex.js +8 -10
  66. package/dist/cjs/src/poloniex.js +1 -3
  67. package/dist/cjs/src/poloniexfutures.js +6 -6
  68. package/dist/cjs/src/probit.js +0 -1
  69. package/dist/cjs/src/timex.js +0 -1
  70. package/dist/cjs/src/tokocrypto.js +11 -14
  71. package/dist/cjs/src/tradeogre.js +1 -1
  72. package/dist/cjs/src/upbit.js +0 -1
  73. package/dist/cjs/src/wavesexchange.js +4 -5
  74. package/dist/cjs/src/whitebit.js +8 -9
  75. package/dist/cjs/src/woo.js +99 -13
  76. package/dist/cjs/src/woofipro.js +96 -15
  77. package/dist/cjs/src/xt.js +8 -4
  78. package/dist/cjs/src/yobit.js +0 -1
  79. package/dist/cjs/src/zaif.js +0 -1
  80. package/dist/cjs/src/zonda.js +1 -2
  81. package/js/ccxt.d.ts +3 -3
  82. package/js/ccxt.js +1 -1
  83. package/js/src/abstract/binance.d.ts +3 -0
  84. package/js/src/abstract/binancecoinm.d.ts +3 -0
  85. package/js/src/abstract/binanceus.d.ts +3 -0
  86. package/js/src/abstract/binanceusdm.d.ts +3 -0
  87. package/js/src/abstract/bitmart.d.ts +2 -0
  88. package/js/src/abstract/okx.d.ts +5 -0
  89. package/js/src/ace.js +1 -1
  90. package/js/src/alpaca.js +0 -1
  91. package/js/src/ascendex.js +0 -1
  92. package/js/src/base/Exchange.d.ts +12 -9
  93. package/js/src/base/Exchange.js +41 -19
  94. package/js/src/base/types.d.ts +2 -0
  95. package/js/src/bigone.js +0 -1
  96. package/js/src/binance.js +27 -24
  97. package/js/src/bingx.js +6 -1
  98. package/js/src/bitfinex.d.ts +11 -1
  99. package/js/src/bitfinex.js +124 -1
  100. package/js/src/bitget.js +1 -0
  101. package/js/src/bitmart.d.ts +52 -1
  102. package/js/src/bitmart.js +254 -1
  103. package/js/src/blofin.d.ts +1 -1
  104. package/js/src/blofin.js +16 -7
  105. package/js/src/bybit.js +8 -8
  106. package/js/src/cex.js +1 -1
  107. package/js/src/coinbase.js +8 -9
  108. package/js/src/coinbaseexchange.js +5 -6
  109. package/js/src/coinbaseinternational.d.ts +1 -1
  110. package/js/src/coinbaseinternational.js +7 -8
  111. package/js/src/coincatch.js +0 -1
  112. package/js/src/coincheck.js +0 -1
  113. package/js/src/coinex.js +91 -6
  114. package/js/src/coinlist.js +3 -4
  115. package/js/src/coinmate.js +1 -3
  116. package/js/src/coinmetro.js +4 -5
  117. package/js/src/coinone.js +0 -1
  118. package/js/src/coinsph.js +7 -8
  119. package/js/src/cryptocom.js +3 -0
  120. package/js/src/currencycom.js +3 -4
  121. package/js/src/defx.js +6 -7
  122. package/js/src/deribit.js +1 -3
  123. package/js/src/digifinex.js +0 -1
  124. package/js/src/ellipx.js +0 -2
  125. package/js/src/exmo.d.ts +36 -1
  126. package/js/src/exmo.js +63 -6
  127. package/js/src/gate.d.ts +1 -1
  128. package/js/src/gate.js +2 -3
  129. package/js/src/gemini.js +4 -5
  130. package/js/src/hashkey.js +79 -83
  131. package/js/src/hitbtc.d.ts +11 -1
  132. package/js/src/hitbtc.js +49 -5
  133. package/js/src/hollaex.js +4 -6
  134. package/js/src/htx.js +2 -4
  135. package/js/src/huobijp.js +0 -1
  136. package/js/src/hyperliquid.d.ts +20 -1
  137. package/js/src/hyperliquid.js +65 -1
  138. package/js/src/idex.js +8 -8
  139. package/js/src/independentreserve.js +0 -1
  140. package/js/src/indodax.js +0 -1
  141. package/js/src/kraken.d.ts +15 -9
  142. package/js/src/kraken.js +192 -29
  143. package/js/src/krakenfutures.d.ts +2 -2
  144. package/js/src/krakenfutures.js +75 -3
  145. package/js/src/kucoin.js +7 -4
  146. package/js/src/kucoinfutures.d.ts +5 -4
  147. package/js/src/kucoinfutures.js +10 -9
  148. package/js/src/kuna.js +1 -3
  149. package/js/src/latoken.js +1 -3
  150. package/js/src/lbank.js +0 -1
  151. package/js/src/luno.js +0 -1
  152. package/js/src/lykke.js +0 -1
  153. package/js/src/mercado.js +0 -1
  154. package/js/src/mexc.js +6 -7
  155. package/js/src/ndax.js +1 -1
  156. package/js/src/novadax.js +4 -6
  157. package/js/src/oceanex.js +0 -1
  158. package/js/src/okcoin.js +1 -3
  159. package/js/src/okx.js +7 -4
  160. package/js/src/onetrading.js +1 -3
  161. package/js/src/p2b.js +1 -1
  162. package/js/src/paradex.d.ts +1 -1
  163. package/js/src/paradex.js +5 -7
  164. package/js/src/phemex.js +8 -10
  165. package/js/src/poloniex.js +1 -3
  166. package/js/src/poloniexfutures.js +6 -6
  167. package/js/src/probit.js +0 -1
  168. package/js/src/timex.js +0 -1
  169. package/js/src/tokocrypto.js +11 -14
  170. package/js/src/tradeogre.js +1 -1
  171. package/js/src/upbit.js +0 -1
  172. package/js/src/wavesexchange.d.ts +1 -1
  173. package/js/src/wavesexchange.js +4 -5
  174. package/js/src/whitebit.js +8 -9
  175. package/js/src/woo.d.ts +1 -1
  176. package/js/src/woo.js +99 -13
  177. package/js/src/woofipro.js +96 -15
  178. package/js/src/xt.d.ts +2 -1
  179. package/js/src/xt.js +8 -4
  180. package/js/src/yobit.js +0 -1
  181. package/js/src/zaif.js +0 -1
  182. package/js/src/zonda.js +1 -2
  183. package/package.json +2 -2
@@ -304,6 +304,88 @@ export default class woofipro extends Exchange {
304
304
  'brokerId': 'CCXT',
305
305
  'verifyingContractAddress': '0x6F7a338F2aA472838dEFD3283eB360d4Dff5D203',
306
306
  },
307
+ 'features': {
308
+ 'default': {
309
+ 'sandbox': true,
310
+ 'createOrder': {
311
+ 'marginMode': false,
312
+ 'triggerPrice': true,
313
+ 'triggerPriceType': undefined,
314
+ 'triggerDirection': false,
315
+ 'stopLossPrice': false,
316
+ 'takeProfitPrice': false,
317
+ 'attachedStopLossTakeProfit': undefined,
318
+ 'timeInForce': {
319
+ 'IOC': true,
320
+ 'FOK': true,
321
+ 'PO': true,
322
+ 'GTD': false,
323
+ },
324
+ 'hedged': false,
325
+ 'trailing': true,
326
+ // exchange specific
327
+ // 'iceberg': true,
328
+ },
329
+ 'createOrders': {
330
+ 'max': 10,
331
+ },
332
+ 'fetchMyTrades': {
333
+ 'marginMode': false,
334
+ 'limit': 500,
335
+ 'daysBack': undefined,
336
+ 'untilDays': 100000,
337
+ },
338
+ 'fetchOrder': {
339
+ 'marginMode': false,
340
+ 'trigger': true,
341
+ 'trailing': false,
342
+ },
343
+ 'fetchOpenOrders': {
344
+ 'marginMode': false,
345
+ 'limit': 500,
346
+ 'trigger': true,
347
+ 'trailing': false,
348
+ },
349
+ 'fetchOrders': undefined,
350
+ 'fetchClosedOrders': {
351
+ 'marginMode': false,
352
+ 'limit': 500,
353
+ 'daysBackClosed': undefined,
354
+ 'daysBackCanceled': undefined,
355
+ 'untilDays': 100000,
356
+ 'trigger': true,
357
+ 'trailing': false,
358
+ },
359
+ 'fetchOHLCV': {
360
+ 'limit': 1000,
361
+ },
362
+ },
363
+ 'spot': {
364
+ 'extends': 'default',
365
+ },
366
+ 'forDerivatives': {
367
+ 'extends': 'default',
368
+ 'createOrder': {
369
+ // todo: implementation needs unification
370
+ 'triggerPriceType': undefined,
371
+ 'attachedStopLossTakeProfit': {
372
+ // todo: implementation needs unification
373
+ 'triggerPriceType': undefined,
374
+ 'limitPrice': false,
375
+ },
376
+ },
377
+ },
378
+ 'swap': {
379
+ 'linear': {
380
+ 'extends': 'forDerivatives',
381
+ },
382
+ 'inverse': undefined,
383
+ },
384
+ 'future': {
385
+ 'linear': undefined,
386
+ 'inverse': undefined,
387
+ },
388
+ },
307
389
  'commonCurrencies': {},
308
390
  'exceptions': {
309
391
  'exact': {
@@ -1175,7 +1257,7 @@ export default class woofipro extends Exchange {
1175
1257
  const fee = this.safeValue2(order, 'total_fee', 'totalFee');
1176
1258
  const feeCurrency = this.safeString2(order, 'fee_asset', 'feeAsset');
1177
1259
  const transactions = this.safeValue(order, 'Transactions');
1178
- const stopPrice = this.safeNumber(order, 'triggerPrice');
1260
+ const triggerPrice = this.safeNumber(order, 'triggerPrice');
1179
1261
  let takeProfitPrice = undefined;
1180
1262
  let stopLossPrice = undefined;
1181
1263
  const childOrders = this.safeValue(order, 'childOrders');
@@ -1206,8 +1288,7 @@ export default class woofipro extends Exchange {
1206
1288
  'reduceOnly': this.safeBool(order, 'reduce_only'),
1207
1289
  'side': side,
1208
1290
  'price': price,
1209
- 'stopPrice': stopPrice,
1210
- 'triggerPrice': stopPrice,
1291
+ 'triggerPrice': triggerPrice,
1211
1292
  'takeProfitPrice': takeProfitPrice,
1212
1293
  'stopLossPrice': stopLossPrice,
1213
1294
  'average': average,
@@ -1278,11 +1359,11 @@ export default class woofipro extends Exchange {
1278
1359
  'symbol': market['id'],
1279
1360
  'side': orderSide,
1280
1361
  };
1281
- const stopPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
1362
+ const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
1282
1363
  const stopLoss = this.safeValue(params, 'stopLoss');
1283
1364
  const takeProfit = this.safeValue(params, 'takeProfit');
1284
1365
  const algoType = this.safeString(params, 'algoType');
1285
- const isConditional = stopPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
1366
+ const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
1286
1367
  const isMarket = orderType === 'MARKET';
1287
1368
  const timeInForce = this.safeStringLower(params, 'timeInForce');
1288
1369
  const postOnly = this.isPostOnly(isMarket, undefined, params);
@@ -1317,8 +1398,8 @@ export default class woofipro extends Exchange {
1317
1398
  if (clientOrderId !== undefined) {
1318
1399
  request['client_order_id'] = clientOrderId;
1319
1400
  }
1320
- if (stopPrice !== undefined) {
1321
- request['trigger_price'] = this.priceToPrecision(symbol, stopPrice);
1401
+ if (triggerPrice !== undefined) {
1402
+ request['trigger_price'] = this.priceToPrecision(symbol, triggerPrice);
1322
1403
  request['algo_type'] = 'STOP';
1323
1404
  }
1324
1405
  else if ((stopLoss !== undefined) || (takeProfit !== undefined)) {
@@ -1383,10 +1464,10 @@ export default class woofipro extends Exchange {
1383
1464
  await this.loadMarkets();
1384
1465
  const market = this.market(symbol);
1385
1466
  const request = this.createOrderRequest(symbol, type, side, amount, price, params);
1386
- const stopPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
1467
+ const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
1387
1468
  const stopLoss = this.safeValue(params, 'stopLoss');
1388
1469
  const takeProfit = this.safeValue(params, 'takeProfit');
1389
- const isConditional = stopPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
1470
+ const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
1390
1471
  let response = undefined;
1391
1472
  if (isConditional) {
1392
1473
  response = await this.v1PrivatePostAlgoOrder(request);
@@ -1447,10 +1528,10 @@ export default class woofipro extends Exchange {
1447
1528
  const amount = this.safeValue(rawOrder, 'amount');
1448
1529
  const price = this.safeValue(rawOrder, 'price');
1449
1530
  const orderParams = this.safeDict(rawOrder, 'params', {});
1450
- const stopPrice = this.safeString2(orderParams, 'triggerPrice', 'stopPrice');
1531
+ const triggerPrice = this.safeString2(orderParams, 'triggerPrice', 'stopPrice');
1451
1532
  const stopLoss = this.safeValue(orderParams, 'stopLoss');
1452
1533
  const takeProfit = this.safeValue(orderParams, 'takeProfit');
1453
- const isConditional = stopPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(orderParams, 'childOrders') !== undefined);
1534
+ const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(orderParams, 'childOrders') !== undefined);
1454
1535
  if (isConditional) {
1455
1536
  throw new NotSupported(this.id + 'createOrders() only support non-stop order');
1456
1537
  }
@@ -1506,11 +1587,11 @@ export default class woofipro extends Exchange {
1506
1587
  const request = {
1507
1588
  'order_id': id,
1508
1589
  };
1509
- const stopPrice = this.safeStringN(params, ['triggerPrice', 'stopPrice', 'takeProfitPrice', 'stopLossPrice']);
1510
- if (stopPrice !== undefined) {
1511
- request['triggerPrice'] = this.priceToPrecision(symbol, stopPrice);
1590
+ const triggerPrice = this.safeStringN(params, ['triggerPrice', 'stopPrice', 'takeProfitPrice', 'stopLossPrice']);
1591
+ if (triggerPrice !== undefined) {
1592
+ request['triggerPrice'] = this.priceToPrecision(symbol, triggerPrice);
1512
1593
  }
1513
- const isConditional = (stopPrice !== undefined) || (this.safeValue(params, 'childOrders') !== undefined);
1594
+ const isConditional = (triggerPrice !== undefined) || (this.safeValue(params, 'childOrders') !== undefined);
1514
1595
  const orderQtyKey = isConditional ? 'quantity' : 'order_quantity';
1515
1596
  const priceKey = isConditional ? 'price' : 'order_price';
1516
1597
  if (price !== undefined) {
package/js/src/xt.d.ts CHANGED
@@ -165,7 +165,8 @@ export default class xt extends Exchange {
165
165
  * @param {string} [params.timeInForce] 'GTC', 'IOC', 'FOK' or 'GTX'
166
166
  * @param {string} [params.entrustType] 'TAKE_PROFIT', 'STOP', 'TAKE_PROFIT_MARKET', 'STOP_MARKET', 'TRAILING_STOP_MARKET', required if stopPrice is defined, currently isn't functioning on xt's side
167
167
  * @param {string} [params.triggerPriceType] 'INDEX_PRICE', 'MARK_PRICE', 'LATEST_PRICE', required if stopPrice is defined
168
- * @param {float} [params.stopPrice] price to trigger a stop order
168
+ * @param {float} [params.triggerPrice] price to trigger a stop order
169
+ * @param {float} [params.stopPrice] alias for triggerPrice
169
170
  * @param {float} [params.stopLoss] price to set a stop-loss on an open position
170
171
  * @param {float} [params.takeProfit] price to set a take-profit on an open position
171
172
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
package/js/src/xt.js CHANGED
@@ -2299,7 +2299,8 @@ export default class xt extends Exchange {
2299
2299
  * @param {string} [params.timeInForce] 'GTC', 'IOC', 'FOK' or 'GTX'
2300
2300
  * @param {string} [params.entrustType] 'TAKE_PROFIT', 'STOP', 'TAKE_PROFIT_MARKET', 'STOP_MARKET', 'TRAILING_STOP_MARKET', required if stopPrice is defined, currently isn't functioning on xt's side
2301
2301
  * @param {string} [params.triggerPriceType] 'INDEX_PRICE', 'MARK_PRICE', 'LATEST_PRICE', required if stopPrice is defined
2302
- * @param {float} [params.stopPrice] price to trigger a stop order
2302
+ * @param {float} [params.triggerPrice] price to trigger a stop order
2303
+ * @param {float} [params.stopPrice] alias for triggerPrice
2303
2304
  * @param {float} [params.stopLoss] price to set a stop-loss on an open position
2304
2305
  * @param {float} [params.takeProfit] price to set a take-profit on an open position
2305
2306
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
@@ -3505,7 +3506,7 @@ export default class xt extends Exchange {
3505
3506
  'postOnly': undefined,
3506
3507
  'side': this.safeStringLower2(order, 'side', 'orderSide'),
3507
3508
  'price': this.safeNumber(order, 'price'),
3508
- 'stopPrice': this.safeNumber(order, 'stopPrice'),
3509
+ 'triggerPrice': this.safeNumber(order, 'stopPrice'),
3509
3510
  'stopLoss': this.safeNumber(order, 'triggerStopPrice'),
3510
3511
  'takeProfit': this.safeNumber(order, 'triggerProfitPrice'),
3511
3512
  'amount': amount,
@@ -4383,7 +4384,10 @@ export default class xt extends Exchange {
4383
4384
  const marketId = this.safeString(contract, 'symbol');
4384
4385
  const symbol = this.safeSymbol(marketId, market, '_', 'swap');
4385
4386
  const timestamp = this.safeInteger(contract, 'nextCollectionTime');
4386
- const interval = this.safeString(contract, 'collectionInternal');
4387
+ let interval = this.safeString(contract, 'collectionInternal');
4388
+ if (interval !== undefined) {
4389
+ interval = interval + 'h';
4390
+ }
4387
4391
  return {
4388
4392
  'info': contract,
4389
4393
  'symbol': symbol,
@@ -4402,7 +4406,7 @@ export default class xt extends Exchange {
4402
4406
  'previousFundingRate': undefined,
4403
4407
  'previousFundingTimestamp': undefined,
4404
4408
  'previousFundingDatetime': undefined,
4405
- 'interval': interval + 'h',
4409
+ 'interval': interval,
4406
4410
  };
4407
4411
  }
4408
4412
  /**
package/js/src/yobit.js CHANGED
@@ -1025,7 +1025,6 @@ export default class yobit extends Exchange {
1025
1025
  'postOnly': undefined,
1026
1026
  'side': side,
1027
1027
  'price': price,
1028
- 'stopPrice': undefined,
1029
1028
  'triggerPrice': undefined,
1030
1029
  'cost': undefined,
1031
1030
  'amount': amount,
package/js/src/zaif.js CHANGED
@@ -541,7 +541,6 @@ export default class zaif extends Exchange {
541
541
  'postOnly': undefined,
542
542
  'side': side,
543
543
  'price': price,
544
- 'stopPrice': undefined,
545
544
  'triggerPrice': undefined,
546
545
  'cost': undefined,
547
546
  'amount': amount,
package/js/src/zonda.js CHANGED
@@ -495,7 +495,6 @@ export default class zonda extends Exchange {
495
495
  'postOnly': postOnly,
496
496
  'side': this.safeStringLower(order, 'offerType'),
497
497
  'price': this.safeString(order, 'rate'),
498
- 'stopPrice': undefined,
499
498
  'triggerPrice': undefined,
500
499
  'amount': amount,
501
500
  'cost': undefined,
@@ -1418,7 +1417,7 @@ export default class zonda extends Exchange {
1418
1417
  let response = undefined;
1419
1418
  if (isStopOrder) {
1420
1419
  if (!isStopLossPrice) {
1421
- throw new ExchangeError(this.id + ' createOrder() zonda requires `triggerPrice` or `stopPrice` parameter for stop-limit or stop-market orders');
1420
+ throw new ExchangeError(this.id + ' createOrder() zonda requires `triggerPrice` parameter for stop-limit or stop-market orders');
1422
1421
  }
1423
1422
  request['stopRate'] = this.priceToPrecision(symbol, stopLossPrice);
1424
1423
  response = await this.v1_01PrivatePostTradingStopOfferSymbol(this.extend(request, params));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.4.40",
3
+ "version": "4.4.42",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.min.js",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "tsBuildFile": "tsc --skipLibCheck --strictNullChecks false --strict --noImplicitAny false --esModuleInterop --isolatedModules false --forceConsistentCasingInFileNames --removeComments false --target ES2020 --declaration --allowJs --checkJs false --moduleResolution Node --module ES2022 --outDir ./js/src --lib ES2020.BigInt --lib dom ",
43
43
  "tsBuild": "tsc || echo \"\"",
44
44
  "tsBuildExamples": "tsc -p ./examples/tsconfig.json",
45
- "emitAPI": "node build/generateImplicitAPI.js",
45
+ "emitAPI": "tsx build/generateImplicitAPI.ts",
46
46
  "build": "npm run pre-transpile && npm run transpile && npm run post-transpile && npm run update-badges && npm run build-docs",
47
47
  "force-build-slow": "npm run pre-transpile && npm run force-transpile && npm run post-transpile && npm run update-badges",
48
48
  "pre-transpile": "npm run export-exchanges && npm run vss && npm run tsBuild && npm run emitAPI && npm run validate-types && npm run tsBuildExamples && npm run copy-python-files && npm run check-js-syntax && npm run bundle",