ccxt 4.1.56 → 4.1.58
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/.git-templates/hooks/pre-push +2 -2
- package/README.md +3 -3
- package/build.sh +30 -18
- package/dist/ccxt.browser.js +3893 -3214
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/base/ws/Client.js +1 -1
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +16 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +110 -89
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +100 -77
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +132 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +87 -82
- package/dist/cjs/src/p2b.js +79 -82
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +6 -4
- package/dist/cjs/src/pro/bittrex.js +15 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +12 -14
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +12 -12
- package/dist/cjs/src/pro/phemex.js +6 -6
- 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 +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/base/ws/Client.js +1 -1
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +16 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +110 -89
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +100 -77
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +132 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +87 -82
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +79 -81
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +7 -5
- package/js/src/pro/bittrex.js +15 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.js +12 -12
- package/js/src/pro/phemex.js +6 -6
- 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 +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +1 -1
package/dist/cjs/src/upbit.js
CHANGED
|
@@ -498,7 +498,7 @@ class upbit extends upbit$1 {
|
|
|
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
500
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
501
|
-
* @returns {object} a [balance structure]{@link https://
|
|
501
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
502
502
|
*/
|
|
503
503
|
await this.loadMarkets();
|
|
504
504
|
const response = await this.privateGetAccounts(params);
|
|
@@ -525,7 +525,7 @@ class upbit extends upbit$1 {
|
|
|
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
527
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
528
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
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();
|
|
531
531
|
let ids = undefined;
|
|
@@ -599,7 +599,7 @@ class upbit extends upbit$1 {
|
|
|
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
601
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
602
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
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);
|
|
605
605
|
return this.safeValue(orderbooks, symbol);
|
|
@@ -668,7 +668,7 @@ class upbit extends upbit$1 {
|
|
|
668
668
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours 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
670
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
671
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
671
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
672
672
|
*/
|
|
673
673
|
await this.loadMarkets();
|
|
674
674
|
symbols = this.marketSymbols(symbols);
|
|
@@ -733,7 +733,7 @@ class upbit extends upbit$1 {
|
|
|
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
735
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
736
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
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);
|
|
739
739
|
return this.safeValue(tickers, symbol);
|
|
@@ -820,7 +820,7 @@ class upbit extends upbit$1 {
|
|
|
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
822
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
823
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
823
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
824
824
|
*/
|
|
825
825
|
await this.loadMarkets();
|
|
826
826
|
const market = this.market(symbol);
|
|
@@ -864,7 +864,7 @@ class upbit extends upbit$1 {
|
|
|
864
864
|
* @description fetch the trading fees for a market
|
|
865
865
|
* @param {string} symbol unified market symbol
|
|
866
866
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
867
|
-
* @returns {object} a [fee structure]{@link https://
|
|
867
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
868
868
|
*/
|
|
869
869
|
await this.loadMarkets();
|
|
870
870
|
const market = this.market(symbol);
|
|
@@ -1028,7 +1028,7 @@ class upbit extends upbit$1 {
|
|
|
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
1030
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1031
|
-
* @returns {object} an [order structure]{@link https://
|
|
1031
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1032
1032
|
*/
|
|
1033
1033
|
if (type === 'market') {
|
|
1034
1034
|
// for market buy it requires the amount of quote currency to spend
|
|
@@ -1111,7 +1111,7 @@ class upbit extends upbit$1 {
|
|
|
1111
1111
|
* @param {string} id order id
|
|
1112
1112
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1113
1113
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1114
|
-
* @returns {object} An [order structure]{@link https://
|
|
1114
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1115
1115
|
*/
|
|
1116
1116
|
await this.loadMarkets();
|
|
1117
1117
|
const request = {
|
|
@@ -1149,7 +1149,7 @@ class upbit extends upbit$1 {
|
|
|
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
1151
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1152
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1152
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1153
1153
|
*/
|
|
1154
1154
|
await this.loadMarkets();
|
|
1155
1155
|
const request = {
|
|
@@ -1193,7 +1193,7 @@ class upbit extends upbit$1 {
|
|
|
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
1195
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1196
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1196
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
await this.loadMarkets();
|
|
1199
1199
|
const request = {
|
|
@@ -1498,7 +1498,7 @@ class upbit extends upbit$1 {
|
|
|
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
1500
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1501
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
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);
|
|
1504
1504
|
}
|
|
@@ -1512,7 +1512,7 @@ class upbit extends upbit$1 {
|
|
|
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
1514
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1515
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
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);
|
|
1518
1518
|
}
|
|
@@ -1526,7 +1526,7 @@ class upbit extends upbit$1 {
|
|
|
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
1528
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1529
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
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);
|
|
1532
1532
|
}
|
|
@@ -1538,7 +1538,7 @@ class upbit extends upbit$1 {
|
|
|
1538
1538
|
* @description fetches information on an order made by the user
|
|
1539
1539
|
* @param {string} symbol not used by upbit fetchOrder
|
|
1540
1540
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1541
|
-
* @returns {object} An [order structure]{@link https://
|
|
1541
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
await this.loadMarkets();
|
|
1544
1544
|
const request = {
|
|
@@ -1598,7 +1598,7 @@ class upbit extends upbit$1 {
|
|
|
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
1600
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1601
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
1601
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
await this.loadMarkets();
|
|
1604
1604
|
const response = await this.privateGetDepositsCoinAddresses(params);
|
|
@@ -1652,7 +1652,7 @@ class upbit extends upbit$1 {
|
|
|
1652
1652
|
* @description fetch the deposit address for a currency associated with this account
|
|
1653
1653
|
* @param {string} code unified currency code
|
|
1654
1654
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1655
|
-
* @returns {object} an [address structure]{@link https://
|
|
1655
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1656
1656
|
*/
|
|
1657
1657
|
await this.loadMarkets();
|
|
1658
1658
|
const currency = this.currency(code);
|
|
@@ -1676,7 +1676,7 @@ class upbit extends upbit$1 {
|
|
|
1676
1676
|
* @description create a currency deposit address
|
|
1677
1677
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1678
1678
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1679
|
-
* @returns {object} an [address structure]{@link https://
|
|
1679
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1680
1680
|
*/
|
|
1681
1681
|
await this.loadMarkets();
|
|
1682
1682
|
const currency = this.currency(code);
|
|
@@ -1717,7 +1717,7 @@ class upbit extends upbit$1 {
|
|
|
1717
1717
|
* @param {string} address the address to withdraw to
|
|
1718
1718
|
* @param {string} tag
|
|
1719
1719
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1720
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1720
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1721
1721
|
*/
|
|
1722
1722
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1723
1723
|
this.checkAddress(address);
|
|
@@ -36,12 +36,11 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
36
36
|
'createStopMarketOrder': false,
|
|
37
37
|
'createStopOrder': false,
|
|
38
38
|
'fetchBalance': true,
|
|
39
|
-
'fetchBorrowRate': false,
|
|
40
39
|
'fetchBorrowRateHistories': false,
|
|
41
40
|
'fetchBorrowRateHistory': false,
|
|
42
|
-
'fetchBorrowRates': false,
|
|
43
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
44
41
|
'fetchClosedOrders': true,
|
|
42
|
+
'fetchCrossBorrowRate': false,
|
|
43
|
+
'fetchCrossBorrowRates': false,
|
|
45
44
|
'fetchDepositAddress': true,
|
|
46
45
|
'fetchDepositWithdrawFee': 'emulated',
|
|
47
46
|
'fetchDepositWithdrawFees': true,
|
|
@@ -50,6 +49,8 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
50
49
|
'fetchFundingRateHistory': false,
|
|
51
50
|
'fetchFundingRates': false,
|
|
52
51
|
'fetchIndexOHLCV': false,
|
|
52
|
+
'fetchIsolatedBorrowRate': false,
|
|
53
|
+
'fetchIsolatedBorrowRates': false,
|
|
53
54
|
'fetchLeverage': false,
|
|
54
55
|
'fetchLeverageTiers': false,
|
|
55
56
|
'fetchMarginMode': false,
|
|
@@ -591,7 +592,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
591
592
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
592
593
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
593
594
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
594
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
595
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
595
596
|
*/
|
|
596
597
|
await this.loadMarkets();
|
|
597
598
|
const market = this.market(symbol);
|
|
@@ -851,7 +852,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
851
852
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
852
853
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
853
854
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
854
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
855
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
855
856
|
*/
|
|
856
857
|
await this.loadMarkets();
|
|
857
858
|
const market = this.market(symbol);
|
|
@@ -894,7 +895,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
894
895
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
895
896
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
896
897
|
* @param {object} [params] extra parameters specific to the aax api endpoint
|
|
897
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
898
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
898
899
|
*/
|
|
899
900
|
await this.loadMarkets();
|
|
900
901
|
const response = await this.marketGetTickers(params);
|
|
@@ -1056,7 +1057,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1056
1057
|
* @description fetch the deposit address for a currency associated with this account
|
|
1057
1058
|
* @param {string} code unified currency code
|
|
1058
1059
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1059
|
-
* @returns {object} an [address structure]{@link https://
|
|
1060
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1060
1061
|
*/
|
|
1061
1062
|
await this.signIn();
|
|
1062
1063
|
const networks = this.safeValue(this.options, 'networks', {});
|
|
@@ -1290,7 +1291,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1290
1291
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1291
1292
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1292
1293
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1293
|
-
* @returns {object} an [order structure]{@link https://
|
|
1294
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1294
1295
|
*/
|
|
1295
1296
|
this.checkRequiredDependencies();
|
|
1296
1297
|
this.checkRequiredKeys();
|
|
@@ -1472,7 +1473,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1472
1473
|
* @param {string} id order id
|
|
1473
1474
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1474
1475
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1475
|
-
* @returns {object} An [order structure]{@link https://
|
|
1476
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1476
1477
|
*/
|
|
1477
1478
|
this.checkRequiredDependencies();
|
|
1478
1479
|
this.checkRequiredKeys();
|
|
@@ -1519,7 +1520,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1519
1520
|
* @description fetches information on an order made by the user
|
|
1520
1521
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1521
1522
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1522
|
-
* @returns {object} An [order structure]{@link https://
|
|
1523
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1523
1524
|
*/
|
|
1524
1525
|
this.checkRequiredDependencies();
|
|
1525
1526
|
this.checkRequiredKeys();
|
|
@@ -1554,11 +1555,13 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1554
1555
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1555
1556
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1556
1557
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1557
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1558
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1558
1559
|
*/
|
|
1559
1560
|
this.checkRequiredDependencies();
|
|
1560
1561
|
this.checkRequiredKeys();
|
|
1561
|
-
|
|
1562
|
+
if (symbol === undefined) {
|
|
1563
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1564
|
+
}
|
|
1562
1565
|
await this.loadMarkets();
|
|
1563
1566
|
const market = this.market(symbol);
|
|
1564
1567
|
const timestamp = this.milliseconds();
|
|
@@ -1604,7 +1607,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1604
1607
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1605
1608
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1606
1609
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1607
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1610
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1608
1611
|
*/
|
|
1609
1612
|
await this.loadMarkets();
|
|
1610
1613
|
await this.signIn();
|
|
@@ -1629,7 +1632,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1629
1632
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1630
1633
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1631
1634
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1632
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1635
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1633
1636
|
*/
|
|
1634
1637
|
await this.loadMarkets();
|
|
1635
1638
|
await this.signIn();
|
|
@@ -1832,7 +1835,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1832
1835
|
* @name wavesexchange#fetchBalance
|
|
1833
1836
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1834
1837
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1835
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1838
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1836
1839
|
*/
|
|
1837
1840
|
// makes a lot of different requests to get all the data
|
|
1838
1841
|
// in particular:
|
|
@@ -1986,7 +1989,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1986
1989
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1987
1990
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1988
1991
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1989
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1992
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1990
1993
|
*/
|
|
1991
1994
|
await this.loadMarkets();
|
|
1992
1995
|
const address = await this.getWavesAddress();
|
|
@@ -2078,7 +2081,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2078
2081
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2079
2082
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2080
2083
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2081
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2084
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2082
2085
|
*/
|
|
2083
2086
|
await this.loadMarkets();
|
|
2084
2087
|
const market = this.market(symbol);
|
|
@@ -2335,7 +2338,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2335
2338
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2336
2339
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2337
2340
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2338
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2341
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2339
2342
|
*/
|
|
2340
2343
|
await this.loadMarkets();
|
|
2341
2344
|
let data = [];
|
|
@@ -2432,7 +2435,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2432
2435
|
* @param {string} address the address to withdraw to
|
|
2433
2436
|
* @param {string} tag
|
|
2434
2437
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2435
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2438
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2436
2439
|
*/
|
|
2437
2440
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2438
2441
|
// currently only works for BTC and WAVES
|
package/dist/cjs/src/wazirx.js
CHANGED
|
@@ -38,12 +38,11 @@ class wazirx extends wazirx$1 {
|
|
|
38
38
|
'fetchBalance': true,
|
|
39
39
|
'fetchBidsAsks': false,
|
|
40
40
|
'fetchBorrowInterest': false,
|
|
41
|
-
'fetchBorrowRate': false,
|
|
42
41
|
'fetchBorrowRateHistories': false,
|
|
43
42
|
'fetchBorrowRateHistory': false,
|
|
44
|
-
'fetchBorrowRates': false,
|
|
45
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
46
43
|
'fetchClosedOrders': false,
|
|
44
|
+
'fetchCrossBorrowRate': false,
|
|
45
|
+
'fetchCrossBorrowRates': false,
|
|
47
46
|
'fetchCurrencies': false,
|
|
48
47
|
'fetchDepositAddress': false,
|
|
49
48
|
'fetchDepositAddressesByNetwork': false,
|
|
@@ -54,6 +53,8 @@ class wazirx extends wazirx$1 {
|
|
|
54
53
|
'fetchFundingRateHistory': false,
|
|
55
54
|
'fetchFundingRates': false,
|
|
56
55
|
'fetchIndexOHLCV': false,
|
|
56
|
+
'fetchIsolatedBorrowRate': false,
|
|
57
|
+
'fetchIsolatedBorrowRates': false,
|
|
57
58
|
'fetchIsolatedPositions': false,
|
|
58
59
|
'fetchLeverage': false,
|
|
59
60
|
'fetchLeverageTiers': false,
|
|
@@ -349,7 +350,7 @@ class wazirx extends wazirx$1 {
|
|
|
349
350
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
350
351
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
351
352
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
352
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
353
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
353
354
|
*/
|
|
354
355
|
await this.loadMarkets();
|
|
355
356
|
const market = this.market(symbol);
|
|
@@ -384,7 +385,7 @@ class wazirx extends wazirx$1 {
|
|
|
384
385
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
385
386
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
386
387
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
387
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
388
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
388
389
|
*/
|
|
389
390
|
await this.loadMarkets();
|
|
390
391
|
const market = this.market(symbol);
|
|
@@ -417,7 +418,7 @@ class wazirx extends wazirx$1 {
|
|
|
417
418
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
418
419
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
419
420
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
420
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
421
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
421
422
|
*/
|
|
422
423
|
await this.loadMarkets();
|
|
423
424
|
const tickers = await this.publicGetTickers24hr();
|
|
@@ -457,7 +458,7 @@ class wazirx extends wazirx$1 {
|
|
|
457
458
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
458
459
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
459
460
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
460
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
461
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
461
462
|
*/
|
|
462
463
|
await this.loadMarkets();
|
|
463
464
|
const market = this.market(symbol);
|
|
@@ -524,7 +525,7 @@ class wazirx extends wazirx$1 {
|
|
|
524
525
|
* @see https://docs.wazirx.com/#system-status
|
|
525
526
|
* @description the latest known information on the availability of the exchange API
|
|
526
527
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
527
|
-
* @returns {object} a [status structure]{@link https://
|
|
528
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
528
529
|
*/
|
|
529
530
|
const response = await this.publicGetSystemStatus(params);
|
|
530
531
|
//
|
|
@@ -629,7 +630,7 @@ class wazirx extends wazirx$1 {
|
|
|
629
630
|
* @see https://docs.wazirx.com/#fund-details-user_data
|
|
630
631
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
631
632
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
632
|
-
* @returns {object} a [balance structure]{@link https://
|
|
633
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
633
634
|
*/
|
|
634
635
|
await this.loadMarkets();
|
|
635
636
|
const response = await this.privateGetFunds(params);
|
|
@@ -654,9 +655,11 @@ class wazirx extends wazirx$1 {
|
|
|
654
655
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
655
656
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
656
657
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
657
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
658
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
658
659
|
*/
|
|
659
|
-
|
|
660
|
+
if (symbol === undefined) {
|
|
661
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
662
|
+
}
|
|
660
663
|
await this.loadMarkets();
|
|
661
664
|
const market = this.market(symbol);
|
|
662
665
|
const request = {
|
|
@@ -712,7 +715,7 @@ class wazirx extends wazirx$1 {
|
|
|
712
715
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
713
716
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
714
717
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
715
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
718
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
716
719
|
*/
|
|
717
720
|
await this.loadMarkets();
|
|
718
721
|
const request = {};
|
|
@@ -760,9 +763,11 @@ class wazirx extends wazirx$1 {
|
|
|
760
763
|
* @description cancel all open orders in a market
|
|
761
764
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
762
765
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
763
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
766
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
764
767
|
*/
|
|
765
|
-
|
|
768
|
+
if (symbol === undefined) {
|
|
769
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
770
|
+
}
|
|
766
771
|
await this.loadMarkets();
|
|
767
772
|
const market = this.market(symbol);
|
|
768
773
|
const request = {
|
|
@@ -779,9 +784,11 @@ class wazirx extends wazirx$1 {
|
|
|
779
784
|
* @param {string} id order id
|
|
780
785
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
781
786
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
782
|
-
* @returns {object} An [order structure]{@link https://
|
|
787
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
783
788
|
*/
|
|
784
|
-
|
|
789
|
+
if (symbol === undefined) {
|
|
790
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
791
|
+
}
|
|
785
792
|
await this.loadMarkets();
|
|
786
793
|
const market = this.market(symbol);
|
|
787
794
|
const request = {
|
|
@@ -803,7 +810,7 @@ class wazirx extends wazirx$1 {
|
|
|
803
810
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
804
811
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
805
812
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
806
|
-
* @returns {object} an [order structure]{@link https://
|
|
813
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
807
814
|
*/
|
|
808
815
|
type = type.toLowerCase();
|
|
809
816
|
if ((type !== 'limit') && (type !== 'stop_limit')) {
|