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/dist/cjs/src/woo.js
CHANGED
|
@@ -310,6 +310,92 @@ class woo extends woo$1 {
|
|
|
310
310
|
},
|
|
311
311
|
'brokerId': 'bc830de7-50f3-460b-9ee0-f430f83f9dad',
|
|
312
312
|
},
|
|
313
|
+
'features': {
|
|
314
|
+
'default': {
|
|
315
|
+
'sandbox': true,
|
|
316
|
+
'createOrder': {
|
|
317
|
+
'marginMode': true,
|
|
318
|
+
'triggerPrice': true,
|
|
319
|
+
'triggerPriceType': {
|
|
320
|
+
'last': true,
|
|
321
|
+
'mark': true,
|
|
322
|
+
'index': false,
|
|
323
|
+
},
|
|
324
|
+
'triggerDirection': false,
|
|
325
|
+
'stopLossPrice': false,
|
|
326
|
+
'takeProfitPrice': false,
|
|
327
|
+
'attachedStopLossTakeProfit': undefined,
|
|
328
|
+
'timeInForce': {
|
|
329
|
+
'IOC': true,
|
|
330
|
+
'FOK': true,
|
|
331
|
+
'PO': true,
|
|
332
|
+
'GTD': true,
|
|
333
|
+
},
|
|
334
|
+
'hedged': false,
|
|
335
|
+
'trailing': true,
|
|
336
|
+
// exchange specific params:
|
|
337
|
+
// 'iceberg': true,
|
|
338
|
+
// 'oco': true,
|
|
339
|
+
},
|
|
340
|
+
'createOrders': undefined,
|
|
341
|
+
'fetchMyTrades': {
|
|
342
|
+
'marginMode': false,
|
|
343
|
+
'limit': 500,
|
|
344
|
+
'daysBack': 90,
|
|
345
|
+
'untilDays': 10000,
|
|
346
|
+
},
|
|
347
|
+
'fetchOrder': {
|
|
348
|
+
'marginMode': false,
|
|
349
|
+
'trigger': true,
|
|
350
|
+
'trailing': false,
|
|
351
|
+
},
|
|
352
|
+
'fetchOpenOrders': {
|
|
353
|
+
'marginMode': false,
|
|
354
|
+
'limit': 500,
|
|
355
|
+
'trigger': true,
|
|
356
|
+
'trailing': true,
|
|
357
|
+
},
|
|
358
|
+
'fetchOrders': {
|
|
359
|
+
'marginMode': false,
|
|
360
|
+
'limit': 500,
|
|
361
|
+
'daysBack': undefined,
|
|
362
|
+
'untilDays': 100000,
|
|
363
|
+
'trigger': true,
|
|
364
|
+
'trailing': true,
|
|
365
|
+
},
|
|
366
|
+
'fetchClosedOrders': {
|
|
367
|
+
'marginMode': false,
|
|
368
|
+
'limit': 500,
|
|
369
|
+
'daysBackClosed': undefined,
|
|
370
|
+
'daysBackCanceled': undefined,
|
|
371
|
+
'untilDays': 100000,
|
|
372
|
+
'trigger': true,
|
|
373
|
+
'trailing': true,
|
|
374
|
+
},
|
|
375
|
+
'fetchOHLCV': {
|
|
376
|
+
'limit': 1000,
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
'spot': {
|
|
380
|
+
'extends': 'default',
|
|
381
|
+
},
|
|
382
|
+
'forSwap': {
|
|
383
|
+
'extends': 'default',
|
|
384
|
+
'createOrder': {
|
|
385
|
+
'hedged': true,
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
'swap': {
|
|
389
|
+
'linear': {
|
|
390
|
+
'extends': 'forSwap',
|
|
391
|
+
},
|
|
392
|
+
'inverse': undefined,
|
|
393
|
+
},
|
|
394
|
+
'future': {
|
|
395
|
+
'linear': undefined,
|
|
396
|
+
'inverse': undefined,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
313
399
|
'commonCurrencies': {},
|
|
314
400
|
'exceptions': {
|
|
315
401
|
'exact': {
|
|
@@ -975,7 +1061,7 @@ class woo extends woo$1 {
|
|
|
975
1061
|
if (marginMode !== undefined) {
|
|
976
1062
|
request['margin_mode'] = this.encodeMarginMode(marginMode);
|
|
977
1063
|
}
|
|
978
|
-
const
|
|
1064
|
+
const triggerPrice = this.safeNumber2(params, 'triggerPrice', 'stopPrice');
|
|
979
1065
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
980
1066
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
981
1067
|
const algoType = this.safeString(params, 'algoType');
|
|
@@ -985,7 +1071,7 @@ class woo extends woo$1 {
|
|
|
985
1071
|
const isTrailingAmountOrder = trailingAmount !== undefined;
|
|
986
1072
|
const isTrailingPercentOrder = trailingPercent !== undefined;
|
|
987
1073
|
const isTrailing = isTrailingAmountOrder || isTrailingPercentOrder;
|
|
988
|
-
const isConditional = isTrailing ||
|
|
1074
|
+
const isConditional = isTrailing || triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
|
|
989
1075
|
const isMarket = orderType === 'MARKET';
|
|
990
1076
|
const timeInForce = this.safeStringLower(params, 'timeInForce');
|
|
991
1077
|
const postOnly = this.isPostOnly(isMarket, undefined, params);
|
|
@@ -1055,9 +1141,9 @@ class woo extends woo$1 {
|
|
|
1055
1141
|
request['callbackRate'] = convertedTrailingPercent;
|
|
1056
1142
|
}
|
|
1057
1143
|
}
|
|
1058
|
-
else if (
|
|
1144
|
+
else if (triggerPrice !== undefined) {
|
|
1059
1145
|
if (algoType !== 'TRAILING_STOP') {
|
|
1060
|
-
request['triggerPrice'] = this.priceToPrecision(symbol,
|
|
1146
|
+
request['triggerPrice'] = this.priceToPrecision(symbol, triggerPrice);
|
|
1061
1147
|
request['algoType'] = 'STOP';
|
|
1062
1148
|
}
|
|
1063
1149
|
}
|
|
@@ -1182,9 +1268,9 @@ class woo extends woo$1 {
|
|
|
1182
1268
|
const clientOrderIdUnified = this.safeString2(params, 'clOrdID', 'clientOrderId');
|
|
1183
1269
|
const clientOrderIdExchangeSpecific = this.safeString(params, 'client_order_id', clientOrderIdUnified);
|
|
1184
1270
|
const isByClientOrder = clientOrderIdExchangeSpecific !== undefined;
|
|
1185
|
-
const
|
|
1186
|
-
if (
|
|
1187
|
-
request['triggerPrice'] = this.priceToPrecision(symbol,
|
|
1271
|
+
const triggerPrice = this.safeNumberN(params, ['triggerPrice', 'stopPrice', 'takeProfitPrice', 'stopLossPrice']);
|
|
1272
|
+
if (triggerPrice !== undefined) {
|
|
1273
|
+
request['triggerPrice'] = this.priceToPrecision(symbol, triggerPrice);
|
|
1188
1274
|
}
|
|
1189
1275
|
const trailingTriggerPrice = this.safeString2(params, 'trailingTriggerPrice', 'activatedPrice', this.numberToString(price));
|
|
1190
1276
|
const trailingAmount = this.safeString2(params, 'trailingAmount', 'callbackValue');
|
|
@@ -1205,7 +1291,7 @@ class woo extends woo$1 {
|
|
|
1205
1291
|
}
|
|
1206
1292
|
}
|
|
1207
1293
|
params = this.omit(params, ['clOrdID', 'clientOrderId', 'client_order_id', 'stopPrice', 'triggerPrice', 'takeProfitPrice', 'stopLossPrice', 'trailingTriggerPrice', 'trailingAmount', 'trailingPercent']);
|
|
1208
|
-
const isConditional = isTrailing || (
|
|
1294
|
+
const isConditional = isTrailing || (triggerPrice !== undefined) || (this.safeValue(params, 'childOrders') !== undefined);
|
|
1209
1295
|
let response = undefined;
|
|
1210
1296
|
if (isByClientOrder) {
|
|
1211
1297
|
request['client_order_id'] = clientOrderIdExchangeSpecific;
|
|
@@ -1642,7 +1728,7 @@ class woo extends woo$1 {
|
|
|
1642
1728
|
const fee = this.safeNumber2(order, 'total_fee', 'totalFee');
|
|
1643
1729
|
const feeCurrency = this.safeString2(order, 'fee_asset', 'feeAsset');
|
|
1644
1730
|
const transactions = this.safeValue(order, 'Transactions');
|
|
1645
|
-
const
|
|
1731
|
+
const triggerPrice = this.safeNumber(order, 'triggerPrice');
|
|
1646
1732
|
let takeProfitPrice = undefined;
|
|
1647
1733
|
let stopLossPrice = undefined;
|
|
1648
1734
|
const childOrders = this.safeValue(order, 'childOrders');
|
|
@@ -1673,8 +1759,7 @@ class woo extends woo$1 {
|
|
|
1673
1759
|
'reduceOnly': this.safeBool(order, 'reduce_only'),
|
|
1674
1760
|
'side': side,
|
|
1675
1761
|
'price': price,
|
|
1676
|
-
'
|
|
1677
|
-
'triggerPrice': stopPrice,
|
|
1762
|
+
'triggerPrice': triggerPrice,
|
|
1678
1763
|
'takeProfitPrice': takeProfitPrice,
|
|
1679
1764
|
'stopLossPrice': stopLossPrice,
|
|
1680
1765
|
'average': average,
|
|
@@ -1890,7 +1975,7 @@ class woo extends woo$1 {
|
|
|
1890
1975
|
* @method
|
|
1891
1976
|
* @name woo#fetchMyTrades
|
|
1892
1977
|
* @description fetch all trades made by the user
|
|
1893
|
-
* @see https://docs.woox.io/#get-
|
|
1978
|
+
* @see https://docs.woox.io/#get-trade-history
|
|
1894
1979
|
* @param {string} symbol unified market symbol
|
|
1895
1980
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1896
1981
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1905,7 +1990,7 @@ class woo extends woo$1 {
|
|
|
1905
1990
|
if (paginate) {
|
|
1906
1991
|
return await this.fetchPaginatedCallIncremental('fetchMyTrades', symbol, since, limit, params, 'page', 500);
|
|
1907
1992
|
}
|
|
1908
|
-
|
|
1993
|
+
let request = {};
|
|
1909
1994
|
let market = undefined;
|
|
1910
1995
|
if (symbol !== undefined) {
|
|
1911
1996
|
market = this.market(symbol);
|
|
@@ -1914,6 +1999,7 @@ class woo extends woo$1 {
|
|
|
1914
1999
|
if (since !== undefined) {
|
|
1915
2000
|
request['start_t'] = since;
|
|
1916
2001
|
}
|
|
2002
|
+
[request, params] = this.handleUntilOption('end_t', request, params);
|
|
1917
2003
|
if (limit !== undefined) {
|
|
1918
2004
|
request['size'] = limit;
|
|
1919
2005
|
}
|
package/dist/cjs/src/woofipro.js
CHANGED
|
@@ -301,6 +301,88 @@ class woofipro extends woofipro$1 {
|
|
|
301
301
|
'brokerId': 'CCXT',
|
|
302
302
|
'verifyingContractAddress': '0x6F7a338F2aA472838dEFD3283eB360d4Dff5D203',
|
|
303
303
|
},
|
|
304
|
+
'features': {
|
|
305
|
+
'default': {
|
|
306
|
+
'sandbox': true,
|
|
307
|
+
'createOrder': {
|
|
308
|
+
'marginMode': false,
|
|
309
|
+
'triggerPrice': true,
|
|
310
|
+
'triggerPriceType': undefined,
|
|
311
|
+
'triggerDirection': false,
|
|
312
|
+
'stopLossPrice': false,
|
|
313
|
+
'takeProfitPrice': false,
|
|
314
|
+
'attachedStopLossTakeProfit': undefined,
|
|
315
|
+
'timeInForce': {
|
|
316
|
+
'IOC': true,
|
|
317
|
+
'FOK': true,
|
|
318
|
+
'PO': true,
|
|
319
|
+
'GTD': false,
|
|
320
|
+
},
|
|
321
|
+
'hedged': false,
|
|
322
|
+
'trailing': true,
|
|
323
|
+
// exchange specific
|
|
324
|
+
// 'iceberg': true,
|
|
325
|
+
},
|
|
326
|
+
'createOrders': {
|
|
327
|
+
'max': 10,
|
|
328
|
+
},
|
|
329
|
+
'fetchMyTrades': {
|
|
330
|
+
'marginMode': false,
|
|
331
|
+
'limit': 500,
|
|
332
|
+
'daysBack': undefined,
|
|
333
|
+
'untilDays': 100000,
|
|
334
|
+
},
|
|
335
|
+
'fetchOrder': {
|
|
336
|
+
'marginMode': false,
|
|
337
|
+
'trigger': true,
|
|
338
|
+
'trailing': false,
|
|
339
|
+
},
|
|
340
|
+
'fetchOpenOrders': {
|
|
341
|
+
'marginMode': false,
|
|
342
|
+
'limit': 500,
|
|
343
|
+
'trigger': true,
|
|
344
|
+
'trailing': false,
|
|
345
|
+
},
|
|
346
|
+
'fetchOrders': undefined,
|
|
347
|
+
'fetchClosedOrders': {
|
|
348
|
+
'marginMode': false,
|
|
349
|
+
'limit': 500,
|
|
350
|
+
'daysBackClosed': undefined,
|
|
351
|
+
'daysBackCanceled': undefined,
|
|
352
|
+
'untilDays': 100000,
|
|
353
|
+
'trigger': true,
|
|
354
|
+
'trailing': false,
|
|
355
|
+
},
|
|
356
|
+
'fetchOHLCV': {
|
|
357
|
+
'limit': 1000,
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
'spot': {
|
|
361
|
+
'extends': 'default',
|
|
362
|
+
},
|
|
363
|
+
'forDerivatives': {
|
|
364
|
+
'extends': 'default',
|
|
365
|
+
'createOrder': {
|
|
366
|
+
// todo: implementation needs unification
|
|
367
|
+
'triggerPriceType': undefined,
|
|
368
|
+
'attachedStopLossTakeProfit': {
|
|
369
|
+
// todo: implementation needs unification
|
|
370
|
+
'triggerPriceType': undefined,
|
|
371
|
+
'limitPrice': false,
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
'swap': {
|
|
376
|
+
'linear': {
|
|
377
|
+
'extends': 'forDerivatives',
|
|
378
|
+
},
|
|
379
|
+
'inverse': undefined,
|
|
380
|
+
},
|
|
381
|
+
'future': {
|
|
382
|
+
'linear': undefined,
|
|
383
|
+
'inverse': undefined,
|
|
384
|
+
},
|
|
385
|
+
},
|
|
304
386
|
'commonCurrencies': {},
|
|
305
387
|
'exceptions': {
|
|
306
388
|
'exact': {
|
|
@@ -1172,7 +1254,7 @@ class woofipro extends woofipro$1 {
|
|
|
1172
1254
|
const fee = this.safeValue2(order, 'total_fee', 'totalFee');
|
|
1173
1255
|
const feeCurrency = this.safeString2(order, 'fee_asset', 'feeAsset');
|
|
1174
1256
|
const transactions = this.safeValue(order, 'Transactions');
|
|
1175
|
-
const
|
|
1257
|
+
const triggerPrice = this.safeNumber(order, 'triggerPrice');
|
|
1176
1258
|
let takeProfitPrice = undefined;
|
|
1177
1259
|
let stopLossPrice = undefined;
|
|
1178
1260
|
const childOrders = this.safeValue(order, 'childOrders');
|
|
@@ -1203,8 +1285,7 @@ class woofipro extends woofipro$1 {
|
|
|
1203
1285
|
'reduceOnly': this.safeBool(order, 'reduce_only'),
|
|
1204
1286
|
'side': side,
|
|
1205
1287
|
'price': price,
|
|
1206
|
-
'
|
|
1207
|
-
'triggerPrice': stopPrice,
|
|
1288
|
+
'triggerPrice': triggerPrice,
|
|
1208
1289
|
'takeProfitPrice': takeProfitPrice,
|
|
1209
1290
|
'stopLossPrice': stopLossPrice,
|
|
1210
1291
|
'average': average,
|
|
@@ -1275,11 +1356,11 @@ class woofipro extends woofipro$1 {
|
|
|
1275
1356
|
'symbol': market['id'],
|
|
1276
1357
|
'side': orderSide,
|
|
1277
1358
|
};
|
|
1278
|
-
const
|
|
1359
|
+
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
1279
1360
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
1280
1361
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
1281
1362
|
const algoType = this.safeString(params, 'algoType');
|
|
1282
|
-
const isConditional =
|
|
1363
|
+
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
|
|
1283
1364
|
const isMarket = orderType === 'MARKET';
|
|
1284
1365
|
const timeInForce = this.safeStringLower(params, 'timeInForce');
|
|
1285
1366
|
const postOnly = this.isPostOnly(isMarket, undefined, params);
|
|
@@ -1314,8 +1395,8 @@ class woofipro extends woofipro$1 {
|
|
|
1314
1395
|
if (clientOrderId !== undefined) {
|
|
1315
1396
|
request['client_order_id'] = clientOrderId;
|
|
1316
1397
|
}
|
|
1317
|
-
if (
|
|
1318
|
-
request['trigger_price'] = this.priceToPrecision(symbol,
|
|
1398
|
+
if (triggerPrice !== undefined) {
|
|
1399
|
+
request['trigger_price'] = this.priceToPrecision(symbol, triggerPrice);
|
|
1319
1400
|
request['algo_type'] = 'STOP';
|
|
1320
1401
|
}
|
|
1321
1402
|
else if ((stopLoss !== undefined) || (takeProfit !== undefined)) {
|
|
@@ -1380,10 +1461,10 @@ class woofipro extends woofipro$1 {
|
|
|
1380
1461
|
await this.loadMarkets();
|
|
1381
1462
|
const market = this.market(symbol);
|
|
1382
1463
|
const request = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
1383
|
-
const
|
|
1464
|
+
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
1384
1465
|
const stopLoss = this.safeValue(params, 'stopLoss');
|
|
1385
1466
|
const takeProfit = this.safeValue(params, 'takeProfit');
|
|
1386
|
-
const isConditional =
|
|
1467
|
+
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(params, 'childOrders') !== undefined);
|
|
1387
1468
|
let response = undefined;
|
|
1388
1469
|
if (isConditional) {
|
|
1389
1470
|
response = await this.v1PrivatePostAlgoOrder(request);
|
|
@@ -1444,10 +1525,10 @@ class woofipro extends woofipro$1 {
|
|
|
1444
1525
|
const amount = this.safeValue(rawOrder, 'amount');
|
|
1445
1526
|
const price = this.safeValue(rawOrder, 'price');
|
|
1446
1527
|
const orderParams = this.safeDict(rawOrder, 'params', {});
|
|
1447
|
-
const
|
|
1528
|
+
const triggerPrice = this.safeString2(orderParams, 'triggerPrice', 'stopPrice');
|
|
1448
1529
|
const stopLoss = this.safeValue(orderParams, 'stopLoss');
|
|
1449
1530
|
const takeProfit = this.safeValue(orderParams, 'takeProfit');
|
|
1450
|
-
const isConditional =
|
|
1531
|
+
const isConditional = triggerPrice !== undefined || stopLoss !== undefined || takeProfit !== undefined || (this.safeValue(orderParams, 'childOrders') !== undefined);
|
|
1451
1532
|
if (isConditional) {
|
|
1452
1533
|
throw new errors.NotSupported(this.id + 'createOrders() only support non-stop order');
|
|
1453
1534
|
}
|
|
@@ -1503,11 +1584,11 @@ class woofipro extends woofipro$1 {
|
|
|
1503
1584
|
const request = {
|
|
1504
1585
|
'order_id': id,
|
|
1505
1586
|
};
|
|
1506
|
-
const
|
|
1507
|
-
if (
|
|
1508
|
-
request['triggerPrice'] = this.priceToPrecision(symbol,
|
|
1587
|
+
const triggerPrice = this.safeStringN(params, ['triggerPrice', 'stopPrice', 'takeProfitPrice', 'stopLossPrice']);
|
|
1588
|
+
if (triggerPrice !== undefined) {
|
|
1589
|
+
request['triggerPrice'] = this.priceToPrecision(symbol, triggerPrice);
|
|
1509
1590
|
}
|
|
1510
|
-
const isConditional = (
|
|
1591
|
+
const isConditional = (triggerPrice !== undefined) || (this.safeValue(params, 'childOrders') !== undefined);
|
|
1511
1592
|
const orderQtyKey = isConditional ? 'quantity' : 'order_quantity';
|
|
1512
1593
|
const priceKey = isConditional ? 'price' : 'order_price';
|
|
1513
1594
|
if (price !== undefined) {
|
package/dist/cjs/src/xt.js
CHANGED
|
@@ -2296,7 +2296,8 @@ class xt extends xt$1 {
|
|
|
2296
2296
|
* @param {string} [params.timeInForce] 'GTC', 'IOC', 'FOK' or 'GTX'
|
|
2297
2297
|
* @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
|
|
2298
2298
|
* @param {string} [params.triggerPriceType] 'INDEX_PRICE', 'MARK_PRICE', 'LATEST_PRICE', required if stopPrice is defined
|
|
2299
|
-
* @param {float} [params.
|
|
2299
|
+
* @param {float} [params.triggerPrice] price to trigger a stop order
|
|
2300
|
+
* @param {float} [params.stopPrice] alias for triggerPrice
|
|
2300
2301
|
* @param {float} [params.stopLoss] price to set a stop-loss on an open position
|
|
2301
2302
|
* @param {float} [params.takeProfit] price to set a take-profit on an open position
|
|
2302
2303
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
@@ -3502,7 +3503,7 @@ class xt extends xt$1 {
|
|
|
3502
3503
|
'postOnly': undefined,
|
|
3503
3504
|
'side': this.safeStringLower2(order, 'side', 'orderSide'),
|
|
3504
3505
|
'price': this.safeNumber(order, 'price'),
|
|
3505
|
-
'
|
|
3506
|
+
'triggerPrice': this.safeNumber(order, 'stopPrice'),
|
|
3506
3507
|
'stopLoss': this.safeNumber(order, 'triggerStopPrice'),
|
|
3507
3508
|
'takeProfit': this.safeNumber(order, 'triggerProfitPrice'),
|
|
3508
3509
|
'amount': amount,
|
|
@@ -4380,7 +4381,10 @@ class xt extends xt$1 {
|
|
|
4380
4381
|
const marketId = this.safeString(contract, 'symbol');
|
|
4381
4382
|
const symbol = this.safeSymbol(marketId, market, '_', 'swap');
|
|
4382
4383
|
const timestamp = this.safeInteger(contract, 'nextCollectionTime');
|
|
4383
|
-
|
|
4384
|
+
let interval = this.safeString(contract, 'collectionInternal');
|
|
4385
|
+
if (interval !== undefined) {
|
|
4386
|
+
interval = interval + 'h';
|
|
4387
|
+
}
|
|
4384
4388
|
return {
|
|
4385
4389
|
'info': contract,
|
|
4386
4390
|
'symbol': symbol,
|
|
@@ -4399,7 +4403,7 @@ class xt extends xt$1 {
|
|
|
4399
4403
|
'previousFundingRate': undefined,
|
|
4400
4404
|
'previousFundingTimestamp': undefined,
|
|
4401
4405
|
'previousFundingDatetime': undefined,
|
|
4402
|
-
'interval': interval
|
|
4406
|
+
'interval': interval,
|
|
4403
4407
|
};
|
|
4404
4408
|
}
|
|
4405
4409
|
/**
|
package/dist/cjs/src/yobit.js
CHANGED
package/dist/cjs/src/zaif.js
CHANGED
package/dist/cjs/src/zonda.js
CHANGED
|
@@ -492,7 +492,6 @@ class zonda extends zonda$1 {
|
|
|
492
492
|
'postOnly': postOnly,
|
|
493
493
|
'side': this.safeStringLower(order, 'offerType'),
|
|
494
494
|
'price': this.safeString(order, 'rate'),
|
|
495
|
-
'stopPrice': undefined,
|
|
496
495
|
'triggerPrice': undefined,
|
|
497
496
|
'amount': amount,
|
|
498
497
|
'cost': undefined,
|
|
@@ -1415,7 +1414,7 @@ class zonda extends zonda$1 {
|
|
|
1415
1414
|
let response = undefined;
|
|
1416
1415
|
if (isStopOrder) {
|
|
1417
1416
|
if (!isStopLossPrice) {
|
|
1418
|
-
throw new errors.ExchangeError(this.id + ' createOrder() zonda requires `triggerPrice`
|
|
1417
|
+
throw new errors.ExchangeError(this.id + ' createOrder() zonda requires `triggerPrice` parameter for stop-limit or stop-market orders');
|
|
1419
1418
|
}
|
|
1420
1419
|
request['stopRate'] = this.priceToPrecision(symbol, stopLossPrice);
|
|
1421
1420
|
response = await this.v1_01PrivatePostTradingStopOfferSymbol(this.extend(request, params));
|
package/js/ccxt.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Exchange } from './src/base/Exchange.js';
|
|
|
2
2
|
import { Precise } from './src/base/Precise.js';
|
|
3
3
|
import * as functions from './src/base/functions.js';
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
|
-
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio } from './src/base/types.js';
|
|
5
|
+
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OpenInterests } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.4.
|
|
7
|
+
declare const version = "4.4.41";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -573,5 +573,5 @@ declare const ccxt: {
|
|
|
573
573
|
zaif: typeof zaif;
|
|
574
574
|
zonda: typeof zonda;
|
|
575
575
|
} & typeof functions & typeof errors;
|
|
576
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
576
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitcoincom, bitfinex, bitfinex1, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, defx, delta, deribit, digifinex, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, hitbtc, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, vertex, wavesexchange, wazirx, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
577
577
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.4.
|
|
41
|
+
const version = '4.4.42';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -359,6 +359,8 @@ interface Exchange {
|
|
|
359
359
|
sapiPostPortfolioBnbTransfer(params?: {}): Promise<implicitReturnType>;
|
|
360
360
|
sapiPostPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
|
|
361
361
|
sapiPostPortfolioRepayFuturesNegativeBalance(params?: {}): Promise<implicitReturnType>;
|
|
362
|
+
sapiPostPortfolioMint(params?: {}): Promise<implicitReturnType>;
|
|
363
|
+
sapiPostPortfolioRedeem(params?: {}): Promise<implicitReturnType>;
|
|
362
364
|
sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
|
|
363
365
|
sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
|
|
364
366
|
sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
|
|
@@ -598,6 +600,7 @@ interface Exchange {
|
|
|
598
600
|
eapiPrivateGetBlockOrderOrders(params?: {}): Promise<implicitReturnType>;
|
|
599
601
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
600
602
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
603
|
+
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
601
604
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
602
605
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
603
606
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -359,6 +359,8 @@ interface binance {
|
|
|
359
359
|
sapiPostPortfolioBnbTransfer(params?: {}): Promise<implicitReturnType>;
|
|
360
360
|
sapiPostPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
|
|
361
361
|
sapiPostPortfolioRepayFuturesNegativeBalance(params?: {}): Promise<implicitReturnType>;
|
|
362
|
+
sapiPostPortfolioMint(params?: {}): Promise<implicitReturnType>;
|
|
363
|
+
sapiPostPortfolioRedeem(params?: {}): Promise<implicitReturnType>;
|
|
362
364
|
sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
|
|
363
365
|
sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
|
|
364
366
|
sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
|
|
@@ -598,6 +600,7 @@ interface binance {
|
|
|
598
600
|
eapiPrivateGetBlockOrderOrders(params?: {}): Promise<implicitReturnType>;
|
|
599
601
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
600
602
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
603
|
+
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
601
604
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
602
605
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
603
606
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -390,6 +390,8 @@ interface binance {
|
|
|
390
390
|
sapiPostPortfolioBnbTransfer(params?: {}): Promise<implicitReturnType>;
|
|
391
391
|
sapiPostPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
|
|
392
392
|
sapiPostPortfolioRepayFuturesNegativeBalance(params?: {}): Promise<implicitReturnType>;
|
|
393
|
+
sapiPostPortfolioMint(params?: {}): Promise<implicitReturnType>;
|
|
394
|
+
sapiPostPortfolioRedeem(params?: {}): Promise<implicitReturnType>;
|
|
393
395
|
sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
|
|
394
396
|
sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
|
|
395
397
|
sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
|
|
@@ -650,6 +652,7 @@ interface binance {
|
|
|
650
652
|
eapiPrivateGetBlockOrderOrders(params?: {}): Promise<implicitReturnType>;
|
|
651
653
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
652
654
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
655
|
+
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
653
656
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
654
657
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
655
658
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -359,6 +359,8 @@ interface binance {
|
|
|
359
359
|
sapiPostPortfolioBnbTransfer(params?: {}): Promise<implicitReturnType>;
|
|
360
360
|
sapiPostPortfolioRepayFuturesSwitch(params?: {}): Promise<implicitReturnType>;
|
|
361
361
|
sapiPostPortfolioRepayFuturesNegativeBalance(params?: {}): Promise<implicitReturnType>;
|
|
362
|
+
sapiPostPortfolioMint(params?: {}): Promise<implicitReturnType>;
|
|
363
|
+
sapiPostPortfolioRedeem(params?: {}): Promise<implicitReturnType>;
|
|
362
364
|
sapiPostLendingAutoInvestPlanAdd(params?: {}): Promise<implicitReturnType>;
|
|
363
365
|
sapiPostLendingAutoInvestPlanEdit(params?: {}): Promise<implicitReturnType>;
|
|
364
366
|
sapiPostLendingAutoInvestPlanEditStatus(params?: {}): Promise<implicitReturnType>;
|
|
@@ -598,6 +600,7 @@ interface binance {
|
|
|
598
600
|
eapiPrivateGetBlockOrderOrders(params?: {}): Promise<implicitReturnType>;
|
|
599
601
|
eapiPrivateGetBlockOrderExecute(params?: {}): Promise<implicitReturnType>;
|
|
600
602
|
eapiPrivateGetBlockUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
603
|
+
eapiPrivateGetBlockTrades(params?: {}): Promise<implicitReturnType>;
|
|
601
604
|
eapiPrivatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
602
605
|
eapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
603
606
|
eapiPrivatePostListenKey(params?: {}): Promise<implicitReturnType>;
|
|
@@ -24,6 +24,7 @@ interface Exchange {
|
|
|
24
24
|
publicGetContractPublicDepth(params?: {}): Promise<implicitReturnType>;
|
|
25
25
|
publicGetContractPublicOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
26
26
|
publicGetContractPublicFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
publicGetContractPublicFundingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
27
28
|
publicGetContractPublicKline(params?: {}): Promise<implicitReturnType>;
|
|
28
29
|
publicGetAccountV1Currencies(params?: {}): Promise<implicitReturnType>;
|
|
29
30
|
privateGetAccountSubAccountV1TransferList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -63,6 +64,7 @@ interface Exchange {
|
|
|
63
64
|
privateGetContractPrivatePositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
64
65
|
privateGetContractPrivateAffilateRebateList(params?: {}): Promise<implicitReturnType>;
|
|
65
66
|
privateGetContractPrivateAffilateTradeList(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
privateGetContractPrivateTransactionHistory(params?: {}): Promise<implicitReturnType>;
|
|
66
68
|
privatePostAccountSubAccountMainV1SubToMain(params?: {}): Promise<implicitReturnType>;
|
|
67
69
|
privatePostAccountSubAccountSubV1SubToMain(params?: {}): Promise<implicitReturnType>;
|
|
68
70
|
privatePostAccountSubAccountMainV1MainToSub(params?: {}): Promise<implicitReturnType>;
|
package/js/src/abstract/okx.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ interface Exchange {
|
|
|
67
67
|
publicGetTradingBotPublicRsiBackTesting(params?: {}): Promise<implicitReturnType>;
|
|
68
68
|
publicGetAssetExchangeList(params?: {}): Promise<implicitReturnType>;
|
|
69
69
|
publicGetFinanceStakingDefiEthApyHistory(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
publicGetFinanceStakingDefiSolApyHistory(params?: {}): Promise<implicitReturnType>;
|
|
70
71
|
publicGetFinanceSavingsLendingRateSummary(params?: {}): Promise<implicitReturnType>;
|
|
71
72
|
publicGetFinanceSavingsLendingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
72
73
|
publicGetFinanceFixedLoanLendingOffers(params?: {}): Promise<implicitReturnType>;
|
|
@@ -190,6 +191,8 @@ interface Exchange {
|
|
|
190
191
|
privateGetFinanceStakingDefiEthBalance(params?: {}): Promise<implicitReturnType>;
|
|
191
192
|
privateGetFinanceStakingDefiEthPurchaseRedeemHistory(params?: {}): Promise<implicitReturnType>;
|
|
192
193
|
privateGetFinanceStakingDefiEthProductInfo(params?: {}): Promise<implicitReturnType>;
|
|
194
|
+
privateGetFinanceStakingDefiSolBalance(params?: {}): Promise<implicitReturnType>;
|
|
195
|
+
privateGetFinanceStakingDefiSolPurchaseRedeemHistory(params?: {}): Promise<implicitReturnType>;
|
|
193
196
|
privateGetCopytradingCurrentSubpositions(params?: {}): Promise<implicitReturnType>;
|
|
194
197
|
privateGetCopytradingSubpositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
195
198
|
privateGetCopytradingInstruments(params?: {}): Promise<implicitReturnType>;
|
|
@@ -310,6 +313,8 @@ interface Exchange {
|
|
|
310
313
|
privatePostFinanceStakingDefiCancel(params?: {}): Promise<implicitReturnType>;
|
|
311
314
|
privatePostFinanceStakingDefiEthPurchase(params?: {}): Promise<implicitReturnType>;
|
|
312
315
|
privatePostFinanceStakingDefiEthRedeem(params?: {}): Promise<implicitReturnType>;
|
|
316
|
+
privatePostFinanceStakingDefiSolPurchase(params?: {}): Promise<implicitReturnType>;
|
|
317
|
+
privatePostFinanceStakingDefiSolRedeem(params?: {}): Promise<implicitReturnType>;
|
|
313
318
|
privatePostCopytradingAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
314
319
|
privatePostCopytradingCloseSubposition(params?: {}): Promise<implicitReturnType>;
|
|
315
320
|
privatePostCopytradingSetInstruments(params?: {}): Promise<implicitReturnType>;
|
package/js/src/ace.js
CHANGED
package/js/src/alpaca.js
CHANGED
|
@@ -1214,7 +1214,6 @@ export default class alpaca extends Exchange {
|
|
|
1214
1214
|
'postOnly': undefined,
|
|
1215
1215
|
'side': this.safeString(order, 'side'),
|
|
1216
1216
|
'price': this.safeNumber(order, 'limit_price'),
|
|
1217
|
-
'stopPrice': this.safeNumber(order, 'stop_price'),
|
|
1218
1217
|
'triggerPrice': this.safeNumber(order, 'stop_price'),
|
|
1219
1218
|
'cost': undefined,
|
|
1220
1219
|
'average': this.safeNumber(order, 'filled_avg_price'),
|
package/js/src/ascendex.js
CHANGED