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
package/dist/cjs/src/whitebit.js
CHANGED
|
@@ -272,7 +272,7 @@ class whitebit extends whitebit$1 {
|
|
|
272
272
|
* @name whitebit#fetchMarkets
|
|
273
273
|
* @description retrieves data on all markets for whitebit
|
|
274
274
|
* @see https://whitebit-exchange.github.io/api-docs/docs/Public/http-v4#market-info
|
|
275
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
275
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
276
276
|
* @returns {object[]} an array of objects representing market data
|
|
277
277
|
*/
|
|
278
278
|
const markets = await this.v4PublicGetMarkets();
|
|
@@ -395,7 +395,7 @@ class whitebit extends whitebit$1 {
|
|
|
395
395
|
* @method
|
|
396
396
|
* @name whitebit#fetchCurrencies
|
|
397
397
|
* @description fetches all available currencies on an exchange
|
|
398
|
-
* @param {object} [params] extra parameters specific to the
|
|
398
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
399
399
|
* @returns {object} an associative dictionary of currencies
|
|
400
400
|
*/
|
|
401
401
|
const response = await this.v4PublicGetAssets(params);
|
|
@@ -455,7 +455,7 @@ class whitebit extends whitebit$1 {
|
|
|
455
455
|
* @deprecated
|
|
456
456
|
* @description please use fetchDepositWithdrawFees instead
|
|
457
457
|
* @param {string[]|undefined} codes not used by fetchTransactionFees ()
|
|
458
|
-
* @param {object} [params] extra parameters specific to the
|
|
458
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
459
459
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
460
460
|
*/
|
|
461
461
|
await this.loadMarkets();
|
|
@@ -509,7 +509,7 @@ class whitebit extends whitebit$1 {
|
|
|
509
509
|
* @name whitebit#fetchDepositWithdrawFees
|
|
510
510
|
* @description fetch deposit and withdraw fees
|
|
511
511
|
* @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
|
|
512
|
-
* @param {object} [params] extra parameters specific to the
|
|
512
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
513
513
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
514
514
|
*/
|
|
515
515
|
await this.loadMarkets();
|
|
@@ -657,7 +657,7 @@ class whitebit extends whitebit$1 {
|
|
|
657
657
|
* @method
|
|
658
658
|
* @name whitebit#fetchTradingFees
|
|
659
659
|
* @description fetch the trading fees for multiple markets
|
|
660
|
-
* @param {object} [params] extra parameters specific to the
|
|
660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
661
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
662
662
|
*/
|
|
663
663
|
await this.loadMarkets();
|
|
@@ -705,7 +705,7 @@ class whitebit extends whitebit$1 {
|
|
|
705
705
|
* @name whitebit#fetchTicker
|
|
706
706
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
707
707
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
708
|
-
* @param {object} [params] extra parameters specific to the
|
|
708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
709
709
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
710
710
|
*/
|
|
711
711
|
await this.loadMarkets();
|
|
@@ -791,9 +791,9 @@ class whitebit extends whitebit$1 {
|
|
|
791
791
|
/**
|
|
792
792
|
* @method
|
|
793
793
|
* @name whitebit#fetchTickers
|
|
794
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
794
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
795
795
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
796
|
-
* @param {object} [params] extra parameters specific to the
|
|
796
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
797
797
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
798
798
|
*/
|
|
799
799
|
await this.loadMarkets();
|
|
@@ -829,7 +829,7 @@ class whitebit extends whitebit$1 {
|
|
|
829
829
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
830
830
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
831
831
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
832
|
-
* @param {object} [params] extra parameters specific to the
|
|
832
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
833
833
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
834
834
|
*/
|
|
835
835
|
await this.loadMarkets();
|
|
@@ -871,7 +871,7 @@ class whitebit extends whitebit$1 {
|
|
|
871
871
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
872
872
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
873
873
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
874
|
-
* @param {object} [params] extra parameters specific to the
|
|
874
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
875
875
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
876
876
|
*/
|
|
877
877
|
await this.loadMarkets();
|
|
@@ -902,7 +902,7 @@ class whitebit extends whitebit$1 {
|
|
|
902
902
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
903
903
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
904
904
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
905
|
-
* @param {object} [params] extra parameters specific to the
|
|
905
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
906
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
907
907
|
*/
|
|
908
908
|
await this.loadMarkets();
|
|
@@ -1056,7 +1056,7 @@ class whitebit extends whitebit$1 {
|
|
|
1056
1056
|
* @param {string} timeframe the length of time each candle represents
|
|
1057
1057
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1058
1058
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1059
|
-
* @param {object} [params] extra parameters specific to the
|
|
1059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1060
1060
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1061
1061
|
*/
|
|
1062
1062
|
await this.loadMarkets();
|
|
@@ -1118,7 +1118,7 @@ class whitebit extends whitebit$1 {
|
|
|
1118
1118
|
* @method
|
|
1119
1119
|
* @name whitebit#fetchStatus
|
|
1120
1120
|
* @description the latest known information on the availability of the exchange API
|
|
1121
|
-
* @param {object} [params] extra parameters specific to the
|
|
1121
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1122
1122
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
1123
1123
|
*/
|
|
1124
1124
|
const response = await this.v4PublicGetPing(params);
|
|
@@ -1141,7 +1141,7 @@ class whitebit extends whitebit$1 {
|
|
|
1141
1141
|
* @method
|
|
1142
1142
|
* @name whitebit#fetchTime
|
|
1143
1143
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1144
|
-
* @param {object} [params] extra parameters specific to the
|
|
1144
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1145
1145
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1146
1146
|
*/
|
|
1147
1147
|
const response = await this.v4PublicGetTime(params);
|
|
@@ -1162,7 +1162,7 @@ class whitebit extends whitebit$1 {
|
|
|
1162
1162
|
* @param {string} side 'buy' or 'sell'
|
|
1163
1163
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1164
1164
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1165
|
-
* @param {object} [params] extra parameters specific to the
|
|
1165
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1166
1166
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1167
1167
|
*/
|
|
1168
1168
|
await this.loadMarkets();
|
|
@@ -1241,7 +1241,7 @@ class whitebit extends whitebit$1 {
|
|
|
1241
1241
|
* @description cancels an open order
|
|
1242
1242
|
* @param {string} id order id
|
|
1243
1243
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1244
|
-
* @param {object} [params] extra parameters specific to the
|
|
1244
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1245
1245
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1246
1246
|
*/
|
|
1247
1247
|
if (symbol === undefined) {
|
|
@@ -1282,7 +1282,7 @@ class whitebit extends whitebit$1 {
|
|
|
1282
1282
|
* @method
|
|
1283
1283
|
* @name whitebit#fetchBalance
|
|
1284
1284
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1285
|
-
* @param {object} [params] extra parameters specific to the
|
|
1285
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1286
1286
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1287
1287
|
*/
|
|
1288
1288
|
await this.loadMarkets();
|
|
@@ -1336,7 +1336,7 @@ class whitebit extends whitebit$1 {
|
|
|
1336
1336
|
* @param {string} symbol unified market symbol
|
|
1337
1337
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1338
1338
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1339
|
-
* @param {object} [params] extra parameters specific to the
|
|
1339
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1340
1340
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1341
1341
|
*/
|
|
1342
1342
|
if (symbol === undefined) {
|
|
@@ -1381,7 +1381,7 @@ class whitebit extends whitebit$1 {
|
|
|
1381
1381
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1382
1382
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1383
1383
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1384
|
-
* @param {object} [params] extra parameters specific to the
|
|
1384
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1385
1385
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1386
1386
|
*/
|
|
1387
1387
|
await this.loadMarkets();
|
|
@@ -1542,7 +1542,7 @@ class whitebit extends whitebit$1 {
|
|
|
1542
1542
|
* @param {string} symbol unified market symbol
|
|
1543
1543
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1544
1544
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1545
|
-
* @param {object} [params] extra parameters specific to the
|
|
1545
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1546
1546
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1547
1547
|
*/
|
|
1548
1548
|
await this.loadMarkets();
|
|
@@ -1586,7 +1586,7 @@ class whitebit extends whitebit$1 {
|
|
|
1586
1586
|
* @name whitebit#fetchDepositAddress
|
|
1587
1587
|
* @description fetch the deposit address for a currency associated with this account
|
|
1588
1588
|
* @param {string} code unified currency code
|
|
1589
|
-
* @param {object} [params] extra parameters specific to the
|
|
1589
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1590
1590
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1591
1591
|
*/
|
|
1592
1592
|
await this.loadMarkets();
|
|
@@ -1659,7 +1659,7 @@ class whitebit extends whitebit$1 {
|
|
|
1659
1659
|
* @description set the level of leverage for a market
|
|
1660
1660
|
* @param {float} leverage the rate of leverage
|
|
1661
1661
|
* @param {string} symbol unified market symbol
|
|
1662
|
-
* @param {object} [params] extra parameters specific to the
|
|
1662
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1663
1663
|
* @returns {object} response from the exchange
|
|
1664
1664
|
*/
|
|
1665
1665
|
await this.loadMarkets();
|
|
@@ -1687,7 +1687,7 @@ class whitebit extends whitebit$1 {
|
|
|
1687
1687
|
* @param {float} amount amount to transfer
|
|
1688
1688
|
* @param {string} fromAccount account to transfer from - main, spot, collateral
|
|
1689
1689
|
* @param {string} toAccount account to transfer to - main, spot, collateral
|
|
1690
|
-
* @param {object} [params] extra parameters specific to the
|
|
1690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1691
1691
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1692
1692
|
*/
|
|
1693
1693
|
await this.loadMarkets();
|
|
@@ -1733,7 +1733,7 @@ class whitebit extends whitebit$1 {
|
|
|
1733
1733
|
* @param {float} amount the amount to withdraw
|
|
1734
1734
|
* @param {string} address the address to withdraw to
|
|
1735
1735
|
* @param {string} tag
|
|
1736
|
-
* @param {object} [params] extra parameters specific to the
|
|
1736
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1737
1737
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1738
1738
|
*/
|
|
1739
1739
|
await this.loadMarkets();
|
|
@@ -1857,7 +1857,7 @@ class whitebit extends whitebit$1 {
|
|
|
1857
1857
|
* @description fetch information on a deposit
|
|
1858
1858
|
* @param {string} id deposit id
|
|
1859
1859
|
* @param {string} code not used by whitebit fetchDeposit ()
|
|
1860
|
-
* @param {object} [params] extra parameters specific to the
|
|
1860
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1861
1861
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1862
1862
|
*/
|
|
1863
1863
|
await this.loadMarkets();
|
|
@@ -1922,7 +1922,7 @@ class whitebit extends whitebit$1 {
|
|
|
1922
1922
|
* @param {string} code unified currency code
|
|
1923
1923
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1924
1924
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1925
|
-
* @param {object} [params] extra parameters specific to the
|
|
1925
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1926
1926
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1927
1927
|
*/
|
|
1928
1928
|
await this.loadMarkets();
|
|
@@ -1990,7 +1990,7 @@ class whitebit extends whitebit$1 {
|
|
|
1990
1990
|
* @param {string} symbol unified market symbol
|
|
1991
1991
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
1992
1992
|
* @param {int} [limit] the maximum number of 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
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
1995
1995
|
*/
|
|
1996
1996
|
await this.loadMarkets();
|
|
@@ -2067,7 +2067,7 @@ class whitebit extends whitebit$1 {
|
|
|
2067
2067
|
* @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
|
2068
2068
|
* @description fetch the current funding rate
|
|
2069
2069
|
* @param {string} symbol unified market symbol
|
|
2070
|
-
* @param {object} [params] extra parameters specific to the
|
|
2070
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2071
2071
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2072
2072
|
*/
|
|
2073
2073
|
await this.loadMarkets();
|
|
@@ -2082,7 +2082,7 @@ class whitebit extends whitebit$1 {
|
|
|
2082
2082
|
* @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
|
2083
2083
|
* @description fetch the funding rate for multiple markets
|
|
2084
2084
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2085
|
-
* @param {object} [params] extra parameters specific to the
|
|
2085
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2086
2086
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2087
2087
|
*/
|
|
2088
2088
|
await this.loadMarkets();
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -304,7 +304,7 @@ class woo extends woo$1 {
|
|
|
304
304
|
* @method
|
|
305
305
|
* @name woo#fetchMarkets
|
|
306
306
|
* @description retrieves data on all markets for woo
|
|
307
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
307
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
308
308
|
* @returns {object[]} an array of objects representing market data
|
|
309
309
|
*/
|
|
310
310
|
const response = await this.v1PublicGetInfo(params);
|
|
@@ -424,7 +424,7 @@ class woo extends woo$1 {
|
|
|
424
424
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
425
425
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
426
426
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
427
|
-
* @param {object} [params] extra parameters specific to the
|
|
427
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
428
428
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
429
429
|
*/
|
|
430
430
|
await this.loadMarkets();
|
|
@@ -548,7 +548,7 @@ class woo extends woo$1 {
|
|
|
548
548
|
* @name woo#fetchTradingFees
|
|
549
549
|
* @description fetch the trading fees for multiple markets
|
|
550
550
|
* @see https://docs.woo.org/#get-account-information-new
|
|
551
|
-
* @param {object} [params] extra parameters specific to the
|
|
551
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
552
552
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
553
553
|
*/
|
|
554
554
|
await this.loadMarkets();
|
|
@@ -603,7 +603,7 @@ class woo extends woo$1 {
|
|
|
603
603
|
* @method
|
|
604
604
|
* @name woo#fetchCurrencies
|
|
605
605
|
* @description fetches all available currencies on an exchange
|
|
606
|
-
* @param {object} [params] extra parameters specific to the
|
|
606
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
607
607
|
* @returns {object} an associative dictionary of currencies
|
|
608
608
|
*/
|
|
609
609
|
const result = {};
|
|
@@ -746,7 +746,7 @@ class woo extends woo$1 {
|
|
|
746
746
|
* @param {string} side 'buy' or 'sell'
|
|
747
747
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
748
748
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
749
|
-
* @param {object} [params] extra parameters specific to the
|
|
749
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
750
750
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
751
751
|
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
752
752
|
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
@@ -926,7 +926,7 @@ class woo extends woo$1 {
|
|
|
926
926
|
* @param {string} side 'buy' or 'sell'
|
|
927
927
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
928
928
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
929
|
-
* @param {object} [params] extra parameters specific to the
|
|
929
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
930
930
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
931
931
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
932
932
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
@@ -997,7 +997,7 @@ class woo extends woo$1 {
|
|
|
997
997
|
* @description cancels an open order
|
|
998
998
|
* @param {string} id order id
|
|
999
999
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1000
|
-
* @param {object} [params] extra parameters specific to the
|
|
1000
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1001
1001
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1002
1002
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1003
1003
|
*/
|
|
@@ -1053,7 +1053,7 @@ class woo extends woo$1 {
|
|
|
1053
1053
|
* @see https://docs.woo.org/#cancel-all-pending-algo-orders
|
|
1054
1054
|
* @description cancel all open orders in a market
|
|
1055
1055
|
* @param {string} symbol unified market symbol
|
|
1056
|
-
* @param {object} [params] extra parameters specific to the
|
|
1056
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1057
1057
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1058
1058
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1059
1059
|
*/
|
|
@@ -1087,7 +1087,7 @@ class woo extends woo$1 {
|
|
|
1087
1087
|
* @see https://docs.woo.org/#get-order
|
|
1088
1088
|
* @description fetches information on an order made by the user
|
|
1089
1089
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1090
|
-
* @param {object} [params] extra parameters specific to the
|
|
1090
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1091
1091
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1092
1092
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1093
1093
|
*/
|
|
@@ -1158,7 +1158,7 @@ class woo extends woo$1 {
|
|
|
1158
1158
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1159
1159
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1160
1160
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1161
|
-
* @param {object} [params] extra parameters specific to the
|
|
1161
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1162
1162
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1163
1163
|
* @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
|
|
1164
1164
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
@@ -1369,7 +1369,7 @@ class woo extends woo$1 {
|
|
|
1369
1369
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1370
1370
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1371
1371
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1372
|
-
* @param {object} [params] extra parameters specific to the
|
|
1372
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1373
1373
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1374
1374
|
*/
|
|
1375
1375
|
await this.loadMarkets();
|
|
@@ -1411,7 +1411,7 @@ class woo extends woo$1 {
|
|
|
1411
1411
|
* @param {string} timeframe the length of time each candle represents
|
|
1412
1412
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1413
1413
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1414
|
-
* @param {object} [params] extra parameters specific to the
|
|
1414
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1415
1415
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1416
1416
|
*/
|
|
1417
1417
|
await this.loadMarkets();
|
|
@@ -1477,7 +1477,7 @@ class woo extends woo$1 {
|
|
|
1477
1477
|
* @param {string} symbol unified market symbol
|
|
1478
1478
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1479
1479
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1480
|
-
* @param {object} [params] extra parameters specific to the
|
|
1480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1481
1481
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1482
1482
|
*/
|
|
1483
1483
|
await this.loadMarkets();
|
|
@@ -1518,7 +1518,7 @@ class woo extends woo$1 {
|
|
|
1518
1518
|
* @param {string} symbol unified market symbol
|
|
1519
1519
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1520
1520
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1521
|
-
* @param {object} [params] extra parameters specific to the
|
|
1521
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1522
1522
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1523
1523
|
*/
|
|
1524
1524
|
await this.loadMarkets();
|
|
@@ -1563,7 +1563,7 @@ class woo extends woo$1 {
|
|
|
1563
1563
|
* @method
|
|
1564
1564
|
* @name woo#fetchAccounts
|
|
1565
1565
|
* @description fetch all the accounts associated with a profile
|
|
1566
|
-
* @param {object} [params] extra parameters specific to the
|
|
1566
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1567
1567
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1568
1568
|
*/
|
|
1569
1569
|
const response = await this.v1PrivateGetSubAccountAssets(params);
|
|
@@ -1609,7 +1609,7 @@ class woo extends woo$1 {
|
|
|
1609
1609
|
* @name woo#fetchBalance
|
|
1610
1610
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1611
1611
|
* @see https://docs.woo.org/#get-current-holding-get-balance-new
|
|
1612
|
-
* @param {object} [params] extra parameters specific to the
|
|
1612
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1613
1613
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1614
1614
|
*/
|
|
1615
1615
|
await this.loadMarkets();
|
|
@@ -1661,7 +1661,7 @@ class woo extends woo$1 {
|
|
|
1661
1661
|
* @name woo#fetchDepositAddress
|
|
1662
1662
|
* @description fetch the deposit address for a currency associated with this account
|
|
1663
1663
|
* @param {string} code unified currency code
|
|
1664
|
-
* @param {object} [params] extra parameters specific to the
|
|
1664
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1665
1665
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1666
1666
|
*/
|
|
1667
1667
|
// this method is TODO because of networks unification
|
|
@@ -1755,7 +1755,7 @@ class woo extends woo$1 {
|
|
|
1755
1755
|
* @param {string} code unified currency code, default is undefined
|
|
1756
1756
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1757
1757
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1758
|
-
* @param {object} [params] extra parameters specific to the
|
|
1758
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1759
1759
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1760
1760
|
*/
|
|
1761
1761
|
const [currency, rows] = await this.getAssetHistoryRows(code, since, limit, params);
|
|
@@ -1819,7 +1819,7 @@ class woo extends woo$1 {
|
|
|
1819
1819
|
* @param {string} code unified currency code
|
|
1820
1820
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1821
1821
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1822
|
-
* @param {object} [params] extra parameters specific to the
|
|
1822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1823
1823
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1824
1824
|
*/
|
|
1825
1825
|
const request = {
|
|
@@ -1835,7 +1835,7 @@ class woo extends woo$1 {
|
|
|
1835
1835
|
* @param {string} code unified currency code
|
|
1836
1836
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1837
1837
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1838
|
-
* @param {object} [params] extra parameters specific to the
|
|
1838
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1839
1839
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1840
1840
|
*/
|
|
1841
1841
|
const request = {
|
|
@@ -1851,7 +1851,7 @@ class woo extends woo$1 {
|
|
|
1851
1851
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1852
1852
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1853
1853
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1854
|
-
* @param {object} [params] extra parameters specific to the
|
|
1854
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1855
1855
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1856
1856
|
*/
|
|
1857
1857
|
const request = {
|
|
@@ -1926,7 +1926,7 @@ class woo extends woo$1 {
|
|
|
1926
1926
|
* @param {float} amount amount to transfer
|
|
1927
1927
|
* @param {string} fromAccount account to transfer from
|
|
1928
1928
|
* @param {string} toAccount account to transfer to
|
|
1929
|
-
* @param {object} [params] extra parameters specific to the
|
|
1929
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1930
1930
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1931
1931
|
*/
|
|
1932
1932
|
await this.loadMarkets();
|
|
@@ -1962,7 +1962,7 @@ class woo extends woo$1 {
|
|
|
1962
1962
|
* @param {string} code unified currency code of the currency transferred
|
|
1963
1963
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1964
1964
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1965
|
-
* @param {object} [params] extra parameters specific to the
|
|
1965
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1966
1966
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1967
1967
|
*/
|
|
1968
1968
|
const request = {
|
|
@@ -2053,7 +2053,7 @@ class woo extends woo$1 {
|
|
|
2053
2053
|
* @param {float} amount the amount to withdraw
|
|
2054
2054
|
* @param {string} address the address to withdraw to
|
|
2055
2055
|
* @param {string} tag
|
|
2056
|
-
* @param {object} [params] extra parameters specific to the
|
|
2056
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2057
2057
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2058
2058
|
*/
|
|
2059
2059
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2095,7 +2095,7 @@ class woo extends woo$1 {
|
|
|
2095
2095
|
* @param {string} code unified currency code of the currency to repay
|
|
2096
2096
|
* @param {float} amount the amount to repay
|
|
2097
2097
|
* @param {string} symbol not used by woo.repayMargin ()
|
|
2098
|
-
* @param {object} [params] extra parameters specific to the
|
|
2098
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2099
2099
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
2100
2100
|
*/
|
|
2101
2101
|
await this.loadMarkets();
|
|
@@ -2385,7 +2385,7 @@ class woo extends woo$1 {
|
|
|
2385
2385
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2386
2386
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2387
2387
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2388
|
-
* @param {object} [params] extra parameters specific to the
|
|
2388
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2389
2389
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2390
2390
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2391
2391
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
package/dist/cjs/src/yobit.js
CHANGED
|
@@ -305,7 +305,7 @@ class yobit extends yobit$1 {
|
|
|
305
305
|
* @name yobit#fetchBalance
|
|
306
306
|
* @see https://yobit.net/en/api
|
|
307
307
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
308
|
-
* @param {object} [params] extra parameters specific to the
|
|
308
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
309
309
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
310
310
|
*/
|
|
311
311
|
await this.loadMarkets();
|
|
@@ -343,7 +343,7 @@ class yobit extends yobit$1 {
|
|
|
343
343
|
* @name yobit#fetchMarkets
|
|
344
344
|
* @see https://yobit.net/en/api
|
|
345
345
|
* @description retrieves data on all markets for yobit
|
|
346
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
346
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
347
347
|
* @returns {object[]} an array of objects representing market data
|
|
348
348
|
*/
|
|
349
349
|
const response = await this.publicGetInfo(params);
|
|
@@ -442,7 +442,7 @@ class yobit extends yobit$1 {
|
|
|
442
442
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
443
443
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
444
444
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
445
|
-
* @param {object} [params] extra parameters specific to the
|
|
445
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
446
446
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
447
447
|
*/
|
|
448
448
|
await this.loadMarkets();
|
|
@@ -469,7 +469,7 @@ class yobit extends yobit$1 {
|
|
|
469
469
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
470
470
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
471
471
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
472
|
-
* @param {object} [params] extra parameters specific to the
|
|
472
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
473
473
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
474
474
|
*/
|
|
475
475
|
await this.loadMarkets();
|
|
@@ -547,9 +547,9 @@ class yobit extends yobit$1 {
|
|
|
547
547
|
* @method
|
|
548
548
|
* @name yobit#fetchTickers
|
|
549
549
|
* @see https://yobit.net/en/api
|
|
550
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
550
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
551
551
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
552
|
-
* @param {object} [params] extra parameters specific to the
|
|
552
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
553
553
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
554
554
|
*/
|
|
555
555
|
if (symbols === undefined) {
|
|
@@ -595,7 +595,7 @@ class yobit extends yobit$1 {
|
|
|
595
595
|
* @see https://yobit.net/en/api
|
|
596
596
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
597
597
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
598
|
-
* @param {object} [params] extra parameters specific to the
|
|
598
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
599
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
600
600
|
*/
|
|
601
601
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -689,7 +689,7 @@ class yobit extends yobit$1 {
|
|
|
689
689
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
690
690
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
691
691
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
692
|
-
* @param {object} [params] extra parameters specific to the
|
|
692
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
693
693
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
@@ -729,7 +729,7 @@ class yobit extends yobit$1 {
|
|
|
729
729
|
* @name yobit#fetchTradingFees
|
|
730
730
|
* @see https://yobit.net/en/api
|
|
731
731
|
* @description fetch the trading fees for multiple markets
|
|
732
|
-
* @param {object} [params] extra parameters specific to the
|
|
732
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
733
733
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
734
734
|
*/
|
|
735
735
|
await this.loadMarkets();
|
|
@@ -786,7 +786,7 @@ class yobit extends yobit$1 {
|
|
|
786
786
|
* @param {string} side 'buy' or 'sell'
|
|
787
787
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
788
788
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
789
|
-
* @param {object} [params] extra parameters specific to the
|
|
789
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
790
790
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
791
791
|
*/
|
|
792
792
|
if (type === 'market') {
|
|
@@ -833,7 +833,7 @@ class yobit extends yobit$1 {
|
|
|
833
833
|
* @description cancels an open order
|
|
834
834
|
* @param {string} id order id
|
|
835
835
|
* @param {string} symbol not used by yobit cancelOrder ()
|
|
836
|
-
* @param {object} [params] extra parameters specific to the
|
|
836
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
837
837
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
838
838
|
*/
|
|
839
839
|
await this.loadMarkets();
|
|
@@ -982,7 +982,7 @@ class yobit extends yobit$1 {
|
|
|
982
982
|
* @see https://yobit.net/en/api
|
|
983
983
|
* @description fetches information on an order made by the user
|
|
984
984
|
* @param {string} symbol not used by yobit fetchOrder
|
|
985
|
-
* @param {object} [params] extra parameters specific to the
|
|
985
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
986
986
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
987
987
|
*/
|
|
988
988
|
await this.loadMarkets();
|
|
@@ -1019,7 +1019,7 @@ class yobit extends yobit$1 {
|
|
|
1019
1019
|
* @param {string} symbol unified market symbol
|
|
1020
1020
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1021
1021
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1022
|
-
* @param {object} [params] extra parameters specific to the
|
|
1022
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1023
1023
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1024
1024
|
*/
|
|
1025
1025
|
if (symbol === undefined) {
|
|
@@ -1068,7 +1068,7 @@ class yobit extends yobit$1 {
|
|
|
1068
1068
|
* @param {string} symbol unified market symbol
|
|
1069
1069
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1070
1070
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1071
|
-
* @param {object} [params] extra parameters specific to the
|
|
1071
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1072
1072
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1073
1073
|
*/
|
|
1074
1074
|
if (symbol === undefined) {
|
|
@@ -1129,7 +1129,7 @@ class yobit extends yobit$1 {
|
|
|
1129
1129
|
* @see https://yobit.net/en/api
|
|
1130
1130
|
* @description create a currency deposit address
|
|
1131
1131
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1132
|
-
* @param {object} [params] extra parameters specific to the
|
|
1132
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1133
1133
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1134
1134
|
*/
|
|
1135
1135
|
const request = {
|
|
@@ -1152,7 +1152,7 @@ class yobit extends yobit$1 {
|
|
|
1152
1152
|
* @see https://yobit.net/en/api
|
|
1153
1153
|
* @description fetch the deposit address for a currency associated with this account
|
|
1154
1154
|
* @param {string} code unified currency code
|
|
1155
|
-
* @param {object} [params] extra parameters specific to the
|
|
1155
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1156
1156
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1157
1157
|
*/
|
|
1158
1158
|
await this.loadMarkets();
|
|
@@ -1192,7 +1192,7 @@ class yobit extends yobit$1 {
|
|
|
1192
1192
|
* @param {float} amount the amount to withdraw
|
|
1193
1193
|
* @param {string} address the address to withdraw to
|
|
1194
1194
|
* @param {string} tag
|
|
1195
|
-
* @param {object} [params] extra parameters specific to the
|
|
1195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|