ccxt 4.1.64 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -173,7 +173,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
173
173
|
|
|
174
174
|
//-----------------------------------------------------------------------------
|
|
175
175
|
// this is updated by vss.js when building
|
|
176
|
-
const version = '4.1.
|
|
176
|
+
const version = '4.1.65';
|
|
177
177
|
Exchange["default"].ccxtVersion = version;
|
|
178
178
|
const exchanges = {
|
|
179
179
|
'ace': ace,
|
package/dist/cjs/src/ace.js
CHANGED
|
@@ -170,7 +170,7 @@ class ace extends ace$1 {
|
|
|
170
170
|
* @name ace#fetchMarkets
|
|
171
171
|
* @description retrieves data on all markets for ace
|
|
172
172
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
|
|
173
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
173
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
174
174
|
* @returns {object[]} an array of objects representing market data
|
|
175
175
|
*/
|
|
176
176
|
const response = await this.publicGetOapiV2ListMarketPair();
|
|
@@ -287,7 +287,7 @@ class ace extends ace$1 {
|
|
|
287
287
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
288
288
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
|
289
289
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
290
|
-
* @param {object} [params] extra parameters specific to the
|
|
290
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
291
291
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
292
292
|
*/
|
|
293
293
|
await this.loadMarkets();
|
|
@@ -310,10 +310,10 @@ class ace extends ace$1 {
|
|
|
310
310
|
/**
|
|
311
311
|
* @method
|
|
312
312
|
* @name ace#fetchTickers
|
|
313
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
313
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
314
314
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
|
315
315
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
316
|
-
* @param {object} [params] extra parameters specific to the
|
|
316
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
317
317
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
318
318
|
*/
|
|
319
319
|
await this.loadMarkets();
|
|
@@ -346,7 +346,7 @@ class ace extends ace$1 {
|
|
|
346
346
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
|
|
347
347
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
348
348
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
349
|
-
* @param {object} [params] extra parameters specific to the
|
|
349
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
350
350
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
351
351
|
*/
|
|
352
352
|
await this.loadMarkets();
|
|
@@ -438,7 +438,7 @@ class ace extends ace$1 {
|
|
|
438
438
|
* @param {string} timeframe the length of time each candle represents
|
|
439
439
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
440
440
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
441
|
-
* @param {object} [params] extra parameters specific to the
|
|
441
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
442
442
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
443
443
|
*/
|
|
444
444
|
await this.loadMarkets();
|
|
@@ -592,7 +592,7 @@ class ace extends ace$1 {
|
|
|
592
592
|
* @param {string} side 'buy' or 'sell'
|
|
593
593
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
594
594
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
595
|
-
* @param {object} [params] extra parameters specific to the
|
|
595
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
596
596
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
597
597
|
*/
|
|
598
598
|
await this.loadMarkets();
|
|
@@ -629,7 +629,7 @@ class ace extends ace$1 {
|
|
|
629
629
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
|
630
630
|
* @param {string} id order id
|
|
631
631
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
632
|
-
* @param {object} [params] extra parameters specific to the
|
|
632
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
633
633
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
634
634
|
*/
|
|
635
635
|
await this.loadMarkets();
|
|
@@ -654,7 +654,7 @@ class ace extends ace$1 {
|
|
|
654
654
|
* @description fetches information on an order made by the user
|
|
655
655
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
|
656
656
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
657
|
-
* @param {object} [params] extra parameters specific to the
|
|
657
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
658
658
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
659
659
|
*/
|
|
660
660
|
await this.loadMarkets();
|
|
@@ -696,7 +696,7 @@ class ace extends ace$1 {
|
|
|
696
696
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
697
697
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
698
698
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
699
|
-
* @param {object} [params] extra parameters specific to the
|
|
699
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
700
700
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
701
701
|
*/
|
|
702
702
|
if (symbol === undefined) {
|
|
@@ -834,7 +834,7 @@ class ace extends ace$1 {
|
|
|
834
834
|
* @param {string} symbol unified market symbol
|
|
835
835
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
836
836
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
837
|
-
* @param {object} [params] extra parameters specific to the
|
|
837
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
838
838
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
839
839
|
*/
|
|
840
840
|
await this.loadMarkets();
|
|
@@ -889,7 +889,7 @@ class ace extends ace$1 {
|
|
|
889
889
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
890
890
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
891
891
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
892
|
-
* @param {object} [params] extra parameters specific to the
|
|
892
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
893
893
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
894
894
|
*/
|
|
895
895
|
await this.loadMarkets();
|
|
@@ -974,7 +974,7 @@ class ace extends ace$1 {
|
|
|
974
974
|
* @name ace#fetchBalance
|
|
975
975
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
976
976
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
|
977
|
-
* @param {object} [params] extra parameters specific to the
|
|
977
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
978
978
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
979
979
|
*/
|
|
980
980
|
await this.loadMarkets();
|
package/dist/cjs/src/alpaca.js
CHANGED
|
@@ -266,7 +266,7 @@ class alpaca extends alpaca$1 {
|
|
|
266
266
|
* @method
|
|
267
267
|
* @name alpaca#fetchTime
|
|
268
268
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
269
|
-
* @param {object} [params] extra parameters specific to the
|
|
269
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
270
270
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
271
271
|
*/
|
|
272
272
|
const response = await this.traderPrivateGetV2Clock(params);
|
|
@@ -417,7 +417,7 @@ class alpaca extends alpaca$1 {
|
|
|
417
417
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
418
418
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
419
419
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
420
|
-
* @param {object} [params] extra parameters specific to the
|
|
420
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
421
421
|
* @param {string} [params.loc] crypto location, default: us
|
|
422
422
|
* @param {string} [params.method] method, default: marketPublicGetV1beta3CryptoLocTrades
|
|
423
423
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -491,7 +491,7 @@ class alpaca extends alpaca$1 {
|
|
|
491
491
|
* @see https://docs.alpaca.markets/reference/cryptolatestorderbooks
|
|
492
492
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
493
493
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
494
|
-
* @param {object} [params] extra parameters specific to the
|
|
494
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
495
495
|
* @param {string} [params.loc] crypto location, default: us
|
|
496
496
|
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
497
497
|
*/
|
|
@@ -675,7 +675,7 @@ class alpaca extends alpaca$1 {
|
|
|
675
675
|
* @param {string} side 'buy' or 'sell'
|
|
676
676
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
677
677
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
678
|
-
* @param {object} [params] extra parameters specific to the
|
|
678
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
679
679
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
680
680
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
681
681
|
*/
|
|
@@ -761,7 +761,7 @@ class alpaca extends alpaca$1 {
|
|
|
761
761
|
* @see https://docs.alpaca.markets/reference/deleteorderbyorderid
|
|
762
762
|
* @param {string} id order id
|
|
763
763
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
764
|
-
* @param {object} [params] extra parameters specific to the
|
|
764
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
765
765
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
766
766
|
*/
|
|
767
767
|
const request = {
|
|
@@ -783,7 +783,7 @@ class alpaca extends alpaca$1 {
|
|
|
783
783
|
* @description cancel all open orders in a market
|
|
784
784
|
* @see https://docs.alpaca.markets/reference/deleteallorders
|
|
785
785
|
* @param {string} symbol alpaca cancelAllOrders cannot setting symbol, it will cancel all open orders
|
|
786
|
-
* @param {object} [params] extra parameters specific to the
|
|
786
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
787
787
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
788
788
|
*/
|
|
789
789
|
await this.loadMarkets();
|
|
@@ -802,7 +802,7 @@ class alpaca extends alpaca$1 {
|
|
|
802
802
|
* @description fetches information on an order made by the user
|
|
803
803
|
* @see https://docs.alpaca.markets/reference/getorderbyorderid
|
|
804
804
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
805
|
-
* @param {object} [params] extra parameters specific to the
|
|
805
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
806
806
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
807
807
|
*/
|
|
808
808
|
await this.loadMarkets();
|
|
@@ -823,7 +823,7 @@ class alpaca extends alpaca$1 {
|
|
|
823
823
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
824
824
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
825
825
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
826
|
-
* @param {object} [params] extra parameters specific to the
|
|
826
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
827
827
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
828
828
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
829
829
|
*/
|
|
@@ -899,7 +899,7 @@ class alpaca extends alpaca$1 {
|
|
|
899
899
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
900
900
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
901
901
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
902
|
-
* @param {object} [params] extra parameters specific to the
|
|
902
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
903
903
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
904
904
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
905
905
|
*/
|
|
@@ -917,7 +917,7 @@ class alpaca extends alpaca$1 {
|
|
|
917
917
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
918
918
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
919
919
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
920
|
-
* @param {object} [params] extra parameters specific to the
|
|
920
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
921
921
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
922
922
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
923
923
|
*/
|
package/dist/cjs/src/ascendex.js
CHANGED
|
@@ -373,7 +373,7 @@ class ascendex extends ascendex$1 {
|
|
|
373
373
|
* @method
|
|
374
374
|
* @name ascendex#fetchCurrencies
|
|
375
375
|
* @description fetches all available currencies on an exchange
|
|
376
|
-
* @param {object} [params] extra parameters specific to the
|
|
376
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
377
377
|
* @returns {object} an associative dictionary of currencies
|
|
378
378
|
*/
|
|
379
379
|
const assets = await this.v1PublicGetAssets(params);
|
|
@@ -481,7 +481,7 @@ class ascendex extends ascendex$1 {
|
|
|
481
481
|
* @method
|
|
482
482
|
* @name ascendex#fetchMarkets
|
|
483
483
|
* @description retrieves data on all markets for ascendex
|
|
484
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
484
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
485
485
|
* @returns {object[]} an array of objects representing market data
|
|
486
486
|
*/
|
|
487
487
|
const products = await this.v1PublicGetProducts(params);
|
|
@@ -677,7 +677,7 @@ class ascendex extends ascendex$1 {
|
|
|
677
677
|
* @method
|
|
678
678
|
* @name ascendex#fetchTime
|
|
679
679
|
* @description fetches the current integer timestamp in milliseconds from the ascendex server
|
|
680
|
-
* @param {object} [params] extra parameters specific to the
|
|
680
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
681
681
|
* @returns {int} the current integer timestamp in milliseconds from the ascendex server
|
|
682
682
|
*/
|
|
683
683
|
const request = {
|
|
@@ -702,7 +702,7 @@ class ascendex extends ascendex$1 {
|
|
|
702
702
|
* @method
|
|
703
703
|
* @name ascendex#fetchAccounts
|
|
704
704
|
* @description fetch all the accounts associated with a profile
|
|
705
|
-
* @param {object} [params] extra parameters specific to the
|
|
705
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
706
706
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
707
707
|
*/
|
|
708
708
|
let accountGroup = this.safeString(this.options, 'account-group');
|
|
@@ -800,7 +800,7 @@ class ascendex extends ascendex$1 {
|
|
|
800
800
|
* @method
|
|
801
801
|
* @name ascendex#fetchBalance
|
|
802
802
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
803
|
-
* @param {object} [params] extra parameters specific to the
|
|
803
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
804
804
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
805
805
|
*/
|
|
806
806
|
await this.loadMarkets();
|
|
@@ -889,7 +889,7 @@ class ascendex extends ascendex$1 {
|
|
|
889
889
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
890
890
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
891
891
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
892
|
-
* @param {object} [params] extra parameters specific to the
|
|
892
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
893
893
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
894
894
|
*/
|
|
895
895
|
await this.loadMarkets();
|
|
@@ -980,7 +980,7 @@ class ascendex extends ascendex$1 {
|
|
|
980
980
|
* @name ascendex#fetchTicker
|
|
981
981
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
982
982
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
983
|
-
* @param {object} [params] extra parameters specific to the
|
|
983
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
984
984
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
985
985
|
*/
|
|
986
986
|
await this.loadMarkets();
|
|
@@ -1012,11 +1012,11 @@ class ascendex extends ascendex$1 {
|
|
|
1012
1012
|
/**
|
|
1013
1013
|
* @method
|
|
1014
1014
|
* @name ascendex#fetchTickers
|
|
1015
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1015
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1016
1016
|
* @see https://ascendex.github.io/ascendex-pro-api/#ticker
|
|
1017
1017
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
|
1018
1018
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1019
|
-
* @param {object} [params] extra parameters specific to the
|
|
1019
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1020
1020
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1021
1021
|
*/
|
|
1022
1022
|
await this.loadMarkets();
|
|
@@ -1096,7 +1096,7 @@ class ascendex extends ascendex$1 {
|
|
|
1096
1096
|
* @param {string} timeframe the length of time each candle represents
|
|
1097
1097
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1098
1098
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1099
|
-
* @param {object} [params] extra parameters specific to the
|
|
1099
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1100
1100
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1101
1101
|
*/
|
|
1102
1102
|
await this.loadMarkets();
|
|
@@ -1190,7 +1190,7 @@ class ascendex extends ascendex$1 {
|
|
|
1190
1190
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1191
1191
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1192
1192
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1193
|
-
* @param {object} [params] extra parameters specific to the
|
|
1193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1194
1194
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1195
1195
|
*/
|
|
1196
1196
|
await this.loadMarkets();
|
|
@@ -1417,7 +1417,7 @@ class ascendex extends ascendex$1 {
|
|
|
1417
1417
|
* @method
|
|
1418
1418
|
* @name ascendex#fetchTradingFees
|
|
1419
1419
|
* @description fetch the trading fees for multiple markets
|
|
1420
|
-
* @param {object} [params] extra parameters specific to the
|
|
1420
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1421
1421
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1422
1422
|
*/
|
|
1423
1423
|
await this.loadMarkets();
|
|
@@ -1472,7 +1472,7 @@ class ascendex extends ascendex$1 {
|
|
|
1472
1472
|
* @param {string} side 'buy' or 'sell'
|
|
1473
1473
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1474
1474
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1475
|
-
* @param {object} [params] extra parameters specific to the
|
|
1475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1476
1476
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1477
1477
|
* @param {bool} [params.postOnly] true or false
|
|
1478
1478
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
@@ -1657,7 +1657,7 @@ class ascendex extends ascendex$1 {
|
|
|
1657
1657
|
* @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
|
|
1658
1658
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
|
|
1659
1659
|
* @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1660
|
-
* @param {object} [params] extra parameters specific to the
|
|
1660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1661
1661
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1662
1662
|
* @param {bool} [params.postOnly] true or false
|
|
1663
1663
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
@@ -1754,7 +1754,7 @@ class ascendex extends ascendex$1 {
|
|
|
1754
1754
|
* @name ascendex#fetchOrder
|
|
1755
1755
|
* @description fetches information on an order made by the user
|
|
1756
1756
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1757
|
-
* @param {object} [params] extra parameters specific to the
|
|
1757
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1758
1758
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1759
1759
|
*/
|
|
1760
1760
|
await this.loadMarkets();
|
|
@@ -1867,7 +1867,7 @@ class ascendex extends ascendex$1 {
|
|
|
1867
1867
|
* @param {string} symbol unified market symbol
|
|
1868
1868
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1869
1869
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1870
|
-
* @param {object} [params] extra parameters specific to the
|
|
1870
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1871
1871
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1872
1872
|
*/
|
|
1873
1873
|
await this.loadMarkets();
|
|
@@ -1990,7 +1990,7 @@ class ascendex extends ascendex$1 {
|
|
|
1990
1990
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1991
1991
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1992
1992
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1993
|
-
* @param {object} [params] extra parameters specific to the
|
|
1993
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1994
1994
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1995
1995
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1996
1996
|
*/
|
|
@@ -2150,7 +2150,7 @@ class ascendex extends ascendex$1 {
|
|
|
2150
2150
|
* @description cancels an open order
|
|
2151
2151
|
* @param {string} id order id
|
|
2152
2152
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2153
|
-
* @param {object} [params] extra parameters specific to the
|
|
2153
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2154
2154
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2155
2155
|
*/
|
|
2156
2156
|
if (symbol === undefined) {
|
|
@@ -2268,7 +2268,7 @@ class ascendex extends ascendex$1 {
|
|
|
2268
2268
|
* @name ascendex#cancelAllOrders
|
|
2269
2269
|
* @description cancel all open orders
|
|
2270
2270
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2271
|
-
* @param {object} [params] extra parameters specific to the
|
|
2271
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2272
2272
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2273
2273
|
*/
|
|
2274
2274
|
await this.loadMarkets();
|
|
@@ -2394,7 +2394,7 @@ class ascendex extends ascendex$1 {
|
|
|
2394
2394
|
* @name ascendex#fetchDepositAddress
|
|
2395
2395
|
* @description fetch the deposit address for a currency associated with this account
|
|
2396
2396
|
* @param {string} code unified currency code
|
|
2397
|
-
* @param {object} [params] extra parameters specific to the
|
|
2397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2398
2398
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2399
2399
|
*/
|
|
2400
2400
|
await this.loadMarkets();
|
|
@@ -2468,7 +2468,7 @@ class ascendex extends ascendex$1 {
|
|
|
2468
2468
|
* @param {string} code unified currency code
|
|
2469
2469
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2470
2470
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2471
|
-
* @param {object} [params] extra parameters specific to the
|
|
2471
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2472
2472
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2473
2473
|
*/
|
|
2474
2474
|
const request = {
|
|
@@ -2484,7 +2484,7 @@ class ascendex extends ascendex$1 {
|
|
|
2484
2484
|
* @param {string} code unified currency code
|
|
2485
2485
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2486
2486
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2487
|
-
* @param {object} [params] extra parameters specific to the
|
|
2487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2488
2488
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2489
2489
|
*/
|
|
2490
2490
|
const request = {
|
|
@@ -2500,7 +2500,7 @@ class ascendex extends ascendex$1 {
|
|
|
2500
2500
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2501
2501
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2502
2502
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2503
|
-
* @param {object} [params] extra parameters specific to the
|
|
2503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2504
2504
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2505
2505
|
*/
|
|
2506
2506
|
await this.loadMarkets();
|
|
@@ -2623,7 +2623,7 @@ class ascendex extends ascendex$1 {
|
|
|
2623
2623
|
* @name ascendex#fetchPositions
|
|
2624
2624
|
* @description fetch all open positions
|
|
2625
2625
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2626
|
-
* @param {object} [params] extra parameters specific to the
|
|
2626
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2627
2627
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2628
2628
|
*/
|
|
2629
2629
|
await this.loadMarkets();
|
|
@@ -2789,7 +2789,7 @@ class ascendex extends ascendex$1 {
|
|
|
2789
2789
|
* @name ascendex#fetchFundingRates
|
|
2790
2790
|
* @description fetch the funding rate for multiple markets
|
|
2791
2791
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2792
|
-
* @param {object} [params] extra parameters specific to the
|
|
2792
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2793
2793
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2794
2794
|
*/
|
|
2795
2795
|
await this.loadMarkets();
|
|
@@ -2871,7 +2871,7 @@ class ascendex extends ascendex$1 {
|
|
|
2871
2871
|
* @description remove margin from a position
|
|
2872
2872
|
* @param {string} symbol unified market symbol
|
|
2873
2873
|
* @param {float} amount the amount of margin to remove
|
|
2874
|
-
* @param {object} [params] extra parameters specific to the
|
|
2874
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2875
2875
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2876
2876
|
*/
|
|
2877
2877
|
return await this.modifyMarginHelper(symbol, -amount, 'reduce', params);
|
|
@@ -2883,7 +2883,7 @@ class ascendex extends ascendex$1 {
|
|
|
2883
2883
|
* @description add margin
|
|
2884
2884
|
* @param {string} symbol unified market symbol
|
|
2885
2885
|
* @param {float} amount amount of margin to add
|
|
2886
|
-
* @param {object} [params] extra parameters specific to the
|
|
2886
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2887
2887
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2888
2888
|
*/
|
|
2889
2889
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -2896,7 +2896,7 @@ class ascendex extends ascendex$1 {
|
|
|
2896
2896
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
|
|
2897
2897
|
* @param {float} leverage the rate of leverage
|
|
2898
2898
|
* @param {string} symbol unified market symbol
|
|
2899
|
-
* @param {object} [params] extra parameters specific to the
|
|
2899
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2900
2900
|
* @returns {object} response from the exchange
|
|
2901
2901
|
*/
|
|
2902
2902
|
if (symbol === undefined) {
|
|
@@ -2928,7 +2928,7 @@ class ascendex extends ascendex$1 {
|
|
|
2928
2928
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
|
|
2929
2929
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
2930
2930
|
* @param {string} symbol unified market symbol
|
|
2931
|
-
* @param {object} [params] extra parameters specific to the
|
|
2931
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2932
2932
|
* @returns {object} response from the exchange
|
|
2933
2933
|
*/
|
|
2934
2934
|
if (symbol === undefined) {
|
|
@@ -2962,7 +2962,7 @@ class ascendex extends ascendex$1 {
|
|
|
2962
2962
|
* @name ascendex#fetchLeverageTiers
|
|
2963
2963
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
2964
2964
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2965
|
-
* @param {object} [params] extra parameters specific to the
|
|
2965
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2966
2966
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
2967
2967
|
*/
|
|
2968
2968
|
await this.loadMarkets();
|
|
@@ -3103,7 +3103,7 @@ class ascendex extends ascendex$1 {
|
|
|
3103
3103
|
* @description fetch deposit and withdraw fees
|
|
3104
3104
|
* @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
|
3105
3105
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3106
|
-
* @param {object} [params] extra parameters specific to the
|
|
3106
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3107
3107
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3108
3108
|
*/
|
|
3109
3109
|
await this.loadMarkets();
|
|
@@ -3120,7 +3120,7 @@ class ascendex extends ascendex$1 {
|
|
|
3120
3120
|
* @param {float} amount amount to transfer
|
|
3121
3121
|
* @param {string} fromAccount account to transfer from
|
|
3122
3122
|
* @param {string} toAccount account to transfer to
|
|
3123
|
-
* @param {object} [params] extra parameters specific to the
|
|
3123
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3124
3124
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3125
3125
|
*/
|
|
3126
3126
|
await this.loadMarkets();
|
|
@@ -3191,7 +3191,7 @@ class ascendex extends ascendex$1 {
|
|
|
3191
3191
|
* @param {string} [symbol] unified market symbol
|
|
3192
3192
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3193
3193
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3194
|
-
* @param {object} [params] extra parameters specific to the
|
|
3194
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3195
3195
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3196
3196
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3197
3197
|
*/
|
|
@@ -3311,7 +3311,7 @@ class Exchange {
|
|
|
3311
3311
|
/**
|
|
3312
3312
|
* @ignore
|
|
3313
3313
|
* @method
|
|
3314
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3314
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3315
3315
|
* @returns {Array} the marginMode in lowercase as specified by params["marginMode"], params["defaultMarginMode"] this.options["marginMode"] or this.options["defaultMarginMode"]
|
|
3316
3316
|
*/
|
|
3317
3317
|
return this.handleOptionAndParams(params, methodName, 'marginMode', defaultValue);
|
|
@@ -3467,7 +3467,7 @@ class Exchange {
|
|
|
3467
3467
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
3468
3468
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
3469
3469
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
3470
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3470
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3471
3471
|
* @returns {object} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3472
3472
|
*/
|
|
3473
3473
|
throw new errors.NotSupported(this.id + ' fetchDepositsWithdrawals() is not supported yet');
|
|
@@ -3992,7 +3992,7 @@ class Exchange {
|
|
|
3992
3992
|
* @param {string} timeframe the length of time each candle represents
|
|
3993
3993
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
3994
3994
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
3995
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3995
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3996
3996
|
* @returns {float[][]} A list of candles ordered as timestamp, open, high, low, close, undefined
|
|
3997
3997
|
*/
|
|
3998
3998
|
if (this.has['fetchMarkOHLCV']) {
|
|
@@ -4014,7 +4014,7 @@ class Exchange {
|
|
|
4014
4014
|
* @param {string} timeframe the length of time each candle represents
|
|
4015
4015
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
4016
4016
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
4017
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
4017
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4018
4018
|
* @returns {} A list of candles ordered as timestamp, open, high, low, close, undefined
|
|
4019
4019
|
*/
|
|
4020
4020
|
if (this.has['fetchIndexOHLCV']) {
|
|
@@ -4036,7 +4036,7 @@ class Exchange {
|
|
|
4036
4036
|
* @param {string} timeframe the length of time each candle represents
|
|
4037
4037
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
4038
4038
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
4039
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
4039
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4040
4040
|
* @returns {float[][]} A list of candles ordered as timestamp, open, high, low, close, undefined
|
|
4041
4041
|
*/
|
|
4042
4042
|
if (this.has['fetchPremiumIndexOHLCV']) {
|
|
@@ -4240,7 +4240,7 @@ class Exchange {
|
|
|
4240
4240
|
* @param {string} code unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
4241
4241
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
4242
4242
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
4243
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
4243
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4244
4244
|
* @returns {object} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4245
4245
|
*/
|
|
4246
4246
|
if (this.has['fetchDepositsWithdrawals']) {
|