ccxt 4.1.64 → 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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- 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 +1 -0
- 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 +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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 +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- 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/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 +1 -0
- 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 +28 -28
- package/js/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- 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
|
@@ -208,7 +208,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
208
208
|
* @name poloniexfutures#fetchMarkets
|
|
209
209
|
* @description retrieves data on all markets for poloniexfutures
|
|
210
210
|
* @see https://futures-docs.poloniex.com/#symbol-2
|
|
211
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
212
212
|
* @returns {object[]} an array of objects representing market data
|
|
213
213
|
*/
|
|
214
214
|
const response = await this.publicGetContractsActive(params);
|
|
@@ -404,7 +404,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
404
404
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
405
405
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
|
|
406
406
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
407
|
-
* @param {object} [params] extra parameters specific to the
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
409
409
|
*/
|
|
410
410
|
await this.loadMarkets();
|
|
@@ -437,10 +437,10 @@ export default class poloniexfutures extends Exchange {
|
|
|
437
437
|
/**
|
|
438
438
|
* @method
|
|
439
439
|
* @name poloniexfutures#fetchTickers
|
|
440
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
440
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
441
441
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
|
442
442
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
443
|
-
* @param {object} [params] extra parameters specific to the
|
|
443
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
444
444
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
445
445
|
*/
|
|
446
446
|
await this.loadMarkets();
|
|
@@ -456,7 +456,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
456
456
|
* @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
|
|
457
457
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
458
458
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
459
|
-
* @param {object} [params] extra parameters specific to the
|
|
459
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
460
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
461
461
|
*/
|
|
462
462
|
await this.loadMarkets();
|
|
@@ -542,7 +542,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
542
542
|
* @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
|
|
543
543
|
* @param {string} symbol unified market symbol
|
|
544
544
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
545
|
-
* @param {object} [params] extra parameters specific to the
|
|
545
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
546
546
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
547
547
|
*/
|
|
548
548
|
await this.loadMarkets();
|
|
@@ -650,7 +650,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
650
650
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
651
651
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
652
652
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
653
|
-
* @param {object} [params] extra parameters specific to the
|
|
653
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
654
654
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
655
655
|
*/
|
|
656
656
|
await this.loadMarkets();
|
|
@@ -684,7 +684,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
684
684
|
* @name poloniexfutures#fetchTime
|
|
685
685
|
* @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
|
686
686
|
* @see https://futures-docs.poloniex.com/#time
|
|
687
|
-
* @param {object} [params] extra parameters specific to the
|
|
687
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
688
688
|
* @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
|
|
689
689
|
*/
|
|
690
690
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -707,7 +707,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
707
707
|
* @param {string} timeframe the length of time each candle represents
|
|
708
708
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
709
709
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
710
|
-
* @param {object} [params] extra parameters specific to the
|
|
710
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
711
711
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
712
712
|
*/
|
|
713
713
|
await this.loadMarkets();
|
|
@@ -772,7 +772,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
772
772
|
* @name poloniexfutures#fetchBalance
|
|
773
773
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
774
774
|
* @see https://futures-docs.poloniex.com/#get-account-overview
|
|
775
|
-
* @param {object} [params] extra parameters specific to the
|
|
775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
776
776
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
@@ -813,7 +813,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
813
813
|
* @param {string} side 'buy' or 'sell'
|
|
814
814
|
* @param {float} amount the amount of currency to trade
|
|
815
815
|
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
816
|
-
* @param {object} [params]
|
|
816
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
817
817
|
* @param {float} [params.leverage] Leverage size of the order
|
|
818
818
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
819
819
|
* @param {bool} [params.reduceOnly] A mark to reduce the position size only. Set to false by default. Need to set the position size when reduceOnly is true.
|
|
@@ -918,7 +918,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
918
918
|
* @see https://futures-docs.poloniex.com/#cancel-an-order
|
|
919
919
|
* @param {string} id order id
|
|
920
920
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
921
|
-
* @param {object} [params] extra parameters specific to the
|
|
921
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
922
922
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
923
923
|
*/
|
|
924
924
|
await this.loadMarkets();
|
|
@@ -957,7 +957,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
957
957
|
* @description fetch all open positions
|
|
958
958
|
* @see https://futures-docs.poloniex.com/#get-position-list
|
|
959
959
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
960
|
-
* @param {object} [params] extra parameters specific to the
|
|
960
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
961
961
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
962
962
|
*/
|
|
963
963
|
await this.loadMarkets();
|
|
@@ -1113,7 +1113,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1113
1113
|
* @param {string} symbol unified market symbol
|
|
1114
1114
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1115
1115
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1116
|
-
* @param {object} [params] extra parameters specific to the
|
|
1116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1117
1117
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
1118
1118
|
*/
|
|
1119
1119
|
if (symbol === undefined) {
|
|
@@ -1183,7 +1183,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1183
1183
|
* @name poloniexfutures#cancelAllOrders
|
|
1184
1184
|
* @description cancel all open orders
|
|
1185
1185
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1186
|
-
* @param {object} [params] extra parameters specific to the
|
|
1186
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1187
1187
|
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1188
1188
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1189
1189
|
*/
|
|
@@ -1352,7 +1352,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1352
1352
|
* @param {string} symbol unified market symbol
|
|
1353
1353
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1354
1354
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1355
|
-
* @param {object} [params] extra parameters specific to the
|
|
1355
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1356
1356
|
* @param {int} [params.till] end time in ms
|
|
1357
1357
|
* @param {string} [params.side] buy or sell
|
|
1358
1358
|
* @param {string} [params.type] limit, or market
|
|
@@ -1370,7 +1370,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1370
1370
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1371
1371
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1372
1372
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1373
|
-
* @param {object} [params] extra parameters specific to the
|
|
1373
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1374
1374
|
* @param {int} [params.till] end time in ms
|
|
1375
1375
|
* @param {string} [params.side] buy or sell
|
|
1376
1376
|
* @param {string} [params.type] limit, or market
|
|
@@ -1386,7 +1386,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1386
1386
|
* @see https://futures-docs.poloniex.com/#get-details-of-a-single-order
|
|
1387
1387
|
* @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
|
|
1388
1388
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1389
|
-
* @param {object} [params] extra parameters specific to the
|
|
1389
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1390
1390
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1391
1391
|
*/
|
|
1392
1392
|
await this.loadMarkets();
|
|
@@ -1585,7 +1585,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1585
1585
|
* @description fetch the current funding rate
|
|
1586
1586
|
* @see https://futures-docs.poloniex.com/#get-premium-index
|
|
1587
1587
|
* @param {string} symbol unified market symbol
|
|
1588
|
-
* @param {object} [params] extra parameters specific to the
|
|
1588
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1589
1589
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1590
1590
|
*/
|
|
1591
1591
|
await this.loadMarkets();
|
|
@@ -1635,7 +1635,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1635
1635
|
* @param {string} symbol unified market symbol
|
|
1636
1636
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1637
1637
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1638
|
-
* @param {object} [params] extra parameters specific to the
|
|
1638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1639
1639
|
* @param {string} orderIdFills filles for a specific order (other parameters can be ignored if specified)
|
|
1640
1640
|
* @param {string} side buy or sell
|
|
1641
1641
|
* @param {string} type limit, market, limit_stop or market_stop
|
|
@@ -1698,7 +1698,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1698
1698
|
* @see https://futures-docs.poloniex.com/#change-margin-mode
|
|
1699
1699
|
* @param {int} marginMode 0 (isolated) or 1 (cross)
|
|
1700
1700
|
* @param {string} symbol unified market symbol
|
|
1701
|
-
* @param {object} [params] extra parameters specific to the
|
|
1701
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1702
1702
|
* @returns {object} response from the exchange
|
|
1703
1703
|
*/
|
|
1704
1704
|
if (symbol === undefined) {
|
package/js/src/pro/alpaca.js
CHANGED
|
@@ -53,7 +53,7 @@ export default class alpaca extends alpacaRest {
|
|
|
53
53
|
* @name alpaca#watchTicker
|
|
54
54
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
55
55
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
56
|
-
* @param {object} [params] extra parameters specific to the
|
|
56
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
57
57
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
58
58
|
*/
|
|
59
59
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -131,7 +131,7 @@ export default class alpaca extends alpacaRest {
|
|
|
131
131
|
* @param {string} timeframe the length of time each candle represents
|
|
132
132
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
133
133
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
134
|
-
* @param {object} [params] extra parameters specific to the
|
|
134
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
135
135
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
136
136
|
*/
|
|
137
137
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -185,7 +185,7 @@ export default class alpaca extends alpacaRest {
|
|
|
185
185
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
186
186
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
187
187
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
188
|
-
* @param {object} [params] extra parameters specific to the
|
|
188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
189
189
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
190
190
|
*/
|
|
191
191
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -265,7 +265,7 @@ export default class alpaca extends alpacaRest {
|
|
|
265
265
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
266
266
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
267
267
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
268
|
-
* @param {object} [params] extra parameters specific to the
|
|
268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
269
269
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
270
270
|
*/
|
|
271
271
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -317,7 +317,7 @@ export default class alpaca extends alpacaRest {
|
|
|
317
317
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
318
318
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
319
319
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
320
|
-
* @param {object} [params] extra parameters specific to the
|
|
320
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
321
321
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
322
322
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
323
323
|
*/
|
|
@@ -349,7 +349,7 @@ export default class alpaca extends alpacaRest {
|
|
|
349
349
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
350
350
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
351
351
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
352
|
-
* @param {object} [params] extra parameters specific to the
|
|
352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
353
353
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
354
354
|
*/
|
|
355
355
|
const url = this.urls['api']['ws']['trading'];
|
package/js/src/pro/ascendex.js
CHANGED
|
@@ -82,7 +82,7 @@ export default class ascendex extends ascendexRest {
|
|
|
82
82
|
* @param {string} timeframe the length of time each candle represents
|
|
83
83
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
84
84
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
85
|
-
* @param {object} [params] extra parameters specific to the
|
|
85
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
86
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
87
87
|
*/
|
|
88
88
|
await this.loadMarkets();
|
|
@@ -146,7 +146,7 @@ export default class ascendex extends ascendexRest {
|
|
|
146
146
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
147
147
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
148
148
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
149
|
-
* @param {object} [params] extra parameters specific to the
|
|
149
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
150
150
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
151
151
|
*/
|
|
152
152
|
await this.loadMarkets();
|
|
@@ -206,7 +206,7 @@ export default class ascendex extends ascendexRest {
|
|
|
206
206
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
207
207
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
208
208
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
209
|
-
* @param {object} [params] extra parameters specific to the
|
|
209
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
210
210
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
211
211
|
*/
|
|
212
212
|
await this.loadMarkets();
|
|
@@ -351,7 +351,7 @@ export default class ascendex extends ascendexRest {
|
|
|
351
351
|
* @method
|
|
352
352
|
* @name ascendex#watchBalance
|
|
353
353
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
354
|
-
* @param {object} [params] extra parameters specific to the
|
|
354
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
355
355
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
356
356
|
*/
|
|
357
357
|
await this.loadMarkets();
|
|
@@ -479,7 +479,7 @@ export default class ascendex extends ascendexRest {
|
|
|
479
479
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
480
480
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
481
481
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
482
|
-
* @param {object} [params] extra parameters specific to the
|
|
482
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
483
483
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
484
484
|
*/
|
|
485
485
|
await this.loadMarkets();
|
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();
|