ccxt 4.3.49 → 4.3.50
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 +3 -3
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/bitget.js +1 -0
- package/dist/cjs/src/htx.js +10 -10
- package/dist/cjs/src/kucoin.js +4 -4
- package/dist/cjs/src/kucoinfutures.js +1 -1
- package/dist/cjs/src/pro/gate.js +2 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/bitget.js +1 -0
- package/js/src/htx.js +10 -10
- package/js/src/kucoin.js +4 -4
- package/js/src/kucoinfutures.js +1 -1
- package/js/src/pro/gate.js +2 -2
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -188,7 +188,7 @@ var woofipro$1 = require('./src/pro/woofipro.js');
|
|
|
188
188
|
|
|
189
189
|
//-----------------------------------------------------------------------------
|
|
190
190
|
// this is updated by vss.js when building
|
|
191
|
-
const version = '4.3.
|
|
191
|
+
const version = '4.3.50';
|
|
192
192
|
Exchange["default"].ccxtVersion = version;
|
|
193
193
|
const exchanges = {
|
|
194
194
|
'ace': ace,
|
package/dist/cjs/src/bitget.js
CHANGED
|
@@ -4151,6 +4151,7 @@ class bitget extends bitget$1 {
|
|
|
4151
4151
|
* @param {string} [params.trailingTriggerPrice] *swap and future only* the price to trigger a trailing stop order, default uses the price argument
|
|
4152
4152
|
* @param {string} [params.triggerType] *swap and future only* 'fill_price', 'mark_price' or 'index_price'
|
|
4153
4153
|
* @param {boolean} [params.oneWayMode] *swap and future only* required to set this to true in one_way_mode and you can leave this as undefined in hedge_mode, can adjust the mode using the setPositionMode() method
|
|
4154
|
+
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only
|
|
4154
4155
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4155
4156
|
*/
|
|
4156
4157
|
await this.loadMarkets();
|
package/dist/cjs/src/htx.js
CHANGED
|
@@ -3993,10 +3993,10 @@ class htx extends htx$1 {
|
|
|
3993
3993
|
'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;
|
|
3994
3994
|
};
|
|
3995
3995
|
let response = undefined;
|
|
3996
|
-
const stop = this.
|
|
3996
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
3997
3997
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
3998
3998
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
3999
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
3999
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
4000
4000
|
if (stop || stopLossTakeProfit || trailing) {
|
|
4001
4001
|
if (limit !== undefined) {
|
|
4002
4002
|
request['page_size'] = limit;
|
|
@@ -4368,10 +4368,10 @@ class htx extends htx$1 {
|
|
|
4368
4368
|
request['page_size'] = limit;
|
|
4369
4369
|
}
|
|
4370
4370
|
request['contract_code'] = market['id'];
|
|
4371
|
-
const stop = this.
|
|
4371
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
4372
4372
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
4373
4373
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
4374
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
4374
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
4375
4375
|
if (market['linear']) {
|
|
4376
4376
|
let marginMode = undefined;
|
|
4377
4377
|
[marginMode, params] = this.handleMarginModeAndParams('fetchOpenOrders', params);
|
|
@@ -5751,10 +5751,10 @@ class htx extends htx$1 {
|
|
|
5751
5751
|
else {
|
|
5752
5752
|
request['contract_code'] = market['id'];
|
|
5753
5753
|
}
|
|
5754
|
-
const stop = this.
|
|
5754
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
5755
5755
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
5756
5756
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
5757
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
5757
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
5758
5758
|
if (market['linear']) {
|
|
5759
5759
|
let marginMode = undefined;
|
|
5760
5760
|
[marginMode, params] = this.handleMarginModeAndParams('cancelOrder', params);
|
|
@@ -5917,9 +5917,9 @@ class htx extends htx$1 {
|
|
|
5917
5917
|
else {
|
|
5918
5918
|
request['contract_code'] = market['id'];
|
|
5919
5919
|
}
|
|
5920
|
-
const stop = this.
|
|
5920
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
5921
5921
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
5922
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit']);
|
|
5922
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trigger']);
|
|
5923
5923
|
if (market['linear']) {
|
|
5924
5924
|
let marginMode = undefined;
|
|
5925
5925
|
[marginMode, params] = this.handleMarginModeAndParams('cancelOrders', params);
|
|
@@ -6076,10 +6076,10 @@ class htx extends htx$1 {
|
|
|
6076
6076
|
request['symbol'] = market['settleId'];
|
|
6077
6077
|
}
|
|
6078
6078
|
request['contract_code'] = market['id'];
|
|
6079
|
-
const stop = this.
|
|
6079
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
6080
6080
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
6081
6081
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
6082
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
6082
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
6083
6083
|
if (market['linear']) {
|
|
6084
6084
|
let marginMode = undefined;
|
|
6085
6085
|
[marginMode, params] = this.handleMarginModeAndParams('cancelAllOrders', params);
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -2509,9 +2509,9 @@ class kucoin extends kucoin$1 {
|
|
|
2509
2509
|
await this.loadMarkets();
|
|
2510
2510
|
let lowercaseStatus = status.toLowerCase();
|
|
2511
2511
|
const until = this.safeInteger(params, 'until');
|
|
2512
|
-
const stop = this.
|
|
2512
|
+
const stop = this.safeBool2(params, 'stop', 'trigger', false);
|
|
2513
2513
|
const hf = this.safeBool(params, 'hf', false);
|
|
2514
|
-
params = this.omit(params, ['stop', 'hf', 'until']);
|
|
2514
|
+
params = this.omit(params, ['stop', 'hf', 'until', 'trigger']);
|
|
2515
2515
|
const [marginMode, query] = this.handleMarginModeAndParams('fetchOrdersByStatus', params);
|
|
2516
2516
|
if (lowercaseStatus === 'open') {
|
|
2517
2517
|
lowercaseStatus = 'active';
|
|
@@ -2688,7 +2688,7 @@ class kucoin extends kucoin$1 {
|
|
|
2688
2688
|
await this.loadMarkets();
|
|
2689
2689
|
const request = {};
|
|
2690
2690
|
const clientOrderId = this.safeString2(params, 'clientOid', 'clientOrderId');
|
|
2691
|
-
const stop = this.
|
|
2691
|
+
const stop = this.safeBool2(params, 'stop', 'trigger', false);
|
|
2692
2692
|
const hf = this.safeBool(params, 'hf', false);
|
|
2693
2693
|
let market = undefined;
|
|
2694
2694
|
if (symbol !== undefined) {
|
|
@@ -2700,7 +2700,7 @@ class kucoin extends kucoin$1 {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
request['symbol'] = market['id'];
|
|
2702
2702
|
}
|
|
2703
|
-
params = this.omit(params, ['stop', 'hf', 'clientOid', 'clientOrderId']);
|
|
2703
|
+
params = this.omit(params, ['stop', 'hf', 'clientOid', 'clientOrderId', 'trigger']);
|
|
2704
2704
|
let response = undefined;
|
|
2705
2705
|
if (clientOrderId !== undefined) {
|
|
2706
2706
|
request['clientOid'] = clientOrderId;
|
|
@@ -1765,7 +1765,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
1765
1765
|
if (paginate) {
|
|
1766
1766
|
return await this.fetchPaginatedCallDynamic('fetchOrdersByStatus', symbol, since, limit, params);
|
|
1767
1767
|
}
|
|
1768
|
-
const stop = this.
|
|
1768
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
1769
1769
|
const until = this.safeInteger(params, 'until');
|
|
1770
1770
|
params = this.omit(params, ['stop', 'until', 'trigger']);
|
|
1771
1771
|
if (status === 'closed') {
|
package/dist/cjs/src/pro/gate.js
CHANGED
|
@@ -225,8 +225,8 @@ class gate extends gate$1 {
|
|
|
225
225
|
*/
|
|
226
226
|
await this.loadMarkets();
|
|
227
227
|
const market = (symbol === undefined) ? undefined : this.market(symbol);
|
|
228
|
-
const stop = this.
|
|
229
|
-
params = this.omit(params, ['is_stop_order', 'stop']);
|
|
228
|
+
const stop = this.safeValueN(params, ['is_stop_order', 'stop', 'trigger'], false);
|
|
229
|
+
params = this.omit(params, ['is_stop_order', 'stop', 'trigger']);
|
|
230
230
|
const [type, query] = this.handleMarketTypeAndParams('cancelOrder', market, params);
|
|
231
231
|
const [request, requestParams] = (type === 'spot' || type === 'margin') ? this.spotOrderPrepareRequest(market, stop, query) : this.prepareRequest(market, type, query);
|
|
232
232
|
const messageType = this.getTypeByMarket(market);
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
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, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, TransferEntries, LeverageTiers } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.49";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
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, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.50';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/bitget.js
CHANGED
|
@@ -4154,6 +4154,7 @@ export default class bitget extends Exchange {
|
|
|
4154
4154
|
* @param {string} [params.trailingTriggerPrice] *swap and future only* the price to trigger a trailing stop order, default uses the price argument
|
|
4155
4155
|
* @param {string} [params.triggerType] *swap and future only* 'fill_price', 'mark_price' or 'index_price'
|
|
4156
4156
|
* @param {boolean} [params.oneWayMode] *swap and future only* required to set this to true in one_way_mode and you can leave this as undefined in hedge_mode, can adjust the mode using the setPositionMode() method
|
|
4157
|
+
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only
|
|
4157
4158
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4158
4159
|
*/
|
|
4159
4160
|
await this.loadMarkets();
|
package/js/src/htx.js
CHANGED
|
@@ -3996,10 +3996,10 @@ export default class htx extends Exchange {
|
|
|
3996
3996
|
'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;
|
|
3997
3997
|
};
|
|
3998
3998
|
let response = undefined;
|
|
3999
|
-
const stop = this.
|
|
3999
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
4000
4000
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
4001
4001
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
4002
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
4002
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
4003
4003
|
if (stop || stopLossTakeProfit || trailing) {
|
|
4004
4004
|
if (limit !== undefined) {
|
|
4005
4005
|
request['page_size'] = limit;
|
|
@@ -4371,10 +4371,10 @@ export default class htx extends Exchange {
|
|
|
4371
4371
|
request['page_size'] = limit;
|
|
4372
4372
|
}
|
|
4373
4373
|
request['contract_code'] = market['id'];
|
|
4374
|
-
const stop = this.
|
|
4374
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
4375
4375
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
4376
4376
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
4377
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
4377
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
4378
4378
|
if (market['linear']) {
|
|
4379
4379
|
let marginMode = undefined;
|
|
4380
4380
|
[marginMode, params] = this.handleMarginModeAndParams('fetchOpenOrders', params);
|
|
@@ -5754,10 +5754,10 @@ export default class htx extends Exchange {
|
|
|
5754
5754
|
else {
|
|
5755
5755
|
request['contract_code'] = market['id'];
|
|
5756
5756
|
}
|
|
5757
|
-
const stop = this.
|
|
5757
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
5758
5758
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
5759
5759
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
5760
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
5760
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
5761
5761
|
if (market['linear']) {
|
|
5762
5762
|
let marginMode = undefined;
|
|
5763
5763
|
[marginMode, params] = this.handleMarginModeAndParams('cancelOrder', params);
|
|
@@ -5920,9 +5920,9 @@ export default class htx extends Exchange {
|
|
|
5920
5920
|
else {
|
|
5921
5921
|
request['contract_code'] = market['id'];
|
|
5922
5922
|
}
|
|
5923
|
-
const stop = this.
|
|
5923
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
5924
5924
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
5925
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit']);
|
|
5925
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trigger']);
|
|
5926
5926
|
if (market['linear']) {
|
|
5927
5927
|
let marginMode = undefined;
|
|
5928
5928
|
[marginMode, params] = this.handleMarginModeAndParams('cancelOrders', params);
|
|
@@ -6079,10 +6079,10 @@ export default class htx extends Exchange {
|
|
|
6079
6079
|
request['symbol'] = market['settleId'];
|
|
6080
6080
|
}
|
|
6081
6081
|
request['contract_code'] = market['id'];
|
|
6082
|
-
const stop = this.
|
|
6082
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
6083
6083
|
const stopLossTakeProfit = this.safeValue(params, 'stopLossTakeProfit');
|
|
6084
6084
|
const trailing = this.safeBool(params, 'trailing', false);
|
|
6085
|
-
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing']);
|
|
6085
|
+
params = this.omit(params, ['stop', 'stopLossTakeProfit', 'trailing', 'trigger']);
|
|
6086
6086
|
if (market['linear']) {
|
|
6087
6087
|
let marginMode = undefined;
|
|
6088
6088
|
[marginMode, params] = this.handleMarginModeAndParams('cancelAllOrders', params);
|
package/js/src/kucoin.js
CHANGED
|
@@ -2512,9 +2512,9 @@ export default class kucoin extends Exchange {
|
|
|
2512
2512
|
await this.loadMarkets();
|
|
2513
2513
|
let lowercaseStatus = status.toLowerCase();
|
|
2514
2514
|
const until = this.safeInteger(params, 'until');
|
|
2515
|
-
const stop = this.
|
|
2515
|
+
const stop = this.safeBool2(params, 'stop', 'trigger', false);
|
|
2516
2516
|
const hf = this.safeBool(params, 'hf', false);
|
|
2517
|
-
params = this.omit(params, ['stop', 'hf', 'until']);
|
|
2517
|
+
params = this.omit(params, ['stop', 'hf', 'until', 'trigger']);
|
|
2518
2518
|
const [marginMode, query] = this.handleMarginModeAndParams('fetchOrdersByStatus', params);
|
|
2519
2519
|
if (lowercaseStatus === 'open') {
|
|
2520
2520
|
lowercaseStatus = 'active';
|
|
@@ -2691,7 +2691,7 @@ export default class kucoin extends Exchange {
|
|
|
2691
2691
|
await this.loadMarkets();
|
|
2692
2692
|
const request = {};
|
|
2693
2693
|
const clientOrderId = this.safeString2(params, 'clientOid', 'clientOrderId');
|
|
2694
|
-
const stop = this.
|
|
2694
|
+
const stop = this.safeBool2(params, 'stop', 'trigger', false);
|
|
2695
2695
|
const hf = this.safeBool(params, 'hf', false);
|
|
2696
2696
|
let market = undefined;
|
|
2697
2697
|
if (symbol !== undefined) {
|
|
@@ -2703,7 +2703,7 @@ export default class kucoin extends Exchange {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
request['symbol'] = market['id'];
|
|
2705
2705
|
}
|
|
2706
|
-
params = this.omit(params, ['stop', 'hf', 'clientOid', 'clientOrderId']);
|
|
2706
|
+
params = this.omit(params, ['stop', 'hf', 'clientOid', 'clientOrderId', 'trigger']);
|
|
2707
2707
|
let response = undefined;
|
|
2708
2708
|
if (clientOrderId !== undefined) {
|
|
2709
2709
|
request['clientOid'] = clientOrderId;
|
package/js/src/kucoinfutures.js
CHANGED
|
@@ -1768,7 +1768,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1768
1768
|
if (paginate) {
|
|
1769
1769
|
return await this.fetchPaginatedCallDynamic('fetchOrdersByStatus', symbol, since, limit, params);
|
|
1770
1770
|
}
|
|
1771
|
-
const stop = this.
|
|
1771
|
+
const stop = this.safeBool2(params, 'stop', 'trigger');
|
|
1772
1772
|
const until = this.safeInteger(params, 'until');
|
|
1773
1773
|
params = this.omit(params, ['stop', 'until', 'trigger']);
|
|
1774
1774
|
if (status === 'closed') {
|
package/js/src/pro/gate.js
CHANGED
|
@@ -228,8 +228,8 @@ export default class gate extends gateRest {
|
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
230
230
|
const market = (symbol === undefined) ? undefined : this.market(symbol);
|
|
231
|
-
const stop = this.
|
|
232
|
-
params = this.omit(params, ['is_stop_order', 'stop']);
|
|
231
|
+
const stop = this.safeValueN(params, ['is_stop_order', 'stop', 'trigger'], false);
|
|
232
|
+
params = this.omit(params, ['is_stop_order', 'stop', 'trigger']);
|
|
233
233
|
const [type, query] = this.handleMarketTypeAndParams('cancelOrder', market, params);
|
|
234
234
|
const [request, requestParams] = (type === 'spot' || type === 'margin') ? this.spotOrderPrepareRequest(market, stop, query) : this.prepareRequest(market, type, query);
|
|
235
235
|
const messageType = this.getTypeByMarket(market);
|
package/package.json
CHANGED