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.
- package/README.md +4 -4
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +1 -1
- package/dist/cjs/src/alpaca.js +0 -1
- package/dist/cjs/src/ascendex.js +0 -1
- package/dist/cjs/src/base/Exchange.js +41 -19
- package/dist/cjs/src/bigone.js +0 -1
- package/dist/cjs/src/binance.js +27 -24
- package/dist/cjs/src/bingx.js +6 -1
- package/dist/cjs/src/bitfinex.js +124 -1
- package/dist/cjs/src/bitget.js +1 -0
- package/dist/cjs/src/bitmart.js +254 -1
- package/dist/cjs/src/blofin.js +16 -7
- package/dist/cjs/src/bybit.js +8 -8
- package/dist/cjs/src/cex.js +1 -1
- package/dist/cjs/src/coinbase.js +8 -9
- package/dist/cjs/src/coinbaseexchange.js +5 -6
- package/dist/cjs/src/coinbaseinternational.js +7 -8
- package/dist/cjs/src/coincatch.js +0 -1
- package/dist/cjs/src/coincheck.js +0 -1
- package/dist/cjs/src/coinex.js +91 -6
- package/dist/cjs/src/coinlist.js +3 -4
- package/dist/cjs/src/coinmate.js +1 -3
- package/dist/cjs/src/coinmetro.js +4 -5
- package/dist/cjs/src/coinone.js +0 -1
- package/dist/cjs/src/coinsph.js +7 -8
- package/dist/cjs/src/cryptocom.js +3 -0
- package/dist/cjs/src/currencycom.js +3 -4
- package/dist/cjs/src/defx.js +6 -7
- package/dist/cjs/src/deribit.js +1 -3
- package/dist/cjs/src/digifinex.js +0 -1
- package/dist/cjs/src/ellipx.js +0 -2
- package/dist/cjs/src/exmo.js +63 -6
- package/dist/cjs/src/gate.js +2 -3
- package/dist/cjs/src/gemini.js +4 -5
- package/dist/cjs/src/hashkey.js +79 -83
- package/dist/cjs/src/hitbtc.js +49 -5
- package/dist/cjs/src/hollaex.js +4 -6
- package/dist/cjs/src/htx.js +2 -4
- package/dist/cjs/src/huobijp.js +0 -1
- package/dist/cjs/src/hyperliquid.js +65 -1
- package/dist/cjs/src/idex.js +8 -8
- package/dist/cjs/src/independentreserve.js +0 -1
- package/dist/cjs/src/indodax.js +0 -1
- package/dist/cjs/src/kraken.js +192 -29
- package/dist/cjs/src/krakenfutures.js +75 -3
- package/dist/cjs/src/kucoin.js +7 -4
- package/dist/cjs/src/kucoinfutures.js +10 -9
- package/dist/cjs/src/kuna.js +1 -3
- package/dist/cjs/src/latoken.js +1 -3
- package/dist/cjs/src/lbank.js +0 -1
- package/dist/cjs/src/luno.js +0 -1
- package/dist/cjs/src/lykke.js +0 -1
- package/dist/cjs/src/mercado.js +0 -1
- package/dist/cjs/src/mexc.js +6 -7
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +4 -6
- package/dist/cjs/src/oceanex.js +0 -1
- package/dist/cjs/src/okcoin.js +1 -3
- package/dist/cjs/src/okx.js +7 -4
- package/dist/cjs/src/onetrading.js +1 -3
- package/dist/cjs/src/p2b.js +1 -1
- package/dist/cjs/src/paradex.js +5 -7
- package/dist/cjs/src/phemex.js +8 -10
- package/dist/cjs/src/poloniex.js +1 -3
- package/dist/cjs/src/poloniexfutures.js +6 -6
- package/dist/cjs/src/probit.js +0 -1
- package/dist/cjs/src/timex.js +0 -1
- package/dist/cjs/src/tokocrypto.js +11 -14
- package/dist/cjs/src/tradeogre.js +1 -1
- package/dist/cjs/src/upbit.js +0 -1
- package/dist/cjs/src/wavesexchange.js +4 -5
- package/dist/cjs/src/whitebit.js +8 -9
- package/dist/cjs/src/woo.js +99 -13
- package/dist/cjs/src/woofipro.js +96 -15
- package/dist/cjs/src/xt.js +8 -4
- package/dist/cjs/src/yobit.js +0 -1
- package/dist/cjs/src/zaif.js +0 -1
- package/dist/cjs/src/zonda.js +1 -2
- package/js/ccxt.d.ts +3 -3
- package/js/ccxt.js +1 -1
- package/js/src/abstract/binance.d.ts +3 -0
- package/js/src/abstract/binancecoinm.d.ts +3 -0
- package/js/src/abstract/binanceus.d.ts +3 -0
- package/js/src/abstract/binanceusdm.d.ts +3 -0
- package/js/src/abstract/bitmart.d.ts +2 -0
- package/js/src/abstract/okx.d.ts +5 -0
- package/js/src/ace.js +1 -1
- package/js/src/alpaca.js +0 -1
- package/js/src/ascendex.js +0 -1
- package/js/src/base/Exchange.d.ts +12 -9
- package/js/src/base/Exchange.js +41 -19
- package/js/src/base/types.d.ts +2 -0
- package/js/src/bigone.js +0 -1
- package/js/src/binance.js +27 -24
- package/js/src/bingx.js +6 -1
- package/js/src/bitfinex.d.ts +11 -1
- package/js/src/bitfinex.js +124 -1
- package/js/src/bitget.js +1 -0
- package/js/src/bitmart.d.ts +52 -1
- package/js/src/bitmart.js +254 -1
- package/js/src/blofin.d.ts +1 -1
- package/js/src/blofin.js +16 -7
- package/js/src/bybit.js +8 -8
- package/js/src/cex.js +1 -1
- package/js/src/coinbase.js +8 -9
- package/js/src/coinbaseexchange.js +5 -6
- package/js/src/coinbaseinternational.d.ts +1 -1
- package/js/src/coinbaseinternational.js +7 -8
- package/js/src/coincatch.js +0 -1
- package/js/src/coincheck.js +0 -1
- package/js/src/coinex.js +91 -6
- package/js/src/coinlist.js +3 -4
- package/js/src/coinmate.js +1 -3
- package/js/src/coinmetro.js +4 -5
- package/js/src/coinone.js +0 -1
- package/js/src/coinsph.js +7 -8
- package/js/src/cryptocom.js +3 -0
- package/js/src/currencycom.js +3 -4
- package/js/src/defx.js +6 -7
- package/js/src/deribit.js +1 -3
- package/js/src/digifinex.js +0 -1
- package/js/src/ellipx.js +0 -2
- package/js/src/exmo.d.ts +36 -1
- package/js/src/exmo.js +63 -6
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +2 -3
- package/js/src/gemini.js +4 -5
- package/js/src/hashkey.js +79 -83
- package/js/src/hitbtc.d.ts +11 -1
- package/js/src/hitbtc.js +49 -5
- package/js/src/hollaex.js +4 -6
- package/js/src/htx.js +2 -4
- package/js/src/huobijp.js +0 -1
- package/js/src/hyperliquid.d.ts +20 -1
- package/js/src/hyperliquid.js +65 -1
- package/js/src/idex.js +8 -8
- package/js/src/independentreserve.js +0 -1
- package/js/src/indodax.js +0 -1
- package/js/src/kraken.d.ts +15 -9
- package/js/src/kraken.js +192 -29
- package/js/src/krakenfutures.d.ts +2 -2
- package/js/src/krakenfutures.js +75 -3
- package/js/src/kucoin.js +7 -4
- package/js/src/kucoinfutures.d.ts +5 -4
- package/js/src/kucoinfutures.js +10 -9
- package/js/src/kuna.js +1 -3
- package/js/src/latoken.js +1 -3
- package/js/src/lbank.js +0 -1
- package/js/src/luno.js +0 -1
- package/js/src/lykke.js +0 -1
- package/js/src/mercado.js +0 -1
- package/js/src/mexc.js +6 -7
- package/js/src/ndax.js +1 -1
- package/js/src/novadax.js +4 -6
- package/js/src/oceanex.js +0 -1
- package/js/src/okcoin.js +1 -3
- package/js/src/okx.js +7 -4
- package/js/src/onetrading.js +1 -3
- package/js/src/p2b.js +1 -1
- package/js/src/paradex.d.ts +1 -1
- package/js/src/paradex.js +5 -7
- package/js/src/phemex.js +8 -10
- package/js/src/poloniex.js +1 -3
- package/js/src/poloniexfutures.js +6 -6
- package/js/src/probit.js +0 -1
- package/js/src/timex.js +0 -1
- package/js/src/tokocrypto.js +11 -14
- package/js/src/tradeogre.js +1 -1
- package/js/src/upbit.js +0 -1
- package/js/src/wavesexchange.d.ts +1 -1
- package/js/src/wavesexchange.js +4 -5
- package/js/src/whitebit.js +8 -9
- package/js/src/woo.d.ts +1 -1
- package/js/src/woo.js +99 -13
- package/js/src/woofipro.js +96 -15
- package/js/src/xt.d.ts +2 -1
- package/js/src/xt.js +8 -4
- package/js/src/yobit.js +0 -1
- package/js/src/zaif.js +0 -1
- package/js/src/zonda.js +1 -2
- package/package.json +2 -2
package/js/src/woofipro.js
CHANGED
|
@@ -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
|
|
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
|
-
'
|
|
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
|
|
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 =
|
|
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 (
|
|
1321
|
-
request['trigger_price'] = this.priceToPrecision(symbol,
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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
|
|
1510
|
-
if (
|
|
1511
|
-
request['triggerPrice'] = this.priceToPrecision(symbol,
|
|
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 = (
|
|
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.
|
|
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.
|
|
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
|
-
'
|
|
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
|
-
|
|
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
|
|
4409
|
+
'interval': interval,
|
|
4406
4410
|
};
|
|
4407
4411
|
}
|
|
4408
4412
|
/**
|
package/js/src/yobit.js
CHANGED
package/js/src/zaif.js
CHANGED
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`
|
|
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.
|
|
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": "
|
|
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",
|