ccxt 4.0.74 → 4.0.76
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 +4 -4
- package/dist/ccxt.browser.js +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- 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/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- 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 +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- 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 +5 -5
- 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 +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.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 +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- 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 +19 -18
- 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 +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- 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/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- 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 +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.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 +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- 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.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- 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 +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/dist/cjs/src/timex.js
CHANGED
|
@@ -347,7 +347,7 @@ class timex extends timex$1 {
|
|
|
347
347
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
348
348
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
349
349
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
350
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
350
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
351
351
|
*/
|
|
352
352
|
const address = this.safeString(params, 'address');
|
|
353
353
|
params = this.omit(params, 'address');
|
|
@@ -382,7 +382,7 @@ class timex extends timex$1 {
|
|
|
382
382
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
383
383
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
384
384
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
385
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
385
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
386
386
|
*/
|
|
387
387
|
const address = this.safeString(params, 'address');
|
|
388
388
|
params = this.omit(params, 'address');
|
|
@@ -462,7 +462,7 @@ class timex extends timex$1 {
|
|
|
462
462
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
463
463
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
464
464
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
465
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
465
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
466
466
|
*/
|
|
467
467
|
await this.loadMarkets();
|
|
468
468
|
const period = this.safeString(this.options['fetchTickers'], 'period', '1d');
|
|
@@ -496,7 +496,7 @@ class timex extends timex$1 {
|
|
|
496
496
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
497
497
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
498
498
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
499
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
499
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
500
500
|
*/
|
|
501
501
|
await this.loadMarkets();
|
|
502
502
|
const market = this.market(symbol);
|
|
@@ -534,7 +534,7 @@ class timex extends timex$1 {
|
|
|
534
534
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
535
535
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
536
536
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
537
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
537
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
538
538
|
*/
|
|
539
539
|
await this.loadMarkets();
|
|
540
540
|
const market = this.market(symbol);
|
|
@@ -581,7 +581,7 @@ class timex extends timex$1 {
|
|
|
581
581
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
582
582
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
583
583
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
584
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
584
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
585
585
|
*/
|
|
586
586
|
await this.loadMarkets();
|
|
587
587
|
const market = this.market(symbol);
|
|
@@ -690,7 +690,7 @@ class timex extends timex$1 {
|
|
|
690
690
|
* @name timex#fetchBalance
|
|
691
691
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
692
692
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
693
|
-
* @returns {object} a [balance structure]{@link https://
|
|
693
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
696
696
|
const response = await this.tradingGetBalances(params);
|
|
@@ -714,9 +714,9 @@ class timex extends timex$1 {
|
|
|
714
714
|
* @param {string} type 'market' or 'limit'
|
|
715
715
|
* @param {string} side 'buy' or 'sell'
|
|
716
716
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
717
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
717
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
718
718
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
719
|
-
* @returns {object} an [order structure]{@link https://
|
|
719
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
720
720
|
*/
|
|
721
721
|
await this.loadMarkets();
|
|
722
722
|
const market = this.market(symbol);
|
|
@@ -841,7 +841,7 @@ class timex extends timex$1 {
|
|
|
841
841
|
* @param {string} id order id
|
|
842
842
|
* @param {string} symbol not used by timex cancelOrder ()
|
|
843
843
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
844
|
-
* @returns {object} An [order structure]{@link https://
|
|
844
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
845
845
|
*/
|
|
846
846
|
await this.loadMarkets();
|
|
847
847
|
return await this.cancelOrders([id], symbol, params);
|
|
@@ -854,7 +854,7 @@ class timex extends timex$1 {
|
|
|
854
854
|
* @param {string[]} ids order ids
|
|
855
855
|
* @param {string} symbol unified market symbol, default is undefined
|
|
856
856
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
857
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
857
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
858
858
|
*/
|
|
859
859
|
await this.loadMarkets();
|
|
860
860
|
const request = {
|
|
@@ -894,7 +894,7 @@ class timex extends timex$1 {
|
|
|
894
894
|
* @description fetches information on an order made by the user
|
|
895
895
|
* @param {string} symbol not used by timex fetchOrder
|
|
896
896
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
897
|
-
* @returns {object} An [order structure]{@link https://
|
|
897
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
898
898
|
*/
|
|
899
899
|
await this.loadMarkets();
|
|
900
900
|
const request = {
|
|
@@ -947,7 +947,7 @@ class timex extends timex$1 {
|
|
|
947
947
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
948
948
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
949
949
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
950
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
950
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
951
951
|
*/
|
|
952
952
|
await this.loadMarkets();
|
|
953
953
|
const options = this.safeValue(this.options, 'fetchOpenOrders', {});
|
|
@@ -1001,7 +1001,7 @@ class timex extends timex$1 {
|
|
|
1001
1001
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1002
1002
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1003
1003
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
1004
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1004
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1005
1005
|
*/
|
|
1006
1006
|
await this.loadMarkets();
|
|
1007
1007
|
const options = this.safeValue(this.options, 'fetchClosedOrders', {});
|
|
@@ -1060,7 +1060,7 @@ class timex extends timex$1 {
|
|
|
1060
1060
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1061
1061
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1062
1062
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
1063
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1063
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1064
1064
|
*/
|
|
1065
1065
|
await this.loadMarkets();
|
|
1066
1066
|
const options = this.safeValue(this.options, 'fetchMyTrades', {});
|
|
@@ -1136,7 +1136,7 @@ class timex extends timex$1 {
|
|
|
1136
1136
|
* @description fetch the trading fees for a market
|
|
1137
1137
|
* @param {string} symbol unified market symbol
|
|
1138
1138
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
1139
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1139
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1140
1140
|
*/
|
|
1141
1141
|
await this.loadMarkets();
|
|
1142
1142
|
const market = this.market(symbol);
|
|
@@ -784,7 +784,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
784
784
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
785
785
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
786
786
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
787
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
787
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
788
788
|
*/
|
|
789
789
|
await this.loadMarkets();
|
|
790
790
|
const market = this.market(symbol);
|
|
@@ -994,7 +994,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
994
994
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
995
995
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
996
996
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
997
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
997
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
998
998
|
*/
|
|
999
999
|
await this.loadMarkets();
|
|
1000
1000
|
const market = this.market(symbol);
|
|
@@ -1158,7 +1158,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1158
1158
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1159
1159
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1160
1160
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1161
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1161
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1162
1162
|
*/
|
|
1163
1163
|
await this.loadMarkets();
|
|
1164
1164
|
const defaultMethod = 'binanceGetTicker24hr';
|
|
@@ -1180,7 +1180,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1180
1180
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1181
1181
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1182
1182
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1183
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1183
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1184
1184
|
*/
|
|
1185
1185
|
await this.loadMarkets();
|
|
1186
1186
|
const market = this.market(symbol);
|
|
@@ -1202,7 +1202,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1202
1202
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
1203
1203
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1204
1204
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1205
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1205
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1206
1206
|
*/
|
|
1207
1207
|
await this.loadMarkets();
|
|
1208
1208
|
const response = await this.binanceGetTickerBookTicker(params);
|
|
@@ -1321,7 +1321,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1321
1321
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
1322
1322
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1323
1323
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
1324
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1324
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1325
1325
|
*/
|
|
1326
1326
|
await this.loadMarkets();
|
|
1327
1327
|
const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType', 'spot');
|
|
@@ -1571,10 +1571,10 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1571
1571
|
* @param {string} type 'market' or 'limit'
|
|
1572
1572
|
* @param {string} side 'buy' or 'sell'
|
|
1573
1573
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1574
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1574
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1575
1575
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1576
1576
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1577
|
-
* @returns {object} an [order structure]{@link https://
|
|
1577
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1578
1578
|
*/
|
|
1579
1579
|
await this.loadMarkets();
|
|
1580
1580
|
const market = this.market(symbol);
|
|
@@ -1749,7 +1749,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1749
1749
|
* @description fetches information on an order made by the user
|
|
1750
1750
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1751
1751
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1752
|
-
* @returns {object} An [order structure]{@link https://
|
|
1752
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1753
1753
|
*/
|
|
1754
1754
|
const request = {
|
|
1755
1755
|
'orderId': id,
|
|
@@ -1800,7 +1800,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1800
1800
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1801
1801
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1802
1802
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1803
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1803
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1804
1804
|
*/
|
|
1805
1805
|
if (symbol === undefined) {
|
|
1806
1806
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -1871,7 +1871,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1871
1871
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1872
1872
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1873
1873
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1874
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1874
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1875
1875
|
*/
|
|
1876
1876
|
const request = { 'type': 1 }; // -1 = all, 1 = open, 2 = closed
|
|
1877
1877
|
return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
|
|
@@ -1886,7 +1886,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1886
1886
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1887
1887
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1888
1888
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1889
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1889
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1890
1890
|
*/
|
|
1891
1891
|
const request = { 'type': 2 }; // -1 = all, 1 = open, 2 = closed
|
|
1892
1892
|
return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
|
|
@@ -1900,7 +1900,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1900
1900
|
* @param {string} id order id
|
|
1901
1901
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1902
1902
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1903
|
-
* @returns {object} An [order structure]{@link https://
|
|
1903
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1904
1904
|
*/
|
|
1905
1905
|
const request = {
|
|
1906
1906
|
'orderId': id,
|
|
@@ -1946,7 +1946,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1946
1946
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1947
1947
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1948
1948
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1949
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1949
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1950
1950
|
*/
|
|
1951
1951
|
if (symbol === undefined) {
|
|
1952
1952
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -2005,7 +2005,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2005
2005
|
* @description fetch the deposit address for a currency associated with this account
|
|
2006
2006
|
* @param {string} code unified currency code
|
|
2007
2007
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
2008
|
-
* @returns {object} an [address structure]{@link https://
|
|
2008
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2009
2009
|
*/
|
|
2010
2010
|
await this.loadMarkets();
|
|
2011
2011
|
const currency = this.currency(code);
|
|
@@ -2064,7 +2064,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2064
2064
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2065
2065
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
2066
2066
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2067
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2067
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2068
2068
|
*/
|
|
2069
2069
|
await this.loadMarkets();
|
|
2070
2070
|
let currency = undefined;
|
|
@@ -2124,7 +2124,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2124
2124
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2125
2125
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2126
2126
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
2127
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2127
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2128
2128
|
*/
|
|
2129
2129
|
await this.loadMarkets();
|
|
2130
2130
|
const request = {};
|
|
@@ -2317,7 +2317,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2317
2317
|
* @param {string} address the address to withdraw to
|
|
2318
2318
|
* @param {string} tag
|
|
2319
2319
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
2320
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2320
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2321
2321
|
*/
|
|
2322
2322
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2323
2323
|
await this.loadMarkets();
|
package/dist/cjs/src/upbit.js
CHANGED
|
@@ -499,7 +499,7 @@ class upbit extends upbit$1 {
|
|
|
499
499
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
|
500
500
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
501
501
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
502
|
-
* @returns {object} a [balance structure]{@link https://
|
|
502
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
503
503
|
*/
|
|
504
504
|
await this.loadMarkets();
|
|
505
505
|
const response = await this.privateGetAccounts(params);
|
|
@@ -526,7 +526,7 @@ class upbit extends upbit$1 {
|
|
|
526
526
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
527
527
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
528
528
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
529
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
529
|
+
* @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
|
|
530
530
|
*/
|
|
531
531
|
await this.loadMarkets();
|
|
532
532
|
let ids = undefined;
|
|
@@ -600,7 +600,7 @@ class upbit extends upbit$1 {
|
|
|
600
600
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
601
601
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
602
602
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
603
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
603
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
604
604
|
*/
|
|
605
605
|
const orderbooks = await this.fetchOrderBooks([symbol], limit, params);
|
|
606
606
|
return this.safeValue(orderbooks, symbol);
|
|
@@ -669,7 +669,7 @@ class upbit extends upbit$1 {
|
|
|
669
669
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
670
670
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
671
671
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
672
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
672
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
673
673
|
*/
|
|
674
674
|
await this.loadMarkets();
|
|
675
675
|
symbols = this.marketSymbols(symbols);
|
|
@@ -734,7 +734,7 @@ class upbit extends upbit$1 {
|
|
|
734
734
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
735
735
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
736
736
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
737
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
737
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
738
738
|
*/
|
|
739
739
|
const tickers = await this.fetchTickers([symbol], params);
|
|
740
740
|
return this.safeValue(tickers, symbol);
|
|
@@ -821,7 +821,7 @@ class upbit extends upbit$1 {
|
|
|
821
821
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
822
822
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
823
823
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
824
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
824
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
825
825
|
*/
|
|
826
826
|
await this.loadMarkets();
|
|
827
827
|
const market = this.market(symbol);
|
|
@@ -865,7 +865,7 @@ class upbit extends upbit$1 {
|
|
|
865
865
|
* @description fetch the trading fees for a market
|
|
866
866
|
* @param {string} symbol unified market symbol
|
|
867
867
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
868
|
-
* @returns {object} a [fee structure]{@link https://
|
|
868
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
869
869
|
*/
|
|
870
870
|
await this.loadMarkets();
|
|
871
871
|
const market = this.market(symbol);
|
|
@@ -1025,9 +1025,9 @@ class upbit extends upbit$1 {
|
|
|
1025
1025
|
* @param {string} type 'market' or 'limit'
|
|
1026
1026
|
* @param {string} side 'buy' or 'sell'
|
|
1027
1027
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1028
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1028
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1029
1029
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1030
|
-
* @returns {object} an [order structure]{@link https://
|
|
1030
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1031
1031
|
*/
|
|
1032
1032
|
if (type === 'market') {
|
|
1033
1033
|
// for market buy it requires the amount of quote currency to spend
|
|
@@ -1110,7 +1110,7 @@ class upbit extends upbit$1 {
|
|
|
1110
1110
|
* @param {string} id order id
|
|
1111
1111
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1112
1112
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1113
|
-
* @returns {object} An [order structure]{@link https://
|
|
1113
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1114
1114
|
*/
|
|
1115
1115
|
await this.loadMarkets();
|
|
1116
1116
|
const request = {
|
|
@@ -1148,7 +1148,7 @@ class upbit extends upbit$1 {
|
|
|
1148
1148
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1149
1149
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1150
1150
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1151
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1151
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1152
1152
|
*/
|
|
1153
1153
|
await this.loadMarkets();
|
|
1154
1154
|
const request = {
|
|
@@ -1192,7 +1192,7 @@ class upbit extends upbit$1 {
|
|
|
1192
1192
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1193
1193
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1194
1194
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1195
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1195
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1196
1196
|
*/
|
|
1197
1197
|
await this.loadMarkets();
|
|
1198
1198
|
const request = {
|
|
@@ -1495,7 +1495,7 @@ class upbit extends upbit$1 {
|
|
|
1495
1495
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1496
1496
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1497
1497
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1498
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1498
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1499
1499
|
*/
|
|
1500
1500
|
return await this.fetchOrdersByState('wait', symbol, since, limit, params);
|
|
1501
1501
|
}
|
|
@@ -1509,7 +1509,7 @@ class upbit extends upbit$1 {
|
|
|
1509
1509
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1510
1510
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1511
1511
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1512
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1512
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1513
1513
|
*/
|
|
1514
1514
|
return await this.fetchOrdersByState('done', symbol, since, limit, params);
|
|
1515
1515
|
}
|
|
@@ -1523,7 +1523,7 @@ class upbit extends upbit$1 {
|
|
|
1523
1523
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1524
1524
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1525
1525
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1526
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
1526
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
return await this.fetchOrdersByState('cancel', symbol, since, limit, params);
|
|
1529
1529
|
}
|
|
@@ -1535,7 +1535,7 @@ class upbit extends upbit$1 {
|
|
|
1535
1535
|
* @description fetches information on an order made by the user
|
|
1536
1536
|
* @param {string} symbol not used by upbit fetchOrder
|
|
1537
1537
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1538
|
-
* @returns {object} An [order structure]{@link https://
|
|
1538
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1539
1539
|
*/
|
|
1540
1540
|
await this.loadMarkets();
|
|
1541
1541
|
const request = {
|
|
@@ -1595,7 +1595,7 @@ class upbit extends upbit$1 {
|
|
|
1595
1595
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1596
1596
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1597
1597
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1598
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
1598
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1599
1599
|
*/
|
|
1600
1600
|
await this.loadMarkets();
|
|
1601
1601
|
const response = await this.privateGetDepositsCoinAddresses(params);
|
|
@@ -1649,7 +1649,7 @@ class upbit extends upbit$1 {
|
|
|
1649
1649
|
* @description fetch the deposit address for a currency associated with this account
|
|
1650
1650
|
* @param {string} code unified currency code
|
|
1651
1651
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1652
|
-
* @returns {object} an [address structure]{@link https://
|
|
1652
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1653
1653
|
*/
|
|
1654
1654
|
await this.loadMarkets();
|
|
1655
1655
|
const currency = this.currency(code);
|
|
@@ -1673,7 +1673,7 @@ class upbit extends upbit$1 {
|
|
|
1673
1673
|
* @description create a currency deposit address
|
|
1674
1674
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1675
1675
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1676
|
-
* @returns {object} an [address structure]{@link https://
|
|
1676
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1677
1677
|
*/
|
|
1678
1678
|
await this.loadMarkets();
|
|
1679
1679
|
const currency = this.currency(code);
|
|
@@ -1714,7 +1714,7 @@ class upbit extends upbit$1 {
|
|
|
1714
1714
|
* @param {string} address the address to withdraw to
|
|
1715
1715
|
* @param {string} tag
|
|
1716
1716
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
1717
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1717
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1718
1718
|
*/
|
|
1719
1719
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1720
1720
|
this.checkAddress(address);
|
|
@@ -591,7 +591,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
591
591
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
592
592
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
593
593
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
594
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
594
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
595
595
|
*/
|
|
596
596
|
await this.loadMarkets();
|
|
597
597
|
const market = this.market(symbol);
|
|
@@ -851,7 +851,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
851
851
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
852
852
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
853
853
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
854
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
854
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
855
855
|
*/
|
|
856
856
|
await this.loadMarkets();
|
|
857
857
|
const market = this.market(symbol);
|
|
@@ -894,7 +894,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
894
894
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
895
895
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
896
896
|
* @param {object} [params] extra parameters specific to the aax api endpoint
|
|
897
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
897
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
898
898
|
*/
|
|
899
899
|
await this.loadMarkets();
|
|
900
900
|
const response = await this.marketGetTickers(params);
|
|
@@ -1056,7 +1056,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1056
1056
|
* @description fetch the deposit address for a currency associated with this account
|
|
1057
1057
|
* @param {string} code unified currency code
|
|
1058
1058
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1059
|
-
* @returns {object} an [address structure]{@link https://
|
|
1059
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1060
1060
|
*/
|
|
1061
1061
|
await this.signIn();
|
|
1062
1062
|
const networks = this.safeValue(this.options, 'networks', {});
|
|
@@ -1286,10 +1286,10 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1286
1286
|
* @param {string} type 'market' or 'limit'
|
|
1287
1287
|
* @param {string} side 'buy' or 'sell'
|
|
1288
1288
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1289
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1289
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1290
1290
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1291
1291
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1292
|
-
* @returns {object} an [order structure]{@link https://
|
|
1292
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1293
1293
|
*/
|
|
1294
1294
|
this.checkRequiredDependencies();
|
|
1295
1295
|
this.checkRequiredKeys();
|
|
@@ -1471,7 +1471,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1471
1471
|
* @param {string} id order id
|
|
1472
1472
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1473
1473
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1474
|
-
* @returns {object} An [order structure]{@link https://
|
|
1474
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1475
1475
|
*/
|
|
1476
1476
|
this.checkRequiredDependencies();
|
|
1477
1477
|
this.checkRequiredKeys();
|
|
@@ -1518,7 +1518,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1518
1518
|
* @description fetches information on an order made by the user
|
|
1519
1519
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1520
1520
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1521
|
-
* @returns {object} An [order structure]{@link https://
|
|
1521
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1522
1522
|
*/
|
|
1523
1523
|
this.checkRequiredDependencies();
|
|
1524
1524
|
this.checkRequiredKeys();
|
|
@@ -1553,7 +1553,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1553
1553
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1554
1554
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1555
1555
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1556
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1556
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1557
1557
|
*/
|
|
1558
1558
|
this.checkRequiredDependencies();
|
|
1559
1559
|
this.checkRequiredKeys();
|
|
@@ -1605,7 +1605,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1605
1605
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1606
1606
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1607
1607
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1608
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1608
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1609
1609
|
*/
|
|
1610
1610
|
await this.loadMarkets();
|
|
1611
1611
|
await this.signIn();
|
|
@@ -1630,7 +1630,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1630
1630
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1631
1631
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1632
1632
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1633
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1633
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1634
1634
|
*/
|
|
1635
1635
|
await this.loadMarkets();
|
|
1636
1636
|
await this.signIn();
|
|
@@ -1833,7 +1833,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1833
1833
|
* @name wavesexchange#fetchBalance
|
|
1834
1834
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1835
1835
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1836
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1836
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1837
1837
|
*/
|
|
1838
1838
|
// makes a lot of different requests to get all the data
|
|
1839
1839
|
// in particular:
|
|
@@ -1987,7 +1987,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1987
1987
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1988
1988
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1989
1989
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
1990
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1990
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1991
1991
|
*/
|
|
1992
1992
|
await this.loadMarkets();
|
|
1993
1993
|
const address = await this.getWavesAddress();
|
|
@@ -2079,7 +2079,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2079
2079
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2080
2080
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2081
2081
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2082
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2082
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
2083
2083
|
*/
|
|
2084
2084
|
await this.loadMarkets();
|
|
2085
2085
|
const market = this.market(symbol);
|
|
@@ -2335,7 +2335,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2335
2335
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2336
2336
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2337
2337
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2338
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
2338
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2339
2339
|
*/
|
|
2340
2340
|
await this.loadMarkets();
|
|
2341
2341
|
let data = [];
|
|
@@ -2432,7 +2432,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2432
2432
|
* @param {string} address the address to withdraw to
|
|
2433
2433
|
* @param {string} tag
|
|
2434
2434
|
* @param {object} [params] extra parameters specific to the wavesexchange api endpoint
|
|
2435
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2435
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2436
2436
|
*/
|
|
2437
2437
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2438
2438
|
// currently only works for BTC and WAVES
|