ccxt 4.1.96 → 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/dist/ccxt.browser.js +1189 -1154
- 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/bingx.js +42 -1
- package/dist/cjs/src/bitfinex.js +1 -1
- package/dist/cjs/src/bitfinex2.js +1 -1
- package/dist/cjs/src/bitflyer.js +2 -2
- package/dist/cjs/src/bitmart.js +1 -1
- 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 +1 -1
- 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/coinbasepro.js +2 -2
- package/dist/cjs/src/coinex.js +1 -1
- package/dist/cjs/src/coinlist.js +1 -1
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/digifinex.js +1 -1
- package/dist/cjs/src/gate.js +1 -1
- 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 +1 -1
- package/dist/cjs/src/kucoin.js +4 -4
- package/dist/cjs/src/kucoinfutures.js +1 -1
- 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 +2 -2
- package/dist/cjs/src/pro/bingx.js +6 -3
- package/dist/cjs/src/pro/bitfinex.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/src/pro/phemex.js +1 -1
- package/dist/cjs/src/pro/poloniexfutures.js +1 -1
- 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/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/bingx.d.ts +1 -0
- package/js/src/bingx.js +42 -1
- package/js/src/bitfinex.js +1 -1
- package/js/src/bitfinex2.js +1 -1
- package/js/src/bitflyer.js +2 -2
- package/js/src/bitmart.js +1 -1
- 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 +1 -1
- 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/coinbasepro.js +2 -2
- package/js/src/coinex.js +1 -1
- package/js/src/coinlist.js +1 -1
- package/js/src/deribit.js +1 -1
- package/js/src/digifinex.js +1 -1
- package/js/src/gate.js +1 -1
- 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 +1 -1
- package/js/src/kucoin.js +4 -4
- package/js/src/kucoinfutures.js +1 -1
- 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 +2 -2
- package/js/src/pro/bingx.js +6 -3
- package/js/src/pro/bitfinex.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/js/src/pro/phemex.js +1 -1
- package/js/src/pro/poloniexfutures.js +1 -1
- 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 +1 -1
- package/skip-tests.json +1 -0
package/js/src/base/Exchange.js
CHANGED
|
@@ -11,7 +11,7 @@ const { isNode, deepExtend, extend, clone, flatten, unique, indexBy, sortBy, sor
|
|
|
11
11
|
import { keys as keysFunc, values as valuesFunc, vwap as vwapFunc } from './functions.js';
|
|
12
12
|
// import exceptions from "./errors.js"
|
|
13
13
|
import { // eslint-disable-line object-curly-newline
|
|
14
|
-
ExchangeError, BadSymbol, NullResponse, InvalidAddress, InvalidOrder, NotSupported, BadResponse, AuthenticationError, DDoSProtection, RequestTimeout, NetworkError, ExchangeNotAvailable, ArgumentsRequired, RateLimitExceeded, BadRequest } from "./errors.js";
|
|
14
|
+
ExchangeError, BadSymbol, NullResponse, InvalidAddress, InvalidOrder, NotSupported, BadResponse, AuthenticationError, DDoSProtection, RequestTimeout, NetworkError, ProxyError, ExchangeNotAvailable, ArgumentsRequired, RateLimitExceeded, BadRequest } from "./errors.js";
|
|
15
15
|
import { Precise } from './Precise.js';
|
|
16
16
|
//-----------------------------------------------------------------------------
|
|
17
17
|
import WsClient from './ws/WsClient.js';
|
|
@@ -1378,7 +1378,7 @@ export default class Exchange {
|
|
|
1378
1378
|
const length = usedProxies.length;
|
|
1379
1379
|
if (length > 1) {
|
|
1380
1380
|
const joinedProxyNames = usedProxies.join(',');
|
|
1381
|
-
throw new
|
|
1381
|
+
throw new ProxyError(this.id + ' you have multiple conflicting proxy settings (' + joinedProxyNames + '), please use only one from : proxyUrl, proxy_url, proxyUrlCallback, proxy_url_callback');
|
|
1382
1382
|
}
|
|
1383
1383
|
return proxyUrl;
|
|
1384
1384
|
}
|
|
@@ -1442,7 +1442,7 @@ export default class Exchange {
|
|
|
1442
1442
|
const length = usedProxies.length;
|
|
1443
1443
|
if (length > 1) {
|
|
1444
1444
|
const joinedProxyNames = usedProxies.join(',');
|
|
1445
|
-
throw new
|
|
1445
|
+
throw new ProxyError(this.id + ' you have multiple conflicting proxy settings (' + joinedProxyNames + '), please use only one from: httpProxy, httpsProxy, httpProxyCallback, httpsProxyCallback, socksProxy, socksProxyCallback');
|
|
1446
1446
|
}
|
|
1447
1447
|
return [httpProxy, httpsProxy, socksProxy];
|
|
1448
1448
|
}
|
|
@@ -1482,13 +1482,13 @@ export default class Exchange {
|
|
|
1482
1482
|
const length = usedProxies.length;
|
|
1483
1483
|
if (length > 1) {
|
|
1484
1484
|
const joinedProxyNames = usedProxies.join(',');
|
|
1485
|
-
throw new
|
|
1485
|
+
throw new ProxyError(this.id + ' you have multiple conflicting proxy settings (' + joinedProxyNames + '), please use only one from: wsProxy, wssProxy, wsSocksProxy');
|
|
1486
1486
|
}
|
|
1487
1487
|
return [wsProxy, wssProxy, wsSocksProxy];
|
|
1488
1488
|
}
|
|
1489
1489
|
checkConflictingProxies(proxyAgentSet, proxyUrlSet) {
|
|
1490
1490
|
if (proxyAgentSet && proxyUrlSet) {
|
|
1491
|
-
throw new
|
|
1491
|
+
throw new ProxyError(this.id + ' you have multiple conflicting proxy settings, please use only one from : proxyUrl, httpProxy, httpsProxy, socksProxy');
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
findMessageHashes(client, element) {
|
|
@@ -1805,6 +1805,7 @@ export default class Exchange {
|
|
|
1805
1805
|
fee['cost'] = this.safeNumber(fee, 'cost');
|
|
1806
1806
|
}
|
|
1807
1807
|
const timestamp = this.safeInteger(entry, 'timestamp');
|
|
1808
|
+
const info = this.safeValue(entry, 'info', {});
|
|
1808
1809
|
return {
|
|
1809
1810
|
'id': this.safeString(entry, 'id'),
|
|
1810
1811
|
'timestamp': timestamp,
|
|
@@ -1820,7 +1821,7 @@ export default class Exchange {
|
|
|
1820
1821
|
'after': this.parseNumber(after),
|
|
1821
1822
|
'status': this.safeString(entry, 'status'),
|
|
1822
1823
|
'fee': fee,
|
|
1823
|
-
'info':
|
|
1824
|
+
'info': info,
|
|
1824
1825
|
};
|
|
1825
1826
|
}
|
|
1826
1827
|
safeCurrencyStructure(currency) {
|
package/js/src/base/errors.d.ts
CHANGED
|
@@ -79,6 +79,9 @@ declare class NotSupported extends ExchangeError {
|
|
|
79
79
|
declare class OperationFailed extends BaseError {
|
|
80
80
|
constructor(message: any);
|
|
81
81
|
}
|
|
82
|
+
declare class ProxyError extends ExchangeError {
|
|
83
|
+
constructor(message: any);
|
|
84
|
+
}
|
|
82
85
|
declare class NetworkError extends OperationFailed {
|
|
83
86
|
constructor(message: any);
|
|
84
87
|
}
|
|
@@ -135,6 +138,7 @@ declare const errors: {
|
|
|
135
138
|
NoChange: typeof NoChange;
|
|
136
139
|
OperationRejected: typeof OperationRejected;
|
|
137
140
|
OperationFailed: typeof OperationFailed;
|
|
141
|
+
ProxyError: typeof ProxyError;
|
|
138
142
|
};
|
|
139
|
-
export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed };
|
|
143
|
+
export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed, ProxyError };
|
|
140
144
|
export default errors;
|
package/js/src/base/errors.js
CHANGED
|
@@ -198,6 +198,12 @@ class OperationFailed extends BaseError {
|
|
|
198
198
|
this.name = 'OperationFailed';
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
+
class ProxyError extends ExchangeError {
|
|
202
|
+
constructor(message) {
|
|
203
|
+
super(message);
|
|
204
|
+
this.name = 'OperationFailed';
|
|
205
|
+
}
|
|
206
|
+
}
|
|
201
207
|
// Network error
|
|
202
208
|
class NetworkError extends OperationFailed {
|
|
203
209
|
constructor(message) {
|
|
@@ -248,6 +254,6 @@ class RequestTimeout extends NetworkError {
|
|
|
248
254
|
// // Derived class hierarchy
|
|
249
255
|
// errorHierarchy
|
|
250
256
|
// )
|
|
251
|
-
const errors = { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed };
|
|
252
|
-
export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed };
|
|
257
|
+
const errors = { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed, ProxyError };
|
|
258
|
+
export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed, ProxyError };
|
|
253
259
|
export default errors;
|
package/js/src/bigone.js
CHANGED
|
@@ -1366,7 +1366,7 @@ export default class bigone extends Exchange {
|
|
|
1366
1366
|
* @description fetches information on multiple orders made by the user
|
|
1367
1367
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1368
1368
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1369
|
-
* @param {int} [limit] the maximum number of
|
|
1369
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1370
1370
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1371
1371
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1372
1372
|
*/
|
|
@@ -1501,7 +1501,7 @@ export default class bigone extends Exchange {
|
|
|
1501
1501
|
* @description fetches information on multiple closed orders made by the user
|
|
1502
1502
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1503
1503
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1504
|
-
* @param {int} [limit] the maximum number of
|
|
1504
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1505
1505
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1506
1506
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1507
1507
|
*/
|
package/js/src/bingx.d.ts
CHANGED
|
@@ -134,6 +134,7 @@ export default class bingx extends Exchange {
|
|
|
134
134
|
fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
|
|
135
135
|
parseLiquidation(liquidation: any, market?: Market): import("./base/types.js").Liquidation;
|
|
136
136
|
closeAllPositions(params?: {}): Promise<Position[]>;
|
|
137
|
+
setPositionMode(hedged: any, symbol?: Str, params?: {}): Promise<any>;
|
|
137
138
|
sign(path: any, section?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
138
139
|
url: any;
|
|
139
140
|
method: string;
|
package/js/src/bingx.js
CHANGED
|
@@ -145,6 +145,16 @@ export default class bingx extends Exchange {
|
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
147
|
'swap': {
|
|
148
|
+
'v1': {
|
|
149
|
+
'private': {
|
|
150
|
+
'get': {
|
|
151
|
+
'positionSide/dual': 1,
|
|
152
|
+
},
|
|
153
|
+
'post': {
|
|
154
|
+
'positionSide/dual': 1,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
148
158
|
'v2': {
|
|
149
159
|
'public': {
|
|
150
160
|
'get': {
|
|
@@ -2473,7 +2483,7 @@ export default class bingx extends Exchange {
|
|
|
2473
2483
|
* @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
|
|
2474
2484
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
2475
2485
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2476
|
-
* @param {int} [limit] the maximum number of
|
|
2486
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2477
2487
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2478
2488
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2479
2489
|
* @param {boolean} [params.standard] whether to fetch standard contract orders
|
|
@@ -3416,6 +3426,37 @@ export default class bingx extends Exchange {
|
|
|
3416
3426
|
}
|
|
3417
3427
|
return positions;
|
|
3418
3428
|
}
|
|
3429
|
+
async setPositionMode(hedged, symbol = undefined, params = {}) {
|
|
3430
|
+
/**
|
|
3431
|
+
* @method
|
|
3432
|
+
* @name bingx#setPositionMode
|
|
3433
|
+
* @description set hedged to true or false for a market
|
|
3434
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Set%20Position%20Mode
|
|
3435
|
+
* @param {bool} hedged set to true to use dualSidePosition
|
|
3436
|
+
* @param {string} symbol not used by bingx setPositionMode ()
|
|
3437
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3438
|
+
* @returns {object} response from the exchange
|
|
3439
|
+
*/
|
|
3440
|
+
let dualSidePosition = undefined;
|
|
3441
|
+
if (hedged) {
|
|
3442
|
+
dualSidePosition = 'true';
|
|
3443
|
+
}
|
|
3444
|
+
else {
|
|
3445
|
+
dualSidePosition = 'false';
|
|
3446
|
+
}
|
|
3447
|
+
const request = {
|
|
3448
|
+
'dualSidePosition': dualSidePosition,
|
|
3449
|
+
};
|
|
3450
|
+
//
|
|
3451
|
+
// {
|
|
3452
|
+
// code: '0',
|
|
3453
|
+
// msg: '',
|
|
3454
|
+
// timeStamp: '1703327432734',
|
|
3455
|
+
// data: { dualSidePosition: 'false' }
|
|
3456
|
+
// }
|
|
3457
|
+
//
|
|
3458
|
+
return await this.swapV1PrivatePostPositionSideDual(this.extend(request, params));
|
|
3459
|
+
}
|
|
3419
3460
|
sign(path, section = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
3420
3461
|
const type = section[0];
|
|
3421
3462
|
const version = section[1];
|
package/js/src/bitfinex.js
CHANGED
|
@@ -1241,7 +1241,7 @@ export default class bitfinex extends Exchange {
|
|
|
1241
1241
|
* @description fetches information on multiple closed orders made by the user
|
|
1242
1242
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1243
1243
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1244
|
-
* @param {int} [limit] the maximum number of
|
|
1244
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1245
1245
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1246
1246
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1247
1247
|
*/
|
package/js/src/bitfinex2.js
CHANGED
|
@@ -1816,7 +1816,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
1816
1816
|
* @see https://docs.bitfinex.com/reference/rest-auth-retrieve-orders-by-symbol
|
|
1817
1817
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1818
1818
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1819
|
-
* @param {int} [limit] the maximum number of
|
|
1819
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1820
1820
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1821
1821
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1822
1822
|
* @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/js/src/bitflyer.js
CHANGED
|
@@ -654,7 +654,7 @@ export default class bitflyer extends Exchange {
|
|
|
654
654
|
* @see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
|
655
655
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
656
656
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
657
|
-
* @param {int} [limit] the maximum number of
|
|
657
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
658
658
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
659
659
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
660
660
|
*/
|
|
@@ -699,7 +699,7 @@ export default class bitflyer extends Exchange {
|
|
|
699
699
|
* @see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
|
700
700
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
701
701
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
702
|
-
* @param {int} [limit] the maximum number of
|
|
702
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
703
703
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
704
704
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
705
705
|
*/
|
package/js/src/bitmart.js
CHANGED
|
@@ -2755,7 +2755,7 @@ export default class bitmart extends Exchange {
|
|
|
2755
2755
|
* @description fetches information on multiple closed orders made by the user
|
|
2756
2756
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2757
2757
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2758
|
-
* @param {int} [limit] the maximum number of
|
|
2758
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2759
2759
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2760
2760
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
2761
2761
|
* @param {string} [params.marginMode] *spot only* 'cross' or 'isolated', for margin trading
|
package/js/src/bitmex.js
CHANGED
|
@@ -875,7 +875,7 @@ export default class bitmex extends Exchange {
|
|
|
875
875
|
* @description fetches information on multiple orders made by the user
|
|
876
876
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
877
877
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
878
|
-
* @param {int} [limit] the maximum number of
|
|
878
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
879
879
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
880
880
|
* @param {int} [params.until] the earliest time in ms to fetch orders for
|
|
881
881
|
* @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)
|
|
@@ -939,7 +939,7 @@ export default class bitmex extends Exchange {
|
|
|
939
939
|
* @description fetches information on multiple closed orders made by the user
|
|
940
940
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
941
941
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
942
|
-
* @param {int} [limit] the maximum number of
|
|
942
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
943
943
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
944
944
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
945
945
|
*/
|
package/js/src/bitopro.js
CHANGED
|
@@ -1270,7 +1270,7 @@ export default class bitopro extends Exchange {
|
|
|
1270
1270
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_orders_data.md
|
|
1271
1271
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1272
1272
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1273
|
-
* @param {int} [limit] the maximum number of
|
|
1273
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1274
1274
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1275
1275
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1276
1276
|
*/
|
package/js/src/bitpanda.js
CHANGED
|
@@ -1820,7 +1820,7 @@ export default class bitpanda extends Exchange {
|
|
|
1820
1820
|
* @description fetches information on multiple closed orders made by the user
|
|
1821
1821
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1822
1822
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1823
|
-
* @param {int} [limit] the maximum number of
|
|
1823
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1824
1824
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1825
1825
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1826
1826
|
*/
|
package/js/src/bitso.d.ts
CHANGED
package/js/src/bitvavo.js
CHANGED
|
@@ -1261,7 +1261,7 @@ export default class bitvavo extends Exchange {
|
|
|
1261
1261
|
* @description fetches information on multiple orders made by the user
|
|
1262
1262
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1263
1263
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1264
|
-
* @param {int} [limit] the maximum number of
|
|
1264
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1265
1265
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1266
1266
|
* @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)
|
|
1267
1267
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
package/js/src/blockchaincom.js
CHANGED
|
@@ -691,7 +691,7 @@ export default class blockchaincom extends Exchange {
|
|
|
691
691
|
* @description fetches information on multiple closed orders made by the user
|
|
692
692
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
693
693
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
694
|
-
* @param {int} [limit] the maximum number of
|
|
694
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
695
695
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
696
696
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
697
697
|
*/
|
package/js/src/btcalpha.js
CHANGED
|
@@ -798,7 +798,7 @@ export default class btcalpha extends Exchange {
|
|
|
798
798
|
* @description fetches information on multiple orders made by the user
|
|
799
799
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
800
800
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
801
|
-
* @param {int} [limit] the maximum number of
|
|
801
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
802
802
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
803
803
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
804
804
|
*/
|
|
@@ -838,7 +838,7 @@ export default class btcalpha extends Exchange {
|
|
|
838
838
|
* @description fetches information on multiple closed orders made by the user
|
|
839
839
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
840
840
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
841
|
-
* @param {int} [limit] the maximum number of
|
|
841
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
842
842
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
843
843
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
844
844
|
*/
|
package/js/src/btcbox.js
CHANGED
|
@@ -488,7 +488,7 @@ export default class btcbox extends Exchange {
|
|
|
488
488
|
* @description fetches information on multiple orders made by the user
|
|
489
489
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
490
490
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
491
|
-
* @param {int} [limit] the maximum number of
|
|
491
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
492
492
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
493
493
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
494
494
|
*/
|
package/js/src/btcmarkets.js
CHANGED
|
@@ -1025,7 +1025,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1025
1025
|
* @description fetches information on multiple orders made by the user
|
|
1026
1026
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1027
1027
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1028
|
-
* @param {int} [limit] the maximum number of
|
|
1028
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1029
1029
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1030
1030
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1031
1031
|
*/
|
|
@@ -1068,7 +1068,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1068
1068
|
* @description fetches information on multiple closed orders made by the user
|
|
1069
1069
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1070
1070
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1071
|
-
* @param {int} [limit] the maximum number of
|
|
1071
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1072
1072
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1073
1073
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1074
1074
|
*/
|
package/js/src/btcturk.js
CHANGED
|
@@ -731,7 +731,7 @@ export default class btcturk extends Exchange {
|
|
|
731
731
|
* @description fetches information on multiple orders made by the user
|
|
732
732
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
733
733
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
734
|
-
* @param {int} [limit] the maximum number of
|
|
734
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
735
735
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
736
736
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
737
737
|
*/
|
package/js/src/bybit.js
CHANGED
|
@@ -4436,7 +4436,7 @@ export default class bybit extends Exchange {
|
|
|
4436
4436
|
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
4437
4437
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4438
4438
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4439
|
-
* @param {int} [limit] the maximum number of
|
|
4439
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4440
4440
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4441
4441
|
* @param {boolean} [params.stop] true if stop order
|
|
4442
4442
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
@@ -4552,7 +4552,7 @@ export default class bybit extends Exchange {
|
|
|
4552
4552
|
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
4553
4553
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4554
4554
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4555
|
-
* @param {int} [limit] the maximum number of
|
|
4555
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4556
4556
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4557
4557
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4558
4558
|
*/
|
package/js/src/cex.js
CHANGED
|
@@ -1332,7 +1332,7 @@ export default class cex extends Exchange {
|
|
|
1332
1332
|
* @description fetches information on multiple orders made by the user
|
|
1333
1333
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1334
1334
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1335
|
-
* @param {int} [limit] the maximum number of
|
|
1335
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1336
1336
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1337
1337
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1338
1338
|
*/
|
package/js/src/coinbasepro.js
CHANGED
|
@@ -1136,7 +1136,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1136
1136
|
* @description fetches information on multiple orders made by the user
|
|
1137
1137
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1138
1138
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1139
|
-
* @param {int} [limit] the maximum number of
|
|
1139
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1140
1140
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1141
1141
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1142
1142
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1194,7 +1194,7 @@ export default class coinbasepro extends Exchange {
|
|
|
1194
1194
|
* @description fetches information on multiple closed orders made by the user
|
|
1195
1195
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1196
1196
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1197
|
-
* @param {int} [limit] the maximum number of
|
|
1197
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1198
1198
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1199
1199
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1200
1200
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/coinex.js
CHANGED
|
@@ -3193,7 +3193,7 @@ export default class coinex extends Exchange {
|
|
|
3193
3193
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade012_finished_order
|
|
3194
3194
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
3195
3195
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
3196
|
-
* @param {int} [limit] the maximum number of
|
|
3196
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
3197
3197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3198
3198
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3199
3199
|
*/
|
package/js/src/coinlist.js
CHANGED
|
@@ -1220,7 +1220,7 @@ export default class coinlist extends Exchange {
|
|
|
1220
1220
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
1221
1221
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1222
1222
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1223
|
-
* @param {int} [limit] the maximum number of
|
|
1223
|
+
* @param {int} [limit] the maximum number of order structures to retrieve (default 200, max 500)
|
|
1224
1224
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1225
1225
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1226
1226
|
* @param {string|string[]} [params.status] the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending' (default [ 'accepted', 'done', 'canceled', 'rejected', 'pending' ])
|
package/js/src/deribit.js
CHANGED
|
@@ -1990,7 +1990,7 @@ export default class deribit extends Exchange {
|
|
|
1990
1990
|
* @description fetches information on multiple closed orders made by the user
|
|
1991
1991
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1992
1992
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1993
|
-
* @param {int} [limit] the maximum number of
|
|
1993
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1994
1994
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1995
1995
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1996
1996
|
*/
|
package/js/src/digifinex.js
CHANGED
|
@@ -2243,7 +2243,7 @@ export default class digifinex extends Exchange {
|
|
|
2243
2243
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
|
|
2244
2244
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2245
2245
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2246
|
-
* @param {int} [limit] the maximum number of
|
|
2246
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2247
2247
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2248
2248
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2249
2249
|
*/
|
package/js/src/gate.js
CHANGED
|
@@ -4647,7 +4647,7 @@ export default class gate extends Exchange {
|
|
|
4647
4647
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-options-orders
|
|
4648
4648
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4649
4649
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4650
|
-
* @param {int} [limit] the maximum number of
|
|
4650
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4651
4651
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4652
4652
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4653
4653
|
* @param {string} [params.type] spot, swap or future, if not provided this.options['defaultType'] is used
|
package/js/src/hitbtc.js
CHANGED
|
@@ -1815,7 +1815,7 @@ export default class hitbtc extends Exchange {
|
|
|
1815
1815
|
* @see https://api.hitbtc.com/#margin-orders-history
|
|
1816
1816
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1817
1817
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1818
|
-
* @param {int} [limit] the maximum number of
|
|
1818
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1819
1819
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1820
1820
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1821
1821
|
* @param {bool} [params.margin] true for fetching margin orders
|
package/js/src/hollaex.js
CHANGED
|
@@ -925,7 +925,7 @@ export default class hollaex extends Exchange {
|
|
|
925
925
|
* @description fetches information on multiple closed orders made by the user
|
|
926
926
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
927
927
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
928
|
-
* @param {int} [limit] the maximum number of
|
|
928
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
929
929
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
930
930
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
931
931
|
*/
|
|
@@ -983,7 +983,7 @@ export default class hollaex extends Exchange {
|
|
|
983
983
|
* @description fetches information on multiple orders made by the user
|
|
984
984
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
985
985
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
986
|
-
* @param {int} [limit] the maximum number of
|
|
986
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
987
987
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
988
988
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
989
989
|
*/
|
package/js/src/htx.js
CHANGED
|
@@ -4129,7 +4129,7 @@ export default class htx extends Exchange {
|
|
|
4129
4129
|
* @description fetches information on multiple closed orders made by the user
|
|
4130
4130
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4131
4131
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4132
|
-
* @param {int} [limit] the maximum number of
|
|
4132
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4133
4133
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4134
4134
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4135
4135
|
* @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/js/src/huobijp.js
CHANGED
|
@@ -1179,7 +1179,7 @@ export default class huobijp extends Exchange {
|
|
|
1179
1179
|
* @description fetches information on multiple orders made by the user
|
|
1180
1180
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1181
1181
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1182
|
-
* @param {int} [limit] the maximum number of
|
|
1182
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1183
1183
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1184
1184
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1185
1185
|
*/
|
|
@@ -1212,7 +1212,7 @@ export default class huobijp extends Exchange {
|
|
|
1212
1212
|
* @description fetches information on multiple closed orders made by the user
|
|
1213
1213
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1214
1214
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1215
|
-
* @param {int} [limit] the maximum number of
|
|
1215
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1216
1216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1217
1217
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1218
1218
|
*/
|
package/js/src/idex.js
CHANGED
|
@@ -930,7 +930,7 @@ export default class idex extends Exchange {
|
|
|
930
930
|
* @description fetches information on multiple closed orders made by the user
|
|
931
931
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
932
932
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
933
|
-
* @param {int} [limit] the maximum number of
|
|
933
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
934
934
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
935
935
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
936
936
|
*/
|
|
@@ -515,7 +515,7 @@ export default class independentreserve extends Exchange {
|
|
|
515
515
|
* @description fetches information on multiple closed orders made by the user
|
|
516
516
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
517
517
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
518
|
-
* @param {int} [limit] the maximum number of
|
|
518
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
519
519
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
520
520
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
521
521
|
*/
|
package/js/src/kraken.js
CHANGED
|
@@ -2083,7 +2083,7 @@ export default class kraken extends Exchange {
|
|
|
2083
2083
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
|
2084
2084
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2085
2085
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2086
|
-
* @param {int} [limit] the maximum number of
|
|
2086
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2087
2087
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2088
2088
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
2089
2089
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|