ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/yobit.js
CHANGED
|
@@ -305,7 +305,7 @@ class yobit extends yobit$1 {
|
|
|
305
305
|
* @name yobit#fetchBalance
|
|
306
306
|
* @see https://yobit.net/en/api
|
|
307
307
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
308
|
-
* @param {object} [params] extra parameters specific to the
|
|
308
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
309
309
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
310
310
|
*/
|
|
311
311
|
await this.loadMarkets();
|
|
@@ -343,7 +343,7 @@ class yobit extends yobit$1 {
|
|
|
343
343
|
* @name yobit#fetchMarkets
|
|
344
344
|
* @see https://yobit.net/en/api
|
|
345
345
|
* @description retrieves data on all markets for yobit
|
|
346
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
346
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
347
347
|
* @returns {object[]} an array of objects representing market data
|
|
348
348
|
*/
|
|
349
349
|
const response = await this.publicGetInfo(params);
|
|
@@ -442,7 +442,7 @@ class yobit extends yobit$1 {
|
|
|
442
442
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
443
443
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
444
444
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
445
|
-
* @param {object} [params] extra parameters specific to the
|
|
445
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
446
446
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
447
447
|
*/
|
|
448
448
|
await this.loadMarkets();
|
|
@@ -469,7 +469,7 @@ class yobit extends yobit$1 {
|
|
|
469
469
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
470
470
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
471
471
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
472
|
-
* @param {object} [params] extra parameters specific to the
|
|
472
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
473
473
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
474
474
|
*/
|
|
475
475
|
await this.loadMarkets();
|
|
@@ -547,9 +547,9 @@ class yobit extends yobit$1 {
|
|
|
547
547
|
* @method
|
|
548
548
|
* @name yobit#fetchTickers
|
|
549
549
|
* @see https://yobit.net/en/api
|
|
550
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
550
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
551
551
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
552
|
-
* @param {object} [params] extra parameters specific to the
|
|
552
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
553
553
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
554
554
|
*/
|
|
555
555
|
if (symbols === undefined) {
|
|
@@ -595,7 +595,7 @@ class yobit extends yobit$1 {
|
|
|
595
595
|
* @see https://yobit.net/en/api
|
|
596
596
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
597
597
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
598
|
-
* @param {object} [params] extra parameters specific to the
|
|
598
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
599
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
600
600
|
*/
|
|
601
601
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -689,7 +689,7 @@ class yobit extends yobit$1 {
|
|
|
689
689
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
690
690
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
691
691
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
692
|
-
* @param {object} [params] extra parameters specific to the
|
|
692
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
693
693
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
@@ -729,7 +729,7 @@ class yobit extends yobit$1 {
|
|
|
729
729
|
* @name yobit#fetchTradingFees
|
|
730
730
|
* @see https://yobit.net/en/api
|
|
731
731
|
* @description fetch the trading fees for multiple markets
|
|
732
|
-
* @param {object} [params] extra parameters specific to the
|
|
732
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
733
733
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
734
734
|
*/
|
|
735
735
|
await this.loadMarkets();
|
|
@@ -786,7 +786,7 @@ class yobit extends yobit$1 {
|
|
|
786
786
|
* @param {string} side 'buy' or 'sell'
|
|
787
787
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
788
788
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
789
|
-
* @param {object} [params] extra parameters specific to the
|
|
789
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
790
790
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
791
791
|
*/
|
|
792
792
|
if (type === 'market') {
|
|
@@ -833,7 +833,7 @@ class yobit extends yobit$1 {
|
|
|
833
833
|
* @description cancels an open order
|
|
834
834
|
* @param {string} id order id
|
|
835
835
|
* @param {string} symbol not used by yobit cancelOrder ()
|
|
836
|
-
* @param {object} [params] extra parameters specific to the
|
|
836
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
837
837
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
838
838
|
*/
|
|
839
839
|
await this.loadMarkets();
|
|
@@ -982,7 +982,7 @@ class yobit extends yobit$1 {
|
|
|
982
982
|
* @see https://yobit.net/en/api
|
|
983
983
|
* @description fetches information on an order made by the user
|
|
984
984
|
* @param {string} symbol not used by yobit fetchOrder
|
|
985
|
-
* @param {object} [params] extra parameters specific to the
|
|
985
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
986
986
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
987
987
|
*/
|
|
988
988
|
await this.loadMarkets();
|
|
@@ -1019,7 +1019,7 @@ class yobit extends yobit$1 {
|
|
|
1019
1019
|
* @param {string} symbol unified market symbol
|
|
1020
1020
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1021
1021
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1022
|
-
* @param {object} [params] extra parameters specific to the
|
|
1022
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1023
1023
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1024
1024
|
*/
|
|
1025
1025
|
if (symbol === undefined) {
|
|
@@ -1068,7 +1068,7 @@ class yobit extends yobit$1 {
|
|
|
1068
1068
|
* @param {string} symbol unified market symbol
|
|
1069
1069
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1070
1070
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1071
|
-
* @param {object} [params] extra parameters specific to the
|
|
1071
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1072
1072
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1073
1073
|
*/
|
|
1074
1074
|
if (symbol === undefined) {
|
|
@@ -1129,7 +1129,7 @@ class yobit extends yobit$1 {
|
|
|
1129
1129
|
* @see https://yobit.net/en/api
|
|
1130
1130
|
* @description create a currency deposit address
|
|
1131
1131
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1132
|
-
* @param {object} [params] extra parameters specific to the
|
|
1132
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1133
1133
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1134
1134
|
*/
|
|
1135
1135
|
const request = {
|
|
@@ -1152,7 +1152,7 @@ class yobit extends yobit$1 {
|
|
|
1152
1152
|
* @see https://yobit.net/en/api
|
|
1153
1153
|
* @description fetch the deposit address for a currency associated with this account
|
|
1154
1154
|
* @param {string} code unified currency code
|
|
1155
|
-
* @param {object} [params] extra parameters specific to the
|
|
1155
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1156
1156
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1157
1157
|
*/
|
|
1158
1158
|
await this.loadMarkets();
|
|
@@ -1192,7 +1192,7 @@ class yobit extends yobit$1 {
|
|
|
1192
1192
|
* @param {float} amount the amount to withdraw
|
|
1193
1193
|
* @param {string} address the address to withdraw to
|
|
1194
1194
|
* @param {string} tag
|
|
1195
|
-
* @param {object} [params] extra parameters specific to the
|
|
1195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/dist/cjs/src/zaif.js
CHANGED
|
@@ -144,7 +144,7 @@ class zaif extends zaif$1 {
|
|
|
144
144
|
* @name zaif#fetchMarkets
|
|
145
145
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12
|
|
146
146
|
* @description retrieves data on all markets for zaif
|
|
147
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
147
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
148
|
* @returns {object[]} an array of objects representing market data
|
|
149
149
|
*/
|
|
150
150
|
const markets = await this.publicGetCurrencyPairsAll(params);
|
|
@@ -260,7 +260,7 @@ class zaif extends zaif$1 {
|
|
|
260
260
|
* @name zaif#fetchBalance
|
|
261
261
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id10
|
|
262
262
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
263
|
-
* @param {object} [params] extra parameters specific to the
|
|
263
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
265
265
|
*/
|
|
266
266
|
await this.loadMarkets();
|
|
@@ -275,7 +275,7 @@ class zaif extends zaif$1 {
|
|
|
275
275
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
276
276
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
277
277
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
278
|
-
* @param {object} [params] extra parameters specific to the
|
|
278
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
279
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
280
280
|
*/
|
|
281
281
|
await this.loadMarkets();
|
|
@@ -334,7 +334,7 @@ class zaif extends zaif$1 {
|
|
|
334
334
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id22
|
|
335
335
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
336
336
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
337
|
-
* @param {object} [params] extra parameters specific to the
|
|
337
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
338
338
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
339
339
|
*/
|
|
340
340
|
await this.loadMarkets();
|
|
@@ -402,7 +402,7 @@ class zaif extends zaif$1 {
|
|
|
402
402
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
403
403
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
404
404
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
405
|
-
* @param {object} [params] extra parameters specific to the
|
|
405
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
406
406
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
407
407
|
*/
|
|
408
408
|
await this.loadMarkets();
|
|
@@ -443,7 +443,7 @@ class zaif extends zaif$1 {
|
|
|
443
443
|
* @param {string} side 'buy' or 'sell'
|
|
444
444
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
445
445
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
446
|
-
* @param {object} [params] extra parameters specific to the
|
|
446
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
447
447
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
448
448
|
*/
|
|
449
449
|
await this.loadMarkets();
|
|
@@ -471,7 +471,7 @@ class zaif extends zaif$1 {
|
|
|
471
471
|
* @description cancels an open order
|
|
472
472
|
* @param {string} id order id
|
|
473
473
|
* @param {string} symbol not used by zaif cancelOrder ()
|
|
474
|
-
* @param {object} [params] extra parameters specific to the
|
|
474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
475
475
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
476
476
|
*/
|
|
477
477
|
const request = {
|
|
@@ -532,7 +532,7 @@ class zaif extends zaif$1 {
|
|
|
532
532
|
* @param {string} symbol unified market symbol
|
|
533
533
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
534
534
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
535
|
-
* @param {object} [params] extra parameters specific to the
|
|
535
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
536
536
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
@@ -557,7 +557,7 @@ class zaif extends zaif$1 {
|
|
|
557
557
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
558
558
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
559
559
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
560
|
-
* @param {object} [params] extra parameters specific to the
|
|
560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
561
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
562
562
|
*/
|
|
563
563
|
await this.loadMarkets();
|
|
@@ -589,7 +589,7 @@ class zaif extends zaif$1 {
|
|
|
589
589
|
* @param {float} amount the amount to withdraw
|
|
590
590
|
* @param {string} address the address to withdraw to
|
|
591
591
|
* @param {string} tag
|
|
592
|
-
* @param {object} [params] extra parameters specific to the
|
|
592
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
593
593
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
594
594
|
*/
|
|
595
595
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/dist/cjs/src/zonda.js
CHANGED
|
@@ -301,7 +301,7 @@ class zonda extends zonda$1 {
|
|
|
301
301
|
* @name zonda#fetchMarkets
|
|
302
302
|
* @see https://docs.zondacrypto.exchange/reference/ticker-1
|
|
303
303
|
* @description retrieves data on all markets for zonda
|
|
304
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
305
305
|
* @returns {object[]} an array of objects representing market data
|
|
306
306
|
*/
|
|
307
307
|
const response = await this.v1_01PublicGetTradingTicker(params);
|
|
@@ -404,7 +404,7 @@ class zonda extends zonda$1 {
|
|
|
404
404
|
* @param {string} symbol not used by zonda fetchOpenOrders
|
|
405
405
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
406
406
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
407
|
-
* @param {object} [params] extra parameters specific to the
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
409
409
|
*/
|
|
410
410
|
await this.loadMarkets();
|
|
@@ -472,7 +472,7 @@ class zonda extends zonda$1 {
|
|
|
472
472
|
* @param {string} symbol unified market symbol
|
|
473
473
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
474
474
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
475
|
-
* @param {object} [params] extra parameters specific to the
|
|
475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
476
476
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
477
477
|
*/
|
|
478
478
|
await this.loadMarkets();
|
|
@@ -534,7 +534,7 @@ class zonda extends zonda$1 {
|
|
|
534
534
|
* @name zonda#fetchBalance
|
|
535
535
|
* @see https://docs.zondacrypto.exchange/reference/list-of-wallets
|
|
536
536
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
537
|
-
* @param {object} [params] extra parameters specific to the
|
|
537
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
538
538
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
539
539
|
*/
|
|
540
540
|
await this.loadMarkets();
|
|
@@ -549,7 +549,7 @@ class zonda extends zonda$1 {
|
|
|
549
549
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
550
550
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
551
551
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
552
|
-
* @param {object} [params] extra parameters specific to the
|
|
552
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
553
553
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
554
554
|
*/
|
|
555
555
|
await this.loadMarkets();
|
|
@@ -660,7 +660,7 @@ class zonda extends zonda$1 {
|
|
|
660
660
|
* @description v1_01PublicGetTradingTickerSymbol retrieves timestamp, datetime, bid, ask, close, last, previousClose, v1_01PublicGetTradingStatsSymbol retrieves high, low, volume and opening price of an asset
|
|
661
661
|
* @see https://docs.zondacrypto.exchange/reference/market-statistics
|
|
662
662
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
663
|
-
* @param {object} [params] extra parameters specific to the
|
|
663
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
664
664
|
* @param {string} [params.method] v1_01PublicGetTradingTickerSymbol (default) or v1_01PublicGetTradingStatsSymbol
|
|
665
665
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
666
666
|
*/
|
|
@@ -733,7 +733,7 @@ class zonda extends zonda$1 {
|
|
|
733
733
|
* @description v1_01PublicGetTradingTicker retrieves timestamp, datetime, bid, ask, close, last, previousClose for each market, v1_01PublicGetTradingStats retrieves high, low, volume and opening price of each market
|
|
734
734
|
* @see https://docs.zondacrypto.exchange/reference/market-statistics
|
|
735
735
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
736
|
-
* @param {object} [params] extra parameters specific to the
|
|
736
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
737
737
|
* @param {string} [params.method] v1_01PublicGetTradingTicker (default) or v1_01PublicGetTradingStats
|
|
738
738
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
739
739
|
*/
|
|
@@ -809,7 +809,7 @@ class zonda extends zonda$1 {
|
|
|
809
809
|
* @param {string} code unified currency code, default is undefined
|
|
810
810
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
811
811
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
812
|
-
* @param {object} [params] extra parameters specific to the
|
|
812
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
813
813
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
814
814
|
*/
|
|
815
815
|
const balanceCurrencies = [];
|
|
@@ -1184,7 +1184,7 @@ class zonda extends zonda$1 {
|
|
|
1184
1184
|
* @param {string} timeframe the length of time each candle represents
|
|
1185
1185
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1186
1186
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1187
|
-
* @param {object} [params] extra parameters specific to the
|
|
1187
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1188
1188
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1189
1189
|
*/
|
|
1190
1190
|
await this.loadMarkets();
|
|
@@ -1309,7 +1309,7 @@ class zonda extends zonda$1 {
|
|
|
1309
1309
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1310
1310
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1311
1311
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1312
|
-
* @param {object} [params] extra parameters specific to the
|
|
1312
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1313
1313
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1314
1314
|
*/
|
|
1315
1315
|
await this.loadMarkets();
|
|
@@ -1338,7 +1338,7 @@ class zonda extends zonda$1 {
|
|
|
1338
1338
|
* @param {string} side 'buy' or 'sell'
|
|
1339
1339
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1340
1340
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1341
|
-
* @param {object} [params] extra parameters specific to the
|
|
1341
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1342
1342
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1343
1343
|
*/
|
|
1344
1344
|
await this.loadMarkets();
|
|
@@ -1466,7 +1466,7 @@ class zonda extends zonda$1 {
|
|
|
1466
1466
|
* @description cancels an open order
|
|
1467
1467
|
* @param {string} id order id
|
|
1468
1468
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1469
|
-
* @param {object} [params] extra parameters specific to the
|
|
1469
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1470
1470
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1471
1471
|
*/
|
|
1472
1472
|
const side = this.safeString(params, 'side');
|
|
@@ -1526,7 +1526,7 @@ class zonda extends zonda$1 {
|
|
|
1526
1526
|
* @see https://docs.zondacrypto.exchange/reference/deposit-addresses-for-crypto
|
|
1527
1527
|
* @description fetch the deposit address for a currency associated with this account
|
|
1528
1528
|
* @param {string} code unified currency code
|
|
1529
|
-
* @param {object} [params] extra parameters specific to the
|
|
1529
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1530
1530
|
* @param {string} [params.walletId] Wallet id to filter deposit adresses.
|
|
1531
1531
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1532
1532
|
*/
|
|
@@ -1560,7 +1560,7 @@ class zonda extends zonda$1 {
|
|
|
1560
1560
|
* @see https://docs.zondacrypto.exchange/reference/deposit-addresses-for-crypto
|
|
1561
1561
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1562
1562
|
* @param {string[]|undefined} codes zonda does not support filtering filtering by multiple codes and will ignore this parameter.
|
|
1563
|
-
* @param {object} [params] extra parameters specific to the
|
|
1563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1564
1564
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1565
1565
|
*/
|
|
1566
1566
|
await this.loadMarkets();
|
|
@@ -1591,7 +1591,7 @@ class zonda extends zonda$1 {
|
|
|
1591
1591
|
* @param {float} amount amount to transfer
|
|
1592
1592
|
* @param {string} fromAccount account to transfer from
|
|
1593
1593
|
* @param {string} toAccount account to transfer to
|
|
1594
|
-
* @param {object} [params] extra parameters specific to the
|
|
1594
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1595
1595
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1596
1596
|
*/
|
|
1597
1597
|
await this.loadMarkets();
|
|
@@ -1703,7 +1703,7 @@ class zonda extends zonda$1 {
|
|
|
1703
1703
|
* @param {float} amount the amount to withdraw
|
|
1704
1704
|
* @param {string} address the address to withdraw to
|
|
1705
1705
|
* @param {string} tag
|
|
1706
|
-
* @param {object} [params] extra parameters specific to the
|
|
1706
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1707
1707
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1708
1708
|
*/
|
|
1709
1709
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/doc/manual.rst
CHANGED
|
@@ -5594,7 +5594,7 @@ Some exchanges allow you to specify optional parameters for your order. You can
|
|
|
5594
5594
|
|
|
5595
5595
|
# Python
|
|
5596
5596
|
# add a custom order flag
|
|
5597
|
-
kraken.create_market_buy_order('BTC/USD', 1, {'
|
|
5597
|
+
kraken.create_market_buy_order('BTC/USD', 1, {'validate': true})
|
|
5598
5598
|
|
|
5599
5599
|
.. code-block:: PHP
|
|
5600
5600
|
|
package/doc/readme.rst
CHANGED
|
@@ -2067,7 +2067,7 @@ Python
|
|
|
2067
2067
|
print(exmo.id, exmo.create_limit_buy_order('BTC/EUR', 1, 2500.00))
|
|
2068
2068
|
|
|
2069
2069
|
# pass/redefine custom exchange-specific order params: type, amount, price, flags, etc...
|
|
2070
|
-
kraken.create_market_buy_order('BTC/USD', 1, {'
|
|
2070
|
+
kraken.create_market_buy_order('BTC/USD', 1, {'validate': true})
|
|
2071
2071
|
|
|
2072
2072
|
PHP
|
|
2073
2073
|
^^^
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.1.
|
|
7
|
+
declare const version = "4.1.64";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.1.
|
|
41
|
+
const version = '4.1.65';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -27,6 +27,7 @@ interface Exchange {
|
|
|
27
27
|
spotPrivateGetCapitalDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
28
28
|
spotPrivateGetCapitalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
29
29
|
spotPrivateGetCapitalTransferTranId(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
spotPrivateGetCapitalTransferInternal(params?: {}): Promise<implicitReturnType>;
|
|
30
31
|
spotPrivateGetCapitalSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
31
32
|
spotPrivateGetCapitalConvert(params?: {}): Promise<implicitReturnType>;
|
|
32
33
|
spotPrivateGetCapitalConvertList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -62,6 +63,7 @@ interface Exchange {
|
|
|
62
63
|
spotPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
63
64
|
spotPrivatePostCapitalWithdrawApply(params?: {}): Promise<implicitReturnType>;
|
|
64
65
|
spotPrivatePostCapitalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
spotPrivatePostCapitalTransferInternal(params?: {}): Promise<implicitReturnType>;
|
|
65
67
|
spotPrivatePostCapitalDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
66
68
|
spotPrivatePostCapitalSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
67
69
|
spotPrivatePostCapitalConvert(params?: {}): Promise<implicitReturnType>;
|
package/js/src/ace.js
CHANGED
|
@@ -173,7 +173,7 @@ export default class ace extends Exchange {
|
|
|
173
173
|
* @name ace#fetchMarkets
|
|
174
174
|
* @description retrieves data on all markets for ace
|
|
175
175
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
|
|
176
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
176
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
177
|
* @returns {object[]} an array of objects representing market data
|
|
178
178
|
*/
|
|
179
179
|
const response = await this.publicGetOapiV2ListMarketPair();
|
|
@@ -290,7 +290,7 @@ export default class ace extends Exchange {
|
|
|
290
290
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
291
291
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
|
292
292
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
293
|
-
* @param {object} [params] extra parameters specific to the
|
|
293
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
294
294
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
@@ -313,10 +313,10 @@ export default class ace extends Exchange {
|
|
|
313
313
|
/**
|
|
314
314
|
* @method
|
|
315
315
|
* @name ace#fetchTickers
|
|
316
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
316
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
317
317
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
|
318
318
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
319
|
-
* @param {object} [params] extra parameters specific to the
|
|
319
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
320
320
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
321
321
|
*/
|
|
322
322
|
await this.loadMarkets();
|
|
@@ -349,7 +349,7 @@ export default class ace extends Exchange {
|
|
|
349
349
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
|
|
350
350
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
351
351
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
352
|
-
* @param {object} [params] extra parameters specific to the
|
|
352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
353
353
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
354
354
|
*/
|
|
355
355
|
await this.loadMarkets();
|
|
@@ -441,7 +441,7 @@ export default class ace extends Exchange {
|
|
|
441
441
|
* @param {string} timeframe the length of time each candle represents
|
|
442
442
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
443
443
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
444
|
-
* @param {object} [params] extra parameters specific to the
|
|
444
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
445
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
446
446
|
*/
|
|
447
447
|
await this.loadMarkets();
|
|
@@ -595,7 +595,7 @@ export default class ace extends Exchange {
|
|
|
595
595
|
* @param {string} side 'buy' or 'sell'
|
|
596
596
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
597
597
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
598
|
-
* @param {object} [params] extra parameters specific to the
|
|
598
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
599
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
600
600
|
*/
|
|
601
601
|
await this.loadMarkets();
|
|
@@ -632,7 +632,7 @@ export default class ace extends Exchange {
|
|
|
632
632
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
|
633
633
|
* @param {string} id order id
|
|
634
634
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
635
|
-
* @param {object} [params] extra parameters specific to the
|
|
635
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
636
636
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
637
637
|
*/
|
|
638
638
|
await this.loadMarkets();
|
|
@@ -657,7 +657,7 @@ export default class ace extends Exchange {
|
|
|
657
657
|
* @description fetches information on an order made by the user
|
|
658
658
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
|
659
659
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
660
|
-
* @param {object} [params] extra parameters specific to the
|
|
660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
661
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
662
662
|
*/
|
|
663
663
|
await this.loadMarkets();
|
|
@@ -699,7 +699,7 @@ export default class ace extends Exchange {
|
|
|
699
699
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
700
700
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
701
701
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
702
|
-
* @param {object} [params] extra parameters specific to the
|
|
702
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
703
703
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
704
704
|
*/
|
|
705
705
|
if (symbol === undefined) {
|
|
@@ -837,7 +837,7 @@ export default class ace extends Exchange {
|
|
|
837
837
|
* @param {string} symbol unified market symbol
|
|
838
838
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
839
839
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
840
|
-
* @param {object} [params] extra parameters specific to the
|
|
840
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
841
841
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
842
842
|
*/
|
|
843
843
|
await this.loadMarkets();
|
|
@@ -892,7 +892,7 @@ export default class ace extends Exchange {
|
|
|
892
892
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
893
893
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
894
894
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
895
|
-
* @param {object} [params] extra parameters specific to the
|
|
895
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
896
896
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
897
897
|
*/
|
|
898
898
|
await this.loadMarkets();
|
|
@@ -977,7 +977,7 @@ export default class ace extends Exchange {
|
|
|
977
977
|
* @name ace#fetchBalance
|
|
978
978
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
979
979
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
|
980
|
-
* @param {object} [params] extra parameters specific to the
|
|
980
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
981
981
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
982
982
|
*/
|
|
983
983
|
await this.loadMarkets();
|