ccxt 4.3.54 → 4.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +1 -1
- package/dist/cjs/src/alpaca.js +1 -1
- package/dist/cjs/src/ascendex.js +6 -4
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +6 -6
- package/dist/cjs/src/bingx.js +3 -3
- package/dist/cjs/src/bit2c.js +1 -1
- package/dist/cjs/src/bitbank.js +1 -1
- package/dist/cjs/src/bitbns.js +1 -1
- package/dist/cjs/src/bitfinex.js +1 -1
- package/dist/cjs/src/bitfinex2.js +1 -1
- package/dist/cjs/src/bitflyer.js +1 -1
- package/dist/cjs/src/bitget.js +2 -2
- package/dist/cjs/src/bithumb.js +1 -1
- package/dist/cjs/src/bitmart.js +3 -3
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitopro.js +1 -1
- package/dist/cjs/src/bitrue.js +1 -1
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitstamp.js +1 -1
- package/dist/cjs/src/bitteam.js +1 -1
- package/dist/cjs/src/bitvavo.js +2 -2
- package/dist/cjs/src/bl3p.js +1 -1
- package/dist/cjs/src/blockchaincom.js +28 -28
- package/dist/cjs/src/blofin.js +1 -1
- package/dist/cjs/src/btcalpha.js +4 -12
- package/dist/cjs/src/btcbox.js +1 -1
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bybit.js +2 -2
- package/dist/cjs/src/cex.js +2 -2
- package/dist/cjs/src/coinbase.js +33 -33
- package/dist/cjs/src/coinbaseexchange.js +1 -1
- package/dist/cjs/src/coinbaseinternational.js +1 -1
- package/dist/cjs/src/coincheck.js +1 -1
- package/dist/cjs/src/coinex.js +2 -2
- package/dist/cjs/src/coinlist.js +2 -2
- package/dist/cjs/src/coinmate.js +1 -1
- package/dist/cjs/src/coinmetro.js +1 -1
- package/dist/cjs/src/coinone.js +1 -1
- package/dist/cjs/src/coinsph.js +1 -1
- package/dist/cjs/src/coinspot.js +1 -1
- package/dist/cjs/src/cryptocom.js +1 -1
- package/dist/cjs/src/currencycom.js +1 -1
- package/dist/cjs/src/delta.js +2 -2
- package/dist/cjs/src/deribit.js +4 -4
- package/dist/cjs/src/digifinex.js +2 -2
- package/dist/cjs/src/exmo.js +2 -2
- package/dist/cjs/src/gate.js +2 -2
- package/dist/cjs/src/gemini.js +1 -1
- package/dist/cjs/src/hitbtc.js +1 -1
- package/dist/cjs/src/hollaex.js +1 -1
- package/dist/cjs/src/htx.js +3 -3
- package/dist/cjs/src/huobijp.js +1 -1
- package/dist/cjs/src/hyperliquid.js +2 -2
- package/dist/cjs/src/idex.js +1 -1
- package/dist/cjs/src/independentreserve.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/kraken.js +2 -2
- package/dist/cjs/src/kucoin.js +136 -47
- 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/lbank.js +1 -1
- package/dist/cjs/src/luno.js +1 -1
- package/dist/cjs/src/lykke.js +1 -1
- package/dist/cjs/src/mercado.js +1 -1
- package/dist/cjs/src/mexc.js +1 -1
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +1 -1
- package/dist/cjs/src/oceanex.js +1 -1
- package/dist/cjs/src/okcoin.js +1 -1
- package/dist/cjs/src/okx.js +3 -3
- package/dist/cjs/src/onetrading.js +1 -1
- package/dist/cjs/src/oxfun.js +2 -2
- package/dist/cjs/src/p2b.js +1 -1
- package/dist/cjs/src/paymium.js +1 -1
- package/dist/cjs/src/phemex.js +2 -2
- package/dist/cjs/src/poloniex.js +4 -3
- package/dist/cjs/src/poloniexfutures.js +1 -1
- package/dist/cjs/src/pro/binance.js +2 -2
- package/dist/cjs/src/pro/bitvavo.js +2 -2
- package/dist/cjs/src/pro/bybit.js +2 -2
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbase.js +23 -1
- package/dist/cjs/src/pro/cryptocom.js +1 -1
- package/dist/cjs/src/pro/gate.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +1 -1
- package/dist/cjs/src/pro/kraken.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +2 -2
- package/dist/cjs/src/pro/okx.js +2 -2
- package/dist/cjs/src/pro/oxfun.js +2 -2
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/vertex.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/tradeogre.js +1 -1
- package/dist/cjs/src/upbit.js +1 -1
- package/dist/cjs/src/vertex.js +2 -2
- package/dist/cjs/src/wavesexchange.js +1 -1
- package/dist/cjs/src/wazirx.js +1 -1
- package/dist/cjs/src/whitebit.js +2 -2
- package/dist/cjs/src/woo.js +5 -5
- package/dist/cjs/src/woofipro.js +3 -3
- package/dist/cjs/src/yobit.js +1 -1
- package/dist/cjs/src/zaif.js +1 -1
- package/dist/cjs/src/zonda.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/kucoin.d.ts +3 -0
- package/js/src/abstract/kucoinfutures.d.ts +3 -0
- package/js/src/ace.js +1 -1
- package/js/src/alpaca.js +1 -1
- package/js/src/ascendex.d.ts +1 -1
- package/js/src/ascendex.js +6 -4
- package/js/src/base/types.d.ts +4 -0
- package/js/src/bigone.js +1 -1
- package/js/src/binance.js +6 -6
- package/js/src/bingx.js +3 -3
- package/js/src/bit2c.js +1 -1
- package/js/src/bitbank.js +1 -1
- package/js/src/bitbns.js +1 -1
- package/js/src/bitfinex.js +1 -1
- package/js/src/bitfinex2.js +1 -1
- package/js/src/bitflyer.js +1 -1
- package/js/src/bitget.js +2 -2
- package/js/src/bithumb.js +1 -1
- package/js/src/bitmart.js +3 -3
- package/js/src/bitmex.js +1 -1
- package/js/src/bitopro.js +1 -1
- package/js/src/bitrue.js +1 -1
- package/js/src/bitso.js +1 -1
- package/js/src/bitstamp.js +1 -1
- package/js/src/bitteam.js +1 -1
- package/js/src/bitvavo.js +2 -2
- package/js/src/bl3p.js +1 -1
- package/js/src/blockchaincom.js +28 -28
- package/js/src/blofin.js +1 -1
- package/js/src/btcalpha.js +5 -13
- package/js/src/btcbox.js +1 -1
- package/js/src/btcmarkets.js +1 -1
- package/js/src/btcturk.js +1 -1
- package/js/src/bybit.js +2 -2
- package/js/src/cex.js +2 -2
- package/js/src/coinbase.js +33 -33
- package/js/src/coinbaseexchange.js +1 -1
- package/js/src/coinbaseinternational.js +1 -1
- package/js/src/coincheck.js +1 -1
- package/js/src/coinex.js +2 -2
- package/js/src/coinlist.js +2 -2
- package/js/src/coinmate.js +1 -1
- package/js/src/coinmetro.js +1 -1
- package/js/src/coinone.js +1 -1
- package/js/src/coinsph.js +1 -1
- package/js/src/coinspot.js +1 -1
- package/js/src/cryptocom.js +1 -1
- package/js/src/currencycom.js +1 -1
- package/js/src/delta.js +2 -2
- package/js/src/deribit.js +4 -4
- package/js/src/digifinex.js +2 -2
- package/js/src/exmo.js +2 -2
- package/js/src/gate.js +2 -2
- package/js/src/gemini.js +1 -1
- package/js/src/hitbtc.js +1 -1
- package/js/src/hollaex.js +1 -1
- package/js/src/htx.js +3 -3
- package/js/src/huobijp.js +1 -1
- package/js/src/hyperliquid.js +2 -2
- package/js/src/idex.js +1 -1
- package/js/src/independentreserve.js +1 -1
- package/js/src/indodax.js +1 -1
- package/js/src/kraken.js +2 -2
- package/js/src/kucoin.d.ts +1 -0
- package/js/src/kucoin.js +136 -47
- package/js/src/kucoinfutures.js +1 -1
- package/js/src/kuna.js +1 -1
- package/js/src/latoken.js +1 -1
- package/js/src/lbank.js +1 -1
- package/js/src/luno.js +1 -1
- package/js/src/lykke.js +1 -1
- package/js/src/mercado.js +1 -1
- package/js/src/mexc.js +1 -1
- package/js/src/ndax.js +1 -1
- package/js/src/novadax.js +1 -1
- package/js/src/oceanex.js +1 -1
- package/js/src/okcoin.js +1 -1
- package/js/src/okx.js +3 -3
- package/js/src/onetrading.js +1 -1
- package/js/src/oxfun.js +2 -2
- package/js/src/p2b.js +1 -1
- package/js/src/paymium.js +1 -1
- package/js/src/phemex.js +2 -2
- package/js/src/poloniex.js +4 -3
- package/js/src/poloniexfutures.js +1 -1
- package/js/src/pro/binance.js +2 -2
- package/js/src/pro/bitvavo.js +2 -2
- package/js/src/pro/bybit.js +2 -2
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbase.d.ts +1 -0
- package/js/src/pro/coinbase.js +23 -1
- package/js/src/pro/cryptocom.js +1 -1
- package/js/src/pro/gate.js +2 -2
- package/js/src/pro/hitbtc.js +1 -1
- package/js/src/pro/kraken.js +2 -2
- package/js/src/pro/kucoin.js +2 -2
- package/js/src/pro/okx.js +2 -2
- package/js/src/pro/oxfun.js +2 -2
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/vertex.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/tradeogre.js +1 -1
- package/js/src/upbit.js +1 -1
- package/js/src/vertex.js +2 -2
- package/js/src/wavesexchange.js +1 -1
- package/js/src/wazirx.js +1 -1
- package/js/src/whitebit.js +2 -2
- package/js/src/woo.js +5 -5
- package/js/src/woofipro.js +3 -3
- package/js/src/yobit.js +1 -1
- package/js/src/zaif.js +1 -1
- package/js/src/zonda.js +1 -1
- package/package.json +54 -52
package/js/src/pro/cex.js
CHANGED
|
@@ -674,7 +674,7 @@ export default class cex extends cexRest {
|
|
|
674
674
|
// }
|
|
675
675
|
// }
|
|
676
676
|
// }
|
|
677
|
-
//
|
|
677
|
+
// fulfilledOrder
|
|
678
678
|
// {
|
|
679
679
|
// "e": "order",
|
|
680
680
|
// "data": {
|
|
@@ -1258,7 +1258,7 @@ export default class cex extends cexRest {
|
|
|
1258
1258
|
* @param {string} type 'market' or 'limit'
|
|
1259
1259
|
* @param {string} side 'buy' or 'sell'
|
|
1260
1260
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1261
|
-
* @param {float} price the price at which the order is to be
|
|
1261
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1262
1262
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1263
1263
|
* @param {boolean} [params.maker_only] Optional, maker only places an order only if offers best sell (<= max) or buy(>= max) price for this pair, if not order placement will be rejected with an error - "Order is not maker"
|
|
1264
1264
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
@@ -1296,7 +1296,7 @@ export default class cex extends cexRest {
|
|
|
1296
1296
|
* @param {string} type 'market' or 'limit'
|
|
1297
1297
|
* @param {string} side 'buy' or 'sell'
|
|
1298
1298
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1299
|
-
* @param {float|undefined} [price] the price at which the order is to be
|
|
1299
|
+
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1300
1300
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
1301
1301
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
|
|
1302
1302
|
*/
|
package/js/src/pro/coinbase.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export default class coinbase extends coinbaseRest {
|
|
|
20
20
|
handleOrderBookHelper(orderbook: any, updates: any): void;
|
|
21
21
|
handleOrderBook(client: any, message: any): void;
|
|
22
22
|
handleSubscriptionStatus(client: any, message: any): any;
|
|
23
|
+
handleHeartbeats(client: any, message: any): any;
|
|
23
24
|
handleMessage(client: any, message: any): void;
|
|
24
25
|
}
|
package/js/src/pro/coinbase.js
CHANGED
|
@@ -710,6 +710,25 @@ export default class coinbase extends coinbaseRest {
|
|
|
710
710
|
//
|
|
711
711
|
return message;
|
|
712
712
|
}
|
|
713
|
+
handleHeartbeats(client, message) {
|
|
714
|
+
// although the subscription takes a product_ids parameter (i.e. symbol),
|
|
715
|
+
// there is no (clear) way of mapping the message back to the symbol.
|
|
716
|
+
//
|
|
717
|
+
// {
|
|
718
|
+
// "channel": "heartbeats",
|
|
719
|
+
// "client_id": "",
|
|
720
|
+
// "timestamp": "2023-06-23T20:31:26.122969572Z",
|
|
721
|
+
// "sequence_num": 0,
|
|
722
|
+
// "events": [
|
|
723
|
+
// {
|
|
724
|
+
// "current_time": "2023-06-23 20:31:56.121961769 +0000 UTC m=+91717.525857105",
|
|
725
|
+
// "heartbeat_counter": "3049"
|
|
726
|
+
// }
|
|
727
|
+
// ]
|
|
728
|
+
// }
|
|
729
|
+
//
|
|
730
|
+
return message;
|
|
731
|
+
}
|
|
713
732
|
handleMessage(client, message) {
|
|
714
733
|
const channel = this.safeString(message, 'channel');
|
|
715
734
|
const methods = {
|
|
@@ -719,6 +738,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
719
738
|
'market_trades': this.handleTrade,
|
|
720
739
|
'user': this.handleOrder,
|
|
721
740
|
'l2_data': this.handleOrderBook,
|
|
741
|
+
'heartbeats': this.handleHeartbeats,
|
|
722
742
|
};
|
|
723
743
|
const type = this.safeString(message, 'type');
|
|
724
744
|
if (type === 'error') {
|
|
@@ -726,6 +746,8 @@ export default class coinbase extends coinbaseRest {
|
|
|
726
746
|
throw new ExchangeError(errorMessage);
|
|
727
747
|
}
|
|
728
748
|
const method = this.safeValue(methods, channel);
|
|
729
|
-
method
|
|
749
|
+
if (method) {
|
|
750
|
+
method.call(this, client, message);
|
|
751
|
+
}
|
|
730
752
|
}
|
|
731
753
|
}
|
package/js/src/pro/cryptocom.js
CHANGED
|
@@ -738,7 +738,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
738
738
|
* @param {string} type 'market' or 'limit'
|
|
739
739
|
* @param {string} side 'buy' or 'sell'
|
|
740
740
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
741
|
-
* @param {float} [price] the price at which the order is to be
|
|
741
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
742
742
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
743
743
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
744
744
|
*/
|
package/js/src/pro/gate.js
CHANGED
|
@@ -132,7 +132,7 @@ export default class gate extends gateRest {
|
|
|
132
132
|
* @param {string} type 'limit' or 'market' *"market" is contract only*
|
|
133
133
|
* @param {string} side 'buy' or 'sell'
|
|
134
134
|
* @param {float} amount the amount of currency to trade
|
|
135
|
-
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be
|
|
135
|
+
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fulfilled at in units of the quote currency
|
|
136
136
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
137
137
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
138
138
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
@@ -252,7 +252,7 @@ export default class gate extends gateRest {
|
|
|
252
252
|
* @param {string} type 'market' or 'limit'
|
|
253
253
|
* @param {string} side 'buy' or 'sell'
|
|
254
254
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
255
|
-
* @param {float} [price] the price at which the order is to be
|
|
255
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
256
256
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
257
257
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
258
258
|
*/
|
package/js/src/pro/hitbtc.js
CHANGED
|
@@ -1008,7 +1008,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
1008
1008
|
* @param {string} type 'market' or 'limit'
|
|
1009
1009
|
* @param {string} side 'buy' or 'sell'
|
|
1010
1010
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1011
|
-
* @param {float} [price] the price at which the order is to be
|
|
1011
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1012
1012
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1013
1013
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported for spot-margin, swap supports both, default is 'cross'
|
|
1014
1014
|
* @param {bool} [params.margin] true for creating a margin order
|
package/js/src/pro/kraken.js
CHANGED
|
@@ -118,7 +118,7 @@ export default class kraken extends krakenRest {
|
|
|
118
118
|
* @param {string} type 'market' or 'limit'
|
|
119
119
|
* @param {string} side 'buy' or 'sell'
|
|
120
120
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
121
|
-
* @param {float} [price] the price at which the order is to be
|
|
121
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
122
122
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123
123
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
124
124
|
*/
|
|
@@ -175,7 +175,7 @@ export default class kraken extends krakenRest {
|
|
|
175
175
|
* @param {string} type 'market' or 'limit'
|
|
176
176
|
* @param {string} side 'buy' or 'sell'
|
|
177
177
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
178
|
-
* @param {float} [price] the price at which the order is to be
|
|
178
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
179
179
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
180
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
181
181
|
*/
|
package/js/src/pro/kucoin.js
CHANGED
|
@@ -1076,8 +1076,8 @@ export default class kucoin extends kucoinRest {
|
|
|
1076
1076
|
const type = this.safeString(trade, 'orderType');
|
|
1077
1077
|
const side = this.safeString(trade, 'side');
|
|
1078
1078
|
const tradeId = this.safeString(trade, 'tradeId');
|
|
1079
|
-
const price = this.safeString(trade, '
|
|
1080
|
-
const amount = this.safeString(trade, '
|
|
1079
|
+
const price = this.safeString(trade, 'matchPrice');
|
|
1080
|
+
const amount = this.safeString(trade, 'matchSize');
|
|
1081
1081
|
const order = this.safeString(trade, 'orderId');
|
|
1082
1082
|
const timestamp = this.safeIntegerProduct(trade, 'ts', 0.000001);
|
|
1083
1083
|
return this.safeTrade({
|
package/js/src/pro/okx.js
CHANGED
|
@@ -1632,7 +1632,7 @@ export default class okx extends okxRest {
|
|
|
1632
1632
|
* @param {string} type 'market' or 'limit'
|
|
1633
1633
|
* @param {string} side 'buy' or 'sell'
|
|
1634
1634
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1635
|
-
* @param {float|undefined} [price] the price at which the order is to be
|
|
1635
|
+
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1636
1636
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1637
1637
|
* @param {boolean} params.test test order, default false
|
|
1638
1638
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1703,7 +1703,7 @@ export default class okx extends okxRest {
|
|
|
1703
1703
|
* @param {string} type 'market' or 'limit'
|
|
1704
1704
|
* @param {string} side 'buy' or 'sell'
|
|
1705
1705
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1706
|
-
* @param {float|undefined} [price] the price at which the order is to be
|
|
1706
|
+
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1707
1707
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1708
1708
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1709
1709
|
*/
|
package/js/src/pro/oxfun.js
CHANGED
|
@@ -769,7 +769,7 @@ export default class oxfun extends oxfunRest {
|
|
|
769
769
|
* @param {string} type 'market', 'limit', 'STOP_LIMIT' or 'STOP_MARKET'
|
|
770
770
|
* @param {string} side 'buy' or 'sell'
|
|
771
771
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
772
|
-
* @param {float} [price] the price at which the order is to be
|
|
772
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
773
773
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
774
774
|
* @param {int} [params.clientOrderId] a unique id for the order
|
|
775
775
|
* @param {int} [params.timestamp] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
|
@@ -811,7 +811,7 @@ export default class oxfun extends oxfunRest {
|
|
|
811
811
|
* @param {string} type 'market' or 'limit'
|
|
812
812
|
* @param {string} side 'buy' or 'sell'
|
|
813
813
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
814
|
-
* @param {float|undefined} [price] the price at which the order is to be
|
|
814
|
+
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
815
815
|
* @param {int} [params.timestamp] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
|
816
816
|
* @param {int} [params.recvWindow] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
817
817
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
package/js/src/pro/poloniex.js
CHANGED
|
@@ -193,7 +193,7 @@ export default class poloniex extends poloniexRest {
|
|
|
193
193
|
* @param {string} type 'market' or 'limit'
|
|
194
194
|
* @param {string} side 'buy' or 'sell'
|
|
195
195
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
196
|
-
* @param {float} [price] the price at which the order is to be
|
|
196
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
197
197
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
198
198
|
* @param {string} [params.timeInForce] GTC (default), IOC, FOK
|
|
199
199
|
* @param {string} [params.clientOrderId] Maximum 64-character length.*
|
package/js/src/pro/vertex.js
CHANGED
|
@@ -260,7 +260,7 @@ export default class vertex extends vertexRest {
|
|
|
260
260
|
const price = this.convertFromX18(this.safeString(trade, 'price'));
|
|
261
261
|
const amount = this.convertFromX18(this.safeString2(trade, 'taker_qty', 'filled_qty'));
|
|
262
262
|
const cost = Precise.stringMul(price, amount);
|
|
263
|
-
const timestamp =
|
|
263
|
+
const timestamp = this.safeIntegerProduct(trade, 'timestamp', 0.000001);
|
|
264
264
|
let takerOrMaker = undefined;
|
|
265
265
|
const isTaker = this.safeBool(trade, 'is_taker');
|
|
266
266
|
if (isTaker !== undefined) {
|
package/js/src/probit.js
CHANGED
|
@@ -1187,7 +1187,7 @@ export default class probit extends Exchange {
|
|
|
1187
1187
|
* @param {string} type 'market' or 'limit'
|
|
1188
1188
|
* @param {string} side 'buy' or 'sell'
|
|
1189
1189
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1190
|
-
* @param {float} [price] the price at which the order is to be
|
|
1190
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1191
1191
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1192
1192
|
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
1193
1193
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/timex.js
CHANGED
|
@@ -748,7 +748,7 @@ export default class timex extends Exchange {
|
|
|
748
748
|
* @param {string} type 'market' or 'limit'
|
|
749
749
|
* @param {string} side 'buy' or 'sell'
|
|
750
750
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
751
|
-
* @param {float} [price] the price at which the order is to be
|
|
751
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
752
752
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
753
753
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
754
754
|
*/
|
package/js/src/tokocrypto.js
CHANGED
|
@@ -1600,7 +1600,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1600
1600
|
* @param {string} type 'market' or 'limit'
|
|
1601
1601
|
* @param {string} side 'buy' or 'sell'
|
|
1602
1602
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1603
|
-
* @param {float} [price] the price at which the order is to be
|
|
1603
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1604
1604
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1605
1605
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1606
1606
|
* @param {float} [params.cost] for spot market buy orders, the quote quantity that can be used as an alternative for the amount
|
package/js/src/tradeogre.js
CHANGED
|
@@ -455,7 +455,7 @@ export default class tradeogre extends Exchange {
|
|
|
455
455
|
* @param {string} type must be 'limit'
|
|
456
456
|
* @param {string} side 'buy' or 'sell'
|
|
457
457
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
458
|
-
* @param {float} price the price at which the order is to be
|
|
458
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency
|
|
459
459
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
460
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
461
461
|
*/
|
package/js/src/upbit.js
CHANGED
|
@@ -1037,7 +1037,7 @@ export default class upbit extends Exchange {
|
|
|
1037
1037
|
* @param {string} type 'market' or 'limit'
|
|
1038
1038
|
* @param {string} side 'buy' or 'sell'
|
|
1039
1039
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1040
|
-
* @param {float} [price] the price at which the order is to be
|
|
1040
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1041
1041
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1042
1042
|
* @param {float} [params.cost] for market buy orders, the quote quantity that can be used as an alternative for the amount
|
|
1043
1043
|
* @param {string} [params.timeInForce] 'IOC' or 'FOK'
|
package/js/src/vertex.js
CHANGED
|
@@ -1625,7 +1625,7 @@ export default class vertex extends Exchange {
|
|
|
1625
1625
|
* @param {string} type 'market' or 'limit'
|
|
1626
1626
|
* @param {string} side 'buy' or 'sell'
|
|
1627
1627
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1628
|
-
* @param {float} [price] the price at which the order is to be
|
|
1628
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1629
1629
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1630
1630
|
* @param {string} [params.timeInForce] ioc, fok
|
|
1631
1631
|
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
@@ -1729,7 +1729,7 @@ export default class vertex extends Exchange {
|
|
|
1729
1729
|
* @param {string} type 'market' or 'limit'
|
|
1730
1730
|
* @param {string} side 'buy' or 'sell'
|
|
1731
1731
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1732
|
-
* @param {float} [price] the price at which the order is to be
|
|
1732
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1733
1733
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1734
1734
|
* @param {string} [params.timeInForce] ioc, fok
|
|
1735
1735
|
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
package/js/src/wavesexchange.js
CHANGED
|
@@ -1283,7 +1283,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1283
1283
|
* @param {string} type 'market' or 'limit'
|
|
1284
1284
|
* @param {string} side 'buy' or 'sell'
|
|
1285
1285
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1286
|
-
* @param {float} [price] the price at which the order is to be
|
|
1286
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1287
1287
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1288
1288
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1289
1289
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/wazirx.js
CHANGED
|
@@ -849,7 +849,7 @@ export default class wazirx extends Exchange {
|
|
|
849
849
|
* @param {string} type 'market' or 'limit'
|
|
850
850
|
* @param {string} side 'buy' or 'sell'
|
|
851
851
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
852
|
-
* @param {float} [price] the price at which the order is to be
|
|
852
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
853
853
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
854
854
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
855
855
|
*/
|
package/js/src/whitebit.js
CHANGED
|
@@ -1244,7 +1244,7 @@ export default class whitebit extends Exchange {
|
|
|
1244
1244
|
* @param {string} type 'market' or 'limit'
|
|
1245
1245
|
* @param {string} side 'buy' or 'sell'
|
|
1246
1246
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1247
|
-
* @param {float} [price] the price at which the order is to be
|
|
1247
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1248
1248
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1249
1249
|
* @param {float} [params.cost] *market orders only* the cost of the order in units of the base currency
|
|
1250
1250
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1349,7 +1349,7 @@ export default class whitebit extends Exchange {
|
|
|
1349
1349
|
* @param {string} type 'market' or 'limit'
|
|
1350
1350
|
* @param {string} side 'buy' or 'sell'
|
|
1351
1351
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1352
|
-
* @param {float} price the price at which the order is to be
|
|
1352
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1353
1353
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1354
1354
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1355
1355
|
*/
|
package/js/src/woo.js
CHANGED
|
@@ -936,7 +936,7 @@ export default class woo extends Exchange {
|
|
|
936
936
|
* @param {string} type 'market' or 'limit'
|
|
937
937
|
* @param {string} side 'buy' or 'sell'
|
|
938
938
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
939
|
-
* @param {float} [price] the price at which the order is to be
|
|
939
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
940
940
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
941
941
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
942
942
|
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
@@ -1135,7 +1135,7 @@ export default class woo extends Exchange {
|
|
|
1135
1135
|
* @param {string} type 'market' or 'limit'
|
|
1136
1136
|
* @param {string} side 'buy' or 'sell'
|
|
1137
1137
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1138
|
-
* @param {float} [price] the price at which the order is to be
|
|
1138
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1139
1139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1140
1140
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
1141
1141
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
@@ -1616,8 +1616,8 @@ export default class woo extends Exchange {
|
|
|
1616
1616
|
const side = this.safeStringLower(order, 'side');
|
|
1617
1617
|
const filled = this.omitZero(this.safeValue2(order, 'executed', 'totalExecutedQuantity'));
|
|
1618
1618
|
const average = this.omitZero(this.safeString2(order, 'average_executed_price', 'averageExecutedPrice'));
|
|
1619
|
-
const remaining = Precise.stringSub(cost, filled);
|
|
1620
|
-
const fee = this.
|
|
1619
|
+
// const remaining = Precise.stringSub (cost, filled);
|
|
1620
|
+
const fee = this.safeNumber2(order, 'total_fee', 'totalFee');
|
|
1621
1621
|
const feeCurrency = this.safeString2(order, 'fee_asset', 'feeAsset');
|
|
1622
1622
|
const transactions = this.safeValue(order, 'Transactions');
|
|
1623
1623
|
const stopPrice = this.safeNumber(order, 'triggerPrice');
|
|
@@ -1658,7 +1658,7 @@ export default class woo extends Exchange {
|
|
|
1658
1658
|
'average': average,
|
|
1659
1659
|
'amount': amount,
|
|
1660
1660
|
'filled': filled,
|
|
1661
|
-
'remaining':
|
|
1661
|
+
'remaining': undefined,
|
|
1662
1662
|
'cost': cost,
|
|
1663
1663
|
'trades': transactions,
|
|
1664
1664
|
'fee': {
|
package/js/src/woofipro.js
CHANGED
|
@@ -1235,7 +1235,7 @@ export default class woofipro extends Exchange {
|
|
|
1235
1235
|
* @param {string} type 'market' or 'limit'
|
|
1236
1236
|
* @param {string} side 'buy' or 'sell'
|
|
1237
1237
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1238
|
-
* @param {float} [price] the price that the order is to be
|
|
1238
|
+
* @param {float} [price] the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1239
1239
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1240
1240
|
* @returns {object} request to be sent to the exchange
|
|
1241
1241
|
*/
|
|
@@ -1337,7 +1337,7 @@ export default class woofipro extends Exchange {
|
|
|
1337
1337
|
* @param {string} type 'market' or 'limit'
|
|
1338
1338
|
* @param {string} side 'buy' or 'sell'
|
|
1339
1339
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1340
|
-
* @param {float} [price] the price at which the order is to be
|
|
1340
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1341
1341
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1342
1342
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
1343
1343
|
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
@@ -1462,7 +1462,7 @@ export default class woofipro extends Exchange {
|
|
|
1462
1462
|
* @param {string} type 'market' or 'limit'
|
|
1463
1463
|
* @param {string} side 'buy' or 'sell'
|
|
1464
1464
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1465
|
-
* @param {float} [price] the price at which the order is to be
|
|
1465
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1466
1466
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1467
1467
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
1468
1468
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
package/js/src/yobit.js
CHANGED
|
@@ -793,7 +793,7 @@ export default class yobit extends Exchange {
|
|
|
793
793
|
* @param {string} type must be 'limit'
|
|
794
794
|
* @param {string} side 'buy' or 'sell'
|
|
795
795
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
796
|
-
* @param {float} [price] the price at which the order is to be
|
|
796
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
797
797
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
798
798
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
799
799
|
*/
|
package/js/src/zaif.js
CHANGED
|
@@ -444,7 +444,7 @@ export default class zaif extends Exchange {
|
|
|
444
444
|
* @param {string} type must be 'limit'
|
|
445
445
|
* @param {string} side 'buy' or 'sell'
|
|
446
446
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
447
|
-
* @param {float} [price] the price at which the order is to be
|
|
447
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
448
448
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
449
449
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
450
450
|
*/
|
package/js/src/zonda.js
CHANGED
|
@@ -1358,7 +1358,7 @@ export default class zonda extends Exchange {
|
|
|
1358
1358
|
* @param {string} type 'market' or 'limit'
|
|
1359
1359
|
* @param {string} side 'buy' or 'sell'
|
|
1360
1360
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1361
|
-
* @param {float} [price] the price at which the order is to be
|
|
1361
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1362
1362
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1363
1363
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1364
1364
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccxt",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.55",
|
|
4
4
|
"description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
|
|
5
5
|
"unpkg": "dist/ccxt.browser.min.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"readme": "README.md",
|
|
27
27
|
"scripts": {
|
|
28
28
|
"instrument": "nyc instrument js/ jsInstrumented/",
|
|
29
|
-
"nyc-coverage": "nyc --reporter=html --reporter=lcov --exclude='js/src/pro/**' --exclude='js/src/base/**' --exclude='js/src/test/**' --exclude='js/src/abstract/**' --exclude='js/src/static_dependencies' node jsInstrumented/src/test/
|
|
29
|
+
"nyc-coverage": "nyc --reporter=html --reporter=lcov --exclude='js/src/pro/**' --exclude='js/src/base/**' --exclude='js/src/test/**' --exclude='js/src/abstract/**' --exclude='js/src/static_dependencies' node jsInstrumented/src/test/tests.init.js --requestTests --responseTests",
|
|
30
30
|
"coverage-js": "npm run instrument && npm run nyc-coverage && rm -rf jsInstrumented",
|
|
31
31
|
"docker": "docker-compose run --rm ccxt",
|
|
32
32
|
"fixTSBug": "node build/fixTSBug",
|
|
@@ -48,31 +48,6 @@
|
|
|
48
48
|
"pre-transpile": "npm run export-exchanges && npm run vss && npm run tsBuild && npm run emitAPI && npm run validate-types && npm run tsBuildExamples && npm run copy-python-files && npm run check-js-syntax && npm run bundle",
|
|
49
49
|
"pre-transpile-pr": "npm run export-exchanges && npm run tsBuild && npm run emitAPI && npm run check-js-syntax",
|
|
50
50
|
"post-transpile": "npm run check-python-syntax && npm run check-php-syntax",
|
|
51
|
-
"test-ws": "npm run build && node run-tests --ws --useProxy",
|
|
52
|
-
"test": "npm run build && npm run commonjs-test && npm run static-tests && node run-tests --useProxy",
|
|
53
|
-
"fast-test": "npm run commonjs-test && node run-tests --js --useProxy",
|
|
54
|
-
"commonjs-test": "node ./utils/test-commonjs.cjs",
|
|
55
|
-
"package-test": "./utils/package-test.sh",
|
|
56
|
-
"fast-test-ws": "node run-tests --ws --js",
|
|
57
|
-
"test-base": "npm run test-js-base && npm run test-python-base && npm run test-php-base && npm run test-cs-base && npm run id-tests && npm run static-tests",
|
|
58
|
-
"test-base-ws": "npm run test-js-base-ws && npm run test-python-base-ws && npm run test-php-base-ws && npm run test-cs-base-ws",
|
|
59
|
-
"test-js": "npm run commonjs-test && node run-tests --js --useProxy",
|
|
60
|
-
"test-js-ws": "node run-tests --ws --js --useProxy",
|
|
61
|
-
"test-py": "node run-tests --python --useProxy",
|
|
62
|
-
"test-py-ws": "node run-tests --ws --python --useProxy",
|
|
63
|
-
"test-php": "node run-tests --php --useProxy",
|
|
64
|
-
"test-php-ws": "node run-tests --ws --php --useProxy",
|
|
65
|
-
"test-csharp": "npm run commonjs-test && node run-tests --csharp --useProxy",
|
|
66
|
-
"test-csharp-ws": "node run-tests --ws --csharp --useProxy",
|
|
67
|
-
"test-js-base": "node ./js/src/test/base/test.base.js",
|
|
68
|
-
"test-js-base-ws": "npm run test-js-cache && npm run test-js-orderbook",
|
|
69
|
-
"test-python-base": "python3 python/ccxt/test/base/test_number.py && python3 python/ccxt/test/base/test_crypto.py",
|
|
70
|
-
"test-python-base-ws": "npm run test-python-cache && npm run test-python-orderbook",
|
|
71
|
-
"test-php-base": "php -f php/test/base/test_number.php && php -f php/test/base/test_crypto.php",
|
|
72
|
-
"test-php-base-ws": "npm run test-php-cache && npm run test-php-orderbook",
|
|
73
|
-
"test-cs-base": "dotnet run --project cs/tests/tests.csproj --base",
|
|
74
|
-
"test-cs-base-ws": "dotnet run --project cs/tests/tests.csproj --cache && dotnet run --project cs/tests/tests.csproj --orderbook",
|
|
75
|
-
"test-freshness": "tsx ./utils/test-freshness.ts",
|
|
76
51
|
"cli.js": "node ./examples/js/cli.js",
|
|
77
52
|
"cli.py": "python3 ./examples/py/cli.py",
|
|
78
53
|
"cli.php": "php ./examples/php/cli.php",
|
|
@@ -94,18 +69,6 @@
|
|
|
94
69
|
"fast-force-transpileRest": "node build/transpile.js --multiprocess --force",
|
|
95
70
|
"force-transpileWs": "node build/transpileWS --force",
|
|
96
71
|
"fast-force-transpileWs": "node build/transpileWS.js --multiprocess --force",
|
|
97
|
-
"test-js-cache": "node js/src/pro/test/base/test.Cache.js",
|
|
98
|
-
"test-js-orderbook": "node js/src/pro/test/base/test.OrderBook.js",
|
|
99
|
-
"test-python-future": "python python/ccxt/pro/test/base/test_future.py",
|
|
100
|
-
"test-python-close": "python python/ccxt/pro/test/base/test_close.py",
|
|
101
|
-
"test-python-cache": "python python/ccxt/pro/test/base/test_cache.py",
|
|
102
|
-
"test-python-orderbook": "python python/ccxt/pro/test/base/test_order_book.py",
|
|
103
|
-
"test-cs-cache": "dotnet run --project cs/tests/tests.csproj --cache",
|
|
104
|
-
"test-ws-php-base": "npm run test-php-cache && npm run test-php-orderbook",
|
|
105
|
-
"test-php-cache": "php -f php/pro/test/base/test_cache.php",
|
|
106
|
-
"test-php-orderbook": "php -f php/pro/test/base/test_order_book.php",
|
|
107
|
-
"test-cs-orderbook": "dotnet run --project cs/tests/tests.csproj --orderbook",
|
|
108
|
-
"test-ws-cs-base": "npm run test-cs-cache && npm run test-cs-orderbook",
|
|
109
72
|
"vss": "node build/vss",
|
|
110
73
|
"lint": "eslint \"ts/src/*.ts\" \"ts/src/base/Exchange.ts\" \"ts/src/pro/*.ts\" --cache --cache-location .cache/eslintcache --cache-strategy metadata",
|
|
111
74
|
"check-syntax": "npm run transpile && npm run check-js-syntax && npm run check-python-syntax && npm run check-php-syntax",
|
|
@@ -126,22 +89,61 @@
|
|
|
126
89
|
"copy-python-readme": "node build/copy README.md python/README.md",
|
|
127
90
|
"postinstall": "node postinstall.js",
|
|
128
91
|
"validate-types": "tsx build/validate-types.ts",
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
92
|
+
"live-tests": "node run-tests --useProxy",
|
|
93
|
+
"live-tests-rest": "npm run live-tests",
|
|
94
|
+
"live-tests-ws": "npm run live-tests -- --ws",
|
|
95
|
+
"live-tests-rest-ts": "npm run live-tests -- --ts",
|
|
96
|
+
"live-tests-ws-ts": "npm run live-tests -- --ts --ws",
|
|
97
|
+
"live-tests-rest-js": "npm run live-tests -- --js",
|
|
98
|
+
"live-tests-ws-js": "npm run live-tests -- --js --ws",
|
|
99
|
+
"live-tests-rest-py": "npm run live-tests -- --python",
|
|
100
|
+
"live-tests-ws-py": "npm run live-tests -- --python --ws",
|
|
101
|
+
"live-tests-rest-php": "npm run live-tests -- --php",
|
|
102
|
+
"live-tests-ws-php": "npm run live-tests -- --php --ws",
|
|
103
|
+
"live-tests-rest-csharp": "npm run live-tests -- --csharp",
|
|
104
|
+
"live-tests-ws-csharp": "npm run live-tests -- --csharp --ws",
|
|
105
|
+
"ti-ts": "tsx ts/src/test/tests.init.ts",
|
|
106
|
+
"ti-js": "node js/src/test/tests.init.js",
|
|
107
|
+
"ti-py": "python3 python/ccxt/test/tests_init.py",
|
|
108
|
+
"ti-php": "php php/test/tests_init.php",
|
|
109
|
+
"ti-cs": "dotnet run --project cs/tests/tests.csproj",
|
|
110
|
+
"request-ts": "npm run ti-ts -- --requestTests",
|
|
111
|
+
"request-js": "npm run ti-js -- --requestTests",
|
|
112
|
+
"request-py-async": "npm run ti-py -- --requestTests",
|
|
113
|
+
"request-py-sync": "npm run ti-py -- --requestTests --sync",
|
|
114
|
+
"request-py": "npm run request-py-sync && npm run request-py-async",
|
|
115
|
+
"request-php-async": "npm run ti-php -- --requestTests",
|
|
116
|
+
"request-php-sync": "npm run ti-php -- --requestTests --sync",
|
|
117
|
+
"request-php": "npm run request-php-sync && npm run request-php-async",
|
|
118
|
+
"request-cs": "npm run ti-cs -- --requestTests",
|
|
137
119
|
"request-tests": "npm run request-js && npm run request-py && npm run request-php && npm run request-cs",
|
|
120
|
+
"response-ts": "npm run ti-ts -- --responseTests",
|
|
121
|
+
"response-js": "npm run ti-js -- --responseTests",
|
|
122
|
+
"response-py": "npm run ti-py -- --responseTests",
|
|
123
|
+
"response-cs": "npm run ti-cs -- --responseTests",
|
|
124
|
+
"response-php": "npm run ti-php -- --responseTests",
|
|
138
125
|
"response-tests": "npm run response-js && npm run response-py && npm run response-php && npm run response-cs",
|
|
139
|
-
"
|
|
140
|
-
"id-tests-
|
|
141
|
-
"id-tests-
|
|
142
|
-
"id-tests-
|
|
143
|
-
"id-tests-cs": "dotnet run --project cs/tests/tests.csproj --idTests",
|
|
126
|
+
"id-tests-js": "npm run ti-js -- --idTests",
|
|
127
|
+
"id-tests-py": "npm run ti-py -- --idTests",
|
|
128
|
+
"id-tests-php": "npm run ti-php -- --idTests",
|
|
129
|
+
"id-tests-cs": "npm run ti-cs -- --idTests",
|
|
144
130
|
"id-tests": "npm run id-tests-js && npm run id-tests-py && npm run id-tests-php && npm run id-tests-cs",
|
|
131
|
+
"test-base-rest-ts": "npm run ti-ts -- --baseTests",
|
|
132
|
+
"test-base-rest-js": "npm run ti-js -- --baseTests",
|
|
133
|
+
"test-base-rest-py": "npm run ti-py -- --baseTests",
|
|
134
|
+
"test-base-rest-php": "npm run ti-php -- --baseTests",
|
|
135
|
+
"test-base-rest-cs": "npm run ti-cs -- --baseTests",
|
|
136
|
+
"test-base-ws-ts": "npm run ti-ts -- --baseTests --ws",
|
|
137
|
+
"test-base-ws-js": "npm run ti-js -- --baseTests --ws",
|
|
138
|
+
"test-base-ws-py": "npm run ti-py -- --baseTests --ws",
|
|
139
|
+
"test-base-ws-php": "npm run ti-php -- --baseTests --ws",
|
|
140
|
+
"test-base-ws-cs": "npm run ti-cs -- --baseTests --ws",
|
|
141
|
+
"test-base-rest": "npm run test-base-rest-js && npm run test-base-rest-py && npm run test-base-rest-php && npm run test-base-rest-cs",
|
|
142
|
+
"test-base-ws": "npm run test-base-ws-js && npm run test-base-ws-py && npm run test-base-ws-php && npm run test-base-ws-cs",
|
|
143
|
+
"test": "npm run build && npm run commonjs-test && npm run id-tests && npm run request-tests && npm run response-tests && npm run live-tests",
|
|
144
|
+
"commonjs-test": "node ./utils/test-commonjs.cjs",
|
|
145
|
+
"package-test": "./utils/package-test.sh",
|
|
146
|
+
"test-freshness": "tsx ./utils/test-freshness.ts",
|
|
145
147
|
"benchmark": "tsx examples/ts/benchmark.ts"
|
|
146
148
|
},
|
|
147
149
|
"types": "./js/ccxt.d.ts",
|