ccxt 4.1.63 → 4.1.65
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.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/pro/binance.js
CHANGED
|
@@ -142,7 +142,7 @@ export default class binance extends binanceRest {
|
|
|
142
142
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
143
143
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
144
144
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
145
|
-
* @param {object} [params] extra parameters specific to the
|
|
145
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
146
146
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
147
147
|
*/
|
|
148
148
|
//
|
|
@@ -234,7 +234,7 @@ export default class binance extends binanceRest {
|
|
|
234
234
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
235
235
|
* @param {string[]} symbols unified array of symbols
|
|
236
236
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
237
|
-
* @param {object} [params] extra parameters specific to the
|
|
237
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
238
238
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
239
239
|
*/
|
|
240
240
|
await this.loadMarkets();
|
|
@@ -497,7 +497,7 @@ export default class binance extends binanceRest {
|
|
|
497
497
|
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
498
498
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
499
499
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
500
|
-
* @param {object} [params] extra parameters specific to the
|
|
500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
501
501
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
502
502
|
*/
|
|
503
503
|
await this.loadMarkets();
|
|
@@ -544,7 +544,7 @@ export default class binance extends binanceRest {
|
|
|
544
544
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
545
545
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
546
546
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
547
|
-
* @param {object} [params] extra parameters specific to the
|
|
547
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
548
548
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
549
549
|
*/
|
|
550
550
|
await this.loadMarkets();
|
|
@@ -769,7 +769,7 @@ export default class binance extends binanceRest {
|
|
|
769
769
|
* @param {string} timeframe the length of time each candle represents
|
|
770
770
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
771
771
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
772
|
-
* @param {object} [params] extra parameters specific to the
|
|
772
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
773
773
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
774
774
|
*/
|
|
775
775
|
await this.loadMarkets();
|
|
@@ -815,7 +815,7 @@ export default class binance extends binanceRest {
|
|
|
815
815
|
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
816
816
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
817
817
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
818
|
-
* @param {object} [params] extra parameters specific to the
|
|
818
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
819
819
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
820
820
|
*/
|
|
821
821
|
await this.loadMarkets();
|
|
@@ -936,7 +936,7 @@ export default class binance extends binanceRest {
|
|
|
936
936
|
* @name binance#watchTicker
|
|
937
937
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
938
938
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
939
|
-
* @param {object} [params] extra parameters specific to the
|
|
939
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
940
940
|
* @param {string} [params.name] stream to use can be ticker or bookTicker
|
|
941
941
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
942
942
|
*/
|
|
@@ -972,7 +972,7 @@ export default class binance extends binanceRest {
|
|
|
972
972
|
* @name binance#watchTickers
|
|
973
973
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
974
974
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
975
|
-
* @param {object} [params] extra parameters specific to the
|
|
975
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
976
976
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
977
977
|
*/
|
|
978
978
|
await this.loadMarkets();
|
|
@@ -1389,7 +1389,7 @@ export default class binance extends binanceRest {
|
|
|
1389
1389
|
* @name binance#fetchBalanceWs
|
|
1390
1390
|
* @description fetch balance and get the amount of funds available for trading or funds locked in orders
|
|
1391
1391
|
* @see https://binance-docs.github.io/apidocs/websocket_api/en/#account-information-user_data
|
|
1392
|
-
* @param {object} [params] extra parameters specific to the
|
|
1392
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1393
1393
|
* @param {string|undefined} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
1394
1394
|
* @param {string|undefined} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1395
1395
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
@@ -1469,7 +1469,7 @@ export default class binance extends binanceRest {
|
|
|
1469
1469
|
* @method
|
|
1470
1470
|
* @name binance#watchBalance
|
|
1471
1471
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1472
|
-
* @param {object} [params] extra parameters specific to the
|
|
1472
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1473
1473
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1474
1474
|
*/
|
|
1475
1475
|
await this.loadMarkets();
|
|
@@ -1636,7 +1636,7 @@ export default class binance extends binanceRest {
|
|
|
1636
1636
|
* @param {string} side 'buy' or 'sell'
|
|
1637
1637
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1638
1638
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1639
|
-
* @param {object} [params] extra parameters specific to the
|
|
1639
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1640
1640
|
* @param {boolean} params.test test order, default false
|
|
1641
1641
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1642
1642
|
*/
|
|
@@ -1771,7 +1771,7 @@ export default class binance extends binanceRest {
|
|
|
1771
1771
|
* @param {string} side 'buy' or 'sell'
|
|
1772
1772
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1773
1773
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1774
|
-
* @param {object} [params] extra parameters specific to the
|
|
1774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1775
1775
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1776
1776
|
*/
|
|
1777
1777
|
await this.loadMarkets();
|
|
@@ -1874,7 +1874,7 @@ export default class binance extends binanceRest {
|
|
|
1874
1874
|
* @description cancel multiple orders
|
|
1875
1875
|
* @param {string} id order id
|
|
1876
1876
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1877
|
-
* @param {object} [params] extra parameters specific to the
|
|
1877
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1878
1878
|
* @param {string|undefined} [params.cancelRestrictions] Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED.
|
|
1879
1879
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1880
1880
|
*/
|
|
@@ -1917,7 +1917,7 @@ export default class binance extends binanceRest {
|
|
|
1917
1917
|
* @see https://binance-docs.github.io/apidocs/websocket_api/en/#current-open-orders-user_data
|
|
1918
1918
|
* @description cancel all open orders in a market
|
|
1919
1919
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1920
|
-
* @param {object} [params] extra parameters specific to the
|
|
1920
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1921
1921
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1922
1922
|
*/
|
|
1923
1923
|
await this.loadMarkets();
|
|
@@ -1947,7 +1947,7 @@ export default class binance extends binanceRest {
|
|
|
1947
1947
|
* @see https://binance-docs.github.io/apidocs/websocket_api/en/#query-order-user_data
|
|
1948
1948
|
* @description fetches information on an order made by the user
|
|
1949
1949
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1950
|
-
* @param {object} params extra parameters specific to the
|
|
1950
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
1951
1951
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1952
1952
|
*/
|
|
1953
1953
|
await this.loadMarkets();
|
|
@@ -1990,7 +1990,7 @@ export default class binance extends binanceRest {
|
|
|
1990
1990
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1991
1991
|
* @param {int|undefined} [since] the earliest time in ms to fetch orders for
|
|
1992
1992
|
* @param {int|undefined} [limit] the maximum number of order structures to retrieve
|
|
1993
|
-
* @param {object} [params] extra parameters specific to the
|
|
1993
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1994
1994
|
* @param {int} [params.orderId] order id to begin at
|
|
1995
1995
|
* @param {int} [params.startTime] earliest time in ms to retrieve orders for
|
|
1996
1996
|
* @param {int} [params.endTime] latest time in ms to retrieve orders for
|
|
@@ -2031,7 +2031,7 @@ export default class binance extends binanceRest {
|
|
|
2031
2031
|
* @param {string} symbol unified market symbol
|
|
2032
2032
|
* @param {int|undefined} [since] the earliest time in ms to fetch open orders for
|
|
2033
2033
|
* @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
|
|
2034
|
-
* @param {object} [params] extra parameters specific to the
|
|
2034
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2035
2035
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2036
2036
|
*/
|
|
2037
2037
|
await this.loadMarkets();
|
|
@@ -2066,7 +2066,7 @@ export default class binance extends binanceRest {
|
|
|
2066
2066
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2067
2067
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2068
2068
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2069
|
-
* @param {object} [params] extra parameters specific to the
|
|
2069
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2070
2070
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2071
2071
|
*/
|
|
2072
2072
|
await this.loadMarkets();
|
|
@@ -2350,7 +2350,7 @@ export default class binance extends binanceRest {
|
|
|
2350
2350
|
* @name binance#watchPositions
|
|
2351
2351
|
* @description watch all open positions
|
|
2352
2352
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2353
|
-
* @param {object} params extra parameters specific to the
|
|
2353
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
2354
2354
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
2355
2355
|
*/
|
|
2356
2356
|
await this.loadMarkets();
|
|
@@ -2542,7 +2542,7 @@ export default class binance extends binanceRest {
|
|
|
2542
2542
|
* @param {string} symbol unified market symbol
|
|
2543
2543
|
* @param {int|undefined} [since] the earliest time in ms to fetch trades for
|
|
2544
2544
|
* @param {int|undefined} [limit] the maximum number of trades structures to retrieve
|
|
2545
|
-
* @param {object} [params] extra parameters specific to the
|
|
2545
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2546
2546
|
* @param {int} [params.endTime] the latest time in ms to fetch trades for
|
|
2547
2547
|
* @param {int} [params.fromId] first trade Id to fetch
|
|
2548
2548
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -2619,7 +2619,7 @@ export default class binance extends binanceRest {
|
|
|
2619
2619
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2620
2620
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2621
2621
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2622
|
-
* @param {object} [params] extra parameters specific to the
|
|
2622
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2623
2623
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
2624
2624
|
*/
|
|
2625
2625
|
await this.loadMarkets();
|
package/js/src/pro/bingx.js
CHANGED
|
@@ -79,7 +79,7 @@ export default class bingx extends bingxRest {
|
|
|
79
79
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
80
80
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
81
81
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
82
|
-
* @param {object} [params] extra parameters specific to the
|
|
82
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
83
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
84
84
|
*/
|
|
85
85
|
await this.loadMarkets();
|
|
@@ -197,7 +197,7 @@ export default class bingx extends bingxRest {
|
|
|
197
197
|
* @see https://bingx-api.github.io/docs/#/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
|
|
198
198
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
199
199
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
200
|
-
* @param {object} [params] extra parameters specific to the
|
|
200
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
201
201
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
202
202
|
*/
|
|
203
203
|
await this.loadMarkets();
|
|
@@ -399,7 +399,7 @@ export default class bingx extends bingxRest {
|
|
|
399
399
|
* @param {string} timeframe the length of time each candle represents
|
|
400
400
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
401
401
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
402
|
-
* @param {object} [params] extra parameters specific to the
|
|
402
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
403
403
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
404
404
|
*/
|
|
405
405
|
const market = this.market(symbol);
|
|
@@ -436,7 +436,7 @@ export default class bingx extends bingxRest {
|
|
|
436
436
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
437
437
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
438
438
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
439
|
-
* @param {object} [params] extra parameters specific to the
|
|
439
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
440
440
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
441
441
|
*/
|
|
442
442
|
await this.loadMarkets();
|
|
@@ -483,7 +483,7 @@ export default class bingx extends bingxRest {
|
|
|
483
483
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
484
484
|
* @param {int} [since] the earliest time in ms to trades orders for
|
|
485
485
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
486
|
-
* @param {object} [params] extra parameters specific to the
|
|
486
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
487
487
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
488
488
|
*/
|
|
489
489
|
await this.loadMarkets();
|
|
@@ -527,7 +527,7 @@ export default class bingx extends bingxRest {
|
|
|
527
527
|
* @see https://bingx-api.github.io/docs/#/spot/socket/account.html#Subscription%20order%20update%20data
|
|
528
528
|
* @see https://bingx-api.github.io/docs/#/swapV2/socket/account.html#Account%20balance%20and%20position%20update%20push
|
|
529
529
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
530
|
-
* @param {object} [params] extra parameters specific to the
|
|
530
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
531
531
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
|
|
532
532
|
*/
|
|
533
533
|
await this.loadMarkets();
|
package/js/src/pro/bitfinex.js
CHANGED
|
@@ -63,7 +63,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
63
63
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
64
64
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
65
65
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
66
|
-
* @param {object} [params] extra parameters specific to the
|
|
66
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
67
67
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
68
68
|
*/
|
|
69
69
|
await this.loadMarkets();
|
|
@@ -80,7 +80,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
80
80
|
* @name bitfinex#watchTicker
|
|
81
81
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
82
82
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
83
|
-
* @param {object} [params] extra parameters specific to the
|
|
83
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
84
84
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
85
85
|
*/
|
|
86
86
|
return await this.subscribe('ticker', symbol, params);
|
|
@@ -255,7 +255,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
255
255
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
256
256
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
257
257
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
258
|
-
* @param {object} [params] extra parameters specific to the
|
|
258
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
259
259
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
260
260
|
*/
|
|
261
261
|
if (limit !== undefined) {
|
|
@@ -462,7 +462,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
462
462
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
463
463
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
464
464
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
465
|
-
* @param {object} [params] extra parameters specific to the
|
|
465
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
466
466
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
467
467
|
*/
|
|
468
468
|
await this.loadMarkets();
|
package/js/src/pro/bitfinex2.js
CHANGED
|
@@ -81,7 +81,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
81
81
|
* @param {string} timeframe the length of time each candle represents
|
|
82
82
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
83
83
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
84
|
-
* @param {object} [params] extra parameters specific to the
|
|
84
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
85
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
86
86
|
*/
|
|
87
87
|
await this.loadMarkets();
|
|
@@ -195,7 +195,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
195
195
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
196
196
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
197
197
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
198
|
-
* @param {object} [params] extra parameters specific to the
|
|
198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
199
199
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
200
200
|
*/
|
|
201
201
|
const trades = await this.subscribe('trades', symbol, params);
|
|
@@ -212,7 +212,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
212
212
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
213
213
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
214
214
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
215
|
-
* @param {object} [params] extra parameters specific to the
|
|
215
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
216
216
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
217
217
|
*/
|
|
218
218
|
await this.loadMarkets();
|
|
@@ -233,7 +233,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
233
233
|
* @name bitfinex2#watchTicker
|
|
234
234
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
235
235
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
236
|
-
* @param {object} [params] extra parameters specific to the
|
|
236
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
237
237
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
238
238
|
*/
|
|
239
239
|
return await this.subscribe('ticker', symbol, params);
|
|
@@ -523,7 +523,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
523
523
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
524
524
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
525
525
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
526
|
-
* @param {object} [params] extra parameters specific to the
|
|
526
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
527
527
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
528
528
|
*/
|
|
529
529
|
if (limit !== undefined) {
|
|
@@ -688,7 +688,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
688
688
|
* @method
|
|
689
689
|
* @name bitfinex2#watchBalance
|
|
690
690
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
691
|
-
* @param {object} [params] extra parameters specific to the
|
|
691
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
692
692
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
693
693
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
694
694
|
*/
|
|
@@ -886,7 +886,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
886
886
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
887
887
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
888
888
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
889
|
-
* @param {object} [params] extra parameters specific to the
|
|
889
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
890
890
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
891
891
|
*/
|
|
892
892
|
await this.loadMarkets();
|
package/js/src/pro/bitget.js
CHANGED
|
@@ -138,7 +138,7 @@ export default class bitget extends bitgetRest {
|
|
|
138
138
|
* @name bitget#watchTicker
|
|
139
139
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
140
140
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
141
|
-
* @param {object} [params] extra parameters specific to the
|
|
141
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
142
142
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
143
143
|
*/
|
|
144
144
|
await this.loadMarkets();
|
|
@@ -159,7 +159,7 @@ export default class bitget extends bitgetRest {
|
|
|
159
159
|
* @name bitget#watchTickers
|
|
160
160
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
161
161
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
162
|
-
* @param {object} [params] extra parameters specific to the
|
|
162
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
163
163
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
164
164
|
*/
|
|
165
165
|
await this.loadMarkets();
|
|
@@ -324,7 +324,7 @@ export default class bitget extends bitgetRest {
|
|
|
324
324
|
* @param {string} timeframe the length of time each candle represents
|
|
325
325
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
326
326
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
327
|
-
* @param {object} [params] extra parameters specific to the
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
328
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
329
329
|
*/
|
|
330
330
|
await this.loadMarkets();
|
|
@@ -353,7 +353,7 @@ export default class bitget extends bitgetRest {
|
|
|
353
353
|
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
354
354
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
355
355
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
356
|
-
* @param {object} [params] extra parameters specific to the
|
|
356
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
357
357
|
* @returns {object} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
358
358
|
*/
|
|
359
359
|
await this.loadMarkets();
|
|
@@ -462,7 +462,7 @@ export default class bitget extends bitgetRest {
|
|
|
462
462
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
463
463
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
464
464
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
465
|
-
* @param {object} [params] extra parameters specific to the
|
|
465
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
466
466
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
467
467
|
*/
|
|
468
468
|
await this.loadMarkets();
|
|
@@ -496,7 +496,7 @@ export default class bitget extends bitgetRest {
|
|
|
496
496
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
497
497
|
* @param {string[]} symbols unified array of symbols
|
|
498
498
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
499
|
-
* @param {object} [params] extra parameters specific to the
|
|
499
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
500
500
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
501
501
|
*/
|
|
502
502
|
await this.loadMarkets();
|
|
@@ -636,7 +636,7 @@ export default class bitget extends bitgetRest {
|
|
|
636
636
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
637
637
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
638
638
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
639
|
-
* @param {object} [params] extra parameters specific to the
|
|
639
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
640
640
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
641
641
|
*/
|
|
642
642
|
await this.loadMarkets();
|
|
@@ -663,7 +663,7 @@ export default class bitget extends bitgetRest {
|
|
|
663
663
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
664
664
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
665
665
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
666
|
-
* @param {object} [params] extra parameters specific to the
|
|
666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
667
667
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
668
668
|
*/
|
|
669
669
|
const symbolsLength = symbols.length;
|
|
@@ -768,7 +768,7 @@ export default class bitget extends bitgetRest {
|
|
|
768
768
|
* @description watch all open positions
|
|
769
769
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#positions-channel
|
|
770
770
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
771
|
-
* @param {object} params extra parameters specific to the
|
|
771
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
772
772
|
* @param {string} params.instType Instrument Type umcbl:USDT Perpetual Contract Private Channel; dmcbl:Coin Margin Perpetual Contract Private Channel; cmcbl: USDC margin Perpetual Contract Private Channel
|
|
773
773
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
774
774
|
*/
|
|
@@ -951,7 +951,7 @@ export default class bitget extends bitgetRest {
|
|
|
951
951
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
952
952
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
953
953
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
954
|
-
* @param {object} [params] extra parameters specific to the
|
|
954
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
955
955
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
956
956
|
*/
|
|
957
957
|
await this.loadMarkets();
|
|
@@ -1274,7 +1274,7 @@ export default class bitget extends bitgetRest {
|
|
|
1274
1274
|
* @param {str} symbol unified market symbol
|
|
1275
1275
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1276
1276
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1277
|
-
* @param {object} [params] extra parameters specific to the
|
|
1277
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1278
1278
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1279
1279
|
*/
|
|
1280
1280
|
// only contracts stream provides the trade info consistently in between order updates
|
|
@@ -1425,7 +1425,7 @@ export default class bitget extends bitgetRest {
|
|
|
1425
1425
|
* @method
|
|
1426
1426
|
* @name bitget#watchBalance
|
|
1427
1427
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1428
|
-
* @param {object} [params] extra parameters specific to the
|
|
1428
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1429
1429
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
1430
1430
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1431
1431
|
*/
|
package/js/src/pro/bitmart.js
CHANGED
|
@@ -96,7 +96,7 @@ export default class bitmart extends bitmartRest {
|
|
|
96
96
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
97
97
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
98
98
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
99
|
-
* @param {object} [params] extra parameters specific to the
|
|
99
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
100
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
101
101
|
*/
|
|
102
102
|
await this.loadMarkets();
|
|
@@ -113,7 +113,7 @@ export default class bitmart extends bitmartRest {
|
|
|
113
113
|
* @name bitmart#watchTicker
|
|
114
114
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
115
115
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
116
|
-
* @param {object} [params] extra parameters specific to the
|
|
116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117
117
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
118
118
|
*/
|
|
119
119
|
return await this.subscribe('ticker', symbol, params);
|
|
@@ -126,7 +126,7 @@ export default class bitmart extends bitmartRest {
|
|
|
126
126
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
127
127
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
128
128
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
129
|
-
* @param {object} [params] extra parameters specific to the
|
|
129
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130
130
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
131
131
|
*/
|
|
132
132
|
if (symbol === undefined) {
|
|
@@ -324,7 +324,7 @@ export default class bitmart extends bitmartRest {
|
|
|
324
324
|
* @param {string} timeframe the length of time each candle represents
|
|
325
325
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
326
326
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
327
|
-
* @param {object} [params] extra parameters specific to the
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
328
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
329
329
|
*/
|
|
330
330
|
await this.loadMarkets();
|
|
@@ -393,7 +393,7 @@ export default class bitmart extends bitmartRest {
|
|
|
393
393
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
394
394
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
395
395
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
396
|
-
* @param {object} [params] extra parameters specific to the
|
|
396
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
397
397
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
398
398
|
*/
|
|
399
399
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
package/js/src/pro/bitmex.js
CHANGED
|
@@ -58,7 +58,7 @@ export default class bitmex extends bitmexRest {
|
|
|
58
58
|
* @name bitmex#watchTicker
|
|
59
59
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
60
60
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
61
|
-
* @param {object} [params] extra parameters specific to the
|
|
61
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
62
62
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
63
63
|
*/
|
|
64
64
|
await this.loadMarkets();
|
|
@@ -322,7 +322,7 @@ export default class bitmex extends bitmexRest {
|
|
|
322
322
|
* @method
|
|
323
323
|
* @name bitmex#watchBalance
|
|
324
324
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
325
|
-
* @param {object} [params] extra parameters specific to the
|
|
325
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
326
326
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
327
327
|
*/
|
|
328
328
|
await this.loadMarkets();
|
|
@@ -533,7 +533,7 @@ export default class bitmex extends bitmexRest {
|
|
|
533
533
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
534
534
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
535
535
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
536
|
-
* @param {object} [params] extra parameters specific to the
|
|
536
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
537
537
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
538
538
|
*/
|
|
539
539
|
await this.loadMarkets();
|
|
@@ -602,7 +602,7 @@ export default class bitmex extends bitmexRest {
|
|
|
602
602
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
603
603
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
604
604
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
605
|
-
* @param {object} [params] extra parameters specific to the
|
|
605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
606
606
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
607
607
|
*/
|
|
608
608
|
await this.loadMarkets();
|
|
@@ -817,7 +817,7 @@ export default class bitmex extends bitmexRest {
|
|
|
817
817
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
818
818
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
819
819
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
820
|
-
* @param {object} [params] extra parameters specific to the
|
|
820
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
821
821
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
822
822
|
*/
|
|
823
823
|
await this.loadMarkets();
|
|
@@ -933,7 +933,7 @@ export default class bitmex extends bitmexRest {
|
|
|
933
933
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
934
934
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
935
935
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
936
|
-
* @param {object} [params] extra parameters specific to the
|
|
936
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
937
937
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
938
938
|
*/
|
|
939
939
|
let table = undefined;
|
|
@@ -969,7 +969,7 @@ export default class bitmex extends bitmexRest {
|
|
|
969
969
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
970
970
|
* @param {string[]} symbols unified array of symbols
|
|
971
971
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
972
|
-
* @param {object} [params] extra parameters specific to the
|
|
972
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
973
973
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
974
974
|
*/
|
|
975
975
|
let table = undefined;
|
|
@@ -1012,7 +1012,7 @@ export default class bitmex extends bitmexRest {
|
|
|
1012
1012
|
* @param {string} timeframe the length of time each candle represents
|
|
1013
1013
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1014
1014
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1015
|
-
* @param {object} [params] extra parameters specific to the
|
|
1015
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1016
1016
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1017
1017
|
*/
|
|
1018
1018
|
await this.loadMarkets();
|
package/js/src/pro/bitopro.js
CHANGED
|
@@ -58,7 +58,7 @@ export default class bitopro extends bitoproRest {
|
|
|
58
58
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
59
59
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
60
60
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
61
|
-
* @param {object} [params] extra parameters specific to the
|
|
61
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
62
62
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
63
63
|
*/
|
|
64
64
|
if (limit !== undefined) {
|
|
@@ -124,7 +124,7 @@ export default class bitopro extends bitoproRest {
|
|
|
124
124
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
125
125
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
126
126
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
127
|
-
* @param {object} [params] extra parameters specific to the
|
|
127
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
128
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
129
129
|
*/
|
|
130
130
|
await this.loadMarkets();
|
|
@@ -181,7 +181,7 @@ export default class bitopro extends bitoproRest {
|
|
|
181
181
|
* @name bitopro#watchTicker
|
|
182
182
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
183
183
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
184
|
-
* @param {object} [params] extra parameters specific to the
|
|
184
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
185
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
186
186
|
*/
|
|
187
187
|
await this.loadMarkets();
|
|
@@ -259,7 +259,7 @@ export default class bitopro extends bitoproRest {
|
|
|
259
259
|
* @method
|
|
260
260
|
* @name bitopro#watchBalance
|
|
261
261
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
262
|
-
* @param {object} [params] extra parameters specific to the
|
|
262
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
263
263
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
264
264
|
*/
|
|
265
265
|
this.checkRequiredCredentials();
|