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/js/src/yobit.js
CHANGED
|
@@ -309,7 +309,7 @@ export default class yobit extends Exchange {
|
|
|
309
309
|
* @see https://yobit.net/en/api
|
|
310
310
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
311
311
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
312
|
-
* @returns {object} a [balance structure]{@link https://
|
|
312
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
313
313
|
*/
|
|
314
314
|
await this.loadMarkets();
|
|
315
315
|
const response = await this.privatePostGetInfo(params);
|
|
@@ -445,7 +445,7 @@ export default class yobit extends Exchange {
|
|
|
445
445
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
446
446
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
447
447
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
448
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
448
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
449
449
|
*/
|
|
450
450
|
await this.loadMarkets();
|
|
451
451
|
const market = this.market(symbol);
|
|
@@ -472,7 +472,7 @@ export default class yobit extends Exchange {
|
|
|
472
472
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
473
473
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
474
474
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
475
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
475
|
+
* @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
|
|
476
476
|
*/
|
|
477
477
|
await this.loadMarkets();
|
|
478
478
|
let ids = undefined;
|
|
@@ -552,7 +552,7 @@ export default class yobit extends Exchange {
|
|
|
552
552
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
553
553
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
554
554
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
555
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
555
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
556
556
|
*/
|
|
557
557
|
if (symbols === undefined) {
|
|
558
558
|
throw new ArgumentsRequired(this.id + ' fetchTickers() requires "symbols" argument');
|
|
@@ -598,7 +598,7 @@ export default class yobit extends Exchange {
|
|
|
598
598
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
599
599
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
600
600
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
601
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
601
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
602
602
|
*/
|
|
603
603
|
const tickers = await this.fetchTickers([symbol], params);
|
|
604
604
|
return tickers[symbol];
|
|
@@ -692,7 +692,7 @@ export default class yobit extends Exchange {
|
|
|
692
692
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
693
693
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
694
694
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
695
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
695
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
696
696
|
*/
|
|
697
697
|
await this.loadMarkets();
|
|
698
698
|
const market = this.market(symbol);
|
|
@@ -732,7 +732,7 @@ export default class yobit extends Exchange {
|
|
|
732
732
|
* @see https://yobit.net/en/api
|
|
733
733
|
* @description fetch the trading fees for multiple markets
|
|
734
734
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
735
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
735
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
736
736
|
*/
|
|
737
737
|
await this.loadMarkets();
|
|
738
738
|
const response = await this.publicGetInfo(params);
|
|
@@ -787,9 +787,9 @@ export default class yobit extends Exchange {
|
|
|
787
787
|
* @param {string} type must be 'limit'
|
|
788
788
|
* @param {string} side 'buy' or 'sell'
|
|
789
789
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
790
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
790
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
791
791
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
792
|
-
* @returns {object} an [order structure]{@link https://
|
|
792
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
793
793
|
*/
|
|
794
794
|
if (type === 'market') {
|
|
795
795
|
throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -836,7 +836,7 @@ export default class yobit extends Exchange {
|
|
|
836
836
|
* @param {string} id order id
|
|
837
837
|
* @param {string} symbol not used by yobit cancelOrder ()
|
|
838
838
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
839
|
-
* @returns {object} An [order structure]{@link https://
|
|
839
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
840
840
|
*/
|
|
841
841
|
await this.loadMarkets();
|
|
842
842
|
const request = {
|
|
@@ -985,7 +985,7 @@ export default class yobit extends Exchange {
|
|
|
985
985
|
* @description fetches information on an order made by the user
|
|
986
986
|
* @param {string} symbol not used by yobit fetchOrder
|
|
987
987
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
988
|
-
* @returns {object} An [order structure]{@link https://
|
|
988
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
989
989
|
*/
|
|
990
990
|
await this.loadMarkets();
|
|
991
991
|
const request = {
|
|
@@ -1022,7 +1022,7 @@ export default class yobit extends Exchange {
|
|
|
1022
1022
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1023
1023
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1024
1024
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
1025
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1025
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1026
1026
|
*/
|
|
1027
1027
|
if (symbol === undefined) {
|
|
1028
1028
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1071,7 +1071,7 @@ export default class yobit extends Exchange {
|
|
|
1071
1071
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1072
1072
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1073
1073
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
1074
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1074
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1075
1075
|
*/
|
|
1076
1076
|
if (symbol === undefined) {
|
|
1077
1077
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a `symbol` argument');
|
|
@@ -1132,7 +1132,7 @@ export default class yobit extends Exchange {
|
|
|
1132
1132
|
* @description create a currency deposit address
|
|
1133
1133
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1134
1134
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
1135
|
-
* @returns {object} an [address structure]{@link https://
|
|
1135
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1136
1136
|
*/
|
|
1137
1137
|
const request = {
|
|
1138
1138
|
'need_new': 1,
|
|
@@ -1155,7 +1155,7 @@ export default class yobit extends Exchange {
|
|
|
1155
1155
|
* @description fetch the deposit address for a currency associated with this account
|
|
1156
1156
|
* @param {string} code unified currency code
|
|
1157
1157
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
1158
|
-
* @returns {object} an [address structure]{@link https://
|
|
1158
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1159
1159
|
*/
|
|
1160
1160
|
await this.loadMarkets();
|
|
1161
1161
|
const currency = this.currency(code);
|
|
@@ -1195,7 +1195,7 @@ export default class yobit extends Exchange {
|
|
|
1195
1195
|
* @param {string} address the address to withdraw to
|
|
1196
1196
|
* @param {string} tag
|
|
1197
1197
|
* @param {object} [params] extra parameters specific to the yobit api endpoint
|
|
1198
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1198
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1199
1199
|
*/
|
|
1200
1200
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1201
1201
|
this.checkAddress(address);
|
package/js/src/zaif.js
CHANGED
|
@@ -277,7 +277,7 @@ export default class zaif extends Exchange {
|
|
|
277
277
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id10
|
|
278
278
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
279
279
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
280
|
-
* @returns {object} a [balance structure]{@link https://
|
|
280
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
281
281
|
*/
|
|
282
282
|
await this.loadMarkets();
|
|
283
283
|
const response = await this.privatePostGetInfo(params);
|
|
@@ -292,7 +292,7 @@ export default class zaif extends Exchange {
|
|
|
292
292
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
293
293
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
294
294
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
295
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
295
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
296
296
|
*/
|
|
297
297
|
await this.loadMarkets();
|
|
298
298
|
const market = this.market(symbol);
|
|
@@ -351,7 +351,7 @@ export default class zaif extends Exchange {
|
|
|
351
351
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
352
352
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
353
353
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
354
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
354
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
355
355
|
*/
|
|
356
356
|
await this.loadMarkets();
|
|
357
357
|
const market = this.market(symbol);
|
|
@@ -419,7 +419,7 @@ export default class zaif extends Exchange {
|
|
|
419
419
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
420
420
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
421
421
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
422
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
422
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
423
423
|
*/
|
|
424
424
|
await this.loadMarkets();
|
|
425
425
|
const market = this.market(symbol);
|
|
@@ -458,9 +458,9 @@ export default class zaif extends Exchange {
|
|
|
458
458
|
* @param {string} type must be 'limit'
|
|
459
459
|
* @param {string} side 'buy' or 'sell'
|
|
460
460
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
461
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
461
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
462
462
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
463
|
-
* @returns {object} an [order structure]{@link https://
|
|
463
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
464
464
|
*/
|
|
465
465
|
await this.loadMarkets();
|
|
466
466
|
if (type !== 'limit') {
|
|
@@ -488,7 +488,7 @@ export default class zaif extends Exchange {
|
|
|
488
488
|
* @param {string} id order id
|
|
489
489
|
* @param {string} symbol not used by zaif cancelOrder ()
|
|
490
490
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
491
|
-
* @returns {object} An [order structure]{@link https://
|
|
491
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
492
492
|
*/
|
|
493
493
|
const request = {
|
|
494
494
|
'order_id': id,
|
|
@@ -549,7 +549,7 @@ export default class zaif extends Exchange {
|
|
|
549
549
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
550
550
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
551
551
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
552
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
552
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
553
553
|
*/
|
|
554
554
|
await this.loadMarkets();
|
|
555
555
|
let market = undefined;
|
|
@@ -574,7 +574,7 @@ export default class zaif extends Exchange {
|
|
|
574
574
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
575
575
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
576
576
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
577
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
577
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
578
578
|
*/
|
|
579
579
|
await this.loadMarkets();
|
|
580
580
|
let market = undefined;
|
|
@@ -606,7 +606,7 @@ export default class zaif extends Exchange {
|
|
|
606
606
|
* @param {string} address the address to withdraw to
|
|
607
607
|
* @param {string} tag
|
|
608
608
|
* @param {object} [params] extra parameters specific to the zaif api endpoint
|
|
609
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
609
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
610
610
|
*/
|
|
611
611
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
612
612
|
this.checkAddress(address);
|
package/js/src/zonda.js
CHANGED
|
@@ -403,7 +403,7 @@ export default class zonda extends Exchange {
|
|
|
403
403
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
404
404
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
405
405
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
406
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
406
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
407
407
|
*/
|
|
408
408
|
await this.loadMarkets();
|
|
409
409
|
const request = {};
|
|
@@ -471,7 +471,7 @@ export default class zonda extends Exchange {
|
|
|
471
471
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
472
472
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
473
473
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
474
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
474
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
475
475
|
*/
|
|
476
476
|
await this.loadMarkets();
|
|
477
477
|
const request = {};
|
|
@@ -533,7 +533,7 @@ export default class zonda extends Exchange {
|
|
|
533
533
|
* @see https://docs.zonda.exchange/reference/list-of-wallets
|
|
534
534
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
535
535
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
536
|
-
* @returns {object} a [balance structure]{@link https://
|
|
536
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
539
539
|
const response = await this.v1_01PrivateGetBalancesBITBAYBalance(params);
|
|
@@ -548,7 +548,7 @@ export default class zonda extends Exchange {
|
|
|
548
548
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
549
549
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
550
550
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
551
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
551
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
552
552
|
*/
|
|
553
553
|
await this.loadMarkets();
|
|
554
554
|
const market = this.market(symbol);
|
|
@@ -660,7 +660,7 @@ export default class zonda extends Exchange {
|
|
|
660
660
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
661
661
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
662
662
|
* @param {string} [params.method] v1_01PublicGetTradingTickerSymbol (default) or v1_01PublicGetTradingStatsSymbol
|
|
663
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
663
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
664
664
|
*/
|
|
665
665
|
await this.loadMarkets();
|
|
666
666
|
const market = this.market(symbol);
|
|
@@ -733,7 +733,7 @@ export default class zonda extends Exchange {
|
|
|
733
733
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
734
734
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
735
735
|
* @param {string} [params.method] v1_01PublicGetTradingTicker (default) or v1_01PublicGetTradingStats
|
|
736
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
736
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
737
737
|
*/
|
|
738
738
|
await this.loadMarkets();
|
|
739
739
|
const method = 'v1_01PublicGetTradingTicker';
|
|
@@ -808,7 +808,7 @@ export default class zonda extends Exchange {
|
|
|
808
808
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
809
809
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
810
810
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
811
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
811
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
812
812
|
*/
|
|
813
813
|
const balanceCurrencies = [];
|
|
814
814
|
if (code !== undefined) {
|
|
@@ -1308,7 +1308,7 @@ export default class zonda extends Exchange {
|
|
|
1308
1308
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1309
1309
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1310
1310
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1311
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1311
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1312
1312
|
*/
|
|
1313
1313
|
await this.loadMarkets();
|
|
1314
1314
|
const market = this.market(symbol);
|
|
@@ -1335,9 +1335,9 @@ export default class zonda extends Exchange {
|
|
|
1335
1335
|
* @param {string} type 'market' or 'limit'
|
|
1336
1336
|
* @param {string} side 'buy' or 'sell'
|
|
1337
1337
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1338
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1338
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1339
1339
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1340
|
-
* @returns {object} an [order structure]{@link https://
|
|
1340
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1341
1341
|
*/
|
|
1342
1342
|
await this.loadMarkets();
|
|
1343
1343
|
const market = this.market(symbol);
|
|
@@ -1462,7 +1462,7 @@ export default class zonda extends Exchange {
|
|
|
1462
1462
|
* @param {string} id order id
|
|
1463
1463
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1464
1464
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1465
|
-
* @returns {object} An [order structure]{@link https://
|
|
1465
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1466
1466
|
*/
|
|
1467
1467
|
const side = this.safeString(params, 'side');
|
|
1468
1468
|
if (side === undefined) {
|
|
@@ -1523,7 +1523,7 @@ export default class zonda extends Exchange {
|
|
|
1523
1523
|
* @param {string} code unified currency code
|
|
1524
1524
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1525
1525
|
* @param {string} [params.walletId] Wallet id to filter deposit adresses.
|
|
1526
|
-
* @returns {object} an [address structure]{@link https://
|
|
1526
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
await this.loadMarkets();
|
|
1529
1529
|
const currency = this.currency(code);
|
|
@@ -1556,7 +1556,7 @@ export default class zonda extends Exchange {
|
|
|
1556
1556
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1557
1557
|
* @param {string[]|undefined} codes zonda does not support filtering filtering by multiple codes and will ignore this parameter.
|
|
1558
1558
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1559
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
1559
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1560
1560
|
*/
|
|
1561
1561
|
await this.loadMarkets();
|
|
1562
1562
|
const response = await this.v1_01PrivateGetApiPaymentsDepositsCryptoAddresses(params);
|
|
@@ -1587,7 +1587,7 @@ export default class zonda extends Exchange {
|
|
|
1587
1587
|
* @param {string} fromAccount account to transfer from
|
|
1588
1588
|
* @param {string} toAccount account to transfer to
|
|
1589
1589
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1590
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1590
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1591
1591
|
*/
|
|
1592
1592
|
await this.loadMarkets();
|
|
1593
1593
|
const currency = this.currency(code);
|
|
@@ -1699,7 +1699,7 @@ export default class zonda extends Exchange {
|
|
|
1699
1699
|
* @param {string} address the address to withdraw to
|
|
1700
1700
|
* @param {string} tag
|
|
1701
1701
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1702
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1702
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1703
1703
|
*/
|
|
1704
1704
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1705
1705
|
this.checkAddress(address);
|
package/package.json
CHANGED
package/skip-tests.json
CHANGED
|
@@ -630,6 +630,7 @@
|
|
|
630
630
|
}
|
|
631
631
|
},
|
|
632
632
|
"currencycom": {
|
|
633
|
+
"skip": true,
|
|
633
634
|
"skipWs": true,
|
|
634
635
|
"skipMethods": {
|
|
635
636
|
"loadMarkets": {
|
|
@@ -1031,6 +1032,7 @@
|
|
|
1031
1032
|
}
|
|
1032
1033
|
},
|
|
1033
1034
|
"mexc": {
|
|
1035
|
+
"skip": "OnMaintenance https://www.mexc.com/support/articles/17827791510263",
|
|
1034
1036
|
"skipWs": true,
|
|
1035
1037
|
"skipPhpAsync": "Connection ended before receiving response...",
|
|
1036
1038
|
"skipMethods": {
|