ccxt 4.1.95 → 4.1.97
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/build.sh +16 -16
- package/dist/ccxt.browser.js +1570 -1401
- 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/ascendex.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -5
- package/dist/cjs/src/base/errors.js +8 -1
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +145 -135
- package/dist/cjs/src/bingx.js +50 -8
- package/dist/cjs/src/bit2c.js +2 -3
- package/dist/cjs/src/bitfinex.js +1 -1
- package/dist/cjs/src/bitfinex2.js +3 -4
- package/dist/cjs/src/bitflyer.js +2 -2
- package/dist/cjs/src/bitmart.js +2 -2
- package/dist/cjs/src/bitmex.js +2 -2
- package/dist/cjs/src/bitopro.js +1 -1
- package/dist/cjs/src/bitpanda.js +1 -1
- package/dist/cjs/src/bitvavo.js +1 -1
- package/dist/cjs/src/blockchaincom.js +1 -1
- package/dist/cjs/src/btcalpha.js +2 -2
- package/dist/cjs/src/btcbox.js +3 -4
- package/dist/cjs/src/btcmarkets.js +2 -2
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bybit.js +2 -2
- package/dist/cjs/src/cex.js +1 -1
- package/dist/cjs/src/coinbase.js +11 -5
- package/dist/cjs/src/coinbasepro.js +2 -2
- package/dist/cjs/src/coinex.js +1 -1
- package/dist/cjs/src/coinlist.js +1 -1
- package/dist/cjs/src/cryptocom.js +2 -1
- package/dist/cjs/src/delta.js +25 -0
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/digifinex.js +1 -1
- package/dist/cjs/src/gate.js +3 -3
- package/dist/cjs/src/hitbtc.js +1 -1
- package/dist/cjs/src/hollaex.js +2 -2
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/huobijp.js +2 -2
- package/dist/cjs/src/idex.js +1 -1
- package/dist/cjs/src/independentreserve.js +1 -1
- package/dist/cjs/src/kraken.js +47 -46
- package/dist/cjs/src/krakenfutures.js +53 -26
- package/dist/cjs/src/kucoin.js +74 -4
- package/dist/cjs/src/kucoinfutures.js +2 -2
- package/dist/cjs/src/kuna.js +1 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/lykke.js +1 -1
- package/dist/cjs/src/mexc.js +2 -2
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +2 -2
- package/dist/cjs/src/oceanex.js +1 -1
- package/dist/cjs/src/okcoin.js +1 -1
- package/dist/cjs/src/okx.js +1 -1
- package/dist/cjs/src/poloniexfutures.js +1 -1
- package/dist/cjs/src/pro/alpaca.js +1 -1
- package/dist/cjs/src/pro/ascendex.js +1 -1
- package/dist/cjs/src/pro/binance.js +4 -5
- package/dist/cjs/src/pro/bingx.js +6 -3
- package/dist/cjs/src/pro/bitfinex.js +3 -4
- package/dist/cjs/src/pro/bitfinex2.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +1 -1
- package/dist/cjs/src/pro/bitpanda.js +1 -1
- package/dist/cjs/src/pro/blockchaincom.js +1 -1
- package/dist/cjs/src/pro/bybit.js +2 -2
- package/dist/cjs/src/pro/cex.js +1 -1
- package/dist/cjs/src/pro/coinbase.js +1 -1
- package/dist/cjs/src/pro/coinbasepro.js +1 -1
- package/dist/cjs/src/pro/deribit.js +1 -1
- package/dist/cjs/src/pro/gate.js +3 -3
- package/dist/cjs/src/pro/gemini.js +1 -1
- package/dist/cjs/src/pro/hollaex.js +1 -1
- package/dist/cjs/src/pro/htx.js +1 -1
- package/dist/cjs/src/pro/idex.js +1 -1
- package/dist/cjs/src/pro/kraken.js +3 -4
- package/dist/cjs/src/pro/krakenfutures.js +1 -1
- package/dist/cjs/src/pro/kucoinfutures.js +1 -1
- package/dist/cjs/src/pro/mexc.js +1 -1
- package/dist/cjs/src/pro/okcoin.js +1 -1
- package/dist/cjs/src/pro/okx.js +2 -2
- package/dist/cjs/src/pro/phemex.js +1 -1
- package/dist/cjs/src/pro/poloniexfutures.js +1 -1
- package/dist/cjs/src/pro/woo.js +2 -3
- package/dist/cjs/src/probit.js +1 -1
- package/dist/cjs/src/timex.js +1 -1
- package/dist/cjs/src/tokocrypto.js +1 -1
- package/dist/cjs/src/upbit.js +1 -1
- package/dist/cjs/src/wavesexchange.js +1 -1
- package/dist/cjs/src/whitebit.js +1 -1
- package/dist/cjs/src/woo.js +1 -1
- package/dist/cjs/src/zaif.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/kucoin.d.ts +12 -0
- package/js/src/abstract/kucoinfutures.d.ts +12 -1
- package/js/src/ace.js +1 -1
- package/js/src/ascendex.js +1 -1
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +7 -6
- package/js/src/base/errorHierarchy.d.ts +1 -0
- package/js/src/base/errorHierarchy.js +1 -0
- package/js/src/base/errors.d.ts +5 -1
- package/js/src/base/errors.js +8 -2
- package/js/src/bigone.js +2 -2
- package/js/src/binance.js +145 -135
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +50 -8
- package/js/src/bit2c.js +2 -3
- package/js/src/bitfinex.js +1 -1
- package/js/src/bitfinex2.js +3 -4
- package/js/src/bitflyer.js +2 -2
- package/js/src/bitmart.js +2 -2
- package/js/src/bitmex.js +2 -2
- package/js/src/bitopro.js +1 -1
- package/js/src/bitpanda.js +1 -1
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitvavo.js +1 -1
- package/js/src/blockchaincom.js +1 -1
- package/js/src/btcalpha.js +2 -2
- package/js/src/btcbox.js +3 -4
- package/js/src/btcmarkets.js +2 -2
- package/js/src/btcturk.js +1 -1
- package/js/src/bybit.js +2 -2
- package/js/src/cex.js +1 -1
- package/js/src/coinbase.js +11 -5
- package/js/src/coinbasepro.js +2 -2
- package/js/src/coinex.js +1 -1
- package/js/src/coinlist.js +1 -1
- package/js/src/cryptocom.js +2 -1
- package/js/src/delta.d.ts +5 -4
- package/js/src/delta.js +25 -0
- package/js/src/deribit.js +1 -1
- package/js/src/digifinex.js +1 -1
- package/js/src/gate.js +3 -3
- package/js/src/hitbtc.js +1 -1
- package/js/src/hollaex.js +2 -2
- package/js/src/htx.js +1 -1
- package/js/src/huobijp.js +2 -2
- package/js/src/idex.js +1 -1
- package/js/src/independentreserve.js +1 -1
- package/js/src/kraken.js +47 -46
- package/js/src/krakenfutures.js +53 -26
- package/js/src/kucoin.d.ts +3 -0
- package/js/src/kucoin.js +74 -4
- package/js/src/kucoinfutures.js +2 -2
- package/js/src/kuna.js +1 -1
- package/js/src/latoken.js +1 -1
- package/js/src/luno.js +2 -2
- package/js/src/lykke.js +1 -1
- package/js/src/mexc.js +2 -2
- package/js/src/ndax.js +1 -1
- package/js/src/novadax.js +2 -2
- package/js/src/oceanex.js +1 -1
- package/js/src/okcoin.js +1 -1
- package/js/src/okx.js +1 -1
- package/js/src/poloniexfutures.js +1 -1
- package/js/src/pro/alpaca.js +1 -1
- package/js/src/pro/ascendex.js +1 -1
- package/js/src/pro/binance.js +4 -5
- package/js/src/pro/bingx.js +6 -3
- package/js/src/pro/bitfinex.js +3 -4
- package/js/src/pro/bitfinex2.js +1 -1
- package/js/src/pro/bitmex.js +1 -1
- package/js/src/pro/bitpanda.js +1 -1
- package/js/src/pro/blockchaincom.js +1 -1
- package/js/src/pro/bybit.js +2 -2
- package/js/src/pro/cex.js +1 -1
- package/js/src/pro/coinbase.js +1 -1
- package/js/src/pro/coinbasepro.js +1 -1
- package/js/src/pro/deribit.js +1 -1
- package/js/src/pro/gate.js +3 -3
- package/js/src/pro/gemini.js +1 -1
- package/js/src/pro/hollaex.js +1 -1
- package/js/src/pro/htx.js +1 -1
- package/js/src/pro/idex.js +1 -1
- package/js/src/pro/kraken.js +3 -4
- package/js/src/pro/krakenfutures.js +1 -1
- package/js/src/pro/kucoinfutures.js +1 -1
- package/js/src/pro/mexc.js +1 -1
- package/js/src/pro/okcoin.js +1 -1
- package/js/src/pro/okx.js +2 -2
- package/js/src/pro/phemex.js +1 -1
- package/js/src/pro/poloniexfutures.js +1 -1
- package/js/src/pro/woo.js +2 -3
- package/js/src/probit.js +1 -1
- package/js/src/timex.js +1 -1
- package/js/src/tokocrypto.js +1 -1
- package/js/src/upbit.js +1 -1
- package/js/src/wavesexchange.js +1 -1
- package/js/src/whitebit.js +1 -1
- package/js/src/woo.js +1 -1
- package/js/src/zaif.js +1 -1
- package/package.json +2 -2
- package/skip-tests.json +1 -0
package/dist/cjs/src/bingx.js
CHANGED
|
@@ -142,6 +142,16 @@ class bingx extends bingx$1 {
|
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
'swap': {
|
|
145
|
+
'v1': {
|
|
146
|
+
'private': {
|
|
147
|
+
'get': {
|
|
148
|
+
'positionSide/dual': 1,
|
|
149
|
+
},
|
|
150
|
+
'post': {
|
|
151
|
+
'positionSide/dual': 1,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
145
155
|
'v2': {
|
|
146
156
|
'public': {
|
|
147
157
|
'get': {
|
|
@@ -328,6 +338,7 @@ class bingx extends bingx$1 {
|
|
|
328
338
|
'100202': errors.InsufficientFunds,
|
|
329
339
|
'100204': errors.BadRequest,
|
|
330
340
|
'100400': errors.BadRequest,
|
|
341
|
+
'100421': errors.BadSymbol,
|
|
331
342
|
'100440': errors.ExchangeError,
|
|
332
343
|
'100500': errors.ExchangeError,
|
|
333
344
|
'100503': errors.ExchangeError,
|
|
@@ -1303,7 +1314,7 @@ class bingx extends bingx$1 {
|
|
|
1303
1314
|
// }
|
|
1304
1315
|
//
|
|
1305
1316
|
const marketId = this.safeString(ticker, 'symbol');
|
|
1306
|
-
const change = this.safeString(ticker, 'priceChange');
|
|
1317
|
+
// const change = this.safeString (ticker, 'priceChange'); // this is not ccxt's change because it does high-low instead of last-open
|
|
1307
1318
|
const lastQty = this.safeString(ticker, 'lastQty');
|
|
1308
1319
|
// in spot markets, lastQty is not present
|
|
1309
1320
|
// it's (bad, but) the only way we can check the tickers origin
|
|
@@ -1315,10 +1326,10 @@ class bingx extends bingx$1 {
|
|
|
1315
1326
|
const close = this.safeString(ticker, 'lastPrice');
|
|
1316
1327
|
const quoteVolume = this.safeString(ticker, 'quoteVolume');
|
|
1317
1328
|
const baseVolume = this.safeString(ticker, 'volume');
|
|
1318
|
-
let percentage = this.safeString(ticker, 'priceChangePercent');
|
|
1319
|
-
if (percentage !== undefined) {
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1329
|
+
// let percentage = this.safeString (ticker, 'priceChangePercent');
|
|
1330
|
+
// if (percentage !== undefined) {
|
|
1331
|
+
// percentage = percentage.replace ('%', '');
|
|
1332
|
+
// } similarly to change, it's not ccxt's percentage because it does priceChange/open, and priceChange is high-low
|
|
1322
1333
|
const ts = this.safeInteger(ticker, 'closeTime');
|
|
1323
1334
|
const datetime = this.iso8601(ts);
|
|
1324
1335
|
const bid = this.safeString(ticker, 'bidPrice');
|
|
@@ -1340,8 +1351,8 @@ class bingx extends bingx$1 {
|
|
|
1340
1351
|
'close': close,
|
|
1341
1352
|
'last': undefined,
|
|
1342
1353
|
'previousClose': undefined,
|
|
1343
|
-
'change':
|
|
1344
|
-
'percentage':
|
|
1354
|
+
'change': undefined,
|
|
1355
|
+
'percentage': undefined,
|
|
1345
1356
|
'average': undefined,
|
|
1346
1357
|
'baseVolume': baseVolume,
|
|
1347
1358
|
'quoteVolume': quoteVolume,
|
|
@@ -2469,7 +2480,7 @@ class bingx extends bingx$1 {
|
|
|
2469
2480
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
|
|
2470
2481
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
2471
2482
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2472
|
-
* @param {int} [limit] the maximum number of
|
|
2483
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2473
2484
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2474
2485
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2475
2486
|
* @param {boolean} [params.standard] whether to fetch standard contract orders
|
|
@@ -3412,6 +3423,37 @@ class bingx extends bingx$1 {
|
|
|
3412
3423
|
}
|
|
3413
3424
|
return positions;
|
|
3414
3425
|
}
|
|
3426
|
+
async setPositionMode(hedged, symbol = undefined, params = {}) {
|
|
3427
|
+
/**
|
|
3428
|
+
* @method
|
|
3429
|
+
* @name bingx#setPositionMode
|
|
3430
|
+
* @description set hedged to true or false for a market
|
|
3431
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set%20Position%20Mode
|
|
3432
|
+
* @param {bool} hedged set to true to use dualSidePosition
|
|
3433
|
+
* @param {string} symbol not used by bingx setPositionMode ()
|
|
3434
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3435
|
+
* @returns {object} response from the exchange
|
|
3436
|
+
*/
|
|
3437
|
+
let dualSidePosition = undefined;
|
|
3438
|
+
if (hedged) {
|
|
3439
|
+
dualSidePosition = 'true';
|
|
3440
|
+
}
|
|
3441
|
+
else {
|
|
3442
|
+
dualSidePosition = 'false';
|
|
3443
|
+
}
|
|
3444
|
+
const request = {
|
|
3445
|
+
'dualSidePosition': dualSidePosition,
|
|
3446
|
+
};
|
|
3447
|
+
//
|
|
3448
|
+
// {
|
|
3449
|
+
// code: '0',
|
|
3450
|
+
// msg: '',
|
|
3451
|
+
// timeStamp: '1703327432734',
|
|
3452
|
+
// data: { dualSidePosition: 'false' }
|
|
3453
|
+
// }
|
|
3454
|
+
//
|
|
3455
|
+
return await this.swapV1PrivatePostPositionSideDual(this.extend(request, params));
|
|
3456
|
+
}
|
|
3415
3457
|
sign(path, section = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
3416
3458
|
const type = section[0];
|
|
3417
3459
|
const version = section[1];
|
package/dist/cjs/src/bit2c.js
CHANGED
|
@@ -276,14 +276,13 @@ class bit2c extends bit2c$1 {
|
|
|
276
276
|
}
|
|
277
277
|
parseTicker(ticker, market = undefined) {
|
|
278
278
|
const symbol = this.safeSymbol(undefined, market);
|
|
279
|
-
const timestamp = this.milliseconds();
|
|
280
279
|
const averagePrice = this.safeString(ticker, 'av');
|
|
281
280
|
const baseVolume = this.safeString(ticker, 'a');
|
|
282
281
|
const last = this.safeString(ticker, 'll');
|
|
283
282
|
return this.safeTicker({
|
|
284
283
|
'symbol': symbol,
|
|
285
|
-
'timestamp':
|
|
286
|
-
'datetime':
|
|
284
|
+
'timestamp': undefined,
|
|
285
|
+
'datetime': undefined,
|
|
287
286
|
'high': undefined,
|
|
288
287
|
'low': undefined,
|
|
289
288
|
'bid': this.safeString(ticker, 'h'),
|
package/dist/cjs/src/bitfinex.js
CHANGED
|
@@ -1238,7 +1238,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
1238
1238
|
* @description fetches information on multiple closed orders made by the user
|
|
1239
1239
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1240
1240
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1241
|
-
* @param {int} [limit] the maximum number of
|
|
1241
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1242
1242
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1243
1243
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1244
1244
|
*/
|
|
@@ -1063,15 +1063,14 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1063
1063
|
// FRR_AMOUNT_AVAILABLE
|
|
1064
1064
|
// ]
|
|
1065
1065
|
//
|
|
1066
|
-
const timestamp = this.milliseconds();
|
|
1067
1066
|
const symbol = this.safeSymbol(undefined, market);
|
|
1068
1067
|
const length = ticker.length;
|
|
1069
1068
|
const last = this.safeString(ticker, length - 4);
|
|
1070
1069
|
const percentage = this.safeString(ticker, length - 5);
|
|
1071
1070
|
return this.safeTicker({
|
|
1072
1071
|
'symbol': symbol,
|
|
1073
|
-
'timestamp':
|
|
1074
|
-
'datetime':
|
|
1072
|
+
'timestamp': undefined,
|
|
1073
|
+
'datetime': undefined,
|
|
1075
1074
|
'high': this.safeString(ticker, length - 2),
|
|
1076
1075
|
'low': this.safeString(ticker, length - 1),
|
|
1077
1076
|
'bid': this.safeString(ticker, length - 10),
|
|
@@ -1814,7 +1813,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
1814
1813
|
* @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
|
1815
1814
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1816
1815
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1817
|
-
* @param {int} [limit] the maximum number of
|
|
1816
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1818
1817
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1819
1818
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1820
1819
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
package/dist/cjs/src/bitflyer.js
CHANGED
|
@@ -651,7 +651,7 @@ class bitflyer extends bitflyer$1 {
|
|
|
651
651
|
* @see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
|
652
652
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
653
653
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
654
|
-
* @param {int} [limit] the maximum number of
|
|
654
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
655
655
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
656
656
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
657
657
|
*/
|
|
@@ -696,7 +696,7 @@ class bitflyer extends bitflyer$1 {
|
|
|
696
696
|
* @see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
|
697
697
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
698
698
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
699
|
-
* @param {int} [limit] the maximum number of
|
|
699
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
700
700
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
701
701
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
702
702
|
*/
|
package/dist/cjs/src/bitmart.js
CHANGED
|
@@ -1077,7 +1077,7 @@ class bitmart extends bitmart$1 {
|
|
|
1077
1077
|
// "legal_coin_price":"0.1302699"
|
|
1078
1078
|
// }
|
|
1079
1079
|
//
|
|
1080
|
-
const timestamp = this.safeInteger(ticker, 'timestamp'
|
|
1080
|
+
const timestamp = this.safeInteger(ticker, 'timestamp');
|
|
1081
1081
|
const marketId = this.safeString2(ticker, 'symbol', 'contract_symbol');
|
|
1082
1082
|
market = this.safeMarket(marketId, market);
|
|
1083
1083
|
const symbol = market['symbol'];
|
|
@@ -2752,7 +2752,7 @@ class bitmart extends bitmart$1 {
|
|
|
2752
2752
|
* @description fetches information on multiple closed orders made by the user
|
|
2753
2753
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2754
2754
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2755
|
-
* @param {int} [limit] the maximum number of
|
|
2755
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2756
2756
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2757
2757
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
2758
2758
|
* @param {string} [params.marginMode] *spot only* 'cross' or 'isolated', for margin trading
|
package/dist/cjs/src/bitmex.js
CHANGED
|
@@ -872,7 +872,7 @@ class bitmex extends bitmex$1 {
|
|
|
872
872
|
* @description fetches information on multiple orders made by the user
|
|
873
873
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
874
874
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
875
|
-
* @param {int} [limit] the maximum number of
|
|
875
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
876
876
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
877
877
|
* @param {int} [params.until] the earliest time in ms to fetch orders for
|
|
878
878
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
@@ -936,7 +936,7 @@ class bitmex extends bitmex$1 {
|
|
|
936
936
|
* @description fetches information on multiple closed orders made by the user
|
|
937
937
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
938
938
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
939
|
-
* @param {int} [limit] the maximum number of
|
|
939
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
940
940
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
941
941
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
942
942
|
*/
|
package/dist/cjs/src/bitopro.js
CHANGED
|
@@ -1267,7 +1267,7 @@ class bitopro extends bitopro$1 {
|
|
|
1267
1267
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_orders_data.md
|
|
1268
1268
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1269
1269
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1270
|
-
* @param {int} [limit] the maximum number of
|
|
1270
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1271
1271
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1272
1272
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1273
1273
|
*/
|
package/dist/cjs/src/bitpanda.js
CHANGED
|
@@ -1817,7 +1817,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1817
1817
|
* @description fetches information on multiple closed orders made by the user
|
|
1818
1818
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1819
1819
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1820
|
-
* @param {int} [limit] the maximum number of
|
|
1820
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1821
1821
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1822
1822
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1823
1823
|
*/
|
package/dist/cjs/src/bitvavo.js
CHANGED
|
@@ -1258,7 +1258,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
1258
1258
|
* @description fetches information on multiple orders made by the user
|
|
1259
1259
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1260
1260
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1261
|
-
* @param {int} [limit] the maximum number of
|
|
1261
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1262
1262
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1263
1263
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1264
1264
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
@@ -688,7 +688,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
688
688
|
* @description fetches information on multiple closed orders made by the user
|
|
689
689
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
690
690
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
691
|
-
* @param {int} [limit] the maximum number of
|
|
691
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
692
692
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
693
693
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
694
694
|
*/
|
package/dist/cjs/src/btcalpha.js
CHANGED
|
@@ -795,7 +795,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
795
795
|
* @description fetches information on multiple orders made by the user
|
|
796
796
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
797
797
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
798
|
-
* @param {int} [limit] the maximum number of
|
|
798
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
799
799
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
800
800
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
801
801
|
*/
|
|
@@ -835,7 +835,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
835
835
|
* @description fetches information on multiple closed orders made by the user
|
|
836
836
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
837
837
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
838
|
-
* @param {int} [limit] the maximum number of
|
|
838
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
839
839
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
840
840
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
841
841
|
*/
|
package/dist/cjs/src/btcbox.js
CHANGED
|
@@ -174,13 +174,12 @@ class btcbox extends btcbox$1 {
|
|
|
174
174
|
return this.parseOrderBook(response, market['symbol']);
|
|
175
175
|
}
|
|
176
176
|
parseTicker(ticker, market = undefined) {
|
|
177
|
-
const timestamp = this.milliseconds();
|
|
178
177
|
const symbol = this.safeSymbol(undefined, market);
|
|
179
178
|
const last = this.safeString(ticker, 'last');
|
|
180
179
|
return this.safeTicker({
|
|
181
180
|
'symbol': symbol,
|
|
182
|
-
'timestamp':
|
|
183
|
-
'datetime':
|
|
181
|
+
'timestamp': undefined,
|
|
182
|
+
'datetime': undefined,
|
|
184
183
|
'high': this.safeString(ticker, 'high'),
|
|
185
184
|
'low': this.safeString(ticker, 'low'),
|
|
186
185
|
'bid': this.safeString(ticker, 'buy'),
|
|
@@ -486,7 +485,7 @@ class btcbox extends btcbox$1 {
|
|
|
486
485
|
* @description fetches information on multiple orders made by the user
|
|
487
486
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
488
487
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
489
|
-
* @param {int} [limit] the maximum number of
|
|
488
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
490
489
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
491
490
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
492
491
|
*/
|
|
@@ -1022,7 +1022,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1022
1022
|
* @description fetches information on multiple orders made by the user
|
|
1023
1023
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1024
1024
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1025
|
-
* @param {int} [limit] the maximum number of
|
|
1025
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1026
1026
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1027
1027
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1028
1028
|
*/
|
|
@@ -1065,7 +1065,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1065
1065
|
* @description fetches information on multiple closed orders made by the user
|
|
1066
1066
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1067
1067
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1068
|
-
* @param {int} [limit] the maximum number of
|
|
1068
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1069
1069
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1070
1070
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1071
1071
|
*/
|
package/dist/cjs/src/btcturk.js
CHANGED
|
@@ -728,7 +728,7 @@ class btcturk extends btcturk$1 {
|
|
|
728
728
|
* @description fetches information on multiple orders made by the user
|
|
729
729
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
730
730
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
731
|
-
* @param {int} [limit] the maximum number of
|
|
731
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
732
732
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
733
733
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
734
734
|
*/
|
package/dist/cjs/src/bybit.js
CHANGED
|
@@ -4433,7 +4433,7 @@ class bybit extends bybit$1 {
|
|
|
4433
4433
|
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
4434
4434
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4435
4435
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4436
|
-
* @param {int} [limit] the maximum number of
|
|
4436
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4437
4437
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4438
4438
|
* @param {boolean} [params.stop] true if stop order
|
|
4439
4439
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
@@ -4549,7 +4549,7 @@ class bybit extends bybit$1 {
|
|
|
4549
4549
|
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
4550
4550
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4551
4551
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4552
|
-
* @param {int} [limit] the maximum number of
|
|
4552
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4553
4553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4554
4554
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4555
4555
|
*/
|
package/dist/cjs/src/cex.js
CHANGED
|
@@ -1329,7 +1329,7 @@ class cex extends cex$1 {
|
|
|
1329
1329
|
* @description fetches information on multiple orders made by the user
|
|
1330
1330
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1331
1331
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1332
|
-
* @param {int} [limit] the maximum number of
|
|
1332
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1333
1333
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1334
1334
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1335
1335
|
*/
|
package/dist/cjs/src/coinbase.js
CHANGED
|
@@ -2363,6 +2363,12 @@ class coinbase extends coinbase$1 {
|
|
|
2363
2363
|
// "base_size": "0.2",
|
|
2364
2364
|
// "limit_price": "0.006",
|
|
2365
2365
|
// "post_only": false
|
|
2366
|
+
// },
|
|
2367
|
+
// "stop_limit_stop_limit_gtc": {
|
|
2368
|
+
// "base_size": "48.54",
|
|
2369
|
+
// "limit_price": "6.998",
|
|
2370
|
+
// "stop_price": "7.0687",
|
|
2371
|
+
// "stop_direction": "STOP_DIRECTION_STOP_DOWN"
|
|
2366
2372
|
// }
|
|
2367
2373
|
// },
|
|
2368
2374
|
// "side": "SELL",
|
|
@@ -2396,11 +2402,11 @@ class coinbase extends coinbase$1 {
|
|
|
2396
2402
|
market = this.market(symbol);
|
|
2397
2403
|
}
|
|
2398
2404
|
const orderConfiguration = this.safeValue(order, 'order_configuration', {});
|
|
2399
|
-
const limitGTC = this.safeValue(orderConfiguration, 'limit_limit_gtc'
|
|
2400
|
-
const limitGTD = this.safeValue(orderConfiguration, 'limit_limit_gtd'
|
|
2401
|
-
const stopLimitGTC = this.safeValue(orderConfiguration, 'stop_limit_stop_limit_gtc'
|
|
2402
|
-
const stopLimitGTD = this.safeValue(orderConfiguration, 'stop_limit_stop_limit_gtd'
|
|
2403
|
-
const marketIOC = this.safeValue(orderConfiguration, 'market_market_ioc'
|
|
2405
|
+
const limitGTC = this.safeValue(orderConfiguration, 'limit_limit_gtc');
|
|
2406
|
+
const limitGTD = this.safeValue(orderConfiguration, 'limit_limit_gtd');
|
|
2407
|
+
const stopLimitGTC = this.safeValue(orderConfiguration, 'stop_limit_stop_limit_gtc');
|
|
2408
|
+
const stopLimitGTD = this.safeValue(orderConfiguration, 'stop_limit_stop_limit_gtd');
|
|
2409
|
+
const marketIOC = this.safeValue(orderConfiguration, 'market_market_ioc');
|
|
2404
2410
|
const isLimit = ((limitGTC !== undefined) || (limitGTD !== undefined));
|
|
2405
2411
|
const isStop = ((stopLimitGTC !== undefined) || (stopLimitGTD !== undefined));
|
|
2406
2412
|
let price = undefined;
|
|
@@ -1133,7 +1133,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1133
1133
|
* @description fetches information on multiple orders made by the user
|
|
1134
1134
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1135
1135
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1136
|
-
* @param {int} [limit] the maximum number of
|
|
1136
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1137
1137
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1138
1138
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1139
1139
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1191,7 +1191,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1191
1191
|
* @description fetches information on multiple closed orders made by the user
|
|
1192
1192
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1193
1193
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1194
|
-
* @param {int} [limit] the maximum number of
|
|
1194
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1195
1195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1197
1197
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/coinex.js
CHANGED
|
@@ -3190,7 +3190,7 @@ class coinex extends coinex$1 {
|
|
|
3190
3190
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade012_finished_order
|
|
3191
3191
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
3192
3192
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
3193
|
-
* @param {int} [limit] the maximum number of
|
|
3193
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
3194
3194
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3195
3195
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3196
3196
|
*/
|
package/dist/cjs/src/coinlist.js
CHANGED
|
@@ -1217,7 +1217,7 @@ class coinlist extends coinlist$1 {
|
|
|
1217
1217
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
1218
1218
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1219
1219
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1220
|
-
* @param {int} [limit] the maximum number of
|
|
1220
|
+
* @param {int} [limit] the maximum number of order structures to retrieve (default 200, max 500)
|
|
1221
1221
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1222
1222
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1223
1223
|
* @param {string|string[]} [params.status] the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending' (default [ 'accepted', 'done', 'canceled', 'rejected', 'pending' ])
|
|
@@ -1907,6 +1907,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1907
1907
|
const timestamp = this.safeInteger(ticker, 't');
|
|
1908
1908
|
const marketId = this.safeString(ticker, 'i');
|
|
1909
1909
|
market = this.safeMarket(marketId, market, '_');
|
|
1910
|
+
const quote = this.safeString(market, 'quote');
|
|
1910
1911
|
const last = this.safeString(ticker, 'a');
|
|
1911
1912
|
return this.safeTicker({
|
|
1912
1913
|
'symbol': market['symbol'],
|
|
@@ -1927,7 +1928,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1927
1928
|
'percentage': this.safeString(ticker, 'c'),
|
|
1928
1929
|
'average': undefined,
|
|
1929
1930
|
'baseVolume': this.safeString(ticker, 'v'),
|
|
1930
|
-
'quoteVolume': this.safeString(ticker, 'vv'),
|
|
1931
|
+
'quoteVolume': (quote === 'USD') ? this.safeString(ticker, 'vv') : undefined,
|
|
1931
1932
|
'info': ticker,
|
|
1932
1933
|
}, market);
|
|
1933
1934
|
}
|
package/dist/cjs/src/delta.js
CHANGED
|
@@ -31,6 +31,8 @@ class delta extends delta$1 {
|
|
|
31
31
|
'addMargin': true,
|
|
32
32
|
'cancelAllOrders': true,
|
|
33
33
|
'cancelOrder': true,
|
|
34
|
+
'closeAllPositions': true,
|
|
35
|
+
'closePosition': false,
|
|
34
36
|
'createOrder': true,
|
|
35
37
|
'createReduceOnlyOrder': true,
|
|
36
38
|
'editOrder': true,
|
|
@@ -3175,6 +3177,29 @@ class delta extends delta$1 {
|
|
|
3175
3177
|
'info': greeks,
|
|
3176
3178
|
};
|
|
3177
3179
|
}
|
|
3180
|
+
async closeAllPositions(params = {}) {
|
|
3181
|
+
/**
|
|
3182
|
+
* @method
|
|
3183
|
+
* @name delta#closeAllPositions
|
|
3184
|
+
* @description closes all open positions for a market type
|
|
3185
|
+
* @see https://docs.delta.exchange/#close-all-positions
|
|
3186
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3187
|
+
* @param {int} [params.user_id] the users id
|
|
3188
|
+
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3189
|
+
*/
|
|
3190
|
+
await this.loadMarkets();
|
|
3191
|
+
const request = {
|
|
3192
|
+
'close_all_portfolio': true,
|
|
3193
|
+
'close_all_isolated': true,
|
|
3194
|
+
// 'user_id': 12345,
|
|
3195
|
+
};
|
|
3196
|
+
const response = await this.privatePostPositionsCloseAll(this.extend(request, params));
|
|
3197
|
+
//
|
|
3198
|
+
// {"result":{},"success":true}
|
|
3199
|
+
//
|
|
3200
|
+
const position = this.parsePosition(this.safeValue(response, 'result', {}));
|
|
3201
|
+
return [position];
|
|
3202
|
+
}
|
|
3178
3203
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
3179
3204
|
const requestPath = '/' + this.version + '/' + this.implodeParams(path, params);
|
|
3180
3205
|
let url = this.urls['api'][api] + requestPath;
|
package/dist/cjs/src/deribit.js
CHANGED
|
@@ -1987,7 +1987,7 @@ class deribit extends deribit$1 {
|
|
|
1987
1987
|
* @description fetches information on multiple closed orders made by the user
|
|
1988
1988
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1989
1989
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1990
|
-
* @param {int} [limit] the maximum number of
|
|
1990
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1991
1991
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1992
1992
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1993
1993
|
*/
|
|
@@ -2240,7 +2240,7 @@ class digifinex extends digifinex$1 {
|
|
|
2240
2240
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
|
|
2241
2241
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2242
2242
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2243
|
-
* @param {int} [limit] the maximum number of
|
|
2243
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2244
2244
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2245
2245
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2246
2246
|
*/
|
package/dist/cjs/src/gate.js
CHANGED
|
@@ -4644,7 +4644,7 @@ class gate extends gate$1 {
|
|
|
4644
4644
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-options-orders
|
|
4645
4645
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4646
4646
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4647
|
-
* @param {int} [limit] the maximum number of
|
|
4647
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4648
4648
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4649
4649
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4650
4650
|
* @param {string} [params.type] spot, swap or future, if not provided this.options['defaultType'] is used
|
|
@@ -6992,7 +6992,7 @@ class gate extends gate$1 {
|
|
|
6992
6992
|
async closePosition(symbol, side = undefined, params = {}) {
|
|
6993
6993
|
/**
|
|
6994
6994
|
* @method
|
|
6995
|
-
* @name gate#
|
|
6995
|
+
* @name gate#closePosition
|
|
6996
6996
|
* @description closes open positions for a market
|
|
6997
6997
|
* @see https://www.gate.io/docs/developers/apiv4/en/#create-a-futures-order
|
|
6998
6998
|
* @see https://www.gate.io/docs/developers/apiv4/en/#create-a-futures-order-2
|
|
@@ -7000,7 +7000,7 @@ class gate extends gate$1 {
|
|
|
7000
7000
|
* @param {string} symbol Unified CCXT market symbol
|
|
7001
7001
|
* @param {string} side 'buy' or 'sell'
|
|
7002
7002
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
7003
|
-
* @returns {[
|
|
7003
|
+
* @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
7004
7004
|
*/
|
|
7005
7005
|
const request = {
|
|
7006
7006
|
'close': true,
|
package/dist/cjs/src/hitbtc.js
CHANGED
|
@@ -1812,7 +1812,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1812
1812
|
* @see https://api.hitbtc.com/#margin-orders-history
|
|
1813
1813
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1814
1814
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1815
|
-
* @param {int} [limit] the maximum number of
|
|
1815
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1816
1816
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1817
1817
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1818
1818
|
* @param {bool} [params.margin] true for fetching margin orders
|
package/dist/cjs/src/hollaex.js
CHANGED
|
@@ -922,7 +922,7 @@ class hollaex extends hollaex$1 {
|
|
|
922
922
|
* @description fetches information on multiple closed orders made by the user
|
|
923
923
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
924
924
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
925
|
-
* @param {int} [limit] the maximum number of
|
|
925
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
926
926
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
927
927
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
928
928
|
*/
|
|
@@ -980,7 +980,7 @@ class hollaex extends hollaex$1 {
|
|
|
980
980
|
* @description fetches information on multiple orders made by the user
|
|
981
981
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
982
982
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
983
|
-
* @param {int} [limit] the maximum number of
|
|
983
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
984
984
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
985
985
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
986
986
|
*/
|
package/dist/cjs/src/htx.js
CHANGED
|
@@ -4126,7 +4126,7 @@ class htx extends htx$1 {
|
|
|
4126
4126
|
* @description fetches information on multiple closed orders made by the user
|
|
4127
4127
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4128
4128
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4129
|
-
* @param {int} [limit] the maximum number of
|
|
4129
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4130
4130
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4131
4131
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4132
4132
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
package/dist/cjs/src/huobijp.js
CHANGED
|
@@ -1176,7 +1176,7 @@ class huobijp extends huobijp$1 {
|
|
|
1176
1176
|
* @description fetches information on multiple orders made by the user
|
|
1177
1177
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1178
1178
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1179
|
-
* @param {int} [limit] the maximum number of
|
|
1179
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1180
1180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1181
1181
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1182
1182
|
*/
|
|
@@ -1209,7 +1209,7 @@ class huobijp extends huobijp$1 {
|
|
|
1209
1209
|
* @description fetches information on multiple closed orders made by the user
|
|
1210
1210
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1211
1211
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1212
|
-
* @param {int} [limit] the maximum number of
|
|
1212
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1213
1213
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1214
1214
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1215
1215
|
*/
|
package/dist/cjs/src/idex.js
CHANGED
|
@@ -927,7 +927,7 @@ class idex extends idex$1 {
|
|
|
927
927
|
* @description fetches information on multiple closed orders made by the user
|
|
928
928
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
929
929
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
930
|
-
* @param {int} [limit] the maximum number of
|
|
930
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
931
931
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
932
932
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
933
933
|
*/
|