ccxt 4.1.51 → 4.1.52
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 +110 -113
- package/dist/ccxt.browser.js +1361 -2933
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +1 -7
- package/dist/cjs/src/alpaca.js +62 -64
- package/dist/cjs/src/ascendex.js +3 -1
- package/dist/cjs/src/base/Exchange.js +10 -0
- package/dist/cjs/src/bigone.js +60 -77
- package/dist/cjs/src/binance.js +1 -0
- package/dist/cjs/src/bingx.js +4 -11
- package/dist/cjs/src/bitbank.js +58 -59
- package/dist/cjs/src/bitbns.js +1 -0
- package/dist/cjs/src/bitfinex.js +1 -0
- package/dist/cjs/src/bitfinex2.js +1 -0
- package/dist/cjs/src/bitflyer.js +1 -0
- package/dist/cjs/src/bitget.js +3 -8
- package/dist/cjs/src/bithumb.js +1 -0
- package/dist/cjs/src/bitmart.js +10 -1
- package/dist/cjs/src/bitmex.js +114 -119
- package/dist/cjs/src/bitopro.js +63 -65
- package/dist/cjs/src/bitpanda.js +60 -60
- package/dist/cjs/src/bitrue.js +67 -71
- package/dist/cjs/src/bitso.js +1 -0
- package/dist/cjs/src/bitstamp.js +1 -0
- package/dist/cjs/src/bittrex.js +57 -57
- package/dist/cjs/src/bitvavo.js +10 -2
- package/dist/cjs/src/blockchaincom.js +2 -2
- package/dist/cjs/src/btcalpha.js +59 -60
- package/dist/cjs/src/btcmarkets.js +68 -69
- package/dist/cjs/src/btcturk.js +72 -74
- package/dist/cjs/src/bybit.js +3 -1
- package/dist/cjs/src/coinbase.js +7 -2
- package/dist/cjs/src/coinbasepro.js +1 -0
- package/dist/cjs/src/coincheck.js +1 -0
- package/dist/cjs/src/coinex.js +4 -0
- package/dist/cjs/src/coinlist.js +60 -60
- package/dist/cjs/src/coinmate.js +1 -0
- package/dist/cjs/src/coinsph.js +2 -4
- package/dist/cjs/src/cryptocom.js +1 -0
- package/dist/cjs/src/currencycom.js +2 -2
- package/dist/cjs/src/deribit.js +2 -0
- package/dist/cjs/src/digifinex.js +5 -2
- package/dist/cjs/src/exmo.js +1 -0
- package/dist/cjs/src/gate.js +2 -0
- package/dist/cjs/src/gemini.js +2 -0
- package/dist/cjs/src/hitbtc.js +4 -0
- package/dist/cjs/src/hollaex.js +2 -0
- package/dist/cjs/src/htx.js +4 -0
- package/dist/cjs/src/huobijp.js +2 -0
- package/dist/cjs/src/idex.js +2 -0
- package/dist/cjs/src/indodax.js +1 -0
- package/dist/cjs/src/kraken.js +3 -3
- package/dist/cjs/src/kucoin.js +6 -5
- package/dist/cjs/src/kuna.js +3 -1
- package/dist/cjs/src/latoken.js +1 -0
- package/dist/cjs/src/lbank.js +1 -0
- package/dist/cjs/src/lykke.js +2 -0
- package/dist/cjs/src/mercado.js +1 -0
- package/dist/cjs/src/mexc.js +2 -0
- package/dist/cjs/src/ndax.js +2 -0
- package/dist/cjs/src/novadax.js +1 -0
- package/dist/cjs/src/okcoin.js +2 -0
- package/dist/cjs/src/okx.js +2 -0
- package/dist/cjs/src/phemex.js +2 -0
- package/dist/cjs/src/poloniex.js +1 -0
- package/dist/cjs/src/pro/binance.js +5 -3
- package/dist/cjs/src/pro/coinbase.js +12 -3
- package/dist/cjs/src/pro/cryptocom.js +17 -17
- package/dist/cjs/src/pro/krakenfutures.js +15 -15
- package/dist/cjs/src/probit.js +4 -2
- package/dist/cjs/src/tidex.js +1 -0
- package/dist/cjs/src/timex.js +2 -0
- package/dist/cjs/src/upbit.js +2 -0
- package/dist/cjs/src/wavesexchange.js +2 -1
- package/dist/cjs/src/whitebit.js +1 -0
- package/dist/cjs/src/woo.js +1 -0
- package/dist/cjs/src/zaif.js +1 -0
- package/dist/cjs/src/zonda.js +1 -0
- package/js/ccxt.d.ts +2 -8
- package/js/ccxt.js +2 -6
- package/js/src/alpaca.d.ts +3 -2
- package/js/src/alpaca.js +62 -64
- package/js/src/ascendex.js +3 -1
- package/js/src/base/Exchange.d.ts +2 -0
- package/js/src/base/Exchange.js +10 -0
- package/js/src/base/types.d.ts +6 -3
- package/js/src/bigone.d.ts +3 -3
- package/js/src/bigone.js +60 -77
- package/js/src/binance.js +1 -0
- package/js/src/bingx.d.ts +2 -2
- package/js/src/bingx.js +4 -11
- package/js/src/bitbank.d.ts +3 -2
- package/js/src/bitbank.js +58 -59
- package/js/src/bitbns.js +1 -0
- package/js/src/bitfinex.js +1 -0
- package/js/src/bitfinex2.js +1 -0
- package/js/src/bitflyer.js +1 -0
- package/js/src/bitget.d.ts +1 -2
- package/js/src/bitget.js +3 -8
- package/js/src/bithumb.js +1 -0
- package/js/src/bitmart.js +10 -1
- package/js/src/bitmex.d.ts +3 -2
- package/js/src/bitmex.js +114 -119
- package/js/src/bitopro.d.ts +3 -2
- package/js/src/bitopro.js +63 -65
- package/js/src/bitpanda.d.ts +3 -2
- package/js/src/bitpanda.js +60 -60
- package/js/src/bitrue.d.ts +3 -2
- package/js/src/bitrue.js +67 -71
- package/js/src/bitso.js +1 -0
- package/js/src/bitstamp.js +1 -0
- package/js/src/bittrex.d.ts +3 -2
- package/js/src/bittrex.js +57 -57
- package/js/src/bitvavo.js +10 -2
- package/js/src/blockchaincom.js +2 -2
- package/js/src/btcalpha.d.ts +3 -2
- package/js/src/btcalpha.js +59 -60
- package/js/src/btcmarkets.d.ts +3 -2
- package/js/src/btcmarkets.js +68 -69
- package/js/src/btcturk.d.ts +3 -2
- package/js/src/btcturk.js +72 -74
- package/js/src/bybit.js +3 -1
- package/js/src/coinbase.js +7 -2
- package/js/src/coinbasepro.js +1 -0
- package/js/src/coincheck.js +1 -0
- package/js/src/coinex.js +4 -0
- package/js/src/coinlist.d.ts +3 -2
- package/js/src/coinlist.js +60 -60
- package/js/src/coinmate.js +1 -0
- package/js/src/coinsph.js +2 -4
- package/js/src/cryptocom.js +1 -0
- package/js/src/currencycom.js +2 -2
- package/js/src/deribit.js +2 -0
- package/js/src/digifinex.js +5 -2
- package/js/src/exmo.js +1 -0
- package/js/src/gate.js +2 -0
- package/js/src/gemini.js +2 -0
- package/js/src/hitbtc.js +4 -0
- package/js/src/hollaex.js +2 -0
- package/js/src/htx.js +4 -0
- package/js/src/huobijp.js +2 -0
- package/js/src/idex.js +2 -0
- package/js/src/indodax.js +1 -0
- package/js/src/kraken.js +3 -3
- package/js/src/kucoin.js +6 -5
- package/js/src/kuna.js +3 -1
- package/js/src/latoken.js +1 -0
- package/js/src/lbank.js +1 -0
- package/js/src/lykke.js +2 -0
- package/js/src/mercado.js +1 -0
- package/js/src/mexc.js +2 -0
- package/js/src/ndax.js +2 -0
- package/js/src/novadax.js +1 -0
- package/js/src/okcoin.js +2 -0
- package/js/src/okx.js +2 -0
- package/js/src/phemex.js +2 -0
- package/js/src/poloniex.js +1 -0
- package/js/src/pro/binance.js +5 -3
- package/js/src/pro/coinbase.js +12 -3
- package/js/src/pro/cryptocom.js +17 -17
- package/js/src/pro/krakenfutures.js +15 -15
- package/js/src/probit.js +4 -2
- package/js/src/tidex.js +1 -0
- package/js/src/timex.js +2 -0
- package/js/src/upbit.js +2 -0
- package/js/src/wavesexchange.js +2 -1
- package/js/src/whitebit.js +1 -0
- package/js/src/woo.js +1 -0
- package/js/src/zaif.js +1 -0
- package/js/src/zonda.js +1 -0
- package/package.json +1 -1
- package/skip-tests.json +2 -3
- package/dist/cjs/src/btctradeua.js +0 -571
- package/dist/cjs/src/coinfalcon.js +0 -1012
- package/js/src/abstract/btctradeua.d.ts +0 -20
- package/js/src/abstract/btctradeua.js +0 -11
- package/js/src/abstract/coinfalcon.d.ts +0 -26
- package/js/src/abstract/coinfalcon.js +0 -11
- package/js/src/btctradeua.d.ts +0 -30
- package/js/src/btctradeua.js +0 -572
- package/js/src/coinfalcon.d.ts +0 -53
- package/js/src/coinfalcon.js +0 -1013
package/dist/cjs/src/gemini.js
CHANGED
|
@@ -1598,6 +1598,8 @@ class gemini extends gemini$1 {
|
|
|
1598
1598
|
'currency': code,
|
|
1599
1599
|
'status': this.parseTransactionStatus(statusRaw),
|
|
1600
1600
|
'updated': undefined,
|
|
1601
|
+
'internal': undefined,
|
|
1602
|
+
'comment': this.safeString(transaction, 'message'),
|
|
1601
1603
|
'fee': fee,
|
|
1602
1604
|
};
|
|
1603
1605
|
}
|
package/dist/cjs/src/hitbtc.js
CHANGED
|
@@ -1440,6 +1440,9 @@ class hitbtc extends hitbtc$1 {
|
|
|
1440
1440
|
const sender = this.safeValue(native, 'senders');
|
|
1441
1441
|
const addressFrom = this.safeString(sender, 0);
|
|
1442
1442
|
const amount = this.safeNumber(native, 'amount');
|
|
1443
|
+
const subType = this.safeString(transaction, 'subtype');
|
|
1444
|
+
const internal = subType === 'OFFCHAIN';
|
|
1445
|
+
// https://api.hitbtc.com/#check-if-offchain-is-available
|
|
1443
1446
|
const fee = {
|
|
1444
1447
|
'currency': undefined,
|
|
1445
1448
|
'cost': undefined,
|
|
@@ -1469,6 +1472,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1469
1472
|
'tagTo': tagTo,
|
|
1470
1473
|
'updated': updated,
|
|
1471
1474
|
'comment': undefined,
|
|
1475
|
+
'internal': internal,
|
|
1472
1476
|
'fee': fee,
|
|
1473
1477
|
};
|
|
1474
1478
|
}
|
package/dist/cjs/src/hollaex.js
CHANGED
package/dist/cjs/src/htx.js
CHANGED
|
@@ -6069,6 +6069,8 @@ class htx extends htx$1 {
|
|
|
6069
6069
|
if (networkId === 'ETH' && txHash.indexOf('0x') < 0) {
|
|
6070
6070
|
txHash = '0x' + txHash;
|
|
6071
6071
|
}
|
|
6072
|
+
const subType = this.safeString(transaction, 'sub-type');
|
|
6073
|
+
const internal = subType === 'FAST';
|
|
6072
6074
|
return {
|
|
6073
6075
|
'info': transaction,
|
|
6074
6076
|
'id': this.safeString2(transaction, 'id', 'data'),
|
|
@@ -6087,6 +6089,8 @@ class htx extends htx$1 {
|
|
|
6087
6089
|
'currency': code,
|
|
6088
6090
|
'status': this.parseTransactionStatus(this.safeString(transaction, 'state')),
|
|
6089
6091
|
'updated': this.safeInteger(transaction, 'updated-at'),
|
|
6092
|
+
'comment': undefined,
|
|
6093
|
+
'internal': internal,
|
|
6090
6094
|
'fee': {
|
|
6091
6095
|
'currency': code,
|
|
6092
6096
|
'cost': this.parseNumber(feeCost),
|
package/dist/cjs/src/huobijp.js
CHANGED
|
@@ -1729,6 +1729,8 @@ class huobijp extends huobijp$1 {
|
|
|
1729
1729
|
'currency': code,
|
|
1730
1730
|
'status': this.parseTransactionStatus(this.safeString(transaction, 'state')),
|
|
1731
1731
|
'updated': this.safeInteger(transaction, 'updated-at'),
|
|
1732
|
+
'comment': undefined,
|
|
1733
|
+
'internal': undefined,
|
|
1732
1734
|
'fee': {
|
|
1733
1735
|
'currency': code,
|
|
1734
1736
|
'cost': this.parseNumber(feeCost),
|
package/dist/cjs/src/idex.js
CHANGED
package/dist/cjs/src/indodax.js
CHANGED
package/dist/cjs/src/kraken.js
CHANGED
|
@@ -1710,9 +1710,7 @@ class kraken extends kraken$1 {
|
|
|
1710
1710
|
if (!(id in result)) {
|
|
1711
1711
|
throw new errors.OrderNotFound(this.id + ' fetchOrder() could not find order id ' + id);
|
|
1712
1712
|
}
|
|
1713
|
-
|
|
1714
|
-
order['info'] = order;
|
|
1715
|
-
return order;
|
|
1713
|
+
return this.parseOrder(this.extend({ 'id': id }, result[id]));
|
|
1716
1714
|
}
|
|
1717
1715
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1718
1716
|
/**
|
|
@@ -2159,6 +2157,8 @@ class kraken extends kraken$1 {
|
|
|
2159
2157
|
'txid': txid,
|
|
2160
2158
|
'timestamp': timestamp,
|
|
2161
2159
|
'datetime': this.iso8601(timestamp),
|
|
2160
|
+
'comment': undefined,
|
|
2161
|
+
'internal': undefined,
|
|
2162
2162
|
'fee': {
|
|
2163
2163
|
'currency': code,
|
|
2164
2164
|
'cost': feeCost,
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -1757,8 +1757,8 @@ class kucoin extends kucoin$1 {
|
|
|
1757
1757
|
* @method
|
|
1758
1758
|
* @name kucoin#fetchOrderBook
|
|
1759
1759
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1760
|
-
* @see https://
|
|
1761
|
-
* @see https://
|
|
1760
|
+
* @see https://www.kucoin.com/docs/rest/spot-trading/market-data/get-part-order-book-aggregated-
|
|
1761
|
+
* @see https://www.kucoin.com/docs/rest/spot-trading/market-data/get-full-order-book-aggregated-
|
|
1762
1762
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1763
1763
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1764
1764
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
@@ -1768,7 +1768,6 @@ class kucoin extends kucoin$1 {
|
|
|
1768
1768
|
const market = this.market(symbol);
|
|
1769
1769
|
const level = this.safeInteger(params, 'level', 2);
|
|
1770
1770
|
const request = { 'symbol': market['id'] };
|
|
1771
|
-
let method = 'publicGetMarketOrderbookLevelLevelLimit';
|
|
1772
1771
|
const isAuthenticated = this.checkRequiredCredentials(false);
|
|
1773
1772
|
let response = undefined;
|
|
1774
1773
|
if (!isAuthenticated || limit !== undefined) {
|
|
@@ -1784,11 +1783,11 @@ class kucoin extends kucoin$1 {
|
|
|
1784
1783
|
}
|
|
1785
1784
|
request['limit'] = limit ? limit : 100;
|
|
1786
1785
|
}
|
|
1786
|
+
response = await this.publicGetMarketOrderbookLevelLevelLimit(this.extend(request, params));
|
|
1787
1787
|
}
|
|
1788
1788
|
else {
|
|
1789
|
-
|
|
1789
|
+
response = await this.privateGetMarketOrderbookLevel2(this.extend(request, params));
|
|
1790
1790
|
}
|
|
1791
|
-
response = await this[method](this.extend(request, params));
|
|
1792
1791
|
//
|
|
1793
1792
|
// public (v1) market/orderbook/level2_20 and market/orderbook/level2_100
|
|
1794
1793
|
//
|
|
@@ -3160,6 +3159,7 @@ class kucoin extends kucoin$1 {
|
|
|
3160
3159
|
updated = updated * 1000;
|
|
3161
3160
|
}
|
|
3162
3161
|
}
|
|
3162
|
+
const internal = this.safeValue(transaction, 'isInner');
|
|
3163
3163
|
const tag = this.safeString(transaction, 'memo');
|
|
3164
3164
|
return {
|
|
3165
3165
|
'info': transaction,
|
|
@@ -3179,6 +3179,7 @@ class kucoin extends kucoin$1 {
|
|
|
3179
3179
|
'type': type,
|
|
3180
3180
|
'status': this.parseTransactionStatus(rawStatus),
|
|
3181
3181
|
'comment': this.safeString(transaction, 'remark'),
|
|
3182
|
+
'internal': internal,
|
|
3182
3183
|
'fee': fee,
|
|
3183
3184
|
'updated': updated,
|
|
3184
3185
|
};
|
package/dist/cjs/src/kuna.js
CHANGED
|
@@ -1764,6 +1764,7 @@ class kuna extends kuna$1 {
|
|
|
1764
1764
|
const type = this.safeStringLower(transaction, 'type');
|
|
1765
1765
|
const address = this.safeString(transaction, 'address');
|
|
1766
1766
|
const isDeposit = (type === 'deposit');
|
|
1767
|
+
const parsedType = isDeposit ? type : 'withdrawal';
|
|
1767
1768
|
return {
|
|
1768
1769
|
'info': transaction,
|
|
1769
1770
|
'id': this.safeString(transaction, 'id'),
|
|
@@ -1776,13 +1777,14 @@ class kuna extends kuna$1 {
|
|
|
1776
1777
|
'address': address,
|
|
1777
1778
|
'addressTo': address,
|
|
1778
1779
|
'amount': this.safeNumber(transaction, 'amount'),
|
|
1779
|
-
'type':
|
|
1780
|
+
'type': parsedType,
|
|
1780
1781
|
'status': this.parseTransactionStatus(this.safeString(transaction, 'status')),
|
|
1781
1782
|
'updated': this.parse8601(this.safeString(transaction, 'updatedAt')),
|
|
1782
1783
|
'tagFrom': undefined,
|
|
1783
1784
|
'tag': undefined,
|
|
1784
1785
|
'tagTo': undefined,
|
|
1785
1786
|
'comment': this.safeString(transaction, 'memo'),
|
|
1787
|
+
'internal': undefined,
|
|
1786
1788
|
'fee': {
|
|
1787
1789
|
'cost': this.safeNumber(transaction, 'fee'),
|
|
1788
1790
|
'currency': code,
|
package/dist/cjs/src/latoken.js
CHANGED
package/dist/cjs/src/lbank.js
CHANGED
package/dist/cjs/src/lykke.js
CHANGED
package/dist/cjs/src/mercado.js
CHANGED
package/dist/cjs/src/mexc.js
CHANGED
package/dist/cjs/src/ndax.js
CHANGED
package/dist/cjs/src/novadax.js
CHANGED
package/dist/cjs/src/okcoin.js
CHANGED
package/dist/cjs/src/okx.js
CHANGED
package/dist/cjs/src/phemex.js
CHANGED
package/dist/cjs/src/poloniex.js
CHANGED
|
@@ -2359,8 +2359,10 @@ class binance extends binance$1 {
|
|
|
2359
2359
|
market = this.getMarketFromSymbols(symbols);
|
|
2360
2360
|
messageHash = '::' + symbols.join(',');
|
|
2361
2361
|
}
|
|
2362
|
-
|
|
2363
|
-
|
|
2362
|
+
let type = this.handleMarketTypeAndParams('watchPositions', market, params);
|
|
2363
|
+
if (type === 'spot' || type === 'margin') {
|
|
2364
|
+
type = 'future';
|
|
2365
|
+
}
|
|
2364
2366
|
let subType = undefined;
|
|
2365
2367
|
[subType, params] = this.handleSubTypeAndParams('watchPositions', market, params);
|
|
2366
2368
|
if (this.isLinear(type, subType)) {
|
|
@@ -2505,7 +2507,7 @@ class binance extends binance$1 {
|
|
|
2505
2507
|
return this.safePosition({
|
|
2506
2508
|
'info': position,
|
|
2507
2509
|
'id': undefined,
|
|
2508
|
-
'symbol': this.safeSymbol(marketId),
|
|
2510
|
+
'symbol': this.safeSymbol(marketId, undefined, undefined, 'future'),
|
|
2509
2511
|
'notional': undefined,
|
|
2510
2512
|
'marginMode': this.safeString(position, 'mt'),
|
|
2511
2513
|
'liquidationPrice': undefined,
|
|
@@ -12,14 +12,23 @@ class coinbase extends coinbase$1 {
|
|
|
12
12
|
return this.deepExtend(super.describe(), {
|
|
13
13
|
'has': {
|
|
14
14
|
'ws': true,
|
|
15
|
+
'cancelAllOrdersWs': false,
|
|
16
|
+
'cancelOrdersWs': false,
|
|
17
|
+
'cancelOrderWs': false,
|
|
18
|
+
'createOrderWs': false,
|
|
19
|
+
'editOrderWs': false,
|
|
20
|
+
'fetchBalanceWs': false,
|
|
21
|
+
'fetchOpenOrdersWs': false,
|
|
22
|
+
'fetchOrderWs': false,
|
|
23
|
+
'fetchTradesWs': false,
|
|
24
|
+
'watchBalance': false,
|
|
25
|
+
'watchMyTrades': false,
|
|
15
26
|
'watchOHLCV': false,
|
|
16
27
|
'watchOrderBook': true,
|
|
28
|
+
'watchOrders': true,
|
|
17
29
|
'watchTicker': true,
|
|
18
30
|
'watchTickers': true,
|
|
19
31
|
'watchTrades': true,
|
|
20
|
-
'watchBalance': false,
|
|
21
|
-
'watchOrders': true,
|
|
22
|
-
'watchMyTrades': false,
|
|
23
32
|
},
|
|
24
33
|
'urls': {
|
|
25
34
|
'api': {
|
|
@@ -525,24 +525,24 @@ class cryptocom extends cryptocom$1 {
|
|
|
525
525
|
handlePositions(client, message) {
|
|
526
526
|
//
|
|
527
527
|
// {
|
|
528
|
-
// subscription: "user.position_balance",
|
|
529
|
-
// channel: "user.position_balance",
|
|
530
|
-
// data: [{
|
|
531
|
-
// balances: [{
|
|
532
|
-
// instrument_name: "USD",
|
|
533
|
-
// quantity: "8.9979961950886",
|
|
534
|
-
// update_timestamp_ms: 1695598760597,
|
|
528
|
+
// "subscription": "user.position_balance",
|
|
529
|
+
// "channel": "user.position_balance",
|
|
530
|
+
// "data": [{
|
|
531
|
+
// "balances": [{
|
|
532
|
+
// "instrument_name": "USD",
|
|
533
|
+
// "quantity": "8.9979961950886",
|
|
534
|
+
// "update_timestamp_ms": 1695598760597,
|
|
535
535
|
// }],
|
|
536
|
-
// positions: [{
|
|
537
|
-
// account_id: "96a0edb1-afb5-4c7c-af89-5cb610319e2c",
|
|
538
|
-
// instrument_name: "LTCUSD-PERP",
|
|
539
|
-
// type: "PERPETUAL_SWAP",
|
|
540
|
-
// quantity: "1.8",
|
|
541
|
-
// cost: "114.766",
|
|
542
|
-
// open_position_pnl: "-0.0216206",
|
|
543
|
-
// session_pnl: "0.00962994",
|
|
544
|
-
// update_timestamp_ms: 1695598760597,
|
|
545
|
-
// open_pos_cost: "114.766",
|
|
536
|
+
// "positions": [{
|
|
537
|
+
// "account_id": "96a0edb1-afb5-4c7c-af89-5cb610319e2c",
|
|
538
|
+
// "instrument_name": "LTCUSD-PERP",
|
|
539
|
+
// "type": "PERPETUAL_SWAP",
|
|
540
|
+
// "quantity": "1.8",
|
|
541
|
+
// "cost": "114.766",
|
|
542
|
+
// "open_position_pnl": "-0.0216206",
|
|
543
|
+
// "session_pnl": "0.00962994",
|
|
544
|
+
// "update_timestamp_ms": 1695598760597,
|
|
545
|
+
// "open_pos_cost": "114.766",
|
|
546
546
|
// }],
|
|
547
547
|
// }],
|
|
548
548
|
// }
|
|
@@ -613,22 +613,22 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
613
613
|
// }
|
|
614
614
|
//
|
|
615
615
|
// {
|
|
616
|
-
// feed: 'open_orders',
|
|
617
|
-
// order: {
|
|
618
|
-
// instrument: 'PF_XBTUSD',
|
|
619
|
-
// time: 1698159920097,
|
|
620
|
-
// last_update_time: 1699835622988,
|
|
621
|
-
// qty: 1.1,
|
|
622
|
-
// filled: 0,
|
|
623
|
-
// limit_price: 20000,
|
|
624
|
-
// stop_price: 0,
|
|
625
|
-
// type: 'limit',
|
|
626
|
-
// order_id: '0eaf02b0-855d-4451-a3b7-e2b3070c1fa4',
|
|
627
|
-
// direction: 0,
|
|
628
|
-
// reduce_only: false
|
|
616
|
+
// "feed": 'open_orders',
|
|
617
|
+
// "order": {
|
|
618
|
+
// "instrument": 'PF_XBTUSD',
|
|
619
|
+
// "time": 1698159920097,
|
|
620
|
+
// "last_update_time": 1699835622988,
|
|
621
|
+
// "qty": 1.1,
|
|
622
|
+
// "filled": 0,
|
|
623
|
+
// "limit_price": 20000,
|
|
624
|
+
// "stop_price": 0,
|
|
625
|
+
// "type": 'limit',
|
|
626
|
+
// "order_id": '0eaf02b0-855d-4451-a3b7-e2b3070c1fa4',
|
|
627
|
+
// "direction": 0,
|
|
628
|
+
// "reduce_only": false
|
|
629
629
|
// },
|
|
630
|
-
// is_cancel: false,
|
|
631
|
-
// reason: 'edited_by_user'
|
|
630
|
+
// "is_cancel": false,
|
|
631
|
+
// "reason": 'edited_by_user'
|
|
632
632
|
// }
|
|
633
633
|
//
|
|
634
634
|
let orders = this.orders;
|
package/dist/cjs/src/probit.js
CHANGED
|
@@ -302,8 +302,8 @@ class probit extends probit$1 {
|
|
|
302
302
|
'option': false,
|
|
303
303
|
'active': !closed,
|
|
304
304
|
'contract': false,
|
|
305
|
-
'linear':
|
|
306
|
-
'inverse':
|
|
305
|
+
'linear': 'rfwf',
|
|
306
|
+
'inverse': 3,
|
|
307
307
|
'taker': this.parseNumber(taker),
|
|
308
308
|
'maker': this.parseNumber(maker),
|
|
309
309
|
'contractSize': undefined,
|
|
@@ -1594,6 +1594,8 @@ class probit extends probit$1 {
|
|
|
1594
1594
|
'timestamp': timestamp,
|
|
1595
1595
|
'datetime': this.iso8601(timestamp),
|
|
1596
1596
|
'updated': undefined,
|
|
1597
|
+
'internal': undefined,
|
|
1598
|
+
'comment': undefined,
|
|
1597
1599
|
'fee': fee,
|
|
1598
1600
|
'info': transaction,
|
|
1599
1601
|
};
|
package/dist/cjs/src/tidex.js
CHANGED
package/dist/cjs/src/timex.js
CHANGED
package/dist/cjs/src/upbit.js
CHANGED
|
@@ -18,7 +18,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
18
18
|
'id': 'wavesexchange',
|
|
19
19
|
'name': 'Waves.Exchange',
|
|
20
20
|
'countries': ['CH'],
|
|
21
|
-
'certified':
|
|
21
|
+
'certified': false,
|
|
22
22
|
'pro': false,
|
|
23
23
|
'has': {
|
|
24
24
|
'CORS': undefined,
|
|
@@ -2592,6 +2592,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2592
2592
|
'tag': undefined,
|
|
2593
2593
|
'tagTo': undefined,
|
|
2594
2594
|
'comment': undefined,
|
|
2595
|
+
'internal': undefined,
|
|
2595
2596
|
'fee': undefined,
|
|
2596
2597
|
'info': transaction,
|
|
2597
2598
|
};
|
package/dist/cjs/src/whitebit.js
CHANGED
|
@@ -1818,6 +1818,7 @@ class whitebit extends whitebit$1 {
|
|
|
1818
1818
|
'tag': undefined,
|
|
1819
1819
|
'tagTo': undefined,
|
|
1820
1820
|
'comment': this.safeString(transaction, 'description'),
|
|
1821
|
+
'internal': undefined,
|
|
1821
1822
|
'fee': {
|
|
1822
1823
|
'cost': this.safeNumber(transaction, 'fee'),
|
|
1823
1824
|
'currency': this.safeCurrencyCode(currencyId, currency),
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -1894,6 +1894,7 @@ class woo extends woo$1 {
|
|
|
1894
1894
|
'status': this.parseTransactionStatus(this.safeString(transaction, 'status')),
|
|
1895
1895
|
'updated': this.safeTimestamp(transaction, 'updated_time'),
|
|
1896
1896
|
'comment': undefined,
|
|
1897
|
+
'internal': undefined,
|
|
1897
1898
|
'fee': fee,
|
|
1898
1899
|
'network': undefined,
|
|
1899
1900
|
};
|
package/dist/cjs/src/zaif.js
CHANGED
package/dist/cjs/src/zonda.js
CHANGED
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
|
|
6
6
|
import { 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, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.1.
|
|
7
|
+
declare const version = "4.1.51";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
|
@@ -41,7 +41,6 @@ import blockchaincom from './src/blockchaincom.js';
|
|
|
41
41
|
import btcalpha from './src/btcalpha.js';
|
|
42
42
|
import btcbox from './src/btcbox.js';
|
|
43
43
|
import btcmarkets from './src/btcmarkets.js';
|
|
44
|
-
import btctradeua from './src/btctradeua.js';
|
|
45
44
|
import btcturk from './src/btcturk.js';
|
|
46
45
|
import bybit from './src/bybit.js';
|
|
47
46
|
import cex from './src/cex.js';
|
|
@@ -50,7 +49,6 @@ import coinbaseprime from './src/coinbaseprime.js';
|
|
|
50
49
|
import coinbasepro from './src/coinbasepro.js';
|
|
51
50
|
import coincheck from './src/coincheck.js';
|
|
52
51
|
import coinex from './src/coinex.js';
|
|
53
|
-
import coinfalcon from './src/coinfalcon.js';
|
|
54
52
|
import coinlist from './src/coinlist.js';
|
|
55
53
|
import coinmate from './src/coinmate.js';
|
|
56
54
|
import coinone from './src/coinone.js';
|
|
@@ -210,7 +208,6 @@ declare const exchanges: {
|
|
|
210
208
|
btcalpha: typeof btcalpha;
|
|
211
209
|
btcbox: typeof btcbox;
|
|
212
210
|
btcmarkets: typeof btcmarkets;
|
|
213
|
-
btctradeua: typeof btctradeua;
|
|
214
211
|
btcturk: typeof btcturk;
|
|
215
212
|
bybit: typeof bybit;
|
|
216
213
|
cex: typeof cex;
|
|
@@ -219,7 +216,6 @@ declare const exchanges: {
|
|
|
219
216
|
coinbasepro: typeof coinbasepro;
|
|
220
217
|
coincheck: typeof coincheck;
|
|
221
218
|
coinex: typeof coinex;
|
|
222
|
-
coinfalcon: typeof coinfalcon;
|
|
223
219
|
coinlist: typeof coinlist;
|
|
224
220
|
coinmate: typeof coinmate;
|
|
225
221
|
coinone: typeof coinone;
|
|
@@ -450,7 +446,6 @@ declare const ccxt: {
|
|
|
450
446
|
btcalpha: typeof btcalpha;
|
|
451
447
|
btcbox: typeof btcbox;
|
|
452
448
|
btcmarkets: typeof btcmarkets;
|
|
453
|
-
btctradeua: typeof btctradeua;
|
|
454
449
|
btcturk: typeof btcturk;
|
|
455
450
|
bybit: typeof bybit;
|
|
456
451
|
cex: typeof cex;
|
|
@@ -459,7 +454,6 @@ declare const ccxt: {
|
|
|
459
454
|
coinbasepro: typeof coinbasepro;
|
|
460
455
|
coincheck: typeof coincheck;
|
|
461
456
|
coinex: typeof coinex;
|
|
462
|
-
coinfalcon: typeof coinfalcon;
|
|
463
457
|
coinlist: typeof coinlist;
|
|
464
458
|
coinmate: typeof coinmate;
|
|
465
459
|
coinone: typeof coinone;
|
|
@@ -522,5 +516,5 @@ declare const ccxt: {
|
|
|
522
516
|
zaif: typeof zaif;
|
|
523
517
|
zonda: typeof zonda;
|
|
524
518
|
} & typeof functions & typeof errors;
|
|
525
|
-
export { version, Exchange, exchanges, pro, Precise, functions, 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, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets,
|
|
519
|
+
export { version, Exchange, exchanges, pro, Precise, functions, 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, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
|
|
526
520
|
export default ccxt;
|