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
|
@@ -1022,7 +1022,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1022
1022
|
* @description fetches information on multiple orders made by the user
|
|
1023
1023
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1024
1024
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1025
|
-
* @param {int} [limit] the maximum number of
|
|
1025
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1026
1026
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1027
1027
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1028
1028
|
*/
|
|
@@ -1065,7 +1065,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1065
1065
|
* @description fetches information on multiple closed orders made by the user
|
|
1066
1066
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1067
1067
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1068
|
-
* @param {int} [limit] the maximum number of
|
|
1068
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1069
1069
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1070
1070
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1071
1071
|
*/
|
package/dist/cjs/src/btcturk.js
CHANGED
|
@@ -728,7 +728,7 @@ class btcturk extends btcturk$1 {
|
|
|
728
728
|
* @description fetches information on multiple orders made by the user
|
|
729
729
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
730
730
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
731
|
-
* @param {int} [limit] the maximum number of
|
|
731
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
732
732
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
733
733
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
734
734
|
*/
|
package/dist/cjs/src/bybit.js
CHANGED
|
@@ -4433,7 +4433,7 @@ class bybit extends bybit$1 {
|
|
|
4433
4433
|
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
4434
4434
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4435
4435
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4436
|
-
* @param {int} [limit] the maximum number of
|
|
4436
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4437
4437
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4438
4438
|
* @param {boolean} [params.stop] true if stop order
|
|
4439
4439
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
@@ -4549,7 +4549,7 @@ class bybit extends bybit$1 {
|
|
|
4549
4549
|
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
4550
4550
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4551
4551
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4552
|
-
* @param {int} [limit] the maximum number of
|
|
4552
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4553
4553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4554
4554
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4555
4555
|
*/
|
package/dist/cjs/src/cex.js
CHANGED
|
@@ -1329,7 +1329,7 @@ class cex extends cex$1 {
|
|
|
1329
1329
|
* @description fetches information on multiple orders made by the user
|
|
1330
1330
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1331
1331
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1332
|
-
* @param {int} [limit] the maximum number of
|
|
1332
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1333
1333
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1334
1334
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1335
1335
|
*/
|
|
@@ -1133,7 +1133,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1133
1133
|
* @description fetches information on multiple orders made by the user
|
|
1134
1134
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1135
1135
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1136
|
-
* @param {int} [limit] the maximum number of
|
|
1136
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1137
1137
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1138
1138
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1139
1139
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1191,7 +1191,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
1191
1191
|
* @description fetches information on multiple closed orders made by the user
|
|
1192
1192
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1193
1193
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1194
|
-
* @param {int} [limit] the maximum number of
|
|
1194
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1195
1195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @param {int} [params.until] the latest time in ms to fetch open orders for
|
|
1197
1197
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/coinex.js
CHANGED
|
@@ -3190,7 +3190,7 @@ class coinex extends coinex$1 {
|
|
|
3190
3190
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot003_trade012_finished_order
|
|
3191
3191
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
3192
3192
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
3193
|
-
* @param {int} [limit] the maximum number of
|
|
3193
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
3194
3194
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3195
3195
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3196
3196
|
*/
|
package/dist/cjs/src/coinlist.js
CHANGED
|
@@ -1217,7 +1217,7 @@ class coinlist extends coinlist$1 {
|
|
|
1217
1217
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-orders
|
|
1218
1218
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1219
1219
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1220
|
-
* @param {int} [limit] the maximum number of
|
|
1220
|
+
* @param {int} [limit] the maximum number of order structures to retrieve (default 200, max 500)
|
|
1221
1221
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1222
1222
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1223
1223
|
* @param {string|string[]} [params.status] the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending' (default [ 'accepted', 'done', 'canceled', 'rejected', 'pending' ])
|
package/dist/cjs/src/deribit.js
CHANGED
|
@@ -1987,7 +1987,7 @@ class deribit extends deribit$1 {
|
|
|
1987
1987
|
* @description fetches information on multiple closed orders made by the user
|
|
1988
1988
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1989
1989
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1990
|
-
* @param {int} [limit] the maximum number of
|
|
1990
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1991
1991
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1992
1992
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1993
1993
|
*/
|
|
@@ -2240,7 +2240,7 @@ class digifinex extends digifinex$1 {
|
|
|
2240
2240
|
* @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#historyorder
|
|
2241
2241
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2242
2242
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2243
|
-
* @param {int} [limit] the maximum number of
|
|
2243
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2244
2244
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2245
2245
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2246
2246
|
*/
|
package/dist/cjs/src/gate.js
CHANGED
|
@@ -4644,7 +4644,7 @@ class gate extends gate$1 {
|
|
|
4644
4644
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-options-orders
|
|
4645
4645
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4646
4646
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4647
|
-
* @param {int} [limit] the maximum number of
|
|
4647
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4648
4648
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4649
4649
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4650
4650
|
* @param {string} [params.type] spot, swap or future, if not provided this.options['defaultType'] is used
|
package/dist/cjs/src/hitbtc.js
CHANGED
|
@@ -1812,7 +1812,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1812
1812
|
* @see https://api.hitbtc.com/#margin-orders-history
|
|
1813
1813
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1814
1814
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1815
|
-
* @param {int} [limit] the maximum number of
|
|
1815
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1816
1816
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1817
1817
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1818
1818
|
* @param {bool} [params.margin] true for fetching margin orders
|
package/dist/cjs/src/hollaex.js
CHANGED
|
@@ -922,7 +922,7 @@ class hollaex extends hollaex$1 {
|
|
|
922
922
|
* @description fetches information on multiple closed orders made by the user
|
|
923
923
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
924
924
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
925
|
-
* @param {int} [limit] the maximum number of
|
|
925
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
926
926
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
927
927
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
928
928
|
*/
|
|
@@ -980,7 +980,7 @@ class hollaex extends hollaex$1 {
|
|
|
980
980
|
* @description fetches information on multiple orders made by the user
|
|
981
981
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
982
982
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
983
|
-
* @param {int} [limit] the maximum number of
|
|
983
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
984
984
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
985
985
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
986
986
|
*/
|
package/dist/cjs/src/htx.js
CHANGED
|
@@ -4126,7 +4126,7 @@ class htx extends htx$1 {
|
|
|
4126
4126
|
* @description fetches information on multiple closed orders made by the user
|
|
4127
4127
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4128
4128
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4129
|
-
* @param {int} [limit] the maximum number of
|
|
4129
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4130
4130
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4131
4131
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4132
4132
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
package/dist/cjs/src/huobijp.js
CHANGED
|
@@ -1176,7 +1176,7 @@ class huobijp extends huobijp$1 {
|
|
|
1176
1176
|
* @description fetches information on multiple orders made by the user
|
|
1177
1177
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1178
1178
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1179
|
-
* @param {int} [limit] the maximum number of
|
|
1179
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1180
1180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1181
1181
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1182
1182
|
*/
|
|
@@ -1209,7 +1209,7 @@ class huobijp extends huobijp$1 {
|
|
|
1209
1209
|
* @description fetches information on multiple closed orders made by the user
|
|
1210
1210
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1211
1211
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1212
|
-
* @param {int} [limit] the maximum number of
|
|
1212
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1213
1213
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1214
1214
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1215
1215
|
*/
|
package/dist/cjs/src/idex.js
CHANGED
|
@@ -927,7 +927,7 @@ class idex extends idex$1 {
|
|
|
927
927
|
* @description fetches information on multiple closed orders made by the user
|
|
928
928
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
929
929
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
930
|
-
* @param {int} [limit] the maximum number of
|
|
930
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
931
931
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
932
932
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
933
933
|
*/
|
|
@@ -512,7 +512,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
512
512
|
* @description fetches information on multiple closed orders made by the user
|
|
513
513
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
514
514
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
515
|
-
* @param {int} [limit] the maximum number of
|
|
515
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
516
516
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
517
517
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
518
518
|
*/
|
package/dist/cjs/src/kraken.js
CHANGED
|
@@ -2080,7 +2080,7 @@ class kraken extends kraken$1 {
|
|
|
2080
2080
|
* @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
|
|
2081
2081
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2082
2082
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2083
|
-
* @param {int} [limit] the maximum number of
|
|
2083
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2084
2084
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2085
2085
|
* @param {int} [params.until] timestamp in ms of the latest entry
|
|
2086
2086
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -38,15 +38,15 @@ class kucoin extends kucoin$1 {
|
|
|
38
38
|
'closeAllPositions': false,
|
|
39
39
|
'closePosition': false,
|
|
40
40
|
'createDepositAddress': true,
|
|
41
|
+
'createMarketBuyOrderWithCost': true,
|
|
42
|
+
'createMarketOrderWithCost': true,
|
|
43
|
+
'createMarketSellOrderWithCost': true,
|
|
41
44
|
'createOrder': true,
|
|
42
45
|
'createOrders': true,
|
|
43
46
|
'createPostOnlyOrder': true,
|
|
44
47
|
'createStopLimitOrder': true,
|
|
45
48
|
'createStopMarketOrder': true,
|
|
46
49
|
'createStopOrder': true,
|
|
47
|
-
'createMarketBuyOrderWithCost': true,
|
|
48
|
-
'createMarketOrderWithCost': true,
|
|
49
|
-
'createMarketSellOrderWithCost': true,
|
|
50
50
|
'editOrder': true,
|
|
51
51
|
'fetchAccounts': true,
|
|
52
52
|
'fetchBalance': true,
|
|
@@ -2433,7 +2433,7 @@ class kucoin extends kucoin$1 {
|
|
|
2433
2433
|
* @see https://docs.kucoin.com/spot-hf/#obtain-list-of-filled-hf-orders
|
|
2434
2434
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2435
2435
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2436
|
-
* @param {int} [limit] the maximum number of
|
|
2436
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2437
2437
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2438
2438
|
* @param {int} [params.till] end time in ms
|
|
2439
2439
|
* @param {string} [params.side] buy or sell
|
|
@@ -1566,7 +1566,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
1566
1566
|
* @see https://docs.kucoin.com/futures/#get-order-list
|
|
1567
1567
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1568
1568
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1569
|
-
* @param {int} [limit] the maximum number of
|
|
1569
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1570
1570
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1571
1571
|
* @param {int} [params.till] end time in ms
|
|
1572
1572
|
* @param {string} [params.side] buy or sell
|
package/dist/cjs/src/kuna.js
CHANGED
|
@@ -1265,7 +1265,7 @@ class kuna extends kuna$1 {
|
|
|
1265
1265
|
* @see https://docs.kuna.io/docs/get-private-orders-history
|
|
1266
1266
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1267
1267
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1268
|
-
* @param {int} [limit] the maximum number of
|
|
1268
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1269
1269
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1270
1270
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1271
1271
|
*
|
package/dist/cjs/src/latoken.js
CHANGED
|
@@ -1138,7 +1138,7 @@ class latoken extends latoken$1 {
|
|
|
1138
1138
|
* @see https://api.latoken.com/doc/v2/#tag/StopOrder/operation/getMyStopOrdersByPair // stop
|
|
1139
1139
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1140
1140
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1141
|
-
* @param {int} [limit] the maximum number of
|
|
1141
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1142
1142
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1143
1143
|
* @param {boolean} [params.trigger] true if fetching trigger orders
|
|
1144
1144
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/luno.js
CHANGED
|
@@ -471,7 +471,7 @@ class luno extends luno$1 {
|
|
|
471
471
|
* @description fetches information on multiple orders made by the user
|
|
472
472
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
473
473
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
474
|
-
* @param {int} [limit] the maximum number of
|
|
474
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
475
475
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
476
476
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
477
477
|
*/
|
|
@@ -497,7 +497,7 @@ class luno extends luno$1 {
|
|
|
497
497
|
* @description fetches information on multiple closed orders made by the user
|
|
498
498
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
499
499
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
500
|
-
* @param {int} [limit] the maximum number of
|
|
500
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
501
501
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
502
502
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
503
503
|
*/
|
package/dist/cjs/src/lykke.js
CHANGED
|
@@ -972,7 +972,7 @@ class lykke extends lykke$1 {
|
|
|
972
972
|
* @description fetches information on multiple closed orders made by the user
|
|
973
973
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
974
974
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
975
|
-
* @param {int} [limit] the maximum number of
|
|
975
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
976
976
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
977
977
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
978
978
|
*/
|
package/dist/cjs/src/mexc.js
CHANGED
|
@@ -2511,7 +2511,7 @@ class mexc extends mexc$1 {
|
|
|
2511
2511
|
* @description fetches information on multiple orders made by the user
|
|
2512
2512
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2513
2513
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2514
|
-
* @param {int} [limit] the maximum number of
|
|
2514
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2515
2515
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2516
2516
|
* @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
|
|
2517
2517
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2834,7 +2834,7 @@ class mexc extends mexc$1 {
|
|
|
2834
2834
|
* @description fetches information on multiple closed orders made by the user
|
|
2835
2835
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2836
2836
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2837
|
-
* @param {int} [limit] the maximum number of
|
|
2837
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2838
2838
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2839
2839
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2840
2840
|
*/
|
package/dist/cjs/src/ndax.js
CHANGED
|
@@ -1681,7 +1681,7 @@ class ndax extends ndax$1 {
|
|
|
1681
1681
|
* @description fetches information on multiple orders made by the user
|
|
1682
1682
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1683
1683
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1684
|
-
* @param {int} [limit] the maximum number of
|
|
1684
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1685
1685
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1686
1686
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1687
1687
|
*/
|
package/dist/cjs/src/novadax.js
CHANGED
|
@@ -903,7 +903,7 @@ class novadax extends novadax$1 {
|
|
|
903
903
|
* @see https://doc.novadax.com/en-US/#get-order-history
|
|
904
904
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
905
905
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
906
|
-
* @param {int} [limit] the maximum number of
|
|
906
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
907
907
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
908
908
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
909
909
|
*/
|
|
@@ -980,7 +980,7 @@ class novadax extends novadax$1 {
|
|
|
980
980
|
* @see https://doc.novadax.com/en-US/#get-order-history
|
|
981
981
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
982
982
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
983
|
-
* @param {int} [limit] the maximum number of
|
|
983
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
984
984
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
985
985
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
986
986
|
*/
|
package/dist/cjs/src/oceanex.js
CHANGED
|
@@ -703,7 +703,7 @@ class oceanex extends oceanex$1 {
|
|
|
703
703
|
* @see https://api.oceanex.pro/doc/v1/#order-status-get
|
|
704
704
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
705
705
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
706
|
-
* @param {int} [limit] the maximum number of
|
|
706
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
707
707
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
708
708
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
709
709
|
*/
|
package/dist/cjs/src/okcoin.js
CHANGED
|
@@ -2058,7 +2058,7 @@ class okcoin extends okcoin$1 {
|
|
|
2058
2058
|
* @description fetches information on multiple closed orders made by the user
|
|
2059
2059
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2060
2060
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2061
|
-
* @param {int} [limit] the maximum number of
|
|
2061
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2062
2062
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2063
2063
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
2064
2064
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
package/dist/cjs/src/okx.js
CHANGED
|
@@ -3903,7 +3903,7 @@ class okx extends okx$1 {
|
|
|
3903
3903
|
* @see https://www.okx.com/docs-v5/en/#order-book-trading-algo-trading-get-algo-order-history
|
|
3904
3904
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
3905
3905
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
3906
|
-
* @param {int} [limit] the maximum number of
|
|
3906
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
3907
3907
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3908
3908
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
3909
3909
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
package/dist/cjs/src/phemex.js
CHANGED
|
@@ -4288,7 +4288,7 @@ class phemex extends phemex$1 {
|
|
|
4288
4288
|
* @name phemex#setLeverage
|
|
4289
4289
|
* @description set the level of leverage for a market
|
|
4290
4290
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#set-leverage
|
|
4291
|
-
* @param {float} leverage the rate of leverage
|
|
4291
|
+
* @param {float} leverage the rate of leverage, 100 > leverage > -100 excluding numbers between -1 to 1
|
|
4292
4292
|
* @param {string} symbol unified market symbol
|
|
4293
4293
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4294
4294
|
* @param {bool} [params.hedged] set to true if hedged position mode is enabled (by default long and short leverage are set to the same value)
|
|
@@ -4301,8 +4301,8 @@ class phemex extends phemex$1 {
|
|
|
4301
4301
|
if (symbol === undefined) {
|
|
4302
4302
|
throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
|
|
4303
4303
|
}
|
|
4304
|
-
if ((leverage <
|
|
4305
|
-
throw new errors.BadRequest(this.id + ' setLeverage() leverage should be between
|
|
4304
|
+
if ((leverage < -100) || (leverage > 100)) {
|
|
4305
|
+
throw new errors.BadRequest(this.id + ' setLeverage() leverage should be between -100 and 100');
|
|
4306
4306
|
}
|
|
4307
4307
|
await this.loadMarkets();
|
|
4308
4308
|
const isHedged = this.safeValue(params, 'hedged', false);
|
|
@@ -1366,7 +1366,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1366
1366
|
* @see https://futures-docs.poloniex.com/#get-untriggered-stop-order-list
|
|
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
|
* @param {int} [params.till] end time in ms
|
|
1372
1372
|
* @param {string} [params.side] buy or sell
|
|
@@ -345,7 +345,7 @@ class alpaca extends alpaca$1 {
|
|
|
345
345
|
* @description watches information on multiple orders made by the user
|
|
346
346
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
347
347
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
348
|
-
* @param {int} [limit] the maximum number of
|
|
348
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
349
349
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
350
350
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
351
351
|
*/
|
|
@@ -475,7 +475,7 @@ class ascendex extends ascendex$1 {
|
|
|
475
475
|
* @description watches information on multiple orders made by the user
|
|
476
476
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
477
477
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
478
|
-
* @param {int} [limit] the maximum number of
|
|
478
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
479
479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
480
480
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
481
481
|
*/
|
|
@@ -1927,7 +1927,7 @@ class binance extends binance$1 {
|
|
|
1927
1927
|
* @description watches information on multiple orders made by the user
|
|
1928
1928
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1929
1929
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1930
|
-
* @param {int} [limit] the maximum number of
|
|
1930
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1931
1931
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1932
1932
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1933
1933
|
*/
|
|
@@ -2483,7 +2483,7 @@ class binance extends binance$1 {
|
|
|
2483
2483
|
* @description watches information on multiple trades made by the user
|
|
2484
2484
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2485
2485
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2486
|
-
* @param {int} [limit] the maximum number of
|
|
2486
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2487
2487
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2488
2488
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
2489
2489
|
*/
|
|
@@ -80,7 +80,7 @@ class bingx extends bingx$1 {
|
|
|
80
80
|
* @see https://bingx-api.github.io/docs/#/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
|
|
81
81
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
82
82
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
83
|
-
* @param {int} [limit] the maximum number of
|
|
83
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
84
84
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
85
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
86
86
|
*/
|
|
@@ -169,7 +169,8 @@ class bingx extends bingx$1 {
|
|
|
169
169
|
const data = this.safeValue(message, 'data', []);
|
|
170
170
|
const messageHash = this.safeString(message, 'dataType');
|
|
171
171
|
const marketId = messageHash.split('@')[0];
|
|
172
|
-
const
|
|
172
|
+
const isSwap = client.url.indexOf('swap') >= 0;
|
|
173
|
+
const marketType = isSwap ? 'swap' : 'spot';
|
|
173
174
|
const market = this.safeMarket(marketId, undefined, undefined, marketType);
|
|
174
175
|
const symbol = market['symbol'];
|
|
175
176
|
let trades = undefined;
|
|
@@ -284,7 +285,8 @@ class bingx extends bingx$1 {
|
|
|
284
285
|
const data = this.safeValue(message, 'data', []);
|
|
285
286
|
const messageHash = this.safeString(message, 'dataType');
|
|
286
287
|
const marketId = messageHash.split('@')[0];
|
|
287
|
-
const
|
|
288
|
+
const isSwap = client.url.indexOf('swap') >= 0;
|
|
289
|
+
const marketType = isSwap ? 'swap' : 'spot';
|
|
288
290
|
const market = this.safeMarket(marketId, undefined, undefined, marketType);
|
|
289
291
|
const symbol = market['symbol'];
|
|
290
292
|
let orderbook = this.safeValue(this.orderbooks, symbol);
|
|
@@ -308,8 +310,11 @@ class bingx extends bingx$1 {
|
|
|
308
310
|
// "t": 1696687440000
|
|
309
311
|
// }
|
|
310
312
|
//
|
|
313
|
+
// for spot, opening-time (t) is used instead of closing-time (T), to be compatible with fetchOHLCV
|
|
314
|
+
// for swap, (T) is the opening time
|
|
315
|
+
const timestamp = (market['spot']) ? 't' : 'T';
|
|
311
316
|
return [
|
|
312
|
-
this.safeInteger(ohlcv,
|
|
317
|
+
this.safeInteger(ohlcv, timestamp),
|
|
313
318
|
this.safeNumber(ohlcv, 'o'),
|
|
314
319
|
this.safeNumber(ohlcv, 'h'),
|
|
315
320
|
this.safeNumber(ohlcv, 'l'),
|
|
@@ -373,7 +378,8 @@ class bingx extends bingx$1 {
|
|
|
373
378
|
const messageHash = this.safeString(message, 'dataType');
|
|
374
379
|
const timeframeId = messageHash.split('_')[1];
|
|
375
380
|
const marketId = messageHash.split('@')[0];
|
|
376
|
-
const
|
|
381
|
+
const isSwap = client.url.indexOf('swap') >= 0;
|
|
382
|
+
const marketType = isSwap ? 'swap' : 'spot';
|
|
377
383
|
const market = this.safeMarket(marketId, undefined, undefined, marketType);
|
|
378
384
|
const symbol = market['symbol'];
|
|
379
385
|
this.ohlcvs[symbol] = this.safeValue(this.ohlcvs, symbol, {});
|
|
@@ -437,7 +443,7 @@ class bingx extends bingx$1 {
|
|
|
437
443
|
* @description watches information on multiple orders made by the user
|
|
438
444
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
439
445
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
440
|
-
* @param {int} [limit] the maximum number of
|
|
446
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
441
447
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
442
448
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
443
449
|
*/
|
|
@@ -457,7 +457,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
457
457
|
* @description watches information on multiple orders made by the user
|
|
458
458
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
459
459
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
460
|
-
* @param {int} [limit] the maximum number of
|
|
460
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
461
461
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
462
462
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
463
463
|
*/
|
|
@@ -882,7 +882,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
882
882
|
* @description watches information on multiple orders made by the user
|
|
883
883
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
884
884
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
885
|
-
* @param {int} [limit] the maximum number of
|
|
885
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
886
886
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
887
887
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
888
888
|
*/
|
|
@@ -435,7 +435,7 @@ class bitmart extends bitmart$1 {
|
|
|
435
435
|
const symbolKeys = Object.keys(symbols);
|
|
436
436
|
for (let i = 0; i < symbolKeys.length; i++) {
|
|
437
437
|
const symbol = symbolKeys[i];
|
|
438
|
-
const symbolSpecificMessageHash = messageHash + '
|
|
438
|
+
const symbolSpecificMessageHash = messageHash + '::' + symbol;
|
|
439
439
|
client.resolve(newOrders, symbolSpecificMessageHash);
|
|
440
440
|
}
|
|
441
441
|
client.resolve(newOrders, messageHash);
|
|
@@ -802,7 +802,7 @@ class bitmex extends bitmex$1 {
|
|
|
802
802
|
* @description watches information on multiple orders made by the user
|
|
803
803
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
804
804
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
805
|
-
* @param {int} [limit] the maximum number of
|
|
805
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
806
806
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
807
807
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
808
808
|
*/
|
|
@@ -423,7 +423,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
423
423
|
* @description watches information on multiple orders made by the user
|
|
424
424
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
425
425
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
426
|
-
* @param {int} [limit] the maximum number of
|
|
426
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
427
427
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
428
428
|
* @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
|
|
429
429
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -411,7 +411,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
411
411
|
* @see https://exchange.blockchain.com/api/#mass-order-status-request-ordermassstatusrequest
|
|
412
412
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
413
413
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
414
|
-
* @param {int} [limit] the maximum number of
|
|
414
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
415
415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
416
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
417
417
|
*/
|