ccxt 4.1.96 → 4.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/build.sh +1 -1
- package/dist/ccxt.browser.js +1275 -1208
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +1 -1
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -5
- package/dist/cjs/src/base/errors.js +8 -1
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +29 -32
- package/dist/cjs/src/bingx.js +76 -3
- 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/bitget.js +13 -13
- 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/phemex.js +3 -3
- 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 +12 -6
- package/dist/cjs/src/pro/bitfinex.js +1 -1
- package/dist/cjs/src/pro/bitfinex2.js +1 -1
- package/dist/cjs/src/pro/bitmart.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/binance.js +29 -32
- package/js/src/bingx.d.ts +2 -0
- package/js/src/bingx.js +76 -3
- package/js/src/bitfinex.js +1 -1
- package/js/src/bitfinex2.js +1 -1
- package/js/src/bitflyer.js +2 -2
- package/js/src/bitget.js +13 -13
- 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/phemex.js +3 -3
- 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 +12 -6
- package/js/src/pro/bitfinex.js +1 -1
- package/js/src/pro/bitfinex2.js +1 -1
- package/js/src/pro/bitmart.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 +13 -13
- package/skip-tests.json +120 -71
- package/run-tests-ws.js +0 -290
|
@@ -785,7 +785,7 @@ class bybit extends bybit$1 {
|
|
|
785
785
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/execution
|
|
786
786
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
787
787
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
788
|
-
* @param {int} [limit] the maximum number of
|
|
788
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
789
789
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
790
790
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
791
791
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
@@ -1050,7 +1050,7 @@ class bybit extends bybit$1 {
|
|
|
1050
1050
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/order
|
|
1051
1051
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1052
1052
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1053
|
-
* @param {int} [limit] the maximum number of
|
|
1053
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1054
1054
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1055
1055
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
1056
1056
|
*/
|
|
@@ -267,7 +267,7 @@ class coinbase extends coinbase$1 {
|
|
|
267
267
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#user-channel
|
|
268
268
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
269
269
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
270
|
-
* @param {int} [limit] the maximum number of
|
|
270
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
271
271
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
272
272
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
273
273
|
*/
|
|
@@ -268,7 +268,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
268
268
|
* @description watches information on multiple orders made by the user
|
|
269
269
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
270
270
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
271
|
-
* @param {int} [limit] the maximum number of
|
|
271
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
272
272
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
273
273
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
274
274
|
*/
|
|
@@ -509,7 +509,7 @@ class deribit extends deribit$1 {
|
|
|
509
509
|
* @description watches information on multiple orders made by the user
|
|
510
510
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
511
511
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
512
|
-
* @param {int} [limit] the maximum number of
|
|
512
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
513
513
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
514
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
515
515
|
*/
|
package/dist/cjs/src/pro/gate.js
CHANGED
|
@@ -891,7 +891,7 @@ class gate extends gate$1 {
|
|
|
891
891
|
* @description watches information on multiple orders made by the user
|
|
892
892
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
893
893
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
894
|
-
* @param {int} [limit] the maximum number of
|
|
894
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
895
895
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
896
896
|
* @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
|
|
897
897
|
* @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
|
|
@@ -377,7 +377,7 @@ class gemini extends gemini$1 {
|
|
|
377
377
|
* @see https://docs.gemini.com/websocket-api/#order-events
|
|
378
378
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
379
379
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
380
|
-
* @param {int} [limit] the maximum number of
|
|
380
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
381
381
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
382
382
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
383
383
|
*/
|
|
@@ -251,7 +251,7 @@ class hollaex extends hollaex$1 {
|
|
|
251
251
|
* @description watches information on multiple orders made by the user
|
|
252
252
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
253
253
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
254
|
-
* @param {int} [limit] the maximum number of
|
|
254
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
255
255
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
256
256
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
257
257
|
*/
|
package/dist/cjs/src/pro/htx.js
CHANGED
|
@@ -767,7 +767,7 @@ class htx extends htx$1 {
|
|
|
767
767
|
* @description watches information on multiple orders made by the user
|
|
768
768
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
769
769
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
770
|
-
* @param {int} [limit] the maximum number of
|
|
770
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
771
771
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
772
772
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
773
773
|
*/
|
package/dist/cjs/src/pro/idex.js
CHANGED
|
@@ -509,7 +509,7 @@ class idex extends idex$1 {
|
|
|
509
509
|
* @description watches information on multiple orders made by the user
|
|
510
510
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
511
511
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
512
|
-
* @param {int} [limit] the maximum number of
|
|
512
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
513
513
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
514
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
515
515
|
*/
|
|
@@ -990,7 +990,7 @@ class kraken extends kraken$1 {
|
|
|
990
990
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
991
991
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
992
992
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
993
|
-
* @param {object} [params]
|
|
993
|
+
* @param {object} [params] maximum number of orderic to the exchange API endpoint
|
|
994
994
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
995
995
|
*/
|
|
996
996
|
return await this.watchPrivate('openOrders', symbol, since, limit, params);
|
|
@@ -375,7 +375,7 @@ class krakenfutures extends krakenfutures$1 {
|
|
|
375
375
|
* @see https://docs.futures.kraken.com/#websocket-api-private-feeds-fills
|
|
376
376
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
377
377
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
378
|
-
* @param {int} [limit] the maximum number of
|
|
378
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
379
379
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
380
380
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
381
381
|
*/
|
|
@@ -672,7 +672,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
672
672
|
* @see https://docs.kucoin.com/futures/#trade-orders-according-to-the-market
|
|
673
673
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
674
674
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
675
|
-
* @param {int} [limit] the maximum number of
|
|
675
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
676
676
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
677
677
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
678
678
|
*/
|
package/dist/cjs/src/pro/mexc.js
CHANGED
|
@@ -737,7 +737,7 @@ class mexc extends mexc$1 {
|
|
|
737
737
|
* @description watches information on multiple orders made by the user
|
|
738
738
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
739
739
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
740
|
-
* @param {int} [limit] the maximum number of
|
|
740
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
741
741
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
742
742
|
* @param {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
|
|
743
743
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -88,7 +88,7 @@ class okcoin extends okcoin$1 {
|
|
|
88
88
|
* @description watches information on multiple orders made by the user
|
|
89
89
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
90
90
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
91
|
-
* @param {int} [limit] the maximum number of
|
|
91
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
92
92
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
93
93
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
94
94
|
*/
|
package/dist/cjs/src/pro/okx.js
CHANGED
|
@@ -965,7 +965,7 @@ class okx extends okx$1 {
|
|
|
965
965
|
* @description watches information on multiple orders made by the user
|
|
966
966
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
967
967
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
968
|
-
* @param {int} [limit] the maximum number of
|
|
968
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
969
969
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
970
970
|
* @param {bool} [params.stop] true if fetching trigger or conditional orders
|
|
971
971
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -886,7 +886,7 @@ class phemex extends phemex$1 {
|
|
|
886
886
|
* @description watches information on multiple orders made by the user
|
|
887
887
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
888
888
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
889
|
-
* @param {int} [limit] the maximum number of
|
|
889
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
890
890
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
891
891
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
892
892
|
*/
|
|
@@ -297,7 +297,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
297
297
|
* @see https://futures-docs.poloniex.com/#private-messages
|
|
298
298
|
* @param {string} symbol filter by unified market symbol of the market orders were made in
|
|
299
299
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
300
|
-
* @param {int} [limit] the maximum number of
|
|
300
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
301
301
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
302
302
|
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
303
303
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/probit.js
CHANGED
|
@@ -1055,7 +1055,7 @@ class probit extends probit$1 {
|
|
|
1055
1055
|
* @description fetches information on multiple closed orders made by the user
|
|
1056
1056
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1057
1057
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1058
|
-
* @param {int} [limit] the maximum number of
|
|
1058
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1059
1059
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1060
1060
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1061
1061
|
*/
|
package/dist/cjs/src/timex.js
CHANGED
|
@@ -998,7 +998,7 @@ class timex extends timex$1 {
|
|
|
998
998
|
* @description fetches information on multiple closed orders made by the user
|
|
999
999
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1000
1000
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1001
|
-
* @param {int} [limit] the maximum number of
|
|
1001
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1002
1002
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1003
1003
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1004
1004
|
*/
|
|
@@ -1903,7 +1903,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1903
1903
|
* @description fetches information on multiple closed orders made by the user
|
|
1904
1904
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1905
1905
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1906
|
-
* @param {int} [limit] the maximum number of
|
|
1906
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1907
1907
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1908
1908
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1909
1909
|
*/
|
package/dist/cjs/src/upbit.js
CHANGED
|
@@ -1520,7 +1520,7 @@ class upbit extends upbit$1 {
|
|
|
1520
1520
|
* @description fetches information on multiple closed orders made by the user
|
|
1521
1521
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1522
1522
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1523
|
-
* @param {int} [limit] the maximum number of
|
|
1523
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1524
1524
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1525
1525
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1526
1526
|
*/
|
|
@@ -1632,7 +1632,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1632
1632
|
* @description fetches information on multiple closed orders made by the user
|
|
1633
1633
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1634
1634
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1635
|
-
* @param {int} [limit] the maximum number of
|
|
1635
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1636
1636
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1637
1637
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1638
1638
|
*/
|
package/dist/cjs/src/whitebit.js
CHANGED
|
@@ -1406,7 +1406,7 @@ class whitebit extends whitebit$1 {
|
|
|
1406
1406
|
* @see https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
|
|
1407
1407
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1408
1408
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1409
|
-
* @param {int} [limit] the maximum number of
|
|
1409
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1410
1410
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1411
1411
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1412
1412
|
*/
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -1189,7 +1189,7 @@ class woo extends woo$1 {
|
|
|
1189
1189
|
* @description fetches information on multiple orders made by the user
|
|
1190
1190
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1191
1191
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1192
|
-
* @param {int} [limit] the maximum number of
|
|
1192
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1193
1193
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1194
1194
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1195
1195
|
* @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
|
package/dist/cjs/src/zaif.js
CHANGED
|
@@ -555,7 +555,7 @@ class zaif extends zaif$1 {
|
|
|
555
555
|
* @description fetches information on multiple closed orders made by the user
|
|
556
556
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
557
557
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
558
|
-
* @param {int} [limit] the maximum number of
|
|
558
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
559
559
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
560
560
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
561
561
|
*/
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { 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.97";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, 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';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.1.
|
|
41
|
+
const version = '4.1.98';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -19,6 +19,8 @@ interface Exchange {
|
|
|
19
19
|
spotV3PrivateGetCapitalDepositHisrec(params?: {}): Promise<implicitReturnType>;
|
|
20
20
|
spotV3PrivateGetCapitalWithdrawHistory(params?: {}): Promise<implicitReturnType>;
|
|
21
21
|
spotV3PrivatePostPostAssetTransfer(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
swapV1PrivateGetPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
swapV1PrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
22
24
|
swapV2PublicGetServerTime(params?: {}): Promise<implicitReturnType>;
|
|
23
25
|
swapV2PublicGetQuoteContracts(params?: {}): Promise<implicitReturnType>;
|
|
24
26
|
swapV2PublicGetQuotePrice(params?: {}): Promise<implicitReturnType>;
|
package/js/src/ace.js
CHANGED
|
@@ -700,7 +700,7 @@ export default class ace extends Exchange {
|
|
|
700
700
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
|
|
701
701
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
702
702
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
703
|
-
* @param {int} [limit] the maximum number of
|
|
703
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
704
704
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
705
705
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
706
706
|
*/
|
package/js/src/ascendex.js
CHANGED
|
@@ -1992,7 +1992,7 @@ export default class ascendex extends Exchange {
|
|
|
1992
1992
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-current-history-orders
|
|
1993
1993
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1994
1994
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1995
|
-
* @param {int} [limit] the maximum number of
|
|
1995
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1996
1996
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1997
1997
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1998
1998
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
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
|
*/
|