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/upbit.js
CHANGED
|
@@ -401,7 +401,7 @@ class upbit extends upbit$1 {
|
|
|
401
401
|
* @name upbit#fetchMarkets
|
|
402
402
|
* @see https://docs.upbit.com/reference/%EB%A7%88%EC%BC%93-%EC%BD%94%EB%93%9C-%EC%A1%B0%ED%9A%8C
|
|
403
403
|
* @description retrieves data on all markets for upbit
|
|
404
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
404
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
405
|
* @returns {object[]} an array of objects representing market data
|
|
406
406
|
*/
|
|
407
407
|
const response = await this.publicGetMarketAll(params);
|
|
@@ -497,7 +497,7 @@ class upbit extends upbit$1 {
|
|
|
497
497
|
* @name upbit#fetchBalance
|
|
498
498
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
|
499
499
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
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 [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
502
502
|
*/
|
|
503
503
|
await this.loadMarkets();
|
|
@@ -524,7 +524,7 @@ class upbit extends upbit$1 {
|
|
|
524
524
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
525
525
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
526
526
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
527
|
-
* @param {object} [params] extra parameters specific to the
|
|
527
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
528
528
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
529
529
|
*/
|
|
530
530
|
await this.loadMarkets();
|
|
@@ -598,7 +598,7 @@ class upbit extends upbit$1 {
|
|
|
598
598
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
599
599
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
600
600
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
601
|
-
* @param {object} [params] extra parameters specific to the
|
|
601
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
602
602
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
603
603
|
*/
|
|
604
604
|
const orderbooks = await this.fetchOrderBooks([symbol], limit, params);
|
|
@@ -665,9 +665,9 @@ class upbit extends upbit$1 {
|
|
|
665
665
|
* @method
|
|
666
666
|
* @name upbit#fetchTickers
|
|
667
667
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
668
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
668
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
669
669
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
670
|
-
* @param {object} [params] extra parameters specific to the
|
|
670
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
671
671
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
672
672
|
*/
|
|
673
673
|
await this.loadMarkets();
|
|
@@ -732,7 +732,7 @@ class upbit extends upbit$1 {
|
|
|
732
732
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
733
733
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
734
734
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
735
|
-
* @param {object} [params] extra parameters specific to the
|
|
735
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
736
736
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
737
737
|
*/
|
|
738
738
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -819,7 +819,7 @@ class upbit extends upbit$1 {
|
|
|
819
819
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
820
820
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
821
821
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
822
|
-
* @param {object} [params] extra parameters specific to the
|
|
822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
823
823
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
824
824
|
*/
|
|
825
825
|
await this.loadMarkets();
|
|
@@ -863,7 +863,7 @@ class upbit extends upbit$1 {
|
|
|
863
863
|
* @see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EA%B0%80%EB%8A%A5-%EC%A0%95%EB%B3%B4
|
|
864
864
|
* @description fetch the trading fees for a market
|
|
865
865
|
* @param {string} symbol unified market symbol
|
|
866
|
-
* @param {object} [params] extra parameters specific to the
|
|
866
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
867
867
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
868
868
|
*/
|
|
869
869
|
await this.loadMarkets();
|
|
@@ -956,7 +956,7 @@ class upbit extends upbit$1 {
|
|
|
956
956
|
* @param {string} timeframe the length of time each candle represents
|
|
957
957
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
958
958
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
959
|
-
* @param {object} [params] extra parameters specific to the
|
|
959
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
960
960
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
961
961
|
*/
|
|
962
962
|
await this.loadMarkets();
|
|
@@ -1027,7 +1027,7 @@ class upbit extends upbit$1 {
|
|
|
1027
1027
|
* @param {string} side 'buy' or 'sell'
|
|
1028
1028
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1029
1029
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1030
|
-
* @param {object} [params] extra parameters specific to the
|
|
1030
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1031
1031
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1032
1032
|
*/
|
|
1033
1033
|
if (type === 'market') {
|
|
@@ -1110,7 +1110,7 @@ class upbit extends upbit$1 {
|
|
|
1110
1110
|
* @description cancels an open order
|
|
1111
1111
|
* @param {string} id order id
|
|
1112
1112
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1113
|
-
* @param {object} [params] extra parameters specific to the
|
|
1113
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1114
1114
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1115
1115
|
*/
|
|
1116
1116
|
await this.loadMarkets();
|
|
@@ -1148,7 +1148,7 @@ class upbit extends upbit$1 {
|
|
|
1148
1148
|
* @param {string} code unified currency code
|
|
1149
1149
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1150
1150
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1151
|
-
* @param {object} [params] extra parameters specific to the
|
|
1151
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1152
1152
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1153
1153
|
*/
|
|
1154
1154
|
await this.loadMarkets();
|
|
@@ -1192,7 +1192,7 @@ class upbit extends upbit$1 {
|
|
|
1192
1192
|
* @param {string} code unified currency code
|
|
1193
1193
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1194
1194
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
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 list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
await this.loadMarkets();
|
|
@@ -1497,7 +1497,7 @@ class upbit extends upbit$1 {
|
|
|
1497
1497
|
* @param {string} symbol unified market symbol
|
|
1498
1498
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1499
1499
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1500
|
-
* @param {object} [params] extra parameters specific to the
|
|
1500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1501
1501
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1502
1502
|
*/
|
|
1503
1503
|
return await this.fetchOrdersByState('wait', symbol, since, limit, params);
|
|
@@ -1511,7 +1511,7 @@ class upbit extends upbit$1 {
|
|
|
1511
1511
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1512
1512
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1513
1513
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1514
|
-
* @param {object} [params] extra parameters specific to the
|
|
1514
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1515
1515
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1516
1516
|
*/
|
|
1517
1517
|
return await this.fetchOrdersByState('done', symbol, since, limit, params);
|
|
@@ -1525,7 +1525,7 @@ class upbit extends upbit$1 {
|
|
|
1525
1525
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1526
1526
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1527
1527
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1528
|
-
* @param {object} [params] extra parameters specific to the
|
|
1528
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1529
1529
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
return await this.fetchOrdersByState('cancel', symbol, since, limit, params);
|
|
@@ -1537,7 +1537,7 @@ class upbit extends upbit$1 {
|
|
|
1537
1537
|
* @see https://docs.upbit.com/reference/%EA%B0%9C%EB%B3%84-%EC%A3%BC%EB%AC%B8-%EC%A1%B0%ED%9A%8C
|
|
1538
1538
|
* @description fetches information on an order made by the user
|
|
1539
1539
|
* @param {string} symbol not used by upbit fetchOrder
|
|
1540
|
-
* @param {object} [params] extra parameters specific to the
|
|
1540
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1541
1541
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
await this.loadMarkets();
|
|
@@ -1597,7 +1597,7 @@ class upbit extends upbit$1 {
|
|
|
1597
1597
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C
|
|
1598
1598
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1599
1599
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1600
|
-
* @param {object} [params] extra parameters specific to the
|
|
1600
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1601
1601
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
await this.loadMarkets();
|
|
@@ -1651,7 +1651,7 @@ class upbit extends upbit$1 {
|
|
|
1651
1651
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C
|
|
1652
1652
|
* @description fetch the deposit address for a currency associated with this account
|
|
1653
1653
|
* @param {string} code unified currency code
|
|
1654
|
-
* @param {object} [params] extra parameters specific to the
|
|
1654
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1655
1655
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1656
1656
|
*/
|
|
1657
1657
|
await this.loadMarkets();
|
|
@@ -1675,7 +1675,7 @@ class upbit extends upbit$1 {
|
|
|
1675
1675
|
* @see https://docs.upbit.com/reference/%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%83%9D%EC%84%B1-%EC%9A%94%EC%B2%AD
|
|
1676
1676
|
* @description create a currency deposit address
|
|
1677
1677
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1678
|
-
* @param {object} [params] extra parameters specific to the
|
|
1678
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1679
1679
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1680
1680
|
*/
|
|
1681
1681
|
await this.loadMarkets();
|
|
@@ -1716,7 +1716,7 @@ class upbit extends upbit$1 {
|
|
|
1716
1716
|
* @param {float} amount the amount to withdraw
|
|
1717
1717
|
* @param {string} address the address to withdraw to
|
|
1718
1718
|
* @param {string} tag
|
|
1719
|
-
* @param {object} [params] extra parameters specific to the
|
|
1719
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1720
1720
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1721
1721
|
*/
|
|
1722
1722
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -489,7 +489,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
489
489
|
* @method
|
|
490
490
|
* @name wavesexchange#fetchMarkets
|
|
491
491
|
* @description retrieves data on all markets for wavesexchange
|
|
492
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
492
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
493
493
|
* @returns {object[]} an array of objects representing market data
|
|
494
494
|
*/
|
|
495
495
|
const response = await this.marketGetTickers();
|
|
@@ -591,7 +591,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
591
591
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
592
592
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
593
593
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
594
|
-
* @param {object} [params] extra parameters specific to the
|
|
594
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
595
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
596
596
|
*/
|
|
597
597
|
await this.loadMarkets();
|
|
@@ -737,7 +737,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
737
737
|
* @method
|
|
738
738
|
* @name wavesexchange#signIn
|
|
739
739
|
* @description sign in, must be called prior to using other authenticated methods
|
|
740
|
-
* @param {object} [params] extra parameters specific to the
|
|
740
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
741
741
|
* @returns response from exchange
|
|
742
742
|
*/
|
|
743
743
|
if (!this.safeString(this.options, 'accessToken')) {
|
|
@@ -851,7 +851,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
851
851
|
* @name wavesexchange#fetchTicker
|
|
852
852
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
853
853
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
854
|
-
* @param {object} [params] extra parameters specific to the
|
|
854
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
855
855
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
856
856
|
*/
|
|
857
857
|
await this.loadMarkets();
|
|
@@ -892,9 +892,9 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
892
892
|
/**
|
|
893
893
|
* @method
|
|
894
894
|
* @name wavesexchange#fetchTickers
|
|
895
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
895
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
896
896
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
897
|
-
* @param {object} [params] extra parameters specific to the
|
|
897
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
898
898
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
899
899
|
*/
|
|
900
900
|
await this.loadMarkets();
|
|
@@ -938,7 +938,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
938
938
|
* @param {string} timeframe the length of time each candle represents
|
|
939
939
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
940
940
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
941
|
-
* @param {object} [params] extra parameters specific to the
|
|
941
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
942
942
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
943
943
|
*/
|
|
944
944
|
await this.loadMarkets();
|
|
@@ -1056,7 +1056,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1056
1056
|
* @name wavesexchange#fetchDepositAddress
|
|
1057
1057
|
* @description fetch the deposit address for a currency associated with this account
|
|
1058
1058
|
* @param {string} code unified currency code
|
|
1059
|
-
* @param {object} [params] extra parameters specific to the
|
|
1059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1060
1060
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1061
1061
|
*/
|
|
1062
1062
|
await this.signIn();
|
|
@@ -1289,7 +1289,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1289
1289
|
* @param {string} side 'buy' or 'sell'
|
|
1290
1290
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1291
1291
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1292
|
-
* @param {object} [params] extra parameters specific to the
|
|
1292
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1293
1293
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1294
1294
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1295
1295
|
*/
|
|
@@ -1472,7 +1472,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1472
1472
|
* @description cancels an open order
|
|
1473
1473
|
* @param {string} id order id
|
|
1474
1474
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1475
|
-
* @param {object} [params] extra parameters specific to the
|
|
1475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1476
1476
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1477
1477
|
*/
|
|
1478
1478
|
this.checkRequiredDependencies();
|
|
@@ -1519,7 +1519,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1519
1519
|
* @name wavesexchange#fetchOrder
|
|
1520
1520
|
* @description fetches information on an order made by the user
|
|
1521
1521
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1522
|
-
* @param {object} [params] extra parameters specific to the
|
|
1522
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1523
1523
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1524
1524
|
*/
|
|
1525
1525
|
this.checkRequiredDependencies();
|
|
@@ -1554,7 +1554,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1554
1554
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1555
1555
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1556
1556
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1557
|
-
* @param {object} [params] extra parameters specific to the
|
|
1557
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1558
1558
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1559
1559
|
*/
|
|
1560
1560
|
this.checkRequiredDependencies();
|
|
@@ -1606,7 +1606,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1606
1606
|
* @param {string} symbol unified market symbol
|
|
1607
1607
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1608
1608
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1609
|
-
* @param {object} [params] extra parameters specific to the
|
|
1609
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1610
1610
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1611
1611
|
*/
|
|
1612
1612
|
await this.loadMarkets();
|
|
@@ -1631,7 +1631,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1631
1631
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1632
1632
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1633
1633
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1634
|
-
* @param {object} [params] extra parameters specific to the
|
|
1634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1635
1635
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1636
1636
|
*/
|
|
1637
1637
|
await this.loadMarkets();
|
|
@@ -1834,7 +1834,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1834
1834
|
* @method
|
|
1835
1835
|
* @name wavesexchange#fetchBalance
|
|
1836
1836
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1837
|
-
* @param {object} [params] extra parameters specific to the
|
|
1837
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1838
1838
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1839
1839
|
*/
|
|
1840
1840
|
// makes a lot of different requests to get all the data
|
|
@@ -1988,7 +1988,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1988
1988
|
* @param {string} symbol unified market symbol
|
|
1989
1989
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1990
1990
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1991
|
-
* @param {object} [params] extra parameters specific to the
|
|
1991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1992
1992
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1993
1993
|
*/
|
|
1994
1994
|
await this.loadMarkets();
|
|
@@ -2080,7 +2080,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2080
2080
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2081
2081
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2082
2082
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2083
|
-
* @param {object} [params] extra parameters specific to the
|
|
2083
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2084
2084
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2085
2085
|
*/
|
|
2086
2086
|
await this.loadMarkets();
|
|
@@ -2337,7 +2337,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2337
2337
|
* @see https://docs.wx.network/en/api/gateways/deposit/currencies
|
|
2338
2338
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2339
2339
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2340
|
-
* @param {object} [params] extra parameters specific to the
|
|
2340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2341
2341
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2342
2342
|
*/
|
|
2343
2343
|
await this.loadMarkets();
|
|
@@ -2434,7 +2434,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2434
2434
|
* @param {float} amount the amount to withdraw
|
|
2435
2435
|
* @param {string} address the address to withdraw to
|
|
2436
2436
|
* @param {string} tag
|
|
2437
|
-
* @param {object} [params] extra parameters specific to the
|
|
2437
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2438
2438
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2439
2439
|
*/
|
|
2440
2440
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/dist/cjs/src/wazirx.js
CHANGED
|
@@ -181,7 +181,7 @@ class wazirx extends wazirx$1 {
|
|
|
181
181
|
* @name wazirx#fetchMarkets
|
|
182
182
|
* @see https://docs.wazirx.com/#exchange-info
|
|
183
183
|
* @description retrieves data on all markets for wazirx
|
|
184
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
184
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
185
|
* @returns {object[]} an array of objects representing market data
|
|
186
186
|
*/
|
|
187
187
|
const response = await this.publicGetExchangeInfo(params);
|
|
@@ -298,7 +298,7 @@ class wazirx extends wazirx$1 {
|
|
|
298
298
|
* @param {string} timeframe the length of time each candle represents. Available values [1m,5m,15m,30m,1h,2h,4h,6h,12h,1d,1w]
|
|
299
299
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
300
300
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
301
|
-
* @param {object} [params] extra parameters specific to the
|
|
301
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
302
302
|
* @param {int} [params.until] timestamp in s of the latest candle to fetch
|
|
303
303
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
304
304
|
*/
|
|
@@ -349,7 +349,7 @@ class wazirx extends wazirx$1 {
|
|
|
349
349
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
350
350
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
351
351
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
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 dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
354
354
|
*/
|
|
355
355
|
await this.loadMarkets();
|
|
@@ -384,7 +384,7 @@ class wazirx extends wazirx$1 {
|
|
|
384
384
|
* @see https://docs.wazirx.com/#24hr-ticker-price-change-statistics
|
|
385
385
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
386
386
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
387
|
-
* @param {object} [params] extra parameters specific to the
|
|
387
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
388
388
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
389
389
|
*/
|
|
390
390
|
await this.loadMarkets();
|
|
@@ -415,9 +415,9 @@ class wazirx extends wazirx$1 {
|
|
|
415
415
|
* @method
|
|
416
416
|
* @name wazirx#fetchTickers
|
|
417
417
|
* @see https://docs.wazirx.com/#24hr-tickers-price-change-statistics
|
|
418
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
418
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
419
419
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
420
|
-
* @param {object} [params] extra parameters specific to the
|
|
420
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
421
421
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
422
422
|
*/
|
|
423
423
|
await this.loadMarkets();
|
|
@@ -457,7 +457,7 @@ class wazirx extends wazirx$1 {
|
|
|
457
457
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
458
458
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
459
459
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
460
|
-
* @param {object} [params] extra parameters specific to the
|
|
460
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
461
461
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
462
462
|
*/
|
|
463
463
|
await this.loadMarkets();
|
|
@@ -530,7 +530,7 @@ class wazirx extends wazirx$1 {
|
|
|
530
530
|
* @name wazirx#fetchStatus
|
|
531
531
|
* @see https://docs.wazirx.com/#system-status
|
|
532
532
|
* @description the latest known information on the availability of the exchange API
|
|
533
|
-
* @param {object} [params] extra parameters specific to the
|
|
533
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
534
534
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
535
535
|
*/
|
|
536
536
|
const response = await this.publicGetSystemStatus(params);
|
|
@@ -555,7 +555,7 @@ class wazirx extends wazirx$1 {
|
|
|
555
555
|
* @name wazirx#fetchTime
|
|
556
556
|
* @see https://docs.wazirx.com/#check-server-time
|
|
557
557
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
558
|
-
* @param {object} [params] extra parameters specific to the
|
|
558
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
559
559
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
560
560
|
*/
|
|
561
561
|
const response = await this.publicGetTime(params);
|
|
@@ -635,7 +635,7 @@ class wazirx extends wazirx$1 {
|
|
|
635
635
|
* @name wazirx#fetchBalance
|
|
636
636
|
* @see https://docs.wazirx.com/#fund-details-user_data
|
|
637
637
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
638
|
-
* @param {object} [params] extra parameters specific to the
|
|
638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
639
639
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
640
640
|
*/
|
|
641
641
|
await this.loadMarkets();
|
|
@@ -660,7 +660,7 @@ class wazirx extends wazirx$1 {
|
|
|
660
660
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
661
661
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
662
662
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
663
|
-
* @param {object} [params] extra parameters specific to the
|
|
663
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
664
664
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
665
665
|
*/
|
|
666
666
|
if (symbol === undefined) {
|
|
@@ -720,7 +720,7 @@ class wazirx extends wazirx$1 {
|
|
|
720
720
|
* @param {string} symbol unified market symbol
|
|
721
721
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
722
722
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
723
|
-
* @param {object} [params] extra parameters specific to the
|
|
723
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
724
724
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
725
725
|
*/
|
|
726
726
|
await this.loadMarkets();
|
|
@@ -768,7 +768,7 @@ class wazirx extends wazirx$1 {
|
|
|
768
768
|
* @see https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
|
|
769
769
|
* @description cancel all open orders in a market
|
|
770
770
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
771
|
-
* @param {object} [params] extra parameters specific to the
|
|
771
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
772
772
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
773
773
|
*/
|
|
774
774
|
if (symbol === undefined) {
|
|
@@ -789,7 +789,7 @@ class wazirx extends wazirx$1 {
|
|
|
789
789
|
* @description cancels an open order
|
|
790
790
|
* @param {string} id order id
|
|
791
791
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
792
|
-
* @param {object} [params] extra parameters specific to the
|
|
792
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
793
793
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
794
794
|
*/
|
|
795
795
|
if (symbol === undefined) {
|
|
@@ -815,7 +815,7 @@ class wazirx extends wazirx$1 {
|
|
|
815
815
|
* @param {string} side 'buy' or 'sell'
|
|
816
816
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
817
817
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
818
|
-
* @param {object} [params] extra parameters specific to the
|
|
818
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
819
819
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
820
820
|
*/
|
|
821
821
|
type = type.toLowerCase();
|