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/js/src/upbit.js
CHANGED
|
@@ -404,7 +404,7 @@ export default class upbit extends Exchange {
|
|
|
404
404
|
* @name upbit#fetchMarkets
|
|
405
405
|
* @see https://docs.upbit.com/reference/%EB%A7%88%EC%BC%93-%EC%BD%94%EB%93%9C-%EC%A1%B0%ED%9A%8C
|
|
406
406
|
* @description retrieves data on all markets for upbit
|
|
407
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {object[]} an array of objects representing market data
|
|
409
409
|
*/
|
|
410
410
|
const response = await this.publicGetMarketAll(params);
|
|
@@ -500,7 +500,7 @@ export default class upbit extends Exchange {
|
|
|
500
500
|
* @name upbit#fetchBalance
|
|
501
501
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
|
502
502
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
503
|
-
* @param {object} [params] extra parameters specific to the
|
|
503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
504
504
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
505
505
|
*/
|
|
506
506
|
await this.loadMarkets();
|
|
@@ -527,7 +527,7 @@ export default class upbit extends Exchange {
|
|
|
527
527
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
528
528
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
529
529
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
530
|
-
* @param {object} [params] extra parameters specific to the
|
|
530
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
531
531
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
532
532
|
*/
|
|
533
533
|
await this.loadMarkets();
|
|
@@ -601,7 +601,7 @@ export default class upbit extends Exchange {
|
|
|
601
601
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
602
602
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
603
603
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
604
|
-
* @param {object} [params] extra parameters specific to the
|
|
604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
605
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
606
606
|
*/
|
|
607
607
|
const orderbooks = await this.fetchOrderBooks([symbol], limit, params);
|
|
@@ -668,9 +668,9 @@ export default class upbit extends Exchange {
|
|
|
668
668
|
* @method
|
|
669
669
|
* @name upbit#fetchTickers
|
|
670
670
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
671
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
671
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
672
672
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
673
|
-
* @param {object} [params] extra parameters specific to the
|
|
673
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
674
674
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
675
675
|
*/
|
|
676
676
|
await this.loadMarkets();
|
|
@@ -735,7 +735,7 @@ export default class upbit extends Exchange {
|
|
|
735
735
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
736
736
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
737
737
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
738
|
-
* @param {object} [params] extra parameters specific to the
|
|
738
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
739
739
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
740
740
|
*/
|
|
741
741
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -822,7 +822,7 @@ export default class upbit extends Exchange {
|
|
|
822
822
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
823
823
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
824
824
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
825
|
-
* @param {object} [params] extra parameters specific to the
|
|
825
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
826
826
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
827
827
|
*/
|
|
828
828
|
await this.loadMarkets();
|
|
@@ -866,7 +866,7 @@ export default class upbit extends Exchange {
|
|
|
866
866
|
* @see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EA%B0%80%EB%8A%A5-%EC%A0%95%EB%B3%B4
|
|
867
867
|
* @description fetch the trading fees for a market
|
|
868
868
|
* @param {string} symbol unified market symbol
|
|
869
|
-
* @param {object} [params] extra parameters specific to the
|
|
869
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
870
870
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
871
871
|
*/
|
|
872
872
|
await this.loadMarkets();
|
|
@@ -959,7 +959,7 @@ export default class upbit extends Exchange {
|
|
|
959
959
|
* @param {string} timeframe the length of time each candle represents
|
|
960
960
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
961
961
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
962
|
-
* @param {object} [params] extra parameters specific to the
|
|
962
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
963
963
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
964
964
|
*/
|
|
965
965
|
await this.loadMarkets();
|
|
@@ -1030,7 +1030,7 @@ export default class upbit extends Exchange {
|
|
|
1030
1030
|
* @param {string} side 'buy' or 'sell'
|
|
1031
1031
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1032
1032
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1033
|
-
* @param {object} [params] extra parameters specific to the
|
|
1033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1034
1034
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1035
1035
|
*/
|
|
1036
1036
|
if (type === 'market') {
|
|
@@ -1113,7 +1113,7 @@ export default class upbit extends Exchange {
|
|
|
1113
1113
|
* @description cancels an open order
|
|
1114
1114
|
* @param {string} id order id
|
|
1115
1115
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1116
|
-
* @param {object} [params] extra parameters specific to the
|
|
1116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1117
1117
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1118
1118
|
*/
|
|
1119
1119
|
await this.loadMarkets();
|
|
@@ -1151,7 +1151,7 @@ export default class upbit extends Exchange {
|
|
|
1151
1151
|
* @param {string} code unified currency code
|
|
1152
1152
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1153
1153
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1154
|
-
* @param {object} [params] extra parameters specific to the
|
|
1154
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1155
1155
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1156
1156
|
*/
|
|
1157
1157
|
await this.loadMarkets();
|
|
@@ -1195,7 +1195,7 @@ export default class upbit extends Exchange {
|
|
|
1195
1195
|
* @param {string} code unified currency code
|
|
1196
1196
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1197
1197
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1198
|
-
* @param {object} [params] extra parameters specific to the
|
|
1198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1199
1199
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1200
1200
|
*/
|
|
1201
1201
|
await this.loadMarkets();
|
|
@@ -1500,7 +1500,7 @@ export default class upbit extends Exchange {
|
|
|
1500
1500
|
* @param {string} symbol unified market symbol
|
|
1501
1501
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1502
1502
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1503
|
-
* @param {object} [params] extra parameters specific to the
|
|
1503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1504
1504
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1505
1505
|
*/
|
|
1506
1506
|
return await this.fetchOrdersByState('wait', symbol, since, limit, params);
|
|
@@ -1514,7 +1514,7 @@ export default class upbit extends Exchange {
|
|
|
1514
1514
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1515
1515
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1516
1516
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1517
|
-
* @param {object} [params] extra parameters specific to the
|
|
1517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1518
1518
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1519
1519
|
*/
|
|
1520
1520
|
return await this.fetchOrdersByState('done', symbol, since, limit, params);
|
|
@@ -1528,7 +1528,7 @@ export default class upbit extends Exchange {
|
|
|
1528
1528
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1529
1529
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1530
1530
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1531
|
-
* @param {object} [params] extra parameters specific to the
|
|
1531
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1532
1532
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1533
1533
|
*/
|
|
1534
1534
|
return await this.fetchOrdersByState('cancel', symbol, since, limit, params);
|
|
@@ -1540,7 +1540,7 @@ export default class upbit extends Exchange {
|
|
|
1540
1540
|
* @see https://docs.upbit.com/reference/%EA%B0%9C%EB%B3%84-%EC%A3%BC%EB%AC%B8-%EC%A1%B0%ED%9A%8C
|
|
1541
1541
|
* @description fetches information on an order made by the user
|
|
1542
1542
|
* @param {string} symbol not used by upbit fetchOrder
|
|
1543
|
-
* @param {object} [params] extra parameters specific to the
|
|
1543
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1544
1544
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1545
1545
|
*/
|
|
1546
1546
|
await this.loadMarkets();
|
|
@@ -1600,7 +1600,7 @@ export default class upbit extends Exchange {
|
|
|
1600
1600
|
* @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
|
|
1601
1601
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1602
1602
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1603
|
-
* @param {object} [params] extra parameters specific to the
|
|
1603
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1604
1604
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1605
1605
|
*/
|
|
1606
1606
|
await this.loadMarkets();
|
|
@@ -1654,7 +1654,7 @@ export default class upbit extends Exchange {
|
|
|
1654
1654
|
* @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
|
|
1655
1655
|
* @description fetch the deposit address for a currency associated with this account
|
|
1656
1656
|
* @param {string} code unified currency code
|
|
1657
|
-
* @param {object} [params] extra parameters specific to the
|
|
1657
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1658
1658
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1659
1659
|
*/
|
|
1660
1660
|
await this.loadMarkets();
|
|
@@ -1678,7 +1678,7 @@ export default class upbit extends Exchange {
|
|
|
1678
1678
|
* @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
|
|
1679
1679
|
* @description create a currency deposit address
|
|
1680
1680
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1681
|
-
* @param {object} [params] extra parameters specific to the
|
|
1681
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1682
1682
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1683
1683
|
*/
|
|
1684
1684
|
await this.loadMarkets();
|
|
@@ -1719,7 +1719,7 @@ export default class upbit extends Exchange {
|
|
|
1719
1719
|
* @param {float} amount the amount to withdraw
|
|
1720
1720
|
* @param {string} address the address to withdraw to
|
|
1721
1721
|
* @param {string} tag
|
|
1722
|
-
* @param {object} [params] extra parameters specific to the
|
|
1722
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1723
1723
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1724
1724
|
*/
|
|
1725
1725
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/src/wavesexchange.js
CHANGED
|
@@ -492,7 +492,7 @@ export default class wavesexchange extends Exchange {
|
|
|
492
492
|
* @method
|
|
493
493
|
* @name wavesexchange#fetchMarkets
|
|
494
494
|
* @description retrieves data on all markets for wavesexchange
|
|
495
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
495
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
496
496
|
* @returns {object[]} an array of objects representing market data
|
|
497
497
|
*/
|
|
498
498
|
const response = await this.marketGetTickers();
|
|
@@ -594,7 +594,7 @@ export default class wavesexchange extends Exchange {
|
|
|
594
594
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
595
595
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
596
596
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
597
|
-
* @param {object} [params] extra parameters specific to the
|
|
597
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
598
598
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
599
599
|
*/
|
|
600
600
|
await this.loadMarkets();
|
|
@@ -740,7 +740,7 @@ export default class wavesexchange extends Exchange {
|
|
|
740
740
|
* @method
|
|
741
741
|
* @name wavesexchange#signIn
|
|
742
742
|
* @description sign in, must be called prior to using other authenticated methods
|
|
743
|
-
* @param {object} [params] extra parameters specific to the
|
|
743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
744
|
* @returns response from exchange
|
|
745
745
|
*/
|
|
746
746
|
if (!this.safeString(this.options, 'accessToken')) {
|
|
@@ -854,7 +854,7 @@ export default class wavesexchange extends Exchange {
|
|
|
854
854
|
* @name wavesexchange#fetchTicker
|
|
855
855
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
856
856
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
857
|
-
* @param {object} [params] extra parameters specific to the
|
|
857
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
858
858
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
859
859
|
*/
|
|
860
860
|
await this.loadMarkets();
|
|
@@ -895,9 +895,9 @@ export default class wavesexchange extends Exchange {
|
|
|
895
895
|
/**
|
|
896
896
|
* @method
|
|
897
897
|
* @name wavesexchange#fetchTickers
|
|
898
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
898
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
899
899
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
900
|
-
* @param {object} [params] extra parameters specific to the
|
|
900
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
901
901
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
902
902
|
*/
|
|
903
903
|
await this.loadMarkets();
|
|
@@ -941,7 +941,7 @@ export default class wavesexchange extends Exchange {
|
|
|
941
941
|
* @param {string} timeframe the length of time each candle represents
|
|
942
942
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
943
943
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
944
|
-
* @param {object} [params] extra parameters specific to the
|
|
944
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
945
945
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
946
946
|
*/
|
|
947
947
|
await this.loadMarkets();
|
|
@@ -1059,7 +1059,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1059
1059
|
* @name wavesexchange#fetchDepositAddress
|
|
1060
1060
|
* @description fetch the deposit address for a currency associated with this account
|
|
1061
1061
|
* @param {string} code unified currency code
|
|
1062
|
-
* @param {object} [params] extra parameters specific to the
|
|
1062
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1063
1063
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1064
1064
|
*/
|
|
1065
1065
|
await this.signIn();
|
|
@@ -1292,7 +1292,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1292
1292
|
* @param {string} side 'buy' or 'sell'
|
|
1293
1293
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1294
1294
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1295
|
-
* @param {object} [params] extra parameters specific to the
|
|
1295
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1296
1296
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1297
1297
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1298
1298
|
*/
|
|
@@ -1475,7 +1475,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1475
1475
|
* @description cancels an open order
|
|
1476
1476
|
* @param {string} id order id
|
|
1477
1477
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1478
|
-
* @param {object} [params] extra parameters specific to the
|
|
1478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1479
1479
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1480
1480
|
*/
|
|
1481
1481
|
this.checkRequiredDependencies();
|
|
@@ -1522,7 +1522,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1522
1522
|
* @name wavesexchange#fetchOrder
|
|
1523
1523
|
* @description fetches information on an order made by the user
|
|
1524
1524
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1525
|
-
* @param {object} [params] extra parameters specific to the
|
|
1525
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1526
1526
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
this.checkRequiredDependencies();
|
|
@@ -1557,7 +1557,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1557
1557
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1558
1558
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1559
1559
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1560
|
-
* @param {object} [params] extra parameters specific to the
|
|
1560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1561
1561
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1562
1562
|
*/
|
|
1563
1563
|
this.checkRequiredDependencies();
|
|
@@ -1609,7 +1609,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1609
1609
|
* @param {string} symbol unified market symbol
|
|
1610
1610
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1611
1611
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1612
|
-
* @param {object} [params] extra parameters specific to the
|
|
1612
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1613
1613
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1614
1614
|
*/
|
|
1615
1615
|
await this.loadMarkets();
|
|
@@ -1634,7 +1634,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1634
1634
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1635
1635
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1636
1636
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1637
|
-
* @param {object} [params] extra parameters specific to the
|
|
1637
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1638
1638
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1639
1639
|
*/
|
|
1640
1640
|
await this.loadMarkets();
|
|
@@ -1837,7 +1837,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1837
1837
|
* @method
|
|
1838
1838
|
* @name wavesexchange#fetchBalance
|
|
1839
1839
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1840
|
-
* @param {object} [params] extra parameters specific to the
|
|
1840
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1841
1841
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1842
1842
|
*/
|
|
1843
1843
|
// makes a lot of different requests to get all the data
|
|
@@ -1991,7 +1991,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1991
1991
|
* @param {string} symbol unified market symbol
|
|
1992
1992
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1993
1993
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1994
|
-
* @param {object} [params] extra parameters specific to the
|
|
1994
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1995
1995
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1996
1996
|
*/
|
|
1997
1997
|
await this.loadMarkets();
|
|
@@ -2083,7 +2083,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2083
2083
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2084
2084
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2085
2085
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2086
|
-
* @param {object} [params] extra parameters specific to the
|
|
2086
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2087
2087
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2088
2088
|
*/
|
|
2089
2089
|
await this.loadMarkets();
|
|
@@ -2340,7 +2340,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2340
2340
|
* @see https://docs.wx.network/en/api/gateways/deposit/currencies
|
|
2341
2341
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2342
2342
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2343
|
-
* @param {object} [params] extra parameters specific to the
|
|
2343
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2344
2344
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2345
2345
|
*/
|
|
2346
2346
|
await this.loadMarkets();
|
|
@@ -2437,7 +2437,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2437
2437
|
* @param {float} amount the amount to withdraw
|
|
2438
2438
|
* @param {string} address the address to withdraw to
|
|
2439
2439
|
* @param {string} tag
|
|
2440
|
-
* @param {object} [params] extra parameters specific to the
|
|
2440
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2441
2441
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2442
2442
|
*/
|
|
2443
2443
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/src/wazirx.js
CHANGED
|
@@ -184,7 +184,7 @@ export default class wazirx extends Exchange {
|
|
|
184
184
|
* @name wazirx#fetchMarkets
|
|
185
185
|
* @see https://docs.wazirx.com/#exchange-info
|
|
186
186
|
* @description retrieves data on all markets for wazirx
|
|
187
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
187
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
188
188
|
* @returns {object[]} an array of objects representing market data
|
|
189
189
|
*/
|
|
190
190
|
const response = await this.publicGetExchangeInfo(params);
|
|
@@ -301,7 +301,7 @@ export default class wazirx extends Exchange {
|
|
|
301
301
|
* @param {string} timeframe the length of time each candle represents. Available values [1m,5m,15m,30m,1h,2h,4h,6h,12h,1d,1w]
|
|
302
302
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
303
303
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
304
|
-
* @param {object} [params] extra parameters specific to the
|
|
304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
305
305
|
* @param {int} [params.until] timestamp in s of the latest candle to fetch
|
|
306
306
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
307
307
|
*/
|
|
@@ -352,7 +352,7 @@ export default class wazirx extends Exchange {
|
|
|
352
352
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
353
353
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
354
354
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
355
|
-
* @param {object} [params] extra parameters specific to the
|
|
355
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
356
356
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
357
357
|
*/
|
|
358
358
|
await this.loadMarkets();
|
|
@@ -387,7 +387,7 @@ export default class wazirx extends Exchange {
|
|
|
387
387
|
* @see https://docs.wazirx.com/#24hr-ticker-price-change-statistics
|
|
388
388
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
389
389
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
390
|
-
* @param {object} [params] extra parameters specific to the
|
|
390
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
391
391
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
392
392
|
*/
|
|
393
393
|
await this.loadMarkets();
|
|
@@ -418,9 +418,9 @@ export default class wazirx extends Exchange {
|
|
|
418
418
|
* @method
|
|
419
419
|
* @name wazirx#fetchTickers
|
|
420
420
|
* @see https://docs.wazirx.com/#24hr-tickers-price-change-statistics
|
|
421
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
421
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
422
422
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
423
|
-
* @param {object} [params] extra parameters specific to the
|
|
423
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
424
424
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
425
425
|
*/
|
|
426
426
|
await this.loadMarkets();
|
|
@@ -460,7 +460,7 @@ export default class wazirx extends Exchange {
|
|
|
460
460
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
461
461
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
462
462
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
463
|
-
* @param {object} [params] extra parameters specific to the
|
|
463
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
464
464
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
465
465
|
*/
|
|
466
466
|
await this.loadMarkets();
|
|
@@ -533,7 +533,7 @@ export default class wazirx extends Exchange {
|
|
|
533
533
|
* @name wazirx#fetchStatus
|
|
534
534
|
* @see https://docs.wazirx.com/#system-status
|
|
535
535
|
* @description the latest known information on the availability of the exchange API
|
|
536
|
-
* @param {object} [params] extra parameters specific to the
|
|
536
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
537
537
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
538
538
|
*/
|
|
539
539
|
const response = await this.publicGetSystemStatus(params);
|
|
@@ -558,7 +558,7 @@ export default class wazirx extends Exchange {
|
|
|
558
558
|
* @name wazirx#fetchTime
|
|
559
559
|
* @see https://docs.wazirx.com/#check-server-time
|
|
560
560
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
561
|
-
* @param {object} [params] extra parameters specific to the
|
|
561
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
562
562
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
563
563
|
*/
|
|
564
564
|
const response = await this.publicGetTime(params);
|
|
@@ -638,7 +638,7 @@ export default class wazirx extends Exchange {
|
|
|
638
638
|
* @name wazirx#fetchBalance
|
|
639
639
|
* @see https://docs.wazirx.com/#fund-details-user_data
|
|
640
640
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
641
|
-
* @param {object} [params] extra parameters specific to the
|
|
641
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
642
642
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
643
643
|
*/
|
|
644
644
|
await this.loadMarkets();
|
|
@@ -663,7 +663,7 @@ export default class wazirx extends Exchange {
|
|
|
663
663
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
664
664
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
665
665
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
666
|
-
* @param {object} [params] extra parameters specific to the
|
|
666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
667
667
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
668
668
|
*/
|
|
669
669
|
if (symbol === undefined) {
|
|
@@ -723,7 +723,7 @@ export default class wazirx extends Exchange {
|
|
|
723
723
|
* @param {string} symbol unified market symbol
|
|
724
724
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
725
725
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
726
|
-
* @param {object} [params] extra parameters specific to the
|
|
726
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
727
727
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
728
728
|
*/
|
|
729
729
|
await this.loadMarkets();
|
|
@@ -771,7 +771,7 @@ export default class wazirx extends Exchange {
|
|
|
771
771
|
* @see https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
|
|
772
772
|
* @description cancel all open orders in a market
|
|
773
773
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
774
|
-
* @param {object} [params] extra parameters specific to the
|
|
774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
775
775
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
776
776
|
*/
|
|
777
777
|
if (symbol === undefined) {
|
|
@@ -792,7 +792,7 @@ export default class wazirx extends Exchange {
|
|
|
792
792
|
* @description cancels an open order
|
|
793
793
|
* @param {string} id order id
|
|
794
794
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
795
|
-
* @param {object} [params] extra parameters specific to the
|
|
795
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
796
796
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
797
797
|
*/
|
|
798
798
|
if (symbol === undefined) {
|
|
@@ -818,7 +818,7 @@ export default class wazirx extends Exchange {
|
|
|
818
818
|
* @param {string} side 'buy' or 'sell'
|
|
819
819
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
820
820
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
821
|
-
* @param {object} [params] extra parameters specific to the
|
|
821
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
822
822
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
823
823
|
*/
|
|
824
824
|
type = type.toLowerCase();
|